/* ==================================================================
   Q Digital — brushed-metal instrument panel.
   Silver/graphite surfaces, one cobalt accent, kufi display type.
   ================================================================== */
/* Layout: light cool-blue canvas, a floating navy navigation capsule, centred
   section titles with pill badges; royal blue for action, gold reserved for "featured". */
:root {
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --ink: #030641;
  --ink-2: #2d3a55;
  --muted: #5a6478;
  --line: #e3e7ef;
  --line-2: #d4dae6;
  --navy: #030641;
  --navy-2: #0e3789;
  --accent: #2950bd;
  --accent-2: #4f8cff;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecfb;
  --gold-1: #f5d77a; --gold-2: #d4af37; --gold-3: #a07c1c;
  --ok: #138a63;  --ok-soft: #e1f5ee;
  --warn: #9a5b00; --warn-soft: #fbefd9;
  --bad: #c8334b;  --bad-soft: #fde6ea;
  --info: #2950bd; --info-soft: #e6ecfb;
  --dark-0: #05070d; --dark-1: #0a0e1a; --dark-2: #11172a; --dark-text: #e9edf6; --dark-dim: #a8b1c7; --dark-line: rgba(255,255,255,.09);

  /* "metal" ramp kept for the conversion wheel and icon tiles — now cool porcelain-blue */
  --m1: #ffffff; --m2: #dfe5f2; --m3: #f4f6fb; --m4: #c5cfe4; --m5: #e9edf6;
  --m-edge: rgba(255,255,255,.95);
  --metal: linear-gradient(145deg, #ffffff 0%, #eef2fa 55%, #dfe6f4 100%);
  --metal-soft: linear-gradient(180deg, #f8f9fc 0%, #eef1f8 100%);
  --grad-brand: linear-gradient(135deg, #2950bd 0%, #0e3789 100%);
  --grad-gold: linear-gradient(135deg, #f5d77a 0%, #d4af37 55%, #a07c1c 100%);
  --shadow-1: 0 4px 14px rgba(10,20,40,.06);
  --shadow-2: 0 12px 28px rgba(10,20,40,.08);
  --shadow-3: 0 24px 60px -16px rgba(10,20,40,.2);
  --glow: 0 10px 26px -8px rgba(41,80,189,.55);

  --font-display: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --radius: 16px;
  --radius-sm: 11px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a14; --bg-2: #0c111f; --surface: #11172a; --ink: #e9edf6; --ink-2: #c9d1e3; --muted: #a8b1c7;
    --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
    --accent: #5b86f0; --accent-2: #7da3ff; --accent-soft: rgba(79,140,255,.14);
    --ok: #4fd1a5; --ok-soft: rgba(26,188,136,.14); --warn: #f2c071; --warn-soft: rgba(242,192,113,.12);
    --bad: #ff7d91; --bad-soft: rgba(239,71,96,.14); --info: #7da3ff; --info-soft: rgba(79,140,255,.14);
    --m1: #1b2338; --m2: #11172a; --m3: #182038; --m4: #0c111f; --m5: #141b30; --m-edge: rgba(255,255,255,.08);
    --metal: linear-gradient(145deg, #1d2640 0%, #141b30 60%, #0f1528 100%);
    --metal-soft: linear-gradient(180deg, #121a2e 0%, #0e1426 100%);
    --shadow-1: 0 4px 14px rgba(0,0,0,.35); --shadow-2: 0 12px 28px rgba(0,0,0,.4); --shadow-3: 0 24px 60px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(44px, 7vw, 84px); }
.section-tight { padding-block: 32px 56px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; display: block; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.logo-mark { flex: none; filter: drop-shadow(0 2px 3px rgba(31,36,44,.25)); }
.logo-mark .logo-hot { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; flex: 1; }
.nav-main { display: flex; gap: 4px; flex: 1; }
.nav-main a, .nav-user > a:not(.btn) { color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-main a:hover, .nav-user > a:not(.btn):hover { background: var(--bg-2); }
.nav-main a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--line); padding: 6px 11px; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
  background: var(--metal-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: .85rem; box-shadow: var(--shadow-1);
}
.credit-pill .num { font-weight: 600; color: var(--accent); }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px; color: var(--ink); cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 66px; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px max(18px, env(safe-area-inset-left, 0px)) 18px; gap: 10px; box-shadow: var(--shadow-2);
  }
  .site-nav.open { display: flex; }
  .nav-main, .nav-user { flex-direction: column; align-items: stretch; }
  .nav-user { border-top: 1px solid var(--line); padding-top: 10px; }
  .credit-pill { align-self: flex-start; }
}

/* ---------------- buttons ---------------- */
.btn {
  --b-bg: var(--metal-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--b-bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 18px;
  box-shadow: var(--shadow-1); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-danger { color: var(--bad); }
.btn-sm { padding: 7px 13px; font-size: .88rem; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.linklike { background: none; border: 0; padding: 7px 12px; color: var(--muted); font: inherit; cursor: pointer; }
.linklike:hover { color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------- panels ---------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-1); min-width: 0; }
.panel-metal { background: var(--metal-soft); }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack { display: grid; gap: 18px; }

/* ---------------- flash + chips ---------------- */
.flash { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; }
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.flash-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.flash-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-neutral { background: var(--bg-2); color: var(--muted); }

/* ---------------- forms ---------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 13px; min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.field input[dir="ltr"] { text-align: left; }
.field input[type=file] { font: inherit; font-size: .9rem; }
.row-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 6px; width: 17px; height: 17px; accent-color: var(--accent); }
.auth-card { max-width: 440px; margin: 48px auto; }
.auth-card h1 { font-size: 1.8rem; }
.auth-foot { margin-top: 16px; font-size: .92rem; color: var(--muted); }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: end; }
.table .actions { flex-wrap: nowrap; }

/* ---------------- hero ---------------- */
.hero { padding-block: clamp(40px, 7vw, 86px) clamp(36px, 6vw, 64px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.18rem; margin-bottom: 26px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.hero-proof b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.hero-wheel { position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 1; }
.hero-wheel svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 22px 30px rgba(31,36,44,.25)) drop-shadow(0 2px 3px rgba(31,36,44,.2)); }
.hero-wheel .seg path { fill: url(#hw-metal); stroke: var(--m-edge); stroke-width: 1.2; transition: transform .25s ease; }
.hero-wheel .seg text { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.hero-wheel .seg .sub { font-size: 11.5px; font-weight: 500; fill: var(--muted); }
.hero-wheel a.seg:hover path, .hero-wheel a.seg:focus-visible path { fill: url(#hw-hot); }
.hero-wheel a.seg { outline: none; }
.hero-wheel .hub {
  position: absolute; inset: 31%; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; padding: 8%;
  box-shadow: 0 0 0 6px var(--m3), 0 0 0 7px var(--m4), 0 10px 30px rgba(31,36,44,.15);
}
.hero-wheel .hub b { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.6rem); line-height: 1.25; }
.hero-wheel .hub span { font-size: .82rem; color: var(--muted); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-wheel { max-width: 380px; } }

/* ---------------- service blocks ---------------- */
.svc { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--metal); box-shadow: inset 0 0 0 1px var(--m-edge), 0 4px 10px -4px rgba(31,36,44,.4); color: var(--ink); }
.svc-icon svg { width: 22px; height: 22px; }
.svc h3 { margin: 4px 0 0; font-size: 1.15rem; }
.svc p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .92rem; }
.svc .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); }
a.panel.svc:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }

.steps-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: st; }
.step { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.step::before {
  content: counter(st, arabic-indic); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; background: var(--metal); box-shadow: inset 0 0 0 1px var(--m-edge); color: var(--ink);
}
.step h3 { margin: 6px 0 2px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------------- pricing ---------------- */
.period-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); gap: 4px; }
.period-switch button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.period-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.save-tag { font-size: .75rem; color: var(--ok); font-weight: 600; margin-inline-start: 4px; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; margin-top: 26px; }
.plan { display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow-2); }
.plan .badge { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.plan .desc { color: var(--muted); font-size: .92rem; margin: 0; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font-family: var(--font-mono); font-size: 2.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price .per { color: var(--muted); font-size: .9rem; }
.plan ul.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.plan ul.features li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan ul.features li::before { content: ""; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--ok-soft); box-shadow: inset 0 0 0 4px var(--ok-soft), inset 0 0 0 9px var(--ok); }
.plan .btn { margin-top: auto; }
.packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.pack { display: grid; gap: 4px; text-align: center; }
.pack .big { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; }
.cost-table td:last-child { font-family: var(--font-mono); }

/* ---------------- store / design cards ---------------- */
.card-cover { aspect-ratio: 16/10; border-radius: 10px; background: var(--metal); display: grid; place-items: center; overflow: hidden; margin-bottom: 4px; box-shadow: inset 0 0 0 1px var(--m-edge); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover .ext { font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem; color: var(--ink); opacity: .75; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.price-row .now { font-family: var(--font-mono); font-weight: 600; font-size: 1.2rem; }
.price-row s { color: var(--muted); font-family: var(--font-mono); font-size: .9rem; }
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty h3 { color: var(--ink); }

/* ---------------- account ---------------- */
.page-head { padding-block: 34px 8px; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.sub-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 14px 0 26px; padding-bottom: 8px; }
.sub-nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: .93rem; }
.sub-nav a:hover { background: var(--bg-2); color: var(--ink); }
.sub-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); }
.sub-nav form { margin-inline-start: auto; }
.stat { display: grid; gap: 2px; }
.stat .k { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; line-height: 1.2; }
.stat .v small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, white)); border-radius: inherit; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* ---------------- checkout ---------------- */
.checkout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary-line:last-child { border-bottom: 0; }
.summary-total { font-weight: 700; font-size: 1.1rem; }
.summary-total span:last-child { font-family: var(--font-mono); }
.test-banner { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; }
.mysr-form { direction: ltr; }

/* ---------------- tools ---------------- */
.tool-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--metal-soft); margin-bottom: 22px; }
.tool-bar .credit-state { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 34px 20px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone b { font-family: var(--font-display); font-size: 1.2rem; display: block; margin-bottom: 4px; }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.file-list .name { overflow-wrap: anywhere; font-weight: 500; }
.file-list .tag { font-family: var(--font-mono); font-size: .72rem; padding: 3px 7px; border-radius: 6px; background: var(--metal); box-shadow: inset 0 0 0 1px var(--m-edge); }
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.seg-tabs button { font: inherit; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.seg-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.result-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-top: 16px; }
.result { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); display: grid; }
.result .thumb { aspect-ratio: 4/3; background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--surface) 0 50%) 0 0/16px 16px; display: grid; place-items: center; overflow: hidden; }
.result .thumb img { max-height: 100%; object-fit: contain; }
.result .info { padding: 10px 12px; font-size: .85rem; display: grid; gap: 6px; }
.result .info .saving { color: var(--ok); font-weight: 600; }

