/* وقيم (Waqeem) — DESIGN SYSTEM v3 · clean, minimal, Apple-like.
   Near-white ground, quiet neutrals, ONE confident accent (blue), generous air.
   The security grade is the hero; everything else recedes. Timeless, not decorative.
   Type: Vazirmatn (one clean family) · SF-Mono system stack for technical evidence. RTL. */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --font: 'Vazirmatn', -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, monospace;

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #ebebef;

  /* One confident accent */
  --accent: #0a66dc;
  --accent-press: #0850ae;
  --accent-wash: #eef4fd;
  --accent-line: #cadffa;

  /* Functional grade signals (only real colour in the UI) */
  --pass: #167c56; --pass-wash: #e8f5ef;
  --warn: #a8620a; --warn-wash: #fbf1e2;
  --fail: #c4382f; --fail-wash: #fbecea;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px; --r-pill: 980px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 14px rgba(0,0,0,.05), 0 30px 60px -20px rgba(0,0,0,.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; direction: rtl;
  font-family: var(--font);
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-height: 1.6; letter-spacing: -0.003em;
}
h1, h2, h3 { font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.nums { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-wash); color: var(--accent-press); }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.ti { display: none !important; }

/* ============ top bar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 18px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { display: inline-flex; color: var(--accent); }
.brand .logo svg { display: block; }
.brand .name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.brand .tag { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.brand .tag::before { content: none; }
.station-clock { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 8px 12px;
  border-radius: var(--r-pill); cursor: pointer; transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.cta-mini, .topbar .cta-mini {
  color: #fff; background: var(--accent); text-decoration: none; padding: 8px 16px; font-weight: 500;
  border-radius: var(--r-pill); transition: background .15s var(--ease);
}
.nav a.cta-mini:hover, .topbar .cta-mini:hover { background: var(--accent-press); }
#nav-account a { color: var(--accent); font-weight: 500; background: none; }
#nav-account a:hover { background: var(--bg-alt); }

/* ============ landing hero ============ */
.hero-fx { display: none; }
.hero { max-width: 760px; margin: 0 auto; padding: 96px 28px 8px; text-align: center; }
.hero .eyebrow, .stencil { display: none; }
.hero .job { display: none; }
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.03em; margin: 0 0 18px; color: var(--ink);
  animation: rise .6s var(--ease) both;
}
.hero h1 .hl { color: var(--accent); }
.hero p.sub {
  font-size: clamp(17px, 15px + .5vw, 21px); color: var(--ink-2); line-height: 1.5;
  margin: 0 auto 34px; max-width: 560px; animation: rise .6s .05s var(--ease) both;
}
.scanbox {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 7px 7px 8px;
  max-width: 560px; margin: 0 auto; box-shadow: var(--shadow); animation: rise .6s .1s var(--ease) both;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.scanbox::before { content: none; }
.scanbox:focus-within { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px var(--accent-wash); }
.scanbox input {
  flex: 1; border: none; outline: none; font: 400 16px var(--mono); direction: ltr; text-align: left;
  padding: 12px 16px; background: transparent; color: var(--ink); min-width: 0;
}
.scanbox input::placeholder { color: var(--ink-3); }
.scanbox button {
  border: none; background: var(--accent); color: #fff; font: 500 15px var(--font);
  border-radius: var(--r-pill); padding: 12px 24px; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 7px; transition: background .15s var(--ease), transform .1s var(--ease);
}
.scanbox button:hover { background: var(--accent-press); }
.scanbox button:active { transform: scale(.98); }
.scanbox button:disabled { opacity: .5; cursor: default; }
.hero .assur {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px;
  font-size: 13px; color: var(--ink-3); animation: fade .8s .2s var(--ease) both;
}
.hero .assur span { display: inline-flex; align-items: center; gap: 6px; }
.hero .assur span::before { content: none; }
.hero .assur i { display: none; }

/* trust strip → quiet stat row */
.trust-strip { max-width: 820px; margin: 76px auto 0; padding: 0 28px; }
.stat-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 30px 0 6px; border-top: 1px solid var(--line-soft); }
.stat { flex: 1; min-width: 150px; text-align: center; padding: 6px 8px; border: none; }
.stat b { display: block; font-size: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--ink-2); }

