:root {
  --ink: #151827;
  --muted: #677085;
  --paper: #ffffff;
  --soft: #f7f4ff;
  --soft-2: #f9fafb;
  --line: #e7e3f1;
  --bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  --accent: #0fac84;
  --orange: #f59f3d;
  --danger: #ee5366;
  --footer: #0c1730;
  --footer-text: #d6deed;
  --shadow: 0 22px 70px rgba(37, 99, 235, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f6ff;
  --muted: #a8b0c3;
  --paper: #12192b;
  --soft: #1a2238;
  --soft-2: #0f1729;
  --line: #2b3550;
  --bg: #0b1020;
  --header-bg: rgba(11, 16, 32, 0.94);
  --footer: #070c18;
  --footer-text: #cbd5e1;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--soft-2);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.admin-brand {
  display: grid;
  gap: 8px;
  padding: 10px 12px 22px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-brand img {
  width: 150px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .1);
}

.admin-main {
  min-width: 0;
  padding: 26px clamp(18px, 4vw, 42px) 42px;
}

.admin-topbar,
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-topbar {
  margin-bottom: 20px;
}

.admin-topbar h1,
.admin-panel h2,
.admin-enquiry h3 {
  margin: 0;
}

.admin-alert {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-alert.success {
  color: #047857;
  background: rgba(16, 185, 129, .12);
}

.admin-alert.error {
  color: var(--danger);
  background: rgba(238, 83, 102, .12);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-panel,
.admin-enquiry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-stats article {
  padding: 20px;
}

.admin-stats span,
.admin-list span,
.admin-enquiry p,
.admin-message {
  color: var(--muted);
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-panel {
  padding: 22px;
}

.admin-panel-head {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-section-kicker {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-panel-head a,
.admin-link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.admin-form,
.admin-form-grid,
.admin-search {
  display: grid;
  gap: 12px;
}

.admin-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-form label,
.admin-search input,
.admin-search select {
  min-width: 0;
}

.admin-form input,
.admin-form textarea,
.admin-search input,
.admin-search select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.admin-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.65;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  font-weight: 900;
}

.admin-check input {
  width: auto;
}

.admin-search {
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  background: var(--soft-2);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-table tbody tr:hover td {
  background: rgba(var(--primary-rgb), .045);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: .78rem;
  font-weight: 900;
}

.admin-badge.green {
  color: #047857;
  background: rgba(16, 185, 129, .14);
}

.admin-badge.red {
  color: var(--danger);
  background: rgba(238, 83, 102, .14);
}

.admin-badge.blue {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .12);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .1);
  font-weight: 900;
  cursor: pointer;
}

.admin-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.admin-actions button.danger {
  color: var(--danger);
  background: rgba(238, 83, 102, .12);
}

.admin-enquiries {
  display: grid;
  gap: 14px;
}

.admin-enquiry {
  padding: 18px;
  box-shadow: 0 16px 40px rgba(37, 99, 235, .08);
}

.admin-enquiry-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-enquiry-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.admin-message,
.admin-reply {
  padding: 13px;
  border-radius: 8px;
  background: var(--soft-2);
  line-height: 1.7;
}

.admin-message {
  color: var(--ink);
}

.admin-reply {
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
}

.admin-reply p {
  margin: 6px 0 0;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 28, .62);
  backdrop-filter: blur(8px);
}

.admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft-2);
  font-weight: 900;
  cursor: pointer;
}

.admin-reply-target {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-2);
}

.admin-reply-target span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-login-card {
  max-width: 460px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  padding: 8px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 168px;
  max-width: 42vw;
  height: auto;
  aspect-ratio: 360 / 96;
}

.brand-logo-dark-mode {
  display: none;
}

html[data-theme="dark"] .site-header .brand-logo-light-mode {
  display: none;
}

html[data-theme="dark"] .site-header .brand-logo-dark-mode {
  display: block;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 16px;
  height: 11px;
  background: linear-gradient(135deg, transparent 45%, var(--primary) 46%);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 18px 0;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-item {
  position: relative;
}

.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-item > button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .64;
  transform: rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
}