/* ---------------- invoice ---------------- */
.invoice { max-width: 780px; margin: 30px auto; }
.invoice-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
@media print {
  .site-header, .site-footer, .no-print, .flash { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { box-shadow: none; border: 0; }
}

/* ---------------- pager ---------------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-mono); font-size: .88rem; }
.pager span[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------------- prose ---------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-inline-start: 22px; }

/* ---------------- footer ---------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding-block: 40px 26px; }
.footer-grid h3 { font-size: .86rem; color: var(--muted); margin-bottom: 10px; letter-spacing: .02em; }
.footer-grid a, .footer-grid span { display: block; color: var(--ink); text-decoration: none; font-size: .93rem; padding-block: 3px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: .93rem; margin-top: 10px; max-width: 36ch; }
.pay-marks { color: var(--muted) !important; font-size: .82rem !important; margin-top: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 14px 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------------- admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--bg-2); border-inline-end: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.admin-side .brand { padding: 6px 10px 16px; font-size: 1rem; }
.admin-side a.item { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 9px; font-size: .93rem; font-weight: 500; }
.admin-side a.item:hover { background: var(--surface); }
.admin-side a.item[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-1); color: var(--accent); }
.admin-side .count { font-family: var(--font-mono); font-size: .74rem; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; }
.admin-side .group { font-size: .74rem; color: var(--muted); font-weight: 600; padding: 14px 12px 4px; letter-spacing: .03em; }
.admin-main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; margin-bottom: 4px; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 200px; min-height: 38px; padding: 7px 12px; }
.filters a.chip { text-decoration: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .admin-side .group { display: none; }
  .admin-side .brand { width: 100%; padding-bottom: 6px; }
}
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bars .bar .track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.bars .bar span.fill { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--m2))); min-height: 2px; }
.bars .bar small { font-size: .68rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ==================================================================
   Document tools
   ================================================================== */
.tool-search { max-width: 560px; margin: 18px auto 0; }
.tool-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tool-search input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.tools-section { margin-top: 30px; }
.tools-cat { font-size: 1.25rem; margin-bottom: 12px; }
.tools-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tool-card { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.tool-card .tc-body { display: grid; gap: 2px; min-width: 0; }
.tool-card .tc-body b { font-size: 1rem; }
.tool-card .tc-body span { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.tool-card.soon { opacity: .7; }
.tool-card .tc-badge { position: absolute; top: 10px; inset-inline-end: 10px; }
.tool-card[hidden], .tools-section[hidden] { display: none !important; }

.tool-head { padding-block: 26px 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.tool-title { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.tool-title .svc-icon { width: 56px; height: 56px; border-radius: 15px; flex: none; }
.tool-title .svc-icon svg { width: 28px; height: 28px; }
.tool-title h1 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.tool-title .lede { margin: 2px 0 0; font-size: 1.02rem; }

.tool-app { position: relative; }
.dt-drop { display: grid; justify-items: center; gap: 12px; padding: clamp(34px, 6vw, 60px) 20px; text-align: center; border: 2px dashed var(--line-2); border-radius: 20px; background: var(--metal-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.dt-drop:hover, .dt-drop.over { border-color: var(--accent); }
.dt-drop.over { background: var(--accent-soft); }
.dt-drop b { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.dt-drop-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--metal); box-shadow: inset 0 0 0 1px var(--m-edge), 0 8px 20px -10px rgba(31,36,44,.45); color: var(--ink); }
.dt-status { margin: 14px 0 0; }
.dt-work { display: grid; gap: 16px; }
.dt-panel { display: grid; gap: 16px; }
.dt-panel > h3 { margin: 0; overflow-wrap: anywhere; }
.dt-actions { gap: 10px 14px; }
.is-busy .dt-work, .is-busy .dt-drop { pointer-events: none; opacity: .55; }
.dt-busy { position: fixed; inset: auto 0 calc(20px + env(safe-area-inset-bottom, 0px)) 0; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-weight: 500; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: dtspin .8s linear infinite; display: inline-block; flex: none; }
.dt-busy .spin { color: var(--bg); }
@keyframes dtspin { to { transform: rotate(360deg); } }

.dt-result { text-align: center; display: grid; justify-items: center; gap: 6px; padding-block: 34px; }
.dt-result h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 6px 0 0; }
.dt-result p { margin: 0; overflow-wrap: anywhere; }
.dt-result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.dt-saving { color: var(--ok); font-weight: 600; }
.dt-result .actions { margin-top: 14px; }
.dt-out-list { width: 100%; max-width: 640px; text-align: start; }

.thumb-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.thumb { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); user-select: none; -webkit-user-select: none; }
.thumb-img { aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.thumb-img canvas, .thumb-img img { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; box-shadow: 0 1px 4px rgba(0,0,0,.18); background: #fff; transition: transform .2s; object-fit: contain; }
.thumb-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.thumb-foot .num { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.thumb-actions { display: flex; gap: 2px; }
.ic { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ic:hover { border-color: var(--accent); color: var(--accent); }
.ic.danger:hover { border-color: var(--bad); color: var(--bad); }
.thumb[draggable="true"] { cursor: grab; }
.thumb.dragging { opacity: .4; }
.thumb.drop-target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.thumb-grid.selectable .thumb { cursor: pointer; }
.thumb .check { position: absolute; top: 14px; inset-inline-start: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.thumb.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.thumb.sel .check { background: var(--accent); border-color: var(--accent); }
.thumb.sel .check::after { content: ""; position: absolute; inset: 5px 7px 7px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.merge-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.merge-name { font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; line-height: 1.4; }

.dt-preview { position: relative; max-width: 320px; justify-self: center; }
.dt-preview canvas { width: 100% !important; height: auto !important; display: block; box-shadow: var(--shadow-2); border-radius: 4px; }
.wm-prev { overflow: hidden; }
.wm-img { position: absolute; pointer-events: none; max-width: none; }
.dt-split { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
@media (max-width: 760px) { .dt-split { grid-template-columns: minmax(0, 1fr); } }

.opt-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.opt { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { font-size: 1rem; }
.opt span { font-size: .84rem; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.tool-how { margin-top: 30px; }
.privacy-note { text-align: center; margin-top: 18px; }

/* ---------- page editor ---------- */
.ed-shell { display: grid; gap: 14px; }
.ed-toolbar { position: sticky; top: 74px; z-index: 12; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-2); }
.ed-toolbar .btn-primary { margin-inline-start: auto; }
.ed-toolbar .check { font-size: .86rem; max-width: 520px; }
.dt-props { padding: 14px; }
.ed { display: grid; gap: 22px; justify-items: center; padding: 18px 0; }
.ed-page { position: relative; width: min(100%, 860px); background: #fff; box-shadow: var(--shadow-2); border-radius: 3px; }
.ed-canvas { position: absolute; inset: 0; display: grid; place-items: center; }
.ed-layer { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.ed.armed .ed-layer { cursor: crosshair; touch-action: none; }
.ed-num { position: absolute; bottom: -20px; inset-inline-start: 0; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.ed-item { position: absolute; touch-action: none; cursor: move; outline: 1px dashed transparent; }
.ed-item:hover { outline-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.ed-item.sel { outline: 2px solid var(--accent); }
.ed-body { width: 100%; height: 100%; }
.ed-body img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.ed-handle { position: absolute; left: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: nesw-resize; display: none; }
.ed-del { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: .75rem; cursor: pointer; display: none; place-items: center; padding: 0; }
.ed-item.sel .ed-handle { display: block; }
.ed-item.sel .ed-del { display: grid; }
.ed-crop { outline: 2px solid var(--accent) !important; box-shadow: 0 0 0 9999px rgba(15,18,24,.45); }
.ed-crop .ed-handle { display: block; }

/* ---------- signature dialog ---------- */
.sig-dialog { width: min(640px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.sig-dialog::backdrop { background: rgba(10,12,16,.55); }
.sig-dialog .seg-tabs { margin-bottom: 12px; }
.sig-pad { width: 100%; aspect-ratio: 3/1; height: auto; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-fonts, .sig-saved { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sig-font { min-height: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 1.7rem; cursor: pointer; padding: 6px 10px; overflow: hidden; color: #111; }
.sig-font.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sig-font img { max-height: 60px; max-width: 100%; }
.sig-preview { min-height: 70px; display: grid; place-items: center; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/14px 14px; border-radius: 10px; }
.sig-preview img { max-height: 110px; }
.sig-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.cat-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 18px; }
.cat-chip { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--metal-soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cat-chip span { font-size: .84rem; color: var(--muted); }
.cat-chip:hover { border-color: var(--accent); }
.dt-work { grid-template-columns: minmax(0, 1fr); }
.dt-work > *, .ed-shell > *, .ed { min-width: 0; }
.ed { grid-template-columns: minmax(0, 1fr); }
.ed-page { justify-self: center; }
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .ed-toolbar { position: static; padding: 8px; gap: 6px; }
  .ed-toolbar .btn { padding: 8px 11px; font-size: .86rem; }
  .ed-toolbar .btn-primary { width: 100%; margin: 0; }
  .ed { gap: 16px; }
}

/* ==================================================================
   v2 visual system — navy capsule, royal blue, gold accents (Tajawal)
   ================================================================== */
body { font-weight: 500; line-height: 1.8; background: var(--bg); }
h1, h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
h3 { font-weight: 800; }
h1 em, h2 em { font-style: normal; background: linear-gradient(135deg, var(--accent-2), var(--accent) 45%, var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
a { color: var(--accent); }

/* ---------- top bar + floating navigation capsule ---------- */
.topbar { background: var(--dark-0); color: var(--dark-dim); font-size: .8rem; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--dark-dim); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .live { display: inline-flex; align-items: center; gap: 7px; color: #cfe9de; }
.topbar-pay { color: var(--dark-dim); opacity: .8; }
@media (max-width: 720px) { .topbar-pay { display: none; } }

.site-header { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-block: 10px; position: sticky; top: 0; z-index: 30; }
.site-header::before { content: ""; position: absolute; inset: 0 0 40% 0; background: linear-gradient(180deg, var(--bg) 40%, transparent); z-index: -1; pointer-events: none; }
.nav-capsule { display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 8px 10px 8px 18px; padding-inline-start: 18px; border-radius: 18px;
  background: linear-gradient(180deg, #0f1528 0%, #0a0e1a 100%); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 18px 40px -18px rgba(3,6,65,.55); position: relative; }
.nav-capsule .brand { color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.12rem; }
.nav-capsule .logo-mark { filter: drop-shadow(0 2px 6px rgba(79,140,255,.35)); }
.nav-capsule .site-nav { display: flex; align-items: center; gap: 14px; flex: 1; }
.nav-capsule .nav-main { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-capsule .nav-main a { color: var(--dark-dim); font-weight: 700; font-size: .93rem; padding: 8px 13px; border-radius: 11px; border: 0; background: none; box-shadow: none; }
.nav-capsule .nav-main a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-capsule .nav-main a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.09); padding: 8px 13px; border: 0; box-shadow: none; }
.nav-capsule .nav-user { display: flex; align-items: center; gap: 8px; }
.nav-ghost { color: #e9edf6 !important; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 14px !important; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.nav-ghost:hover { background: rgba(255,255,255,.1) !important; }
.plan-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-1); text-decoration: none; font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.35); }
.nav-toggle { color: #fff; border-color: rgba(255,255,255,.18); }
@media (max-width: 960px) {
  .nav-capsule { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .nav-capsule .site-nav { display: none; position: static; width: 100%; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 6px 0 8px; background: none; border: 0; box-shadow: none; }
  .nav-capsule .site-nav.open { display: flex; }
  .nav-capsule .nav-main { flex-direction: column; }
  .nav-capsule .nav-user { flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
}

/* ---------- buttons ---------- */
.btn { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 13px; font-weight: 800; box-shadow: var(--shadow-1); }
.btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-2); }
.btn-primary, .btn-primary:hover { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-gold, .btn-gold:hover { background: var(--grad-gold); color: var(--navy); border-color: transparent; box-shadow: 0 10px 26px -10px rgba(212,175,55,.7); }
.btn-gold:hover { filter: brightness(1.05); color: var(--navy); }
.btn-ghost-dark { background: rgba(255,255,255,.04); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-danger { color: var(--bad); }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.panel-metal { background: var(--metal-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink-2); font-weight: 800; font-size: .76rem; letter-spacing: 0; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.sec-head p { color: var(--muted); margin: 0 auto; max-width: 56ch; }
.svc-icon { background: var(--accent-soft); color: var(--accent); box-shadow: none; border-radius: 13px; }
.tool-title .svc-icon, .dt-drop-icon { background: var(--grad-brand); color: #fff; box-shadow: var(--glow); }
.step::before { background: var(--grad-brand); color: #fff; box-shadow: var(--glow); font-weight: 900; }
.chip { font-weight: 800; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 70px) clamp(40px, 6vw, 80px); margin-top: -76px; padding-top: calc(76px + clamp(36px, 6vw, 70px));
  background: radial-gradient(900px 520px at 85% -10%, rgba(14,55,137,.17), transparent 65%), radial-gradient(700px 480px at 5% 90%, rgba(79,140,255,.12), transparent 60%), linear-gradient(180deg, #eef2fa, var(--bg)); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,55,137,.12) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.2; margin-bottom: 18px; }
.hero .lede { font-size: 1.15rem; max-width: 54ch; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trust-pills span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: .82rem; font-weight: 800; color: var(--ink-2); }
.trust-pills svg { color: var(--accent); }

.orbit { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: center; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(41,80,189,.25); }
.orbit .ring.r1 { inset: 6%; animation: orbit-spin 80s linear infinite; }
.orbit .ring.r2 { inset: 24%; border-style: solid; border-color: rgba(41,80,189,.12); }
.orbit .core { position: absolute; inset: 37%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #1d3d97, #030641 70%); box-shadow: 0 0 0 10px rgba(41,80,189,.08), 0 0 0 22px rgba(41,80,189,.05), 0 24px 60px -10px rgba(3,6,65,.6); }
.orbit .core svg { width: 52%; height: 52%; }
.orbit .glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(79,140,255,.35), transparent 65%); filter: blur(20px); }
.orbit .stat { position: absolute; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 0; }
.orbit .stat b { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.1; background: linear-gradient(135deg, var(--accent), var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orbit .stat span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.orbit .node { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-2); border: 1px solid var(--line); text-decoration: none; transition: transform .2s; }
.orbit .node:hover { transform: translate(-50%, -50%) scale(1.1); color: #fff; background: var(--grad-brand); }
.orbit .node::after { content: attr(data-label); position: absolute; top: 110%; white-space: nowrap; font-size: .72rem; font-weight: 800; color: var(--ink-2); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .orbit { width: min(100%, 360px); } .orbit .node::after { display: none; } }

/* ---------- tool cards + filters ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.filter-pills button { font: inherit; font-weight: 800; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.filter-pills button:hover { border-color: var(--accent); color: var(--accent); }
.filter-pills button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tool-card { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--line); padding: 16px; }
.tool-card:hover { border-color: rgba(41,80,189,.4); box-shadow: var(--shadow-2); }
.tool-card:hover .svc-icon { background: var(--grad-brand); color: #fff; }
.tool-card .tc-body b { font-weight: 800; }
.cat-chip { background: var(--surface); box-shadow: var(--shadow-1); }
.cat-chip b { font-weight: 800; }

/* ---------- pricing ---------- */
.period-switch { background: var(--surface); box-shadow: var(--shadow-1); border-radius: 999px; }
.period-switch button { border-radius: 999px; font-weight: 800; }
.period-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.save-tag { color: var(--gold-2); }
.period-switch button[aria-pressed="true"] .save-tag { color: var(--gold-1); }
.plan { padding: 28px 24px; border-radius: 20px; }
.plan h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: .02em; }
.plan .price .amount { font-family: var(--font-display); font-weight: 900; font-size: 2.7rem; color: var(--ink); }
.plan ul.features li::before { background: var(--accent-soft); box-shadow: inset 0 0 0 4px var(--accent-soft), inset 0 0 0 9px var(--accent); }
.plan.featured { background: radial-gradient(400px 260px at 80% 0%, rgba(41,80,189,.45), transparent 70%), linear-gradient(180deg, #0b1230, #030641); border: 1px solid rgba(212,175,55,.35); color: #e9edf6; box-shadow: 0 30px 60px -24px rgba(3,6,65,.6); transform: translateY(-8px); overflow: hidden; }
.plan.featured h3, .plan.featured .price .amount { color: #fff; }
.plan.featured .desc, .plan.featured .price .per { color: #a8b1c7; }
.plan.featured ul.features li::before { background: rgba(212,175,55,.15); box-shadow: inset 0 0 0 4px rgba(212,175,55,.15), inset 0 0 0 9px var(--gold-2); }
.plan.featured .badge { inset-inline-start: auto; inset-inline-end: -42px; top: 18px; transform: rotate(-45deg); background: var(--grad-gold); color: var(--navy); padding: 5px 48px; border-radius: 0; font-weight: 900; }
:dir(rtl) .plan.featured .badge, [dir="rtl"] .plan.featured .badge { inset-inline-end: auto; left: -46px; right: auto; transform: rotate(-45deg); }
.plan.featured .btn { background: var(--grad-gold); color: var(--navy); border-color: transparent; box-shadow: 0 10px 26px -10px rgba(212,175,55,.7); }
@media (max-width: 760px) { .plan.featured { transform: none; } }

/* ---------- dark bands ---------- */
.dark-band { position: relative; overflow: hidden; color: var(--dark-text); background: radial-gradient(800px 400px at 50% -20%, rgba(41,80,189,.4), transparent 70%), linear-gradient(135deg, #0b1d3a 0%, #0a1426 50%, #07101e 100%); }
.dark-band h2 { color: #fff; }
.dark-band .sec-head p { color: var(--dark-dim); }
.dark-band .eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--dark-text); box-shadow: none; }
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat-card { background: #fff; color: var(--navy); border-radius: 18px; padding: 26px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.stat-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: var(--glow); }
.stat-card b { font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; line-height: 1.1; color: var(--navy); }
.stat-card span { font-size: .9rem; font-weight: 700; color: var(--muted); }
.cta-band { padding-block: 0 10px; margin-top: 50px; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px) !important; border-radius: 24px; color: #e9edf6;
  background: radial-gradient(500px 260px at 90% 0%, rgba(79,140,255,.35), transparent 70%), linear-gradient(135deg, #0b1d3a, #030641); box-shadow: var(--shadow-3); }
.cta-row h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-row h2 em { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row p { margin: 0; color: var(--dark-dim); }
@media (max-width: 640px) { .cta-band .wrap.cta-row { margin-inline: 16px; width: auto; } }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-0); border-top: 0; margin-top: 50px; color: var(--dark-dim); }
.cta-band + .site-footer { margin-top: -60px; padding-top: 60px; }
.footer-grid h3 { color: #fff; font-weight: 800; }
.footer-grid a, .footer-grid span { color: var(--dark-dim); }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--dark-dim); }
.footer-bottom { border-top-color: rgba(255,255,255,.08); color: #6e7691; }

/* ---------- whatsapp float ---------- */
.wa-float { position: fixed; left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2bd46b, #12a150); color: #fff; box-shadow: 0 14px 30px -10px rgba(18,161,80,.7); }
.wa-float:hover { transform: scale(1.06); }

/* ---------- tool page ---------- */
.dt-drop { background: var(--surface); border: 2px dashed rgba(41,80,189,.35); box-shadow: var(--shadow-2); border-radius: 22px; }
.dt-drop:hover, .dt-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.dt-drop b { font-weight: 900; }
.tool-bar { background: var(--surface); box-shadow: var(--shadow-1); }
.thumb { box-shadow: var(--shadow-1); }
.ed-toolbar { border-radius: 16px; }
.tool-head { padding-top: 20px; }
.tool-title h1 { font-weight: 900; }

/* ---------- account / admin ---------- */
.sub-nav a[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: none; }
.admin-side { background: linear-gradient(180deg, #0f1528, #0a0e1a); border-inline-end: 0; }
.admin-side .brand, .admin-side a.item { color: var(--dark-text); }
.admin-side a.item:hover { background: rgba(255,255,255,.06); }
.admin-side a.item[aria-current="page"] { background: rgba(79,140,255,.16); color: #fff; box-shadow: none; }
.admin-side .group { color: #6e7691; }
.stat .v { font-family: var(--font-display); font-weight: 900; }
.bars .bar span.fill { background: linear-gradient(180deg, var(--accent-2), var(--navy-2)); }
.table th { background: var(--bg-2); font-weight: 800; }
.dark-band .wrap, .cta-band .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .orbit .ring.r1 { animation: none; } }
.tool-wrap { display: grid; }
.tool-wrap[hidden] { display: none !important; }
.faq details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: "+"; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }
.orbit .core .logo-mark { filter: none; }
.orbit .stat b { white-space: nowrap; }
.orbit .stat span { white-space: nowrap; }
.nav-capsule .nav-user a.plan-pill { color: var(--gold-1); padding: 6px 12px; border-radius: 999px; background: rgba(212,175,55,.1); }
.nav-capsule .brand { padding-inline-end: 4px; }
.nav-capsule .logo-mark { width: 42px; height: 42px; }
.footer-brand .logo-mark { width: 52px; height: 52px; }
.orbit .core .logo-mark { width: 62%; height: 62%; }

/* ===== hero: conversion flow ===== */
.flow { --s: 1; --cyc: 9s; --gap: 2.25s; position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: center; animation: flow-in .9s cubic-bezier(.2,.8,.2,1) both; }
.flow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background-image: radial-gradient(rgba(41,80,189,.14) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.flow-stage { position: absolute; top: 0; right: 0; width: 470px; height: 470px; transform: scale(var(--s)); transform-origin: top right; direction: ltr; }
.flow-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-paths path { fill: none; stroke: rgba(41,80,189,.2); stroke-width: 1.5; stroke-dasharray: 4 7; animation: flow-dash 4s linear infinite; }
.flow .fchip { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 24px -8px rgba(10,20,40,.22); color: var(--accent); offset-rotate: 0deg; offset-anchor: center; opacity: 0; will-change: offset-distance, opacity, transform; }
.flow .fchip b { font-size: 13px; font-weight: 900; color: var(--navy); letter-spacing: .3px; }
.flow .fchip.in { animation: flow-move-in var(--cyc) cubic-bezier(.45,0,.55,1) infinite, flow-fade-in var(--cyc) linear infinite; animation-delay: calc(var(--k) * var(--gap)); }
.flow .fchip.in:nth-of-type(odd) { offset-path: path("M-40 70 C 120 70, 150 200, 235 235"); }
.flow .fchip.in:nth-of-type(even) { offset-path: path("M-40 400 C 120 400, 150 270, 235 235"); }
.flow .fchip.out { animation: flow-move-out var(--cyc) cubic-bezier(.45,0,.55,1) infinite, flow-fade-out var(--cyc) linear infinite; animation-delay: calc(var(--k) * var(--gap) + 3.3s);
  background: linear-gradient(135deg, #0e3789, #030641); border-color: rgba(245,215,122,.6); color: var(--gold-1); }
.flow .fchip.out b { color: var(--gold-1); }
.flow .fchip.out:nth-of-type(odd) { offset-path: path("M235 235 C 320 200, 350 70, 510 70"); }
.flow .fchip.out:nth-of-type(even) { offset-path: path("M235 235 C 320 270, 350 400, 510 400"); }
.flow .halo { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle, rgba(79,140,255,.42), transparent 65%); filter: blur(20px); animation: flow-halo var(--gap) cubic-bezier(.37,0,.63,1) infinite; animation-delay: 1.1s; }
.flow .spin-ring { position: absolute; inset: 33%; z-index: 2; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent-2); border-left-color: var(--gold-2); animation: flow-spin 7s linear infinite; }
.flow .core { position: absolute; left: 50%; top: 50%; z-index: 3; width: 26%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1d3d97, #030641 70%); box-shadow: 0 0 0 10px rgba(41,80,189,.08), 0 0 0 22px rgba(41,80,189,.04), 0 24px 60px -10px rgba(3,6,65,.6);
  animation: flow-gulp var(--gap) cubic-bezier(.37,0,.63,1) infinite; animation-delay: 1.1s; }
.flow .core svg { width: 64%; height: 64%; }
.flow .core .lm-ring path { animation: flow-seg 3.3s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.flow .cap { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; direction: rtl; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; font-weight: 800; font-size: .85rem; color: var(--muted); box-shadow: 0 6px 16px rgba(10,20,40,.06); white-space: nowrap; }
.flow .cap b { color: var(--accent); }
@keyframes flow-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flow-dash { to { stroke-dashoffset: -44; } }
@keyframes flow-move-in { 0% { offset-distance: 0%; } 38%, 100% { offset-distance: 100%; } }
@keyframes flow-fade-in { 0% { opacity: 0; transform: scale(.92); } 9% { opacity: 1; transform: scale(1); } 28% { opacity: 1; transform: scale(1); } 38%, 100% { opacity: 0; transform: scale(.45); } }
@keyframes flow-move-out { 0% { offset-distance: 0%; } 40%, 100% { offset-distance: 100%; } }
@keyframes flow-fade-out { 0% { opacity: 0; transform: scale(.45); } 10% { opacity: 1; transform: scale(1); } 30% { opacity: 1; } 40%, 100% { opacity: 0; transform: scale(1); } }
@keyframes flow-gulp { 0%, 100% { scale: 1; } 35% { scale: 1.035; } }
@keyframes flow-halo { 0%, 100% { opacity: .6; scale: .96; } 35% { opacity: 1; scale: 1.1; } }
@keyframes flow-spin { to { rotate: 360deg; } }
@keyframes flow-seg { 0%, 55%, 100% { opacity: 1; } 25% { opacity: .38; } }
@media (max-width: 880px) { .flow { width: min(100%, 380px); } }
@media (prefers-reduced-motion: reduce) {
  .flow, .flow * { animation: none !important; }
  .flow .fchip.in:nth-of-type(1), .flow .fchip.out:nth-of-type(5) { opacity: 1; offset-distance: 55%; }
}

/* ===== audit fixes ===== */
.plan.current { outline: 2px solid var(--ok); outline-offset: -2px; }
.plan .badge-current { background: var(--ok); color: #fff; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.verify-banner form { margin: 0; }
.faq-list details { padding: 0; }
.faq-list summary { padding: 16px 20px; cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 900; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 20px 18px; color: var(--muted); }
.faq-group { margin-top: 28px; }
.faq-group h2 { font-size: 1.15rem; margin: 0 0 12px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-card b { display: block; }
.contact-card span.small { color: var(--muted); }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.ai-note { border: 1px solid rgba(212,175,55,.45); background: linear-gradient(135deg, #fffaf0, #fdf3d8); color: var(--ink-2); border-radius: 14px; padding: 12px 14px; font-size: .88rem; line-height: 1.8; margin-bottom: 14px; }
.ai-note b { color: var(--ink); }
.ai-note-off { background: var(--surface); border-color: var(--line); }

/* ---------- hero: navy band with the cinematic reel ---------- */
.hero.hero-dark {
  margin: 0 clamp(8px, 1.6vw, 22px); border-radius: clamp(20px, 2.4vw, 32px);
  margin-top: 6px; padding-top: clamp(34px, 5vw, 64px); color: #c9d1e3;
  background: radial-gradient(900px 500px at 100% 0%, rgba(41,80,189,.22), transparent 70%),
              linear-gradient(160deg, #02145f 0%, #001053 40%, #001053 70%, #000d48 100%);
  box-shadow: 0 30px 60px -30px rgba(3,6,65,.55);
}
.hero.hero-dark::after { background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); }
.hero-dark h1 { color: #fff; }
.hero-dark h1 em { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-dark .lede { color: #b9c3da; }
.hero-dark .eyebrow { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #e9edf6; box-shadow: none; }
.hero-dark .eyebrow::before { background: var(--grad-gold); }
.hero-dark .trust-pills span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dfe5f2; box-shadow: none; }
.hero-dark .trust-pills svg { color: var(--gold-1); }
.hero-dark .btn-primary { box-shadow: 0 10px 26px -8px rgba(79,140,255,.7); }
.hero-reel { position: relative; width: min(100%, 540px); aspect-ratio: 1; justify-self: center; }
.hero-reel video { display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 880px) { .hero-reel { width: min(100%, 400px); margin-top: -10px; } }

/* ---------- header: account menu ---------- */
.avatar { --sz: 36px; display: inline-grid; place-items: center; flex: none; width: var(--sz); height: var(--sz); border-radius: 50%;
  background: var(--av, #2950bd); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: calc(var(--sz) * .44); line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 8px 3px 4px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #e9edf6; position: relative; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: rgba(255,255,255,.1); }
.user-menu > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.um-chev { transition: transform .15s ease; opacity: .8; }
.user-menu[open] .um-chev { transform: rotate(180deg); }
.um-alert { position: absolute; top: 2px; inset-inline-start: 30px; width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px #0b1023; }
.um-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; width: 300px; max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(3,6,65,.35); padding: 8px; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.um-who { display: grid; min-width: 0; }
.um-who b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: end; }
.um-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 6px; padding: 9px 12px; border-radius: 12px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.um-plan-tag { font-weight: 900; font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.um-plan.is-paid .um-plan-tag { background: var(--grad-gold); color: #1a1205; }
.um-plan-cta { font-size: .82rem; font-weight: 700; color: var(--accent); }
.um-plan:hover { border-color: var(--line-2); }
.um-warn { display: flex; align-items: center; gap: 10px; margin: 0 4px 6px; padding: 9px 12px; border-radius: 12px; text-decoration: none; font-size: .88rem; font-weight: 700;
  background: var(--warn-soft); color: var(--warn); }
.um-sec { display: grid; padding: 6px 0; border-top: 1px solid var(--line); }
.um-sec a, .um-sec button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: none;
  font: inherit; font-size: .93rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; text-align: start; }
.um-sec svg { color: var(--muted); flex: none; }
.um-sec a:hover, .um-sec button:hover, .um-sec a:focus-visible, .um-sec button:focus-visible { background: var(--bg-2); outline: none; }
.um-sec a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.um-sec a[aria-current="page"] svg { color: var(--accent); }
.um-logout, .um-logout svg { color: var(--bad) !important; }
@media (max-width: 920px) {
  .user-menu { width: 100%; }
  .user-menu > summary { width: max-content; }
  .um-panel { position: static; width: auto; max-height: none; margin-top: 10px; box-shadow: none; }
}
.price-na { min-height: 3.1rem; align-items: center; }
.price-na .per { color: var(--muted); font-weight: 700; }
.svc-paused { position: relative; opacity: .5; filter: grayscale(.85); user-select: none; }
.svc-paused, .svc-paused * { cursor: not-allowed; }
.svc-paused-tag { position: absolute; top: 14px; inset-inline-end: 14px; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); }
.row-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
/* plan cards: centred row, so a period with only one or two plans still looks balanced */
.plans { display: flex; flex-wrap: wrap; justify-content: center; }
.plans > .plan { flex: 1 1 250px; max-width: 340px; }
/* admin: Google result preview */
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); display: grid; gap: 4px; font-family: Arial, Tahoma, sans-serif; }
.serp-url { font-size: .8rem; color: var(--muted); direction: ltr; text-align: right; }
.serp-title { font-size: 1.15rem; color: #1a0dab; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-color-scheme: dark) { .serp-title { color: #8ab4f8; } }

/* ---------- tool pages: content for readers and search ---------- */
.tool-seo { display: grid; gap: 38px; padding-block: 34px 56px; }
.ts-block h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 0 0 14px; }
.ts-about { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.ts-text p { color: var(--ink-2); line-height: 1.95; margin: 0 0 12px; max-width: 70ch; }
.ts-uses { padding: 18px 20px; }
.ts-uses h3 { font-size: 1rem; margin: 0 0 10px; }
.ts-uses ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: .94rem; }
.ts-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: ts; }
.ts-steps li { counter-increment: ts; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.ts-steps li::before { content: counter(ts); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 900; margin-bottom: 10px; }
.ts-steps h3 { font-size: 1rem; margin: 0 0 6px; }
.ts-steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.ts-faq { display: grid; gap: 10px; max-width: 860px; }
.ts-faq details { padding: 14px 18px; }
.ts-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary::after { content: "+"; font-weight: 900; color: var(--accent); flex: none; }
.ts-faq details[open] summary::after { content: "−"; }
.ts-faq p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.9; }
.ts-dir { padding: 22px; }
.ts-dir-grid { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.ts-dir h3 { font-size: .92rem; margin: 0 0 8px; color: var(--ink); }
.ts-dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ts-dir a, .ts-dir span[aria-current] { font-size: .9rem; color: var(--muted); text-decoration: none; }
.ts-dir a:hover { color: var(--accent); }
.ts-dir span[aria-current] { color: var(--accent); font-weight: 800; }
.ts-more { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ts-more a { font-weight: 800; font-size: .9rem; color: var(--accent); text-decoration: none; }
@media (max-width: 760px) { .ts-about { grid-template-columns: minmax(0, 1fr); } }

/* referral card */
.ref-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ref-row input{flex:1 1 260px;min-width:0}
.social-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.site-footer .social-links a{display:inline-block;padding:3px 10px;border:1px solid currentColor;border-radius:999px;font-size:.82rem;opacity:.85}
.site-footer .social-links a:hover{opacity:1}