/* ============ landing: platform features ============ */
.features { max-width: 1060px; margin: 96px auto 0; padding: 0 28px; }
.features-head { text-align: center; margin-bottom: 36px; }
.features-head h2 { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.features-head p { font-size: 17px; color: var(--ink-2); max-width: 520px; margin: 0 auto; line-height: 1.5; }

.spotlight {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, var(--accent-wash), #fff 70%);
  border: 1px solid var(--accent-line); border-radius: var(--r-xl); padding: 44px 46px; margin-bottom: 18px;
}
.spotlight .sp-ey { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.spotlight h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.spotlight > div > p { font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0 0 24px; }
.spotlight .sp-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font: 500 15px var(--font); padding: 13px 26px; border-radius: var(--r-pill); border: none; cursor: pointer; transition: background .15s var(--ease); }
.spotlight .sp-cta:hover { background: var(--accent-press); }
.sp-visual { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 22px 20px 26px; }
.mock-h { height: 14px; width: 55%; background: var(--accent); border-radius: 5px; margin-bottom: 16px; opacity: .9; }
.mock-line { height: 8px; background: var(--line-soft); border-radius: 4px; margin-bottom: 10px; }
.mock-line.short { width: 62%; }
.mock-btn { height: 26px; width: 88px; background: var(--accent); border-radius: 999px; margin-top: 18px; opacity: .9; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature-card { text-align: right; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .15s var(--ease), transform .15s var(--ease); display: block; width: 100%; font-family: inherit; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-card .fc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-card h4 { font-size: 17px; font-weight: 600; margin: 0 0 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature-card h4 .arr { color: var(--ink-3); transition: transform .15s var(--ease), color .15s var(--ease); }
.feature-card:hover h4 .arr { transform: translateX(-4px); color: var(--accent); }
.feature-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }

@media (max-width: 720px) {
  .spotlight { grid-template-columns: 1fr; padding: 32px 26px; }
  .sp-visual { display: none; }
}

/* ============ buttons ============ */
.cta, .p-cta, .wa-btn {
  width: 100%; border: none; border-radius: var(--r-pill); padding: 13px 20px; margin-top: 12px; cursor: pointer;
  font: 500 15px var(--font); display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease);
}
.cta.solid, .p-cta.solid { background: var(--accent); color: #fff; }
.cta.solid:hover, .p-cta.solid:hover { background: var(--accent-press); }
.cta.ghost, .p-cta.ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.cta.ghost:hover, .p-cta.ghost:hover { background: var(--bg-alt); border-color: var(--line); }
.cta:active, .p-cta:active { transform: scale(.99); }
.cta.done { background: var(--pass-wash); color: var(--pass); cursor: default; }
.wa-btn { background: var(--bg-alt); color: var(--ink); }
.wa-btn:hover { background: #ececef; }

/* ============ scanning ============ */
.scanning { max-width: 520px; margin: 90px auto; padding: 0 28px; text-align: center; animation: fade .4s var(--ease) both; }
.scan-radar, .scanning .spin {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 24px;
  border: 3px solid var(--line-soft); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
.scan-radar > * { display: none; }
.scanning h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.scanning .target { font: 400 14px var(--mono); direction: ltr; color: var(--ink-3); margin-bottom: 28px; }
.progress-log { text-align: right; max-width: 380px; margin: 0 auto; }
.progress-log .step { display: flex; align-items: baseline; gap: 9px; padding: 6px 0; color: var(--ink-3); opacity: 0; transition: opacity .3s var(--ease); font-size: 14px; }
.progress-log .step.on { opacity: 1; }
.progress-log .step.ok { color: var(--ink); }
.progress-log .step .ts { display: none; }
.progress-log .step .mk { margin-inline-start: auto; color: var(--pass); font-family: var(--mono); }
.progress-log .step i { display: none; }

/* ============ report ============ */
.report { max-width: 760px; margin: 44px auto 90px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.rep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.domain-chip { font: 400 13px var(--mono); direction: ltr; background: var(--bg-alt); border-radius: var(--r-pill); padding: 6px 14px; color: var(--ink-2); }
.owner-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--pass-wash); color: var(--pass); border-radius: var(--r-pill); padding: 6px 13px; font-size: 12.5px; font-weight: 500; }

/* grade card — the hero of the report */
.verdict {
  display: flex; align-items: center; gap: 26px; border-radius: var(--r-xl);
  padding: 30px 32px; margin-bottom: 26px; background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); flex-wrap: wrap;
}
.verdict > div { min-width: 0; }
.verdict .ring { position: relative; width: 128px; height: 128px; flex: none; }
.verdict .ring svg { width: 100%; height: 100%; display: block; }
.verdict .ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.verdict .ring .num b { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.verdict .ring .num span { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.verdict h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; line-height: 1.25; }
.verdict p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.verdict .g { font-weight: 600; color: var(--ink); }
.grade-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; font-size: 24px; font-weight: 600; flex: none; }
.ladder { display: none; }

.sec-head { display: flex; align-items: center; gap: 8px; margin: 30px 4px 14px; }
.sec-head i { display: none; }
.sec-head h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--ink-3); letter-spacing: 0; }

/* finding cards */
.fix {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.fix .stripe { display: none; }
.fix .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.fix .title { font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill); padding: 4px 12px; font: 500 12px var(--font); flex: none; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.fix .risk { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.fix .risk b { font-weight: 600; color: var(--ink); }
.ref-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; background: var(--bg-alt); border-radius: var(--r-sm); padding: 5px 11px; font-size: 12px; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-alt); color: var(--ink-2); border-radius: var(--r-pill); padding: 5px 12px; font: 400 12.5px var(--font); }
.pill i { display: none; }
.ev { direction: ltr; text-align: left; unicode-bidi: isolate; font: 400 12.5px var(--mono); background: var(--bg-alt); border-radius: var(--r-sm); padding: 13px 15px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.7; margin-top: 13px; overflow-x: auto; }
details.ev-wrap > summary { display: flex; align-items: center; gap: 5px; margin-top: 13px; font-size: 13px; color: var(--accent); cursor: pointer; list-style: none; }
details.ev-wrap > summary::-webkit-details-marker { display: none; }

details.safe { margin-bottom: 18px; }
details.safe > summary { display: flex; align-items: center; justify-content: space-between; background: var(--pass-wash); border-radius: var(--r); padding: 15px 18px; color: var(--pass); font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
details.safe > summary::-webkit-details-marker { display: none; }
details.safe .srow { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 9px 6px; }
details.safe .srow i { display: none; }
details.safe .srow::before { content: "✓"; color: var(--pass); }

.signed { text-align: center; margin: 24px 0 0; }
.signed .a { font-size: 12.5px; color: var(--ink-3); }
.signed .b { direction: ltr; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 3px; }
.rescan { text-align: center; margin-top: 26px; }
.rescan a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.rescan a:hover { color: var(--accent); }
.site-foot { max-width: 1120px; margin: 70px auto 0; padding: 30px 28px; border-top: 1px solid var(--line-soft); text-align: center; color: var(--ink-3); font-size: 12.5px; }
.site-foot a { color: var(--ink-3); } .site-foot a:hover { color: var(--accent); }

/* ============ flow views ============ */
.flow { max-width: 640px; margin: 48px auto 90px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.flow-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; text-decoration: none; margin-bottom: 22px; cursor: pointer; }
.flow-back:hover { color: var(--accent); }
.flow h2 { font-size: 28px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.02em; }
.flow .flow-sub { font-size: 16px; color: var(--ink-2); margin: 0 0 26px; line-height: 1.5; }
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.stepper .st .dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 500 12px var(--font); background: var(--bg-alt); color: var(--ink-3); flex: none; }
.stepper .st.active .dot { background: var(--accent); color: #fff; }
.stepper .st.done .dot { background: var(--accent-wash); color: var(--accent); }
.stepper .bar { flex: 1; height: 2px; background: var(--line-soft); border-radius: 2px; }
.stepper .bar.done { background: var(--accent-line); }
.method { display: flex; flex-direction: column; gap: 12px; }
.method-card { text-align: right; width: 100%; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px 20px; cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.method-card:hover { box-shadow: var(--shadow-lg); }
.method-card.rec { border-color: var(--accent-line); }
.method-card .mc-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.method-card .mc-ic::before { content: "→"; font-size: 18px; }
.method-card .mc-t { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.method-card .mc-d { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.badge-rec { background: var(--accent-wash); color: var(--accent); font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: var(--r-pill); }
.rec-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-alt); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
.rec-box .rec-k { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.rec-box .rec-val { direction: ltr; text-align: left; unicode-bidi: isolate; font: 400 13px var(--mono); color: var(--ink); overflow-x: auto; }
.copy-btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 8px 13px; font: 400 12.5px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 5px; align-items: center; flex: none; }
.copy-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.assure { display: flex; gap: 12px; background: var(--accent-wash); border-radius: var(--r); padding: 15px 18px; margin: 16px 0; }
.assure i { display: none; }
.assure .at { font-size: 14px; color: var(--ink); line-height: 1.55; }
.assure .at b { font-weight: 600; }
.undo-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.undo-note i { display: none; }
.verify-status { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); margin-top: 16px; }
.verify-status .vs-spin, .vs-spin { width: 18px; height: 18px; border: 2.5px solid var(--line-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.verify-status.ok { color: var(--pass); }
.flow-success { text-align: center; padding: 20px 0; }
.flow-success .fs-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; }
.flow-success .fs-ic::before { content: "✓"; font-weight: 600; }
.flow-success h2 { font-size: 26px; margin-bottom: 10px; }

/* ============ pricing ============ */
.pricing { max-width: 1000px; margin: 60px auto 90px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.pricing-head { text-align: center; margin-bottom: 44px; }
.pricing-head h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.pricing-head p { font-size: 17px; color: var(--ink-2); margin: 0 auto; max-width: 520px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.feat { border-color: var(--accent-line); box-shadow: var(--shadow-lg); position: relative; }
.plan .p-badge { position: absolute; top: -12px; right: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; padding: 5px 14px; border-radius: var(--r-pill); }
.plan .p-name { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.plan .p-price { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 6px; }
.plan .p-price .per { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.plan .p-desc { font-size: 14px; color: var(--ink-2); margin: 12px 0 22px; line-height: 1.5; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.plan li::before { content: "✓"; color: var(--accent); flex: none; font-weight: 600; }
.plan li i { display: none; }

/* ============ dashboard ============ */
.dash { max-width: 960px; margin: 48px auto 90px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.dash-head .dh-l { display: flex; align-items: center; gap: 14px; }
.dash-head .dh-site { font: 400 15px var(--mono); direction: ltr; color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--pass-wash); color: var(--pass); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: var(--r-pill); }
.status-pill .live { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.dstat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.dstat .k { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.dstat .k i { display: none; }
.dstat .v { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.dstat .v.brand { color: var(--accent); }
.dstat .sub { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.dash-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 26px 28px; margin-bottom: 16px; box-shadow: var(--shadow); }
.dash-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.act-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.act-row:first-of-type { border-top: none; padding-top: 2px; }
.act-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.act-ic::before { content: "•"; font-size: 20px; }
.act-row .act-t { font-size: 15px; font-weight: 500; }
.act-row .act-d { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.act-row .act-time { margin-inline-start: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ============ inputs ============ */
.wq-input { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; font: 400 16px var(--font); color: var(--ink); background: var(--surface); outline: none; margin: 6px 0 4px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.wq-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.wq-input::placeholder { color: var(--ink-3); }

/* ============ services hub ============ */
.services { max-width: 860px; margin: 48px auto 90px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.services-head { text-align: center; margin-bottom: 40px; }
.services-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.services-head p { font-size: 17px; color: var(--ink-2); margin: 0 auto; max-width: 500px; }
.svc-grid { display: flex; flex-direction: column; gap: 12px; }
.svc-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px 22px; cursor: pointer; transition: box-shadow .15s var(--ease); text-align: right; width: 100%; box-shadow: var(--shadow); }
.svc-card:hover { box-shadow: var(--shadow-lg); }
.svc-card .svc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.svc-card .svc-ic::before { content: "→"; font-size: 20px; }
.svc-card .svc-b { flex: 1; min-width: 0; }
.svc-card .svc-t { font-size: 16.5px; font-weight: 600; }
.svc-card .svc-en { font-size: 11px; color: var(--ink-3); direction: ltr; }
.svc-card .svc-d { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.svc-state { font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: var(--r-pill); flex: none; }
.svc-state.on { background: var(--pass-wash); color: var(--pass); }
.svc-state.go { background: var(--accent-wash); color: var(--accent); }
.svc-state.plan { background: var(--warn-wash); color: var(--warn); }

/* ============ auth + account ============ */
.auth-card { max-width: 420px; margin: 64px auto; padding: 0 24px; animation: rise .5s var(--ease) both; }
.auth-card h2 { font-size: 28px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.auth-card .wq-input { margin: 8px 0; }
.auth-card .cta { margin-top: 14px; }
.auth-err { background: var(--fail-wash); color: var(--fail); border-radius: var(--r); padding: 11px 14px; font-size: 13.5px; margin: 6px 0 8px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.auth-switch a, .acct-links a { color: var(--accent); cursor: pointer; }
.acct { max-width: 600px; margin: 48px auto 90px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.acct-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.acct-email { font: 400 15px var(--mono); direction: ltr; }
.acct-name { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.acct-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct-plan-name { font-size: 17px; font-weight: 600; }
.acct-plan-status { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.acct-plan-status.on { color: var(--pass); }
.acct-links { display: flex; gap: 18px; justify-content: center; margin-top: 26px; font-size: 15px; }
.legal { max-width: 760px; margin: 48px auto 90px; padding: 0 24px; }
.legal h1 { font-size: 32px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.legal .updated { color: var(--ink-3); font-size: 13.5px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.legal a { color: var(--accent); }

/* ============ Lighthouse ============ */
.lh-strat { display: flex; gap: 8px; justify-content: center; margin: 8px 0 20px; }
.lh-strat button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: var(--r-pill); padding: 8px 20px; font: 500 14px var(--font); cursor: pointer; }
.lh-strat button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.lh-gauges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 12px 0 20px; }
.lh-ring { flex: 1 1 130px; max-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.lh-ring-l { font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }
.lh-ring-en { font-size: 11px; color: var(--ink-3); }
.lh-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 18px; }
.lh-metric { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 15px 16px; background: var(--surface); box-shadow: var(--shadow); }
.lh-metric .mv { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.lh-metric .ml { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.lh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-start: 6px; vertical-align: middle; }
.lh-good { color: var(--pass); } .lh-good .lh-dot, .dot-good { background: var(--pass); }
.lh-avg { color: var(--warn); } .lh-avg .lh-dot, .dot-avg { background: var(--warn); }
.lh-poor { color: var(--fail); } .lh-poor .lh-dot, .dot-poor { background: var(--fail); }
.lh-na { color: var(--ink-3); } .lh-na .lh-dot, .dot-na { background: var(--ink-3); }
.lh-opp { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 15px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); box-shadow: var(--shadow); }
.lh-opp .ot { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.lh-opp .os { font-size: 12.5px; color: var(--warn); background: var(--warn-wash); padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.lh-legend { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 4px; }

/* ============ CMS (content management for built sites) ============ */
.cms { max-width: 1180px; margin: 32px auto 80px; padding: 0 24px; animation: rise .5s var(--ease) both; }
.cms-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cms-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.cms-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-pill); padding: 9px 16px; font: 500 13.5px var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm.primary:hover { background: var(--accent-press); color: #fff; }
.btn-sm.danger { color: var(--fail); }
.btn-sm.danger:hover { border-color: var(--fail); color: var(--fail); }
.cms-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cms-tab { border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-2); border-radius: var(--r-pill); padding: 8px 16px; font: 500 13.5px var(--font); cursor: pointer; }
.cms-tab.on { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); }
.cms-hint { font-size: 13px; color: var(--ink-3); background: var(--accent-wash); border-radius: var(--r); padding: 10px 14px; margin-bottom: 12px; }
.cms-frame { width: 100%; height: 72vh; min-height: 520px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); display: block; }
.cms-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.cms-panel h3 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.cms-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.cms-row label { font-size: 13.5px; color: var(--ink-2); min-width: 92px; }
.cms-row .wq-input, .cms-row select { flex: 1; min-width: 180px; margin: 0; }
select.wq-input { appearance: auto; }
.cms-modal { position: fixed; inset: 0; z-index: 200; background: rgba(20,20,25,.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.cms-modal-in { background: var(--surface); border-radius: var(--r-xl); padding: 24px; width: 100%; max-width: 720px; max-height: 84vh; overflow: auto; box-shadow: var(--shadow-lg); }
.cms-modal-in h3 { font-size: 19px; font-weight: 600; margin: 0 0 14px; }
.cms-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.cms-imgs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; transition: .15s; }
.cms-imgs img:hover { border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 640px) {
  .scanbox { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: 10px; }
  .scanbox button { justify-content: center; padding: 13px; }
  .nav a:not(.cta-mini):not(#nav-account a) { display: none; }
  .verdict { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Legal / merchant-identity tables (Moyasar compliance pages) */
.legal .idt { width: 100%; border-collapse: collapse; margin: 14px 0 8px; }
.legal .idt th, .legal .idt td { text-align: start; vertical-align: top; padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 1.6; }
.legal .idt th { font-weight: 500; color: var(--ink); width: 38%; background: var(--bg-alt); }
.legal .idt td { color: var(--ink-2); }
.legal .idt tr:last-child th, .legal .idt tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .legal .idt th, .legal .idt td { display: block; width: auto; border-bottom: 0; padding: 9px 14px; }
  .legal .idt td { border-bottom: 1px solid var(--line-soft); padding-top: 0; }
}
/* Payment-method row shown at checkout + pricing */
.paymethods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 6px; }
.paymethods span { border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px;
  font-size: 12.5px; color: var(--ink-2); background: #fff; }
.vat-note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 8px; line-height: 1.7; }
.vat-note a { color: var(--accent); }