.nav-item.open > button::after {
  opacity: 1;
  transform: translateY(2px) rotate(225deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item.open .dropdown { display: grid; }
.dropdown a { padding: 10px 12px; border-radius: 6px; }
.dropdown a:hover { background: var(--soft); }
.dropdown a::after { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(37,99,235,.08);
  font-weight: 900;
  font-size: 0.84rem;
}

.account-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-logout-btn {
  gap: 8px;
  max-width: min(280px, 34vw);
}

.account-name {
  max-width: 120px;
  overflow: hidden;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 68px;
  height: 36px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--paper), var(--soft-2));
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px rgba(37,99,235,.08);
  cursor: pointer;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--primary));
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.28);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle::before { transform: translateX(34px); }
.theme-toggle svg { position: relative; z-index: 1; width: 15px; height: 15px; margin: auto; stroke: currentColor; stroke-width: 2.2; fill: none; }
.theme-toggle .sun-icon { color: #fff; }
.theme-toggle .moon-icon { color: var(--muted); }
html[data-theme="dark"] .theme-toggle .sun-icon { color: var(--muted); }
html[data-theme="dark"] .theme-toggle .moon-icon { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 26px rgba(var(--primary-rgb), 0.24);
  font-weight: 800;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 36px; padding: 0 15px; }
.btn-outline { color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
.btn-light { color: var(--primary); background: #fff; box-shadow: none; }
.full-btn { width: 100%; }

.nav-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }

.site-header.nav-open .nav-toggle span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section:not(.hero),
.site-footer,
.content-block,
.content-card,
.blog-card,
.benefit-strip,
.cta-band,
.tool-output {
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.35rem, 5.8vw, 5.25rem); line-height: 1.02; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: clamp(1.65rem, 3.4vw, 3.1rem); line-height: 1.12; }
h3 { margin-bottom: 10px; font-size: 1.12rem; }
p { color: var(--muted); line-height: 1.72; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  min-height: 650px;
  padding-top: 72px;
  background:
    radial-gradient(circle at 84% 18%, rgba(var(--primary-rgb), 0.09), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--soft-2));
}

.hero h1 span { color: var(--primary); }
.hero-text { max-width: 650px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.play-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.play-dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--primary); background: var(--paper); box-shadow: var(--shadow); }

.editor-window {
  position: relative;
  max-width: 610px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.window-dots { display: flex; gap: 7px; margin-bottom: 18px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.window-dots span:nth-child(2) { background: var(--orange); }
.window-dots span:nth-child(3) { background: var(--accent); }

.hero-art {
  width: min(100%, 640px);
  overflow: hidden;
}

.hero-editor-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-tool-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-tool-row span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-tool {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
}

.mini-tool.crop { left: -18px; top: 118px; background: var(--accent); }
.mini-tool.resize { right: -18px; top: 80px; background: var(--accent); }
.mini-tool.compress { left: 36px; bottom: -18px; background: var(--orange); }
.mini-tool.convert { left: 50%; bottom: -32px; background: var(--primary); }
.mini-tool.pdf { right: 20px; bottom: -12px; background: var(--danger); }

.drop-preview {
  display: grid;
  place-items: center;
  min-height: 270px;
  border: 2px dashed rgba(var(--primary-rgb), 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(var(--primary-rgb),.045) 1px, transparent 1px),
    linear-gradient(rgba(var(--primary-rgb),.045) 1px, transparent 1px),
    var(--soft);
  background-size: 20px 20px;
  text-align: center;
}

.preview-image {
  display: grid;
  place-items: center;
  width: 86px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #a78bfa, var(--primary));
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }

.service-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(37, 99, 235, 0.06);
  text-align: center;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.2rem;
}

.icon-box svg, .service-svg, .nav-svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-svg { width: 20px; height: 20px; margin-right: 8px; vertical-align: middle; }
.service-card .icon-box svg { width: 30px; height: 30px; }

.tone-green { color: #06946f; background: #ddf8ed; }
.tone-cyan { color: #0891a5; background: #dff7fb; }
.tone-orange { color: #c46a10; background: #fff0df; }
.tone-purple { color: var(--primary); background: #eef4ff; }
.tone-red { color: #d73f53; background: #ffe4e8; }

.service-card p { min-height: 82px; font-size: 0.92rem; }
.service-card a { color: var(--primary); font-weight: 900; }

.blog-listing {
  background:
    radial-gradient(circle at 10% 18%, rgba(var(--primary-rgb), .08), transparent 32%),
    linear-gradient(180deg, var(--bg), var(--soft-2));
}

.blog-listing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  max-width: 1216px;
  margin: 0 auto 28px;
}

.blog-listing-head h2 {
  max-width: 780px;
}

.blog-listing-head p:not(.eyebrow) {
  margin-bottom: 0;
}

.blog-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1216px;
  margin: 0 auto;
}

.blog-guide-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 330px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(37, 99, 235, .08);
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.blog-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 94px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), transparent);
}

.blog-guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), .34);
  box-shadow: 0 24px 58px rgba(37, 99, 235, .14);
}

.blog-guide-card.featured {
  border-color: rgba(var(--primary-rgb), .36);
}

.blog-guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-guide-meta .icon-box {
  width: 52px;
  height: 52px;
  margin: 0;
}

.blog-guide-card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.24;
}

.blog-guide-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .93rem;
}

.blog-guide-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(var(--primary-rgb), .18);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 26px rgba(var(--primary-rgb), .22);
  font-size: .86rem;
  font-weight: 900;
}

.blog-guide-card a svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.blog-guide-card:hover a svg {
  transform: translateX(4px);
}

html[data-theme="dark"] .blog-guide-card {
  border-color: #233454;
  background: #111a2d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .blog-guide-card::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), transparent);
}

html[data-theme="dark"] .blog-guide-card h3 {
  color: #f8fbff;
}

html[data-theme="dark"] .blog-guide-card a {
  color: #fff;
  border-color: rgba(96, 165, 250, .42);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.home-tools {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--primary-rgb), .08), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--soft-2));
}

.home-tools-head {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  gap: 24px;
  max-width: 1216px;
  margin: 0 auto 34px;
}

.home-tools-head h2 {
  max-width: 760px;
}

.home-tools-head p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
}

.home-tools-head .btn {
  justify-self: end;
  white-space: nowrap;
}

.home-tool-grid {
  max-width: 1216px;
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.home-tool-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 318px;
  padding: 20px;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, rgba(var(--primary-rgb), .09), transparent 42%);
  opacity: 0;
  transition: opacity .2s ease;
}

.home-tool-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .08);
}

.home-tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), .34);
  box-shadow: 0 24px 58px rgba(37, 99, 235, .12);
}

.home-tool-card:hover::before {
  opacity: 1;
}

.home-tool-card.featured {
  border-color: rgba(var(--primary-rgb), .32);
  box-shadow: 0 24px 70px rgba(37, 99, 235, .14);
}

.home-tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.home-tool-card .icon-box {
  width: 58px;
  height: 58px;
  margin: 0;
}

.home-tool-card .icon-box svg {
  width: 28px;
  height: 28px;
}

.tool-number {
  color: rgba(var(--primary-rgb), .32);
  font-size: 0.86rem;
  font-weight: 900;
}

.tool-chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--primary-rgb), .12);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .06);
  font-size: 0.72rem;
  font-weight: 900;
}

.home-tool-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.home-tool-card p {
  min-height: 112px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-tool-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(var(--primary-rgb), .16);
  border-radius: 8px;
  color: var(--primary);
  background: linear-gradient(180deg, #ffffff, rgba(var(--primary-rgb), .06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 22px rgba(37, 99, 235, .08);
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

html[data-theme="dark"] .home-tool-card a {
  border-color: rgba(96, 165, 250, .34);
  color: #dbeafe;
  background: rgba(37, 99, 235, .16);
  box-shadow: none;
}

html[data-theme="dark"] .home-tool-card:hover a {
  border-color: rgba(96, 165, 250, .58);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.home-tool-card a svg {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.home-tool-card:hover a {
  border-color: rgba(var(--primary-rgb), .32);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.home-tool-card:hover a svg {
  transform: translateX(4px);
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 42px;
  background: var(--soft-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.why-item p { margin-bottom: 0; font-size: 0.92rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 930px;
  margin: 0 auto;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: var(--primary);
  background: #eef4ff;
  font-size: 1.3rem;
  font-weight: 900;
}

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
}

.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; }
details p { margin: 10px 0 0; }

.question-art {
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(var(--primary-rgb),.18), transparent 68%);
  color: var(--primary);
  font-size: 10rem;
  font-weight: 900;
}

.home-faq-art {
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 18%, rgba(var(--primary-rgb),.14), transparent 32%),
    radial-gradient(circle at 18% 80%, rgba(15,172,132,.12), transparent 30%),
    var(--paper);
  box-shadow: 0 18px 54px rgba(37, 99, 235, 0.08);
}

.home-faq-art svg {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.faq-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--primary-rgb),.08), transparent 30%),
    linear-gradient(180deg, var(--soft-2), var(--bg) 42%);
}

.faq-page-hero {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.faq-page-hero .breadcrumb {
  margin-bottom: 32px;
}

.faq-page-section {
  padding-top: 18px;
}

.faq-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.faq-panel,
.faq-illustration-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.faq-panel {
  overflow: hidden;
}

.faq-panel-head {
  padding: 30px 30px 10px;
}

.faq-page-list {
  padding: 20px 30px 30px;
}

.faq-page-list details {
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-page-list details[open] {
  border-color: rgba(var(--primary-rgb),.35);
  box-shadow: 0 12px 34px rgba(37,99,235,.07);
}

.faq-page-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-page-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--soft);
  font-weight: 900;
}

.faq-page-list details[open] summary::after {
  content: "-";
  color: #fff;
  background: var(--primary);
}

.faq-illustration-card {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.faq-illustration-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.faq-support-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.faq-support-card p {
  margin-bottom: 4px;
}

.cta-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(56px, 8vw, 92px);
  padding: 28px clamp(24px, 5vw, 72px);
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  background-size: 12px 12px, auto;
}

.cta-band p, .cta-band h2 { margin-bottom: 0; color: white; }
.cta-icon { display: grid; place-items: center; width: 76px; height: 76px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; font-weight: 900; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 44px;
  padding: 44px clamp(18px, 5vw, 72px) 28px;
  background: var(--footer);
  color: white;
}

.site-footer p { color: var(--footer-text); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h3 { color: white; font-size: 1rem; }
.footer-col a { color: var(--footer-text); font-size: 0.92rem; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.08); }
.newsletter input { min-width: 0; flex: 1; border: 0; background: transparent; color: white; padding: 10px 8px; }
.newsletter button { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 8px; color: white; background: var(--primary); cursor: pointer; box-shadow: 0 10px 22px rgba(var(--primary-rgb), .22); }
.newsletter button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.newsletter button:hover,
.newsletter button:focus-visible { filter: brightness(1.08); outline: 3px solid rgba(255,255,255,.18); outline-offset: 2px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: var(--footer-text); font-size: 0.9rem; }

.page-hero {
  padding: 34px clamp(18px, 5vw, 72px) 62px;
}

.page-hero-compact {
  padding: 34px clamp(18px, 5vw, 72px) 24px;
}

.breadcrumb { margin-bottom: 48px; color: var(--muted); font-size: 0.86rem; }
.about-hero-grid, .contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.feature-mini { text-align: center; }
.feature-mini p { font-size: 0.84rem; }

.browser-card, .image-card, .contact-form, .contact-methods, .team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.browser-card { padding: 24px; }
.side-tools { display: grid; gap: 14px; position: absolute; left: -30px; top: 65px; }
.browser-shell { position: relative; max-width: 470px; margin: 0 auto; }
.upload-mini { padding: 44px 22px; border: 2px dashed rgba(var(--primary-rgb),.36); border-radius: 8px; text-align: center; background: var(--soft); }

.story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.image-card { position: relative; overflow: hidden; min-height: 230px; background: linear-gradient(160deg, #cabdfd, #f7c18f 55%, #24405c); }
.image-card .floating { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px; color: white; font-weight: 900; }
.floating.a { left: 18px; top: 18px; background: var(--accent); }
.floating.b { right: 18px; top: 18px; background: var(--accent); }
.floating.c { left: 18px; bottom: 18px; background: var(--orange); }
.floating.d { right: 18px; bottom: 18px; background: var(--primary); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-strip div { padding: 26px; background: var(--soft); text-align: center; }
.stats-strip strong { display: block; color: var(--primary); font-size: 1.55rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { padding: 26px; text-align: center; }
.avatar { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, #f8c2b6, #8358f6); }

.contact-page { background: linear-gradient(180deg, var(--soft-2), var(--bg)); }
.contact-page .page-hero { padding-bottom: clamp(44px, 7vw, 78px); }
.contact-form { display: grid; gap: 18px; padding: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: grid; gap: 8px; color: var(--ink); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.field-error {
  min-height: 1em;
  color: #b42318;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.newsletter .field-error {
  grid-column: 1 / -1;
  margin: -2px 2px 3px;
  color: #fecaca;
}

.contact-list {
  display: grid;
  gap: 18px;
  max-width: 420px;
  margin-top: 30px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.contact-info-row:hover {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(37,99,235,.07);
}

.contact-info-row .icon-box {
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 0.95rem;
}

.contact-info-text h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.contact-info-text p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.contact-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1120px; margin: 0 auto; overflow: hidden; background: var(--line); }
.contact-methods article { padding: 28px; background: var(--paper); text-align: center; }
.contact-methods .btn-outline { min-height: 38px; padding: 0 14px; font-size: 0.84rem; }

.tool-page-title {
  padding: 44px clamp(18px, 5vw, 72px) 28px;
}

.tool-top-tabs {
  position: sticky;
  top: 62px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #e2e8f0 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.05);
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.tool-tab {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.tool-tab.active { color: var(--primary); border-color: var(--primary); background: rgba(var(--primary-rgb),.04); }

html[data-theme="dark"] .tool-top-tabs {
  background: linear-gradient(135deg, #101827 0%, #172033 52%, #1f2b44 100%);
  border-bottom-color: #33415f;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .tool-tab {
  color: #cbd5e1;
}

html[data-theme="dark"] .tool-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .04);
}

html[data-theme="dark"] .tool-tab.active {
  color: #ffffff;
  border-color: #60a5fa;
  background: rgba(37, 99, 235, .22);
}

.tool-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  padding: 0 clamp(18px, 5vw, 72px) 42px;
  align-items: start;
}

.settings-panel {
  position: sticky;
  top: 172px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 44px rgba(37, 99, 235, 0.07);
}

.pdf-tool-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.pdf-page-actions {
  display: flex;
  justify-content: flex-end;
}

.pdf-page-actions[hidden] {
  display: none;
}

.pdf-page-actions .btn {
  width: min(100%, 260px);
  min-height: 54px;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-close,
.settings-fab {
  display: none;
}

.mode-select {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mode-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
  cursor: pointer;
}

.mode-select-trigger svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.mode-select.open .mode-select-trigger svg {
  transform: rotate(180deg);
}

.mode-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

.mode-select.open .mode-select-menu {
  display: grid;
}

.mode-select-menu button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.mode-select-menu button:last-child {
  border-bottom: 0;
}

.mode-select-menu button.active,
.mode-select-menu button:hover {
  color: #fff;
  background: var(--primary);
}

.ratio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; margin: 14px 0 24px; }
.ratio-grid button, .position-grid button, .flip-grid button {
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.ratio-grid button.active, .position-grid button.active, .flip-grid button.active { color: var(--primary); border-color: var(--primary); background: var(--soft); }
.pdf-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pdf-choice-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin: 10px 0 18px; }
.field-row input.is-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.dimension-error { grid-column: 1 / -1; margin: -2px 0 0; color: #b42318; font-size: .82rem; font-weight: 800; }
.lock-btn { display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--primary); background: var(--soft); cursor: pointer; }
.lock-btn.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.lock-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-weight: 800; }
.switch { width: 48px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s ease; }
.switch.active { background: var(--primary); }
.switch.active::after { transform: translateX(22px); }
.position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 18px; }
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 18px; }
.flip-grid button {
  display: grid;
  place-items: center;
  gap: 4px;
}
.flip-grid svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 660px;
  padding: 34px;
  border: 2px dashed rgba(var(--primary-rgb),.5);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.14);
  box-shadow: inset 0 0 0 4px rgba(var(--primary-rgb),.08);
}
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.file-status { margin-top: 18px; color: var(--muted); font-weight: 800; }

.upload-zone.has-preview {
  align-items: stretch;
  background: var(--paper);
  border-style: solid;
}

.upload-content {
  width: min(100%, 760px);
}

.upload-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  gap: 22px;
  width: min(100%, 860px);
  text-align: left;
}

.upload-preview-card-multi {
  width: min(100%, 980px);
}

.upload-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-content: start;
  gap: 12px;
  max-height: 530px;
  overflow: auto;
  padding: 2px;
}

.upload-preview-tile {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.upload-preview-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .78;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft-2);
}

.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-preview-tile figcaption {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.upload-preview-tile strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-tile.is-draggable {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.upload-preview-tile.is-draggable:active {
  cursor: grabbing;
}

.upload-preview-tile.is-dragging {
  opacity: .55;
  outline: 2px solid var(--primary);
  pointer-events: none;
}

.upload-preview-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .78);
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.upload-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.upload-preview-remove:hover,
.upload-preview-remove:focus-visible {
  background: #8f1c14;
  outline: 3px solid rgba(180, 35, 24, .18);
  outline-offset: 2px;
}

.upload-preview-frame {
  display: grid;
  place-items: center;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(var(--primary-rgb),.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--primary-rgb),.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(var(--primary-rgb),.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(var(--primary-rgb),.06) 75%),
    var(--soft-2);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.upload-preview-frame img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.upload-preview-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.upload-preview-info h3 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.upload-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.upload-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-meta div:last-child { border-bottom: 0; }
.upload-meta strong { color: var(--ink); }
.upload-preview-actions { display: grid; gap: 10px; margin-top: 4px; }

.crop-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 22px;
  width: min(100%, 940px);
  text-align: left;
}

.crop-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(var(--primary-rgb),.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--primary-rgb),.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(var(--primary-rgb),.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(var(--primary-rgb),.06) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.crop-canvas-wrap {
  position: relative;
  line-height: 0;
  user-select: none;
  touch-action: none;
}

.crop-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(37, 99, 235, .16);
}

.crop-box {
  position: absolute;
  border: 2px solid #fff;
  background: rgba(var(--primary-rgb), .08);
  box-shadow:
    0 0 0 9999px rgba(13, 9, 6, .48),
    0 0 0 1px rgba(var(--primary-rgb), .8);
  cursor: move;
  touch-action: none;
}

.crop-box::before,
.crop-box::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto;
  border-top: 1px solid rgba(255,255,255,.76);
}

.crop-box::after {
  inset: 66.666% 0 auto;
}

.crop-grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.76);
}

.crop-grid-line.one { left: 33.333%; }
.crop-grid-line.two { left: 66.666%; }

.crop-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.crop-handle[data-handle="nw"] { top: -10px; left: -10px; cursor: nwse-resize; }
.crop-handle[data-handle="ne"] { top: -10px; right: -10px; cursor: nesw-resize; }
.crop-handle[data-handle="w"] { top: 50%; left: -10px; transform: translateY(-50%); cursor: ew-resize; }
.crop-handle[data-handle="e"] { top: 50%; right: -10px; transform: translateY(-50%); cursor: ew-resize; }
.crop-handle[data-handle="sw"] { bottom: -10px; left: -10px; cursor: nesw-resize; }
.crop-handle[data-handle="se"] { bottom: -10px; right: -10px; cursor: nwse-resize; }

.crop-details {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.crop-details h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.crop-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.crop-meta div,
.crop-live-size {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.crop-meta dt,
.crop-live-size span {
  color: var(--muted);
  font-weight: 800;
}

.crop-meta dd,
.crop-live-size strong {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.crop-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.crop-actions {
  display: grid;
  gap: 10px;
}

.tool-output {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 26px;
  margin: 0 clamp(18px, 5vw, 72px) 46px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(var(--primary-rgb), .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .1), var(--paper));
  box-shadow: var(--shadow);
  scroll-margin-top: 148px;
}

.output-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.output-copy h2,
.output-copy p { margin: 0; }

.output-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }

.output-summary {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}

.output-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.output-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.output-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.output-preview {
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(var(--primary-rgb),.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--primary-rgb),.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(var(--primary-rgb),.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(var(--primary-rgb),.06) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.output-preview img {
  display: block;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.output-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-content: start;
  gap: 12px;
  max-height: none;
  overflow: visible;
  place-items: stretch;
}

.output-preview-item {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.output-preview-item img {
  width: 100%;
  aspect-ratio: 1 / .78;
  max-height: none;
  border-radius: 8px;
  background: var(--soft-2);
  object-fit: contain;
}

.output-preview-item figcaption {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.output-preview-item strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-preview-item a {
  color: var(--primary);
  font-weight: 900;
}

.download-link {
  display: inline-grid;
  place-items: center;
}

.tool-alert {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .46);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.tool-alert.show {
  opacity: 1;
  pointer-events: auto;
}

.tool-alert-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

.tool-alert.show .tool-alert-card {
  transform: translateY(0) scale(1);
}

.tool-alert-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #b42318;
  background: rgba(180, 35, 24, .1);
}

.tool-alert.success .tool-alert-icon {
  color: #0f9f6e;
  background: rgba(15, 159, 110, .12);
}

.tool-alert-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-alert-copy {
  display: grid;
  gap: 7px;
}

.tool-alert-copy h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tool-alert-copy p,
.tool-alert-copy span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.tool-alert-copy span {
  font-size: .9rem;
}

.tool-progress {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.tool-progress.show {
  opacity: 1;
  pointer-events: auto;
}

.tool-progress-card {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 26px 76px rgba(15, 23, 42, .25);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

.tool-progress.show .tool-progress-card {
  transform: translateY(0) scale(1);
}

.tool-progress-ring {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    conic-gradient(var(--primary), var(--accent), var(--primary)),
    var(--soft);
  -webkit-mask: radial-gradient(circle at center, transparent 54%, #000 56%);
  mask: radial-gradient(circle at center, transparent 54%, #000 56%);
  animation: tool-progress-spin 1s linear infinite;
}

.tool-progress-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.tool-progress-copy h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tool-progress-copy p {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tool-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.tool-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .22s ease;
}

.tool-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 900;
}

.tool-progress-meta strong {
  color: var(--primary);
}

@keyframes tool-progress-spin {
  to { transform: rotate(360deg); }
}

.output-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--primary);
  text-align: center;
}

.output-placeholder span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(var(--primary-rgb), .22);
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px) 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.benefit-strip article { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px; background: var(--paper); }
.benefit-strip p { margin-bottom: 0; font-size: 0.88rem; }

.content-page { min-height: 70vh; }
.content-block { max-width: 950px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 72px) 80px; }
.auth-page { display: grid; place-items: center; gap: 24px; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 50% 0, rgba(var(--primary-rgb),.12), transparent 36%), var(--soft-2); }
.auth-card { display: grid; gap: 18px; width: min(100%, 460px); padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 0; font-size: 2rem; text-align: center; }
.auth-card > p { margin-bottom: 0; text-align: center; }
.auth-card a { color: var(--primary); font-weight: 900; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.auth-tabs a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}

.auth-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 22px rgba(var(--primary-rgb),.22);
}

@media (max-width: 1160px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-tool-card { min-height: 300px; }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
  .tool-top-tabs {
    top: 62px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .tool-tab {
    min-width: 150px;
    min-height: 64px;
    padding-inline: 18px;
    scroll-snap-align: start;
  }
  .tool-workspace { grid-template-columns: 1fr; }
  .settings-panel {
    position: static;
    order: 2;
  }
  .upload-zone {
    order: 1;
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .admin-body {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }
  .admin-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
  }
  .admin-menu a {
    white-space: nowrap;
    text-align: center;
  }
  .admin-stats,
  .admin-grid,
  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-form-grid .btn {
    grid-column: 1 / -1;
  }
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: block; justify-self: end; }
  .header-actions {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .header-actions .account-btn,
  .header-actions form {
    display: none;
  }
  .main-nav { display: none; grid-column: 1 / -1; }
  .site-header.nav-open .main-nav { display: grid; justify-content: stretch; gap: 0; }
  .site-header.nav-open .header-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .site-header.nav-open .header-actions .account-btn,
  .site-header.nav-open .header-actions form {
    display: inline-flex;
  }
  .main-nav a, .nav-item { border-top: 1px solid var(--line); }
  .main-nav a {
    display: block;
    margin: 4px 0;
    padding: 12px 14px;
    border-radius: 8px;
  }
  .main-nav a.active {
    color: var(--primary);
    background: var(--soft);
    box-shadow: inset 3px 0 0 var(--primary);
  }
  .main-nav a.active::after,
  .main-nav a:hover::after { display: none; }
  .nav-item {
    padding: 8px 0;
  }
  .nav-item > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
  }
  .nav-item > button::after {
    content: "+";
    width: auto;
    height: auto;
    margin-top: 0;
    border: 0;
    color: var(--primary);
    font-weight: 900;
    opacity: 1;
    transform: none;
  }
  .nav-item.open > button {
    color: var(--primary);
    background: var(--soft);
  }
  .nav-item.open > button::after { content: "-"; transform: none; }
  .dropdown {
    position: static;
    display: none;
    margin-top: 8px;
    padding: 6px;
    box-shadow: none;
  }
  .dropdown::before { display: none; }
  .nav-item.open .dropdown { display: grid; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open:hover .dropdown { display: grid; }
  .hero, .why-section, .about-hero-grid, .contact-hero-grid, .story-grid, .faq-wrap { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding-top: 42px;
    text-align: center;
  }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .home-tools-head {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-tools-head h2,
  .home-tools-head p:not(.eyebrow) {
    margin-inline: auto;
  }
  .home-tools-head .btn {
    justify-self: center;
  }
  .home-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-listing-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .blog-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-window {
    justify-self: center;
    margin: 8px auto 0;
    max-width: 620px;
  }
  .home-faq-art {
    min-height: 300px;
    max-width: 520px;
    margin: 0 auto;
  }
  .contact-hero-grid {
    align-items: start;
  }
  .contact-list {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-info-row {
    align-content: start;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .feature-row, .stats-strip, .team-grid, .contact-methods, .benefit-strip { grid-template-columns: repeat(2, 1fr); }
  .faq-page-grid {
    grid-template-columns: 1fr;
  }
  .faq-illustration-card {
    position: static;
    max-width: 560px;
    margin: 0 auto;
  }
  .upload-zone { min-height: 440px; }
  .upload-preview-card { grid-template-columns: 1fr; }
  .upload-preview-list { max-height: none; }
  .crop-editor { grid-template-columns: 1fr; }
  .upload-preview-frame { min-height: 300px; }
  .upload-preview-frame img { max-height: 360px; }
  .tool-output { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .admin-main {
    padding: 18px 14px 32px;
  }
  .admin-topbar,
  .admin-panel-head,
  .admin-enquiry-head {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-stats,
  .admin-grid,
  .admin-form-grid,
  .admin-search {
    grid-template-columns: 1fr;
  }
  .admin-panel,
  .admin-enquiry {
    padding: 16px;
  }
  .admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }
  .admin-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-table td:last-child {
    border-bottom: 0;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .admin-table tbody tr:hover td {
    background: transparent;
  }
  .admin-actions,
  .admin-card-actions,
  .admin-modal-actions {
    justify-content: stretch;
  }
  .admin-actions form,
  .admin-actions button,
  .admin-card-actions .btn,
  .admin-modal-actions .btn {
    width: 100%;
  }
  .admin-enquiry-meta {
    justify-items: start;
  }
  .admin-modal {
    align-items: end;
    padding: 10px;
  }
  .admin-modal-panel {
    width: 100%;
    max-height: 88vh;
    padding: 22px 16px 16px;
  }
  .admin-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .service-grid, .why-grid, .steps, .feature-row, .stats-strip, .team-grid, .contact-methods, .benefit-strip, .form-grid { grid-template-columns: 1fr; }
  .blog-listing { padding-top: 34px; }
  .blog-listing-head {
    gap: 10px;
    margin-bottom: 18px;
  }
  .blog-listing-head h2 {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 8vw, 2rem);
  }
  .blog-guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .blog-guide-card {
    min-height: auto;
    padding: 18px;
  }
  .blog-guide-meta {
    margin-bottom: 16px;
  }
  .blog-guide-card h3 {
    margin-bottom: 8px;
  }
  .blog-guide-card p {
    margin-bottom: 16px;
  }
  .home-tool-grid { grid-template-columns: 1fr; }
  .home-tool-card {
    min-height: auto;
    padding: 18px;
  }
  .home-tool-card p {
    min-height: auto;
  }
  .site-header.nav-open .header-actions { justify-content: stretch; }
  .site-header.nav-open .header-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .site-header.nav-open .header-actions form {
    min-width: 0;
  }
  .account-btn { justify-content: center; }
  .hero-actions, .cta-band, .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .cta-band { justify-items: center; }
  .editor-window {
    width: 100%;
    padding: 12px;
  }
  .hero-tool-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero-tool-row span { min-height: 34px; font-size: 0.72rem; }
  .mini-tool { display: none; }
  .home-faq-art {
    min-height: 230px;
    padding: 10px;
  }
  .home-faq-art svg { width: min(100%, 320px); }
  .contact-page .page-hero {
    padding-top: 30px;
    padding-bottom: 42px;
  }
  .contact-hero-grid {
    gap: 24px;
  }
  .contact-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }
  .contact-info-row {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,.55);
    border-color: var(--line);
  }
  html[data-theme="dark"] .contact-info-row {
    background: rgba(255,255,255,.04);
  }
  .contact-info-text h3 {
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .contact-info-text p {
    font-size: 0.88rem;
  }
  .contact-form {
    padding: 22px;
  }
  .faq-page-hero {
    text-align: left;
  }
  .faq-page-section {
    padding-top: 0;
  }
  .faq-panel-head,
  .faq-page-list {
    padding-inline: 18px;
  }
  .faq-illustration-card {
    padding: 16px;
  }
  .tool-page-title {
    padding: 28px 14px 18px;
  }
  .tool-page-title h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
  .tool-top-tabs {
    top: 62px;
    padding-inline: 8px;
  }
  .tool-tab {
    min-width: 112px;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 0.8rem;
  }
  .tool-workspace {
    gap: 18px;
    padding-inline: 14px;
  }
  .settings-fab {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 50;
    display: inline-grid;
    place-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px 0 0 999px;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(var(--primary-rgb), .28);
    transform: translateY(-50%);
  }
  .settings-close {
    display: inline-grid;
    place-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary);
    background: var(--soft);
    font-weight: 900;
  }
  .settings-panel {
    position: fixed;
    inset: 76px 8px 8px 8px;
    z-index: 60;
    width: auto;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 84px);
    overflow: auto;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 -18px 48px rgba(15, 23, 42, .18);
    transform: translateX(105%);
    transition: transform .24s ease;
  }
  .settings-panel select,
  .settings-panel input {
    max-width: 100%;
    min-width: 0;
  }
  .mode-select-menu {
    position: static;
    margin-top: -4px;
    box-shadow: none;
  }
  .settings-head {
    position: sticky;
    top: -18px;
    z-index: 1;
    margin: -18px -18px 16px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .settings-panel label,
  .settings-panel .panel-label {
    font-size: .92rem;
  }
  .settings-panel .full-btn {
    min-height: 48px;
    margin-top: 12px;
    border-radius: 8px;
    white-space: normal;
  }
  .settings-panel.settings-panel-open {
    transform: translateX(0);
  }
  .settings-drawer-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, .34);
  }
  .upload-zone {
    min-height: 360px;
    padding: 18px;
  }
  .upload-zone h2 {
    font-size: 1.35rem;
  }
  .upload-preview-frame {
    min-height: 230px;
  }
  .upload-preview-frame img {
    max-height: 270px;
  }
  .upload-preview-info {
    padding: 16px;
  }
  .upload-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pdf-page-actions {
    justify-content: center;
  }
  .pdf-page-actions .btn {
    width: min(100%, 320px);
  }
  .crop-stage {
    min-height: 280px;
    padding: 10px;
  }
  .crop-details {
    padding: 16px;
  }
  .crop-meta div,
  .crop-live-size {
    display: grid;
    gap: 3px;
  }
  .tool-output {
    margin-inline: 14px;
    padding: 18px;
    scroll-margin-top: 126px;
  }
  .output-preview {
    min-height: 250px;
  }
  .output-actions {
    display: grid;
  }
  .upload-meta div {
    display: grid;
    gap: 3px;
  }
  .settings-panel {
    padding: 18px;
  }
  .field-row { grid-template-columns: 1fr; }
  .ratio-grid { grid-template-columns: repeat(2, 1fr); }
  .output-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .output-preview-grid,
  .upload-preview-list {
    grid-template-columns: 1fr;
  }
}


.auth-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.auth-card {
  width: min(100%, 520px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-card h1 { margin-bottom: 18px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.auth-tabs a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.auth-tabs a.active {
  color: #fff;
  background: var(--primary);
}

.form-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, .22);
  border-radius: 8px;
  color: #b42318;
  background: rgba(180, 35, 24, .08);
  font-weight: 800;
}

.check-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  margin-top: -2px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.check-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  accent-color: var(--primary);
  cursor: pointer;
}

.check-row span {
  color: var(--muted);
}

.check-row:hover span,
.check-row:focus-within span {
  color: var(--ink);
}

.auth-card .full-btn {
  width: 100%;
}


/* Compact professional tool navigation */
.tool-top-tabs {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #e2e8f0 100%);
}

html[data-theme="dark"] .tool-top-tabs {
  background: linear-gradient(135deg, #101827 0%, #172033 52%, #1f2b44 100%);
}

.tool-tab { min-height: 40px; }

@media (max-width: 1024px) {
  .tool-tab { min-height: 40px; }
}

@media (max-width: 640px) {
  .tool-tab { min-height: 40px; }
}
