/* ═══════════════════════════════════════════════════════════════════════════
   VIVAOS · Brand stylesheet (unified)
   ═══════════════════════════════════════════════════════════════════════════
   Single source of truth for the VIVAOS visual system. Replaces the old
   vivaos-brand.css + styles.css split.

   Sections:
     PART 1 — Brand primitives  (tokens, reset, base, layout, .btn/.card/.badge,
                                 .input, .site-nav, .site-footer, .modal, utils)
     PART 2 — App shell         (logged-in pages: dashboard, order, payment,
                                 subscriptions — .app-shell, .app-nav, KPI bar,
                                 .section-card, density modifiers, etc.)
     PART 3 — Checkout flows    (Order / Payment / Manage Subscription specifics)

   Required fonts (load in HTML head):
     https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap
     https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap

   Source: vivaos-design/{vivaos-brand,dashboard,checkout}.css — kept verbatim
   as the read-only reference. Do not edit those; edit this file.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   PART 1 — Brand primitives
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   VIVAOS · Brand stylesheet
   ─────────────────────────────────────────────────────────────────────────
   Single source of truth for the VIVAOS visual system.

   Aesthetic:  "Tool for makers" — indie-SaaS, warm-but-confident.
               Cron / Linear / Raycast / Resend lineage.
   Palette:    Botanical (milky-white surfaces, jade primary, lime accent).
   Type:       General Sans (UI), JetBrains Mono (numbers).
   ANTI:       no orange, no serif, no warm cream, no all-caps banners,
               no decorative emoji, no gradient hero blobs.

   Structure:
     1. Tokens     — CSS custom properties
     2. Reset      — minimal, opinionated
     3. Base       — body, headings, links, ::selection
     4. Layout     — .container, sections
     5. Components — .btn, .card, .input, .badge, .nav, .footer, .pill, .kbd
     6. Utilities  — .mono, .tnum, .eyebrow
   ───────────────────────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────────────────────────
   1. Tokens
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* — surfaces ———————————————————————————————————————————————— */
  --bg:             #FBFAF7; /* page background — milky-white, NOT cream */
  --surface:        #FFFFFF; /* cards, panels */
  --surface-2:      #F6F4EE; /* hover / inset wells */
  --border:         #EDE9E0; /* default border */
  --border-strong:  #DAD3C2; /* dashed/empty slots, ghost-button border */

  /* — text ————————————————————————————————————————————————————— */
  --text:           #1F2937; /* primary body + headings */
  --muted:          #6B7280; /* secondary copy */
  --muted-2:        #9CA3AF; /* labels, hints */
  --muted-3:        #D1D5DB; /* separator dots, disabled */

  /* — brand primary (jade) ——————————————————————————————————— */
  --jade-50:        #ECFDF5;
  --jade-100:       #D1FAE5;
  --jade-200:       #A7F3D0;
  --jade-500:       #10B981;
  --jade:           #047857; /* primary — buttons, links, focus */
  --jade-700:       #065F46;

  /* — accent (lime) — ONLY for chart highlights / positive metrics ——— */
  --lime-50:        #F7FEE7;
  --lime-100:       #D9F99D;
  --lime:           #84CC16;
  --lime-700:       #3F6212;

  /* — status ——————————————————————————————————————————————————— */
  --danger-50:      #FEF2F2;
  --danger-100:     #FECACA;
  --danger:         #B91C1C;
  --warn-50:        #FFFBEB;
  --warn-100:       #FDE68A;
  --warn:           #B45309;

  /* — typography ———————————————————————————————————————————————— */
  --font-sans:      "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* type scale — used for h1-h6, body, micro */
  --text-micro:     10.5px; /* uppercase eyebrows, tiny meta */
  --text-xs:        11.5px; /* badge text, sub-meta */
  --text-sm:        13px;   /* nav, ghost-button, secondary body */
  --text-base:      14.5px; /* body bullets */
  --text-md:        16px;   /* body paragraphs */
  --text-lg:        19px;   /* hero sub */
  --text-h3:        22px;
  --text-h2:        clamp(28px, 3.4vw, 42px);
  --text-h1:        clamp(40px, 6.4vw, 68px);

  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-body:   1.55;

  --tracking-tight: -0.02em;
  --tracking-hero:  -0.025em;
  --tracking-eyebrow: 0.06em;

  /* — spacing (8/4 scale) ——————————————————————————————————— */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* — radii (mid-soft; NEVER pill on functional elements) ——————— */
  --r-xs:  4px;
  --r-sm:  6px;
  --r:     8px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  14px;
  /* pill (--r-full) is reserved for chips, status dots — not buttons */
  --r-full: 999px;

  /* — shadows — restrained, never floaty ——————————————————— */
  --shadow-xs:    0 1px 0 rgba(15, 23, 42, .03);
  --shadow-sm:    0 4px 14px -8px rgba(15, 23, 42, .08);
  --shadow-md:    0 12px 28px -16px rgba(15, 23, 42, .12);
  --shadow-lg:    0 20px 40px -22px rgba(15, 23, 42, .12),
                  0 4px 12px -4px rgba(15, 23, 42, .06);
  --shadow-cta:   0 1px 0 rgba(255, 255, 255, .1) inset,
                  0 1px 2px rgba(4, 120, 87, .25);
  --shadow-modal: 0 30px 60px -20px rgba(15, 23, 42, .3);

  /* — motion ——————————————————————————————————————————————— */
  --t-fast: 120ms cubic-bezier(.3, .7, .4, 1);
  --t:      150ms cubic-bezier(.3, .7, .4, 1);
  --t-slow: 250ms cubic-bezier(.3, .7, .4, 1);

  /* — layout ——————————————————————————————————————————————— */
  --container: 1180px;
  --container-narrow: 820px;
  --container-prose: 660px;
}


/* ─────────────────────────────────────────────────────────────────────────
   2. Reset
   ───────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }


/* ─────────────────────────────────────────────────────────────────────────
   3. Base
   ───────────────────────────────────────────────────────────────────────── */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); letter-spacing: var(--tracking-hero); line-height: 1.04; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { margin: 0; }

a { color: var(--jade); text-decoration: none; }
a:hover { color: var(--jade-700); }

::selection { background: #D9F2E5; color: var(--jade-700); }

kbd, code { font-family: var(--font-mono); }


/* ─────────────────────────────────────────────────────────────────────────
   4. Layout
   ───────────────────────────────────────────────────────────────────────── */

.container        { max-width: var(--container);        margin-inline: auto; padding-inline: var(--space-7); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--space-7); }
.container-prose  { max-width: var(--container-prose);  margin-inline: auto; padding-inline: var(--space-7); }

.section          { padding-block: var(--space-20); border-top: 1px solid var(--border); }
.section-tinted   { background: var(--bg); }
.section-surface  { background: var(--surface-2); }
.section--airy    { padding-block: 80px; }
.section--dense   { padding-block: 56px; }


/* ─────────────────────────────────────────────────────────────────────────
   5. Components
   ───────────────────────────────────────────────────────────────────────── */

/* — Buttons ——————————————————————————————————————————————————————————
   .btn               base
   .btn-primary       jade primary CTA
   .btn-ghost         transparent with bordered outline
   .btn-subtle        used inside product chrome (KPI bar, filters)
   modifiers:         .btn-lg
   ───────────────────────────────────────————————————————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-md);
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t),
              box-shadow var(--t), transform var(--t);
}
.btn:focus-visible {
  outline: 2px solid var(--jade-200);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--jade);
  color: #fff;
  border-color: var(--jade-700);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--jade-700); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }

.btn-subtle {
  height: 26px; padding: 4px 9px; gap: 5px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #374151;
  font-size: 11.5px; font-weight: 500;
}
.btn-subtle:hover { background: var(--surface-2); }

.btn-lg {
  height: 44px; padding: 0 18px;
  font-size: var(--text-base); border-radius: 11px;
}

/* — Icon-only chrome button (used inside dashboard mockup) — */
.icon-btn {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); display: grid; place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* — Cards ———————————————————————————————————————————————————————————
   .card                base surface card
   .card-hover          adds lift on hover
   .card-pad-sm/md/lg   padding variants
   .card-featured       jade ring for highlighted plan
   ───────————————————————————————————————————————————————————————————— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card-pad-sm { padding: 18px; }
.card-pad-md { padding: 22px; }
.card-pad-lg { padding: 24px; }

.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-featured {
  border: 1.5px solid var(--jade);
  box-shadow: 0 18px 36px -22px rgba(4, 120, 87, .4);
}

/* — Badge / Pill / Tag ———————————————————————————————————————————————
   .badge               inline label, neutral
   .badge-dot           with a leading status dot
   .badge-jade          green tone
   .badge-lime          lime tone
   .badge-eyebrow       uppercase eyebrow above a heading
   .badge-pill          rounded-full (status / category chip)
   ───────────————————————————————————————————————————————————————————— */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #374151;
  font-size: 12px; font-weight: 500;
}
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: var(--r-full);
  background: var(--lime);
}
.badge-jade { background: var(--jade-50); color: var(--jade-700); border-color: var(--jade-100); }
.badge-lime { background: var(--lime-50); color: var(--lime-700); border-color: var(--lime-100); }
.badge-warn { background: var(--warn-50); color: var(--warn); border-color: var(--warn-100); }
.badge-danger { background: var(--danger-50); color: var(--danger); border-color: var(--danger-100); }

.badge-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--jade);
  letter-spacing: .04em; text-transform: uppercase;
  background: transparent; border: 0; padding: 0;
}
.badge-eyebrow::before {
  content: ""; width: 14px; height: 1.5px; background: var(--jade);
}

.badge-square {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* — Inputs ——————————————————————————————————————————————————————————— */
.input, .textarea {
  width: 100%;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--bg);
  font-family: inherit; font-size: var(--text-base);
  color: var(--text);
  outline: none;
  transition: border-color var(--t), background var(--t);
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: var(--leading-body); }
.input:focus, .textarea:focus { border-color: var(--jade); background: var(--surface); }

.field-label {
  display: block;
  font-size: 11.5px; font-weight: 600;
  color: #374151; letter-spacing: .02em;
  margin-bottom: 5px;
}

/* — Top nav ———————————————————————————————————————————————————————— */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 247, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(237, 233, 224, .7);
}
.site-nav__inner {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--space-7);
}
.site-nav__brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
}
.site-nav__brand:hover { color: var(--text); }
.site-nav__links {
  margin-left: auto;
  display: flex; align-items: center; gap: 22px;
}
.nav-link {
  font-size: 13.5px; font-weight: 500;
  color: #374151; text-decoration: none;
}
.nav-link:hover { color: var(--text); }

/* — Footer ————————————————————————————————————————————————————————— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--space-7) 36px;
}
.site-footer__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.site-footer__brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text);
}
.site-footer__legal {
  max-width: var(--container); margin: 16px auto 0;
  font-size: 11px; color: var(--muted-2); line-height: var(--leading-body);
}
.footer-link {
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.footer-link:hover { color: var(--text); }


/* — Section heading block ——————————————————————————————————————————— */
.section-heading {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 36px;
  max-width: 720px;
}
.section-heading--centered {
  text-align: center;
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
}
.section-heading p {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 520px;
  line-height: var(--leading-body);
}

/* — Modal shell ——————————————————————————————————————————————————— */
.modal-scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, .32);
  display: grid; place-items: center; padding: 24px;
}
.modal {
  width: 100%; max-width: 480px;
  background: var(--surface); border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-modal);
  position: relative;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted-2); cursor: pointer;
  display: grid; place-items: center;
}
.modal__close:hover { background: var(--surface-2); color: var(--text); }

/* — Bullet list (with checkmark icons rendered by component) ————— */
.bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.bullets li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: var(--text-base); color: #374151;
  line-height: 1.45;
}


/* ─────────────────────────────────────────────────────────────────────────
   6. Utilities
   ───────────────────────────────────────────────────────────────────────── */

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.balance { text-wrap: balance; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* React boot fade-in */
#root { opacity: 0; transition: opacity .25s ease; }
#root.ready { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════════════
   PART 2 — App shell (dashboard base, shared with order/payment/subscription)
   ═══════════════════════════════════════════════════════════════════════════ */

/* dashboard.css — VIVAOS dashboard styles (extends vivaos-brand.css)
   Consolidated: original dashboard.css base + dashboard-2 restructuring. */

/* ═══════════════════════════════════════════════════════════════════
   PART 1 — BASE (shared with Payment / New Order / Manage Subscription)
   ═══════════════════════════════════════════════════════════════════ */

/* — App shell ——————————————————————————————————————————————————————— */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* — App nav (in-app variant of .site-nav) ———————————————————————— */

.app-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(237, 233, 224, .8);
}
.app-nav__inner {
  max-width: 1240px; margin-inline: auto;
  padding: 12px var(--space-7);
  display: flex; align-items: center; gap: 22px;
}
.app-nav__brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
}
.app-nav__links {
  display: flex; align-items: center; gap: 2px;
  margin-inline: 18px 0;
}
.app-nav__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: background var(--t), color var(--t);
}
.app-nav__link:hover { color: var(--text); background: var(--surface-2); }
.app-nav__link[aria-current="page"] {
  color: var(--jade);
  background: var(--jade-50);
}
.app-nav__link[aria-current="page"]:hover { color: var(--jade-700); }

.app-nav__right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}

.icon-btn-md {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.icon-btn-md:hover { background: var(--surface-2); color: var(--text); }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 9px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px; font-weight: 500; color: var(--text);
  cursor: pointer;
}
.user-chip:hover { background: var(--surface-2); }
.user-chip__avatar {
  width: 24px; height: 24px; border-radius: 999px;
  background: linear-gradient(135deg, #047857 0%, #10B981 70%, #84CC16 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}

/* — Page container ————————————————————————————————————————————— */

.page {
  max-width: 1240px; margin-inline: auto; width: 100%;
  padding: 36px var(--space-7) 24px;
  flex: 1;
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 26px;
}
.page-head h1 {
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -.025em; line-height: 1.1;
  margin: 0;
}
.page-head__sub {
  margin-top: 6px; color: var(--muted); font-size: var(--text-md);
}
.page-head__meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 11px; border-radius: 8px;
  white-space: nowrap;
}

/* — Stat strip (inline meta under greeting) ————————————————————— */

.stat-strip {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 10px;
}
.stat-strip__item {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.stat-strip__num {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums;
}
.stat-strip__lbl { color: var(--muted); }
.stat-strip__sep {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
}

/* — Payment alert banner ——————————————————————————————————————— */

.alert {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--warn-100);
  background: var(--warn-50);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
}
.alert__icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: #FDF3D7; color: var(--warn);
  display: grid; place-items: center; flex-shrink: 0;
}
.alert__body { flex: 1; min-width: 0; }
.alert__title { font-size: 14px; font-weight: 600; color: #78350F; }
.alert__sub { font-size: 13px; color: var(--warn); margin-top: 2px; }
.alert__cta { margin-left: auto; }

/* — Main grid ————————————————————————————————————————————————— */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
}
@media (max-width: 920px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* — Section card ————————————————————————————————————————————— */

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.section-card__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.section-card__icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--jade-50); color: var(--jade);
  display: grid; place-items: center; flex-shrink: 0;
}
.section-card__title {
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  display: flex; align-items: center; gap: 8px;
}
.section-card__count {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--muted-2); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.section-card__actions {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
}

/* — Filter chips ———————————————————————————————————————————— */

.filter-row {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow-x: auto; scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.chip:hover { color: var(--text); background: var(--surface); }
.chip[aria-pressed="true"] {
  background: var(--surface); color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.chip__count {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] .chip__count { color: var(--text); }

/* — Order row ————————————————————————————————————————————— */

.order-list { padding: 4px 0; }
.order-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1.5fr) minmax(0, 1.2fr) auto 14px;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t);
}
.order-row__right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  min-width: 0;
}
.order-row:last-child { border-bottom: none; }
.order-row:hover { background: var(--surface-2); }

.order-row__dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--muted-3); justify-self: center;
}
.order-row__dot.is-pending { background: var(--warn); }
.order-row__dot.is-new { background: var(--jade); }
.order-row__dot.is-await { background: var(--danger); }

.order-row__id {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-row__id em {
  display: block; font-style: normal;
  font-family: var(--font-sans); font-size: 10.5px;
  font-weight: 500; color: var(--muted-2);
  margin-top: 2px; text-transform: uppercase; letter-spacing: .04em;
}

.order-row__svc { font-size: 13px; color: var(--text); font-weight: 500; }
.order-row__svc em {
  display: block; font-style: normal;
  font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 1px;
}

.order-row__timer {
  font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.order-row__timer.is-overdue { color: var(--danger); font-weight: 500; }
.order-row__timer.is-overdue svg { color: var(--danger); }

.order-row__price {
  text-align: right;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums;
}

.order-row__chev { color: var(--muted-2); }
.order-row:hover .order-row__chev { color: var(--text); }

/* expanded panel */
.order-row.is-open { background: var(--surface-2); }
.order-detail {
  padding: 4px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.order-detail__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}
.order-detail__lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 4px;
}
.order-detail__val {
  font-size: 13px; color: var(--text); font-weight: 500;
}
.order-detail__val.mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.order-detail__actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
}

/* progress (countdown) bar inside row, full-width below */
.order-row__progress {
  grid-column: 1 / -1;
  height: 3px; background: var(--border);
  border-radius: 999px; overflow: hidden;
  margin: 8px 0 -2px;
}
.order-row__progress > span {
  display: block; height: 100%;
  background: var(--warn);
  border-radius: 999px;
}
.order-row__progress.is-overdue > span { background: var(--danger); }

/* — Order section footer ———————————————————————————————————— */

.section-card__ft {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}
.section-card__ft .link-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--jade); font-weight: 600; font-size: 12.5px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.section-card__ft .link-toggle:hover { color: var(--jade-700); }

/* — Subscription card ————————————————————————————————————— */

.sub-card {
  margin: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 14px 16px;
  background: var(--surface);
  position: relative;
}
.sub-card__hd {
  display: flex; align-items: center; gap: 12px;
}
.sub-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade-700) 100%);
  color: #fff; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 10px -4px rgba(4,120,87,.4);
}
.sub-card__title {
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
}
.sub-card__meta {
  margin-top: 2px; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.sub-card__status {
  position: absolute; top: 14px; right: 14px;
}
.sub-card__body {
  margin-top: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sub-card__stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
}
.sub-card__stat .lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
}
.sub-card__stat .val {
  margin-top: 3px;
  font-family: var(--font-mono); font-size: 18px; font-weight: 600;
  letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums;
}
.sub-card__stat .val .unit {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  color: var(--muted); margin-left: 3px;
}
.sub-card__actions {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px 16px;
}

/* — Workspace mini-panel under subs ———————————————————————— */

.mini-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px 18px;
}
.mini-panel__hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.mini-panel__title {
  font-size: 13px; font-weight: 600;
}
.mini-panel__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}
.mini-panel__row:first-of-type { border-top: 0; }
.mini-panel__row .k { color: var(--muted); }
.mini-panel__row .v {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text); font-weight: 500;
}

/* — Quick actions row ————————————————————————————————————— */

.qa-head {
  margin: 36px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.qa-head h2 {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.qa-head .eyebrow-dim {
  font-size: 12px; color: var(--muted);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}

.qa-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
  text-align: left;
  text-decoration: none;
  color: var(--text);
}
.qa-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.qa-card__icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--jade);
  display: grid; place-items: center; flex-shrink: 0;
}
.qa-card__icon.is-featured {
  background: var(--jade);
  color: #fff;
  border-color: var(--jade-700);
  box-shadow: var(--shadow-cta);
}
.qa-card__icon.is-lime {
  background: var(--lime-50);
  border-color: var(--lime-100);
  color: var(--lime-700);
}
.qa-card__icon.is-warn {
  background: var(--warn-50);
  border-color: var(--warn-100);
  color: var(--warn);
}
.qa-card__title {
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
}
.qa-card__sub {
  margin-top: 3px;
  font-size: 11.5px; color: var(--muted); line-height: 1.4;
}

/* — Empty state ————————————————————————————————————————— */
.empty {
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  color: var(--muted);
}
.empty__icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface-2); color: var(--muted-2);
  display: grid; place-items: center; border: 1px dashed var(--border-strong);
  margin-bottom: 4px;
}

/* — Chat FAB ————————————————————————————————————————————— */

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 20;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--jade); color: #fff;
  border: 1px solid var(--jade-700);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-cta), 0 12px 24px -8px rgba(4, 120, 87, .35);
  transition: transform var(--t), background var(--t);
}
.chat-fab:hover { background: var(--jade-700); transform: translateY(-1px); }
.chat-fab__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--lime); color: var(--lime-700);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  border: 2px solid var(--bg);
}

/* — Compact density variant ————————————————————————————— */

.density-compact .section-card__hd { padding: 12px 16px; }
.density-compact .order-row { padding: 8px 16px; gap: 10px; }
.density-compact .sub-card { margin: 12px 16px; padding: 12px; }
.density-compact .sub-card__actions { padding: 0 16px 12px; }
.density-compact .qa-card { padding: 12px; }


/* ═══════════════════════════════════════════════════════════════════
   PART 2 — DASHBOARD PAGE LAYOUT (formerly dashboard-2.css)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Page chrome ──────────────────────────────────────────────────── */

.page-head-2 {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin: 8px 0 22px;
}
.page-head-2 h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.025em; line-height: 1.1;
  margin: 0; font-weight: 600;
}
.page-head-2__sub {
  margin-top: 4px;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.page-head-2__sub > * { white-space: nowrap; }
.page-head-2__sub .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
}
.page-head-2__cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px 0 16px;
  background: var(--jade);
  color: #fff; font-weight: 600;
  font-size: 14px; letter-spacing: -.005em;
  border: 1px solid var(--jade-700);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  flex-shrink: 0;
}
.page-head-2__cta:hover {
  background: var(--jade-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(15, 105, 75, .45);
}
.page-head-2__cta:active { transform: translateY(0); }

/* ─── Hero grid (health + actions) ─────────────────────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ─── Health card (the main module) ────────────────────────────────── */

.health-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 100%;
}
.health-card__hd {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.health-card__title {
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
}
.health-card__meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.health-card__meta .mono {
  color: var(--text); font-weight: 600;
}
.health-card__meta .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
}

/* — Big stacked bar — */
.health-bar {
  display: flex; gap: 3px;
  height: 10px; width: 100%;
  border-radius: 999px; overflow: hidden;
  background: var(--surface-2);
}
.health-bar span {
  display: block; height: 100%;
  border-radius: 2px;
  min-width: 4px;
}
.health-bar .seg-page1     { background: var(--jade); }
.health-bar .seg-promoting { background: var(--lime); }
.health-bar .seg-notfound  { background: #C9C2B0; } /* warm muted */
.health-bar .seg-unavail   { background: var(--warn); opacity: .55; }

/* — Legend (4 status tiles) — */
.health-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .health-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.health-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t);
}
.health-stat:hover { border-color: var(--border-strong); }
.health-stat__top {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted);
  letter-spacing: -.005em;
  white-space: nowrap;
  min-width: 0; overflow: hidden;
}
.health-stat__top .swatch {
  width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0;
}
.health-stat__top .swatch.s-page1     { background: var(--jade); }
.health-stat__top .swatch.s-promoting { background: var(--lime); }
.health-stat__top .swatch.s-notfound  { background: #C9C2B0; }
.health-stat__top .swatch.s-unavail   { background: var(--warn); opacity: .65; }
.health-stat__num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 24px; font-weight: 600; color: var(--text);
  letter-spacing: -.02em; line-height: 1;
}
.health-stat__pct {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11px; color: var(--muted-2); margin-left: 8px;
  vertical-align: baseline;
}
.health-stat__num + .health-stat__pct {
  position: relative; top: -1px;
}

/* — Per-listing details link (replaces inline breakdown) — */
.listings-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 2px;
}
.listings-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), background var(--t);
}
.listings-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.listings-link__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.listings-link__title {
  font-size: 13px; font-weight: 600; letter-spacing: -.005em; color: var(--text);
}
.listings-link__sub {
  font-size: 11.5px; color: var(--muted);
}
.listings-link__sub .mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text); font-weight: 600;
}
.listings-link__cta {
  font-size: 12px; color: var(--jade); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.listings-link:hover .listings-link__cta { color: var(--jade-700); }

/* ─── Action stack (right column) ──────────────────────────────────── */

.action-stack {
  display: flex; flex-direction: column; gap: 12px;
}

.action-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px;
  border-radius: var(--r-xl);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer; text-align: left;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.action-tile:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.action-tile__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); color: var(--jade);
  border: 1px solid var(--border);
}
.action-tile__body { flex: 1; min-width: 0; }
.action-tile__title {
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  color: var(--text);
}
.action-tile__sub {
  margin-top: 3px;
  font-size: 12px; color: var(--muted); line-height: 1.4;
}
.action-tile__chev {
  color: var(--muted-2); flex-shrink: 0;
}
.action-tile:hover .action-tile__chev { color: var(--text); }

/* Primary tile — jade fill */
.action-tile.is-primary {
  background: var(--jade);
  border-color: var(--jade-700);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.action-tile.is-primary:hover {
  background: var(--jade-700);
  border-color: var(--jade-700);
}
.action-tile.is-primary .action-tile__icon {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.action-tile.is-primary .action-tile__title { color: #fff; }
.action-tile.is-primary .action-tile__sub { color: rgba(255,255,255,.78); }
.action-tile.is-primary .action-tile__chev { color: rgba(255,255,255,.7); }

/* ─── Active promotions ────────────────────────────────────────────── */

.promo-section { margin-bottom: 18px; }
.promo-section__hd {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.promo-section__title {
  font-size: 13px; font-weight: 600;
  letter-spacing: -.005em;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.promo-section__title .count {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11.5px; color: var(--muted-2); font-weight: 500;
}
.promo-section__eyebrow {
  font-size: 11px; font-weight: 500;
  color: var(--muted-2);
  letter-spacing: -.005em;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}
.promo-section + .promo-section { margin-top: 22px; }
.promo-section__link {
  font-size: 12px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.promo-section__link:hover { color: var(--text); }

.promo-list {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.promo-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
  color: inherit;
}
.promo-row__id {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-transform: none; letter-spacing: 0;
  color: var(--muted-2);
  font-weight: 500;
}
.promo-row__pct {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}
.promo-row__kw {
  margin-top: 4px;
  font-size: 11.5px; color: var(--muted);
  letter-spacing: -.005em;
}
.promo-row__kw .done {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text); font-weight: 600;
}
.promo-row:first-child { border-top: 0; }
.promo-row:hover { background: var(--surface-2); }

.promo-row__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--jade-50); color: var(--jade);
  display: grid; place-items: center; flex-shrink: 0;
}
/* Service-coded icon backgrounds — shared between promotions & subs
   so the same service reads the same in both sections. */
.promo-row__icon.svc-boost {
  background: var(--jade-50); color: var(--jade);
}
.promo-row__icon.svc-track {
  background: oklch(95% 0.02 250); color: oklch(40% 0.06 250);
}
.promo-row__icon.svc-shop {
  background: var(--warn-50); color: var(--warn);
}
.promo-row__icon--done {
  background: var(--jade) !important; color: #fff !important;
}
/* Filled version for active subscriptions — same hue, stronger fill */
.promo-row__icon--sub.svc-boost {
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade-700) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.promo-row__icon--sub.svc-track {
  background: linear-gradient(135deg, oklch(45% 0.06 250) 0%, oklch(35% 0.06 250) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.promo-row__icon--sub.svc-shop {
  background: linear-gradient(135deg, var(--warn) 0%, #78350F 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.promo-row__body { min-width: 0; width: 100%; }
.promo-row__lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.promo-row__lbl .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
}
.promo-row__lbl .stat-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--lime);
}
.promo-row__title {
  margin-top: 4px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-row__sub-meta {
  margin-top: 6px;
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.promo-row__sub-meta > * { white-space: nowrap; }
.promo-row__sub-meta .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
}
.promo-row__sub-meta strong {
  color: var(--text); font-weight: 600;
}
.promo-row__sub-meta strong.mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.promo-row__progress {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.promo-row__progress-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  gap: 8px; flex-wrap: wrap;
}
.promo-row__progress-meta > span { white-space: nowrap; }
.promo-row__progress-meta .done {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text); font-weight: 600;
}
.promo-row__progress-bar {
  height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
}
.promo-row__progress-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--jade) 0%, var(--lime) 100%);
  border-radius: 999px;
}
.promo-row__cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.promo-row__cta .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 11px; color: var(--text); font-weight: 500;
}
.promo-row__cta .pill .swatch {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--lime);
}
.promo-row__chev { color: var(--muted-2); }
.promo-row:hover .promo-row__chev { color: var(--text); }

.promo-empty {
  padding: 40px 22px;
  text-align: center; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.promo-empty__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted-2);
  display: grid; place-items: center;
  border: 1px dashed var(--border-strong);
  margin: 0 auto 10px;
}
.promo-empty__title {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.promo-empty__sub {
  font-size: 12.5px; margin-top: 3px;
}

/* ─── Payment strip (compact, only if needed) ──────────────────────── */

.pay-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--warn-100);
  background: var(--warn-50);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.pay-strip__icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: #FDF3D7; color: var(--warn);
  display: grid; place-items: center; flex-shrink: 0;
}
.pay-strip__body {
  flex: 1; min-width: 0;
  font-size: 13px; color: #78350F;
}
.pay-strip__body .amount {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--warn);
}
.pay-strip__cta {
  display: flex; align-items: center; gap: 6px;
}
.pay-strip__btn {
  height: 28px; padding: 0 11px;
  border-radius: 7px;
  background: var(--warn); color: #fff;
  border: 1px solid #92400E;
  font-size: 12px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.pay-strip__btn:hover { background: #92400E; }
.pay-strip__dismiss {
  width: 24px; height: 24px; border-radius: 6px;
  background: transparent; border: 0;
  color: var(--warn); display: grid; place-items: center; cursor: pointer;
}
.pay-strip__dismiss:hover { background: rgba(180, 83, 9, .1); }

/* ─── Subscription strip ───────────────────────────────────────────── */

.sub-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.sub-strip__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade-700) 100%);
  color: #fff; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.sub-strip__body { flex: 1; min-width: 0; }
.sub-strip__title {
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  display: flex; align-items: center; gap: 8px;
}
.sub-strip__title .badge-mini {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: var(--jade-50); color: var(--jade-700);
  border: 1px solid var(--jade-100);
  display: inline-flex; align-items: center; gap: 4px;
  text-transform: none; letter-spacing: 0;
}
.sub-strip__title .badge-mini::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--lime);
}
.sub-strip__meta {
  margin-top: 2px;
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.sub-strip__meta > * { white-space: nowrap; }
.sub-strip__meta .mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500;
}
.sub-strip__meta .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
}
.sub-strip__progress {
  width: 110px;
  display: flex; flex-direction: column; gap: 4px;
}
.sub-strip__progress-bar {
  height: 3px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
}
.sub-strip__progress-bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--jade) 0%, var(--lime) 100%);
}
.sub-strip__progress-lbl {
  font-size: 10.5px; color: var(--muted-2); text-align: right;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.sub-strip__manage {
  font-size: 12.5px; color: var(--jade); font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
  padding: 6px 4px;
}
.sub-strip__manage:hover { color: var(--jade-700); }

/* ─── Quick actions mini ───────────────────────────────────────────── */

.qa-mini-section { margin-top: 8px; }
.qa-mini-hd {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.qa-mini-hd h2 {
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
}
.qa-mini-hd .eyebrow {
  font-size: 12px; color: var(--muted);
}
.qa-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 820px) { .qa-mini-grid { grid-template-columns: 1fr; } }

.qa-mini-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.qa-mini-card:hover {
  border-color: var(--border-strong);
}
.qa-mini-card__icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--surface-2); color: var(--jade);
  border: 1px solid var(--border);
  display: grid; place-items: center; flex-shrink: 0;
}
.qa-mini-card__body { flex: 1; min-width: 0; }
.qa-mini-card__title {
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
}
.qa-mini-card__sub {
  font-size: 11px; color: var(--muted); margin-top: 1px;
}

/* ─── Wallet card (right-column hero, matches HealthCard height) ───── */

.wallet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 22px 18px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.wallet-card__hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.wallet-card__lbl {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.wallet-card__chip {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 10.5px; color: var(--muted-2);
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 500;
}
.wallet-card__amount {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -.02em;
  margin-top: 4px;
}
.wallet-card__currency {
  font-size: 19px; color: var(--muted-2); font-weight: 500;
  margin-right: 2px;
}
.wallet-card__num {
  font-size: 40px; font-weight: 600; line-height: 1;
}
.wallet-card__cents {
  font-size: 19px; color: var(--muted-2); font-weight: 500;
}
.wallet-card__note {
  margin-top: 8px;
  font-size: 12px; color: var(--muted);
}
.wallet-card__cta {
  margin-top: auto;
  height: 36px; padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-self: flex-start;
  transition: border-color var(--t), background var(--t);
}
.wallet-card__cta:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}
.wallet-card__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px;
}
.wallet-card__link {
  font-size: 12px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500;
}
.wallet-card__link:hover { color: var(--text); }


/* ═══════════════════════════════════════════════════════════════════════════
   PART 3 — Checkout flows (Order / Payment / Manage Subscription)
   ═══════════════════════════════════════════════════════════════════════════ */

/* checkout.css — additional styles for Order / Payment / Subscription pages.
   Extends vivaos-brand.css + dashboard.css (reuses .app-nav, .icon-btn-md,
   .user-chip, .chat-fab, .section-card, etc.) */


/* ─── Page chrome ─────────────────────────────────────────────────────── */

.page-narrow {
  max-width: 1180px; margin-inline: auto; width: 100%;
  padding: 28px var(--space-7) 56px;
  flex: 1;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 6px 10px 6px 6px; border-radius: 7px;
  margin-bottom: 12px;
  transition: background var(--t), color var(--t);
}
.back-link:hover { color: var(--text); background: var(--surface-2); }

.page-title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 22px;
}
.page-title {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.025em; line-height: 1.1;
  margin: 0;
}
.page-subtitle {
  margin-top: 6px;
  color: var(--muted); font-size: var(--text-md);
  max-width: 580px;
}
.page-title-row__meta {
  display: flex; align-items: center; gap: 8px;
}


/* ─── Wizard step indicator ───────────────────────────────────────────── */

.wizard {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
}
.wizard__step {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 0;
  transition: background var(--t), color var(--t);
  cursor: default;
}
.wizard__step .n {
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted-2);
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--border);
}
.wizard__step.is-active {
  background: var(--jade-50); color: var(--jade-700);
}
.wizard__step.is-active .n {
  background: var(--jade); color: #fff; border-color: var(--jade-700);
}
.wizard__step.is-done   { color: var(--text); }
.wizard__step.is-done .n {
  background: var(--jade); color: #fff;
  border-color: var(--jade-700);
}
.wizard__sep {
  flex: 1 1 auto; height: 2px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  margin: 0 4px;
}
.wizard__sep.is-done { background: var(--jade); }


/* ─── Order layout (form + sticky summary) ───────────────────────────── */

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .order-layout { grid-template-columns: 1fr; }
}

.order-layout.layout-inline {
  grid-template-columns: 1fr;
}

.order-summary-col {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 14px;
}

/* ─── Form section card ───────────────────────────────────────────────── */

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 14px;
}
.form-section__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.form-section__step {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--jade-50); color: var(--jade-700);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.form-section__title {
  font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.form-section__hint {
  margin-left: auto;
  font-size: 11.5px; color: var(--muted-2);
}
.form-section__body { padding: 16px 18px 18px; }


/* ─── Service cards grid ──────────────────────────────────────────────── */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t);
}
.svc-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.svc-card[aria-pressed="true"] {
  border: 1.5px solid var(--jade);
  background: var(--jade-50);
  box-shadow: 0 0 0 4px rgba(4, 120, 87, .08);
}
.svc-card__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--jade);
  display: grid; place-items: center;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.svc-card[aria-pressed="true"] .svc-card__icon {
  background: var(--jade);
  border-color: var(--jade-700);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.svc-card__check {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--jade); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(4,120,87,.4);
}
.svc-card__title { font-size: 14px; font-weight: 600; }
.svc-card__sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.svc-card__bullets {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 5px;
}
.svc-card__bullets li {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12.5px; color: #374151; line-height: 1.45;
}
.svc-card__bullets li > span { flex: 1; min-width: 0; }
.svc-card__bullets svg { color: var(--jade); margin-top: 3px; flex-shrink: 0; }

.svc-card__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.svc-card__price .from { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.svc-card__price .amt { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.svc-card__price .per { font-size: 11.5px; color: var(--muted); margin-left: 2px; }

.svc-tag {
  position: absolute; top: -9px; left: 14px;
  padding: 3px 8px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--jade); color: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(4,120,87,.45);
}

/* List variant for service picker (compact density) */
.svc-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc-list .svc-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 18px;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--t);
}
.svc-list .svc-row:last-child { border-bottom: 0; }
.svc-list .svc-row:hover { background: var(--surface-2); }
.svc-list .svc-row[aria-pressed="true"] { background: var(--jade-50); }
.svc-list .svc-row__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); color: var(--jade);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.svc-list .svc-row[aria-pressed="true"] .svc-row__icon {
  background: var(--jade); color: #fff; border-color: var(--jade-700);
}
.svc-list .svc-row__title { font-size: 13.5px; font-weight: 600; }
.svc-list .svc-row__sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.svc-list .svc-row__price {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.svc-list .svc-row__radio {
  width: 16px; height: 16px; border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: grid; place-items: center;
}
.svc-list .svc-row[aria-pressed="true"] .svc-row__radio {
  border-color: var(--jade); background: var(--jade);
  box-shadow: inset 0 0 0 3px #fff;
}


/* ─── Package selector (cards) ────────────────────────────────────────── */

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }

.pkg-card {
  position: relative;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column;
  min-height: 124px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.pkg-card:hover { border-color: var(--border-strong); }
.pkg-card[aria-pressed="true"] {
  border: 1.5px solid var(--jade);
  background: var(--jade-50);
  box-shadow: 0 0 0 4px rgba(4,120,87,.08);
}
.pkg-card__name {
  font-size: 12px; font-weight: 600; color: var(--text);
  letter-spacing: .02em;
}
.pkg-card__listings {
  font-size: 11px; color: var(--muted);
  margin-top: 2px;
}
.pkg-card__price {
  margin-top: auto;
  padding-top: 10px;
  display: flex; align-items: baseline; gap: 3px;
}
.pkg-card__price .amt { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--text); }
.pkg-card__price .per {
  font-size: 11px; color: var(--muted); margin-left: 4px;
}
.pkg-card__savings {
  font-size: 10.5px; color: var(--lime-700); font-weight: 600;
  margin-top: 4px;
  min-height: 14px;
}
.pkg-card[aria-pressed="true"] .pkg-card__savings { color: var(--jade-700); }

.pkg-tag {
  position: absolute; top: -9px; left: 14px;
  padding: 3px 8px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--jade); color: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(4,120,87,.45);
}

/* Segmented variant */
.pkg-seg {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px;
  gap: 4px;
}
.pkg-seg button {
  flex: 1;
  background: transparent; border: 0;
  padding: 10px 12px;
  border-radius: 7px;
  font-family: inherit;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted);
  transition: background var(--t), color var(--t);
}
.pkg-seg button:hover { color: var(--text); }
.pkg-seg button[aria-pressed="true"] {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 4px 12px -8px rgba(15,23,42,.08);
}
.pkg-seg .name { font-size: 12px; font-weight: 600; }
.pkg-seg .amt  { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }


/* ─── Subscribe toggle row ───────────────────────────────────────────── */

.subscribe-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--lime-50);
  border: 1px solid var(--lime-100);
  border-radius: var(--r-lg);
  margin-top: 14px;
}
.subscribe-row__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #FFFFFF; border: 1px solid var(--lime-100);
  color: var(--lime-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.subscribe-row__txt { flex: 1; min-width: 0; }
.subscribe-row__title { font-size: 13px; font-weight: 600; color: var(--lime-700); }
.subscribe-row__sub { font-size: 11.5px; color: var(--lime-700); opacity: .82; margin-top: 1px; }

/* iOS-style toggle, jade */
.switch {
  position: relative;
  display: inline-block;
  width: 38px; height: 22px; flex-shrink: 0;
  padding: 0;
  background: var(--border-strong);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
  transition: background var(--t);
}
.switch::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.18);
  transition: transform var(--t);
}
.switch[aria-checked="true"] { background: var(--jade); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }


/* ─── URL textarea with line numbers ─────────────────────────────────── */

.url-input {
  display: grid;
  grid-template-columns: 36px 1fr;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--bg);
  font-family: var(--font-mono);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.url-input:focus-within { border-color: var(--jade); background: var(--surface); }
.url-input__nums {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 10px 6px 10px 0;
  text-align: right;
  font-size: 11.5px; color: var(--muted-2);
  line-height: 1.6;
  user-select: none;
}
.url-input__nums div { padding-right: 4px; }
.url-input textarea {
  border: 0; background: transparent;
  font-family: inherit; font-size: 12px;
  color: var(--text);
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
  outline: none;
  min-height: 84px;
}
.url-input textarea::placeholder { color: var(--muted-3); }


/* ─── Order summary card (sticky) ────────────────────────────────────── */

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.summary-card__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--jade) 0%, var(--jade-700) 100%);
  color: #fff;
}
.summary-card__hd .ico {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.summary-card__hd h3 {
  font-size: 14.5px; font-weight: 600; color: #fff;
  letter-spacing: -.005em;
}
.summary-card__body { padding: 14px 18px 4px; }
.summary-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.summary-row:last-of-type { border-bottom: 0; }
.summary-row .k { font-size: 12.5px; color: var(--muted); }
.summary-row .v {
  font-size: 13px; color: var(--text); font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  max-width: 60%;
}
.summary-row .v.mono { font-family: var(--font-mono); }
.summary-row .v.discount { color: var(--jade-700); }
.summary-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.summary-total .k { font-size: 13px; font-weight: 600; color: var(--text); }
.summary-total .v {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

.summary-cta {
  padding: 14px 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.summary-trust {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-size: 11px; color: var(--muted);
}

/* Promo + VIP inside summary */
.summary-promo-row {
  display: flex; gap: 6px; padding: 12px 18px 4px;
}
.summary-promo-row .input { height: 36px; font-size: 12.5px; }
.summary-promo-row .btn { height: 36px; padding: 0 12px; }

.vip-strip {
  display: flex; align-items: center; gap: 8px;
  margin: 0 18px 12px;
  padding: 9px 11px;
  background: linear-gradient(135deg, #ECFDF5 0%, #F7FEE7 100%);
  border: 1px dashed var(--lime-100);
  border-radius: 9px;
}
.vip-strip .ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: #fff; color: var(--lime-700);
  display: grid; place-items: center; border: 1px solid var(--lime-100);
}
.vip-strip .txt { font-size: 11.5px; color: var(--lime-700); font-weight: 500; }
.vip-strip .amt { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--jade-700); }


/* ─── Payment page ───────────────────────────────────────────────────── */

.pay-timer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px; font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pay-timer-pill--warn {
  background: var(--warn-50);
  border-color: var(--warn-100);
  color: var(--warn);
}


.alert-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--warn-50);
  border: 1px solid var(--warn-100);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
}
.alert-banner.is-danger {
  background: var(--danger-50);
  border-color: var(--danger-100);
}
.alert-banner__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--warn);
  border: 1px solid var(--warn-100);
}
.alert-banner.is-danger .alert-banner__icon {
  color: var(--danger);
  border-color: var(--danger-100);
}
.alert-banner__title { font-size: 13.5px; font-weight: 600; color: #78350F; }
.alert-banner.is-danger .alert-banner__title { color: #7F1D1D; }
.alert-banner__sub { font-size: 12px; color: var(--warn); margin-top: 1px; }
.alert-banner.is-danger .alert-banner__sub { color: var(--danger); }
.alert-banner__cta { margin-left: auto; }

.pay-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .pay-layout { grid-template-columns: 1fr; } }

.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.pay-card__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.pay-card__hd h3 {
  font-size: 14.5px; font-weight: 600;
}
.pay-card__body { padding: 18px; }

/* payment method row */
.pm-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 540px) { .pm-list { grid-template-columns: repeat(2, 1fr); } }

.pm-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.pm-tile:hover { border-color: var(--border-strong); }
.pm-tile[aria-pressed="true"] {
  border: 1.5px solid var(--jade);
  background: var(--jade-50);
  box-shadow: 0 0 0 4px rgba(4,120,87,.08);
}
.pm-tile__name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.pm-tile__sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

/* Card form */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid .col-span-2 { grid-column: 1 / -1; }

/* Trust pills row */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--border);
}
.trust-row > div {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted);
}
.trust-row svg { color: var(--jade); flex-shrink: 0; }

/* "Listings to promote" mini list */
.lst-list { display: flex; flex-direction: column; gap: 6px; }
.lst-list__row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lst-list__num {
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--jade); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 10.5px;
  display: grid; place-items: center;
}
.lst-list__url {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ─── Subscription page ──────────────────────────────────────────────── */

.sub-hero {
  position: relative;
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade-700) 70%, #064E3B 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 28px 28px 26px;
  overflow: hidden;
  margin-bottom: 18px;
}
.sub-hero::before {
  /* Subtle decorative spark pattern */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(132, 204, 22, .18), transparent 40%),
    radial-gradient(circle at 12% 110%, rgba(255, 255, 255, .06), transparent 50%);
  pointer-events: none;
}
.sub-hero > * { position: relative; }
.sub-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.sub-hero__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600; letter-spacing: -.025em;
  margin: 12px 0 8px;
  line-height: 1.1;
  color: #fff;
}
.sub-hero__price {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.sub-hero__price .amt { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.sub-hero__price .per { font-size: 13px; opacity: .8; font-family: var(--font-sans); }
.sub-hero__sub { font-size: 13.5px; color: rgba(255,255,255,.78); max-width: 460px; }

/* meta strip below hero */
.sub-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 820px) { .sub-meta { grid-template-columns: repeat(2, 1fr); } }
.sub-meta__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.sub-meta__lbl {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
}
.sub-meta__lbl svg { color: var(--muted-2); }
.sub-meta__val {
  margin-top: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.sub-meta__val.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sub-meta__sub {
  font-size: 11.5px; color: var(--muted); margin-top: 2px;
}

/* auto-renewal card */
.renew-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--jade-50);
  border: 1px solid var(--jade-100);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.renew-card__ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: #fff; border: 1px solid var(--jade-100);
  color: var(--jade-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.renew-card__txt { flex: 1; min-width: 0; }
.renew-card__title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--jade-700);
}
.renew-card__sub { font-size: 12px; color: var(--jade-700); opacity: .85; margin-top: 1px; }

/* Action bar */
.action-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}

/* Payment history table */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.history-table th {
  text-align: left;
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.history-table tr:last-child td { border-bottom: 0; }
.history-table td.mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500;
}
.history-table a { font-size: 12px; }

/* Plans grid (subscription page) */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 820px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-card.is-current {
  border: 1.5px solid var(--jade);
  background: var(--jade-50);
  box-shadow: 0 0 0 4px rgba(4,120,87,.06);
}
.plan-card__current-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: var(--jade); color: #fff; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(4,120,87,.4);
}
.plan-card__name { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -.005em; }
.plan-card__price {
  display: flex; align-items: baseline; gap: 3px;
  margin-top: 6px;
}
.plan-card__price .amt { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.plan-card__price .per { font-size: 12px; color: var(--muted); margin-left: 3px; }
.plan-card__bullets {
  list-style: none; padding: 0; margin: 14px 0;
  display: flex; flex-direction: column; gap: 7px;
  flex: 1;
}
.plan-card__bullets li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; color: #374151; line-height: 1.4;
}
.plan-card__bullets svg { color: var(--jade); flex-shrink: 0; margin-top: 2px; }
.plan-card .btn { width: 100%; }

/* FAQ list */
.faq-list {
  display: flex; flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  cursor: pointer;
  background: transparent; border: 0; padding: 0; width: 100%;
  font-family: inherit; text-align: left;
}
.faq-item__q .ico {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center;
  transition: transform var(--t), background var(--t);
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__q .ico {
  background: var(--jade-50); color: var(--jade);
  transform: rotate(180deg);
}
.faq-item__a {
  margin-top: 8px;
  font-size: 13px; color: var(--muted); line-height: 1.55;
  max-width: 720px;
}


/* ─── Misc bits ──────────────────────────────────────────────────────── */

.divider { height: 1px; background: var(--border); margin: 14px 0; }

.field-row {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 12px;
}
.field-row:last-child { margin-bottom: 0; }
.field-row__hint {
  font-size: 11px; color: var(--muted-2);
  margin-top: 4px;
  display: flex; align-items: center; gap: 5px;
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger-100);
  font-weight: 500;
}
.btn-danger-ghost:hover { background: var(--danger-50); }
.btn-warn-ghost {
  background: transparent;
  color: var(--warn);
  border: 1px solid var(--warn-100);
  font-weight: 500;
}
.btn-warn-ghost:hover { background: var(--warn-50); }


/* ─── Density variants ───────────────────────────────────────────────── */
.density-compact .form-section__hd { padding: 10px 14px; }
.density-compact .form-section__body { padding: 12px 14px 14px; }
.density-compact .svc-card { padding: 12px; gap: 8px; }
.density-compact .pkg-card { padding: 12px; }
.density-compact .summary-card__hd { padding: 12px 14px; }
.density-compact .summary-card__body { padding: 10px 14px 4px; }
.density-compact .summary-total { padding: 10px 14px; }
.density-compact .summary-cta { padding: 12px 14px 14px; }
.density-compact .sub-hero { padding: 22px 22px 20px; }
.density-compact .plan-card { padding: 14px 14px 12px; }

/* ============================================================
   History page (user/history.php)
   Segmented tabs, stat strip, filter bar, promotion rows,
   payment-table extras, empty state.
   ============================================================ */

/* ─── Segmented tab switcher ─────────────────────────────────────────── */
.hist-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.hist-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.hist-tab:hover { color: var(--text); }
.hist-tab__ico {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted-2);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.hist-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.hist-tab[aria-selected="true"] .hist-tab__ico {
  background: var(--jade-50); border-color: var(--jade-100); color: var(--jade);
}
.hist-tab__count {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11px; font-weight: 600;
  min-width: 22px; padding: 2px 7px; border-radius: 999px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted-2);
}
.hist-tab[aria-selected="true"] .hist-tab__count {
  background: var(--jade-50); border-color: var(--jade-100); color: var(--jade-700);
}

/* ─── Stat-card strip ────────────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 780px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 13px 15px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 84px; justify-content: space-between;
  transition: border-color var(--t);
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-card__lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
  display: flex; align-items: center; gap: 6px;
}
.stat-card__num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 27px; font-weight: 600; letter-spacing: -.025em; line-height: 1;
  color: var(--text);
}
.stat-card__num .cur { font-size: 17px; color: var(--muted-2); margin-right: 1px; }
.stat-card__num .cents { font-size: 17px; color: var(--muted-2); }
.stat-card__sub { font-size: 11.5px; color: var(--muted); margin-top: -2px; }

.stat-card--primary {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(132, 204, 22, .28) 0%, transparent 55%),
    linear-gradient(150deg, var(--jade) 0%, var(--jade-700) 100%);
  border-color: var(--jade-700);
  box-shadow: var(--shadow-cta), 0 12px 28px -18px rgba(4, 120, 87, .5);
}
.stat-card--primary .stat-card__num { color: #fff; font-size: 29px; }
.stat-card--primary .stat-card__num .cur,
.stat-card--primary .stat-card__num .cents { color: rgba(255, 255, 255, .72); }
.stat-card--primary .stat-card__lbl { color: rgba(255, 255, 255, .82); }
.stat-card--primary .stat-card__sub { color: rgba(255, 255, 255, .72); }

/* ─── Filter bar ─────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 12px 15px;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-field--search { flex: 1 1 240px; }
.filter-field--select { flex: 0 1 190px; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; height: 40px; padding: 0 34px 0 12px;
  border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: var(--text-base);
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
  transition: border-color var(--t), background var(--t);
}
.select-wrap select:focus { border-color: var(--jade); background: var(--surface); }
.select-wrap__chev {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); pointer-events: none;
  display: inline-flex;
}

.search-wrap { position: relative; }
.search-wrap .input { padding-left: 36px; }
.search-wrap__ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); pointer-events: none;
  display: inline-flex;
}

.filter-reset {
  height: 40px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.filter-reset:hover { color: var(--text); border-color: var(--text); }

/* ─── Status badges (extra tones for history) ────────────────────────── */
.badge-active {
  background: var(--lime-50); color: var(--lime-700); border-color: var(--lime-100);
}
.badge-active::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--lime);
  display: inline-block;
}
.badge-neutral {
  background: var(--surface-2); color: var(--muted); border-color: var(--border);
}

/* ─── Promotion rows (history list) ──────────────────────────────────── */
.prom-list { display: flex; flex-direction: column; }
.prom-list .prom-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: background var(--t);
  background: transparent;
}
.prom-list .prom-row:last-child { border-bottom: 0; }
.prom-list .prom-row:hover { background: var(--surface-2); }

.prom-list .prom-row__icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--jade-50); color: var(--jade);
}
.prom-list .prom-row__icon.svc-boost { background: var(--jade-50); color: var(--jade); }
.prom-list .prom-row__icon.svc-track { background: oklch(95% 0.02 250); color: oklch(40% 0.06 250); }
.prom-list .prom-row__icon.svc-shop  { background: var(--warn-50); color: var(--warn); }
.prom-list .prom-row__icon.svc-audit { background: var(--lime-50); color: var(--lime-700); }

.prom-list .prom-row__body { min-width: 0; }
.prom-list .prom-row__lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.prom-list .prom-row__lbl .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
  display: inline-block;
}
.prom-list .prom-row__id {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  text-transform: none; letter-spacing: 0; color: var(--muted-2); font-weight: 500;
}
.prom-list .prom-row__title {
  margin-top: 4px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prom-row__meta {
  margin-top: 5px;
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.prom-row__meta > * { white-space: nowrap; }
.prom-row__meta .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--muted-3);
  display: inline-block;
}
.prom-row__meta .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.prom-result {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--jade-50); border: 1px solid var(--jade-100);
  color: var(--jade-700); font-size: 11px; font-weight: 600;
}
.prom-result .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.prom-result--muted { background: var(--surface-2); border-color: var(--border); color: var(--muted); }

.prom-list .prom-row__right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0;
}
.prom-list .prom-row__amount {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
}
.prom-list .prom-row__amount .per {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--muted-2);
}

/* ─── Payment table extras ───────────────────────────────────────────── */
.history-table .txn-id {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11.5px; font-weight: 600; color: var(--jade-700);
}
.history-table .txn-id--none { color: var(--muted-3); font-weight: 500; }
.history-table .desc-id {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--jade); font-weight: 600;
  text-decoration: none;
}
.history-table .desc-id:hover { text-decoration: underline; }
.history-table .desc-svc { color: var(--text); }
.history-table .pay-method {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
}
.history-table tbody tr { transition: background var(--t); }
.history-table tbody tr:hover { background: var(--surface-2); }
.history-table .amt-cell {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 600; text-align: right; color: var(--text);
}
.history-table .amt-cell.is-refund { color: var(--muted-2); text-decoration: line-through; }

/* ─── Empty state ────────────────────────────────────────────────────── */
.hist-empty {
  padding: 52px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.hist-empty__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); color: var(--muted-2);
  border: 1px dashed var(--border-strong);
  display: grid; place-items: center; margin-bottom: 6px;
}
.hist-empty__title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.hist-empty__sub { font-size: 12.5px; color: var(--muted); max-width: 320px; }

/* ─── Pagination (history) ───────────────────────────────────────────── */
.hist-pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 15px; border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px; color: var(--muted);
}
.hist-pager__nav { display: flex; gap: 4px; }
.hist-pager__btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid var(--border-strong); border-radius: 7px;
  background: var(--surface); color: var(--muted);
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.hist-pager__btn:hover { color: var(--text); border-color: var(--text); }
.hist-pager__btn[aria-current="page"] {
  background: var(--jade); border-color: var(--jade); color: #fff;
}

@media (max-width: 640px) {
  .filter-field--select { flex: 1 1 100%; }
  .history-table { font-size: 11.5px; }
  .history-table th, .history-table td { padding: 8px 10px; }
}

/* ============================================================
   SERVICE DETAIL PAGES (Listing Boost / Position Tracking / Shop Auto)
   Used by: /user/order-detail.php
   ============================================================ */
.svc-page { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }
@media (max-width: 720px) { .svc-page { padding: 16px 14px 48px; } }

/* — Hero — */
.svc-hero {
  position: relative; border-radius: 18px; padding: 22px 24px 28px;
  color: #FBFAF7; margin-bottom: 18px;
  background: #0f3d2e;
  box-shadow: 0 12px 36px -16px rgba(4, 28, 22, .35);
  overflow: hidden;
}
.svc-hero--c-listing { background: linear-gradient(135deg, #065F46 0%, #0F3D2E 100%); }
.svc-hero--c-track   { background: linear-gradient(135deg, #3C3F94 0%, #221E5C 100%); }
.svc-hero--c-shop    { background: linear-gradient(135deg, #0E5A6B 0%, #08323D 100%); }

.svc-hero__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
.svc-hero__ident { min-width: 0; flex: 1 1 320px; }

.svc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 10px;
}
.svc-hero__status-inline {
  display: inline-flex; align-items: center; padding: 3px 8px;
  border-radius: 999px; background: rgba(132, 204, 22, .18);
  color: #D9F99D; font-weight: 600; letter-spacing: .04em;
}
.svc-hero__status-inline::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #84CC16; margin-right: 6px;
}
.svc-hero__title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: "General Sans", system-ui, sans-serif;
  font-size: 22px; font-weight: 600; line-height: 1.2; color: #fff;
  margin: 0;
}
.svc-hero__tier {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92); letter-spacing: .02em;
}
.svc-hero__tier--count { font-family: var(--font-mono); }
.svc-hero__tier--count b { color: #fff; font-weight: 700; margin-right: 2px; }
.svc-hero__sub-row {
  margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.svc-hero__order-id {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,.78);
}
.svc-hero__order-id .k {
  color: rgba(255,255,255,.5); font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; margin-right: 2px;
}

.svc-hero__top-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  min-width: 0;
}
.svc-hero__price {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono);
}
.svc-hero__price .amt { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.svc-hero__price .per { font-size: 12px; color: rgba(255,255,255,.66); }
.svc-hero__top-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.svc-hero__manage-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  text-decoration: none; font-family: inherit;
  transition: background .14s ease, transform .14s ease;
}
.svc-hero__manage-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.svc-hero__manage-btn--primary {
  background: #fff; color: var(--text); border-color: #fff;
}
.svc-hero__manage-btn--primary:hover { background: #F6F4EE; color: var(--text); }

/* — Hero cycle/timeline — */
.svc-hero__cycle { margin-top: 22px; }
.svc-hero__cycle-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11.5px; color: rgba(255,255,255,.7); margin-bottom: 9px; flex-wrap: wrap;
}
.svc-hero__cycle-head .seg { display: inline-flex; align-items: center; gap: 5px; }
.svc-hero__cycle-head .seg b { color: #fff; font-weight: 600; }
.svc-hero__cycle-mid {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: rgba(255,255,255,.82);
}
.svc-hero__track {
  position: relative; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.14); overflow: visible;
}
.svc-hero__track-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(132,204,22,.95) 0%, rgba(132,204,22,.65) 100%);
}
.svc-hero__track-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.svc-hero__track-marker .flag {
  position: absolute; bottom: 14px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 3px 8px; border-radius: 6px;
  background: #FBFAF7; color: var(--text); border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.25);
}
.svc-hero__track-marker .flag b { font-weight: 700; }
.svc-hero__track-marker .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #FBFAF7; border: 3px solid #84CC16;
  box-shadow: 0 0 0 3px rgba(132,204,22,.18);
}

/* — KPI strip — */
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 720px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px;
}
.kpi--accent {
  background: linear-gradient(180deg, var(--jade-50) 0%, #fff 100%);
  border-color: var(--jade-100);
}
.kpi__hd { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.kpi__icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; flex-shrink: 0;
}
.kpi--accent .kpi__icon { background: var(--jade-100); color: var(--jade-700); }
.kpi__lbl { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.kpi__num {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em; line-height: 1.1;
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
}
.kpi__num .small { font-size: 12px; font-weight: 500; color: var(--muted); }
.kpi__num-trend {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; margin-left: auto;
  padding: 2px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.kpi__num-trend--up   { background: var(--jade-50);   color: var(--jade-700); }
.kpi__num-trend--down { background: var(--danger-50); color: var(--danger);   }

/* — Toolbar — */
.svc-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 2px; margin-bottom: 12px;
}
.svc-toolbar--split { justify-content: space-between; flex-wrap: wrap; }
.svc-updated {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; color: var(--muted);
}
.svc-updated__lead { display: inline-flex; align-items: center; gap: 5px; }
.svc-updated__dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--muted-3);
}
.svc-updated__recheck { color: var(--muted-2); }

/* — Listing card (new) — */
.listing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 14px; overflow: hidden;
}
.listing-card__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); flex-wrap: wrap;
}
.listing-card__hd--lb .listing-card__lb-main { min-width: 0; flex: 1; }
.listing-card__lb-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0;
}
.listing-card__lb-name {
  font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%;
}
.listing-card__hd-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lid-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
}
.lid-link:hover { background: var(--surface-2); color: var(--jade-700); }
.lid-link--name { font-family: inherit; font-weight: 600; }
.lid-link__k {
  color: var(--muted-2); font-size: 10px; text-transform: uppercase;
  letter-spacing: .06em; font-family: inherit; font-weight: 600;
}
.lid-link__id { color: var(--text); }

.listing-card__replace {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-family: inherit;
}
.listing-card__replace:hover { background: var(--surface-2); border-color: var(--border-strong); }
.listing-card__replace--primary { background: var(--jade-50); border-color: var(--jade-100); color: var(--jade-700); }
.listing-card__replace--primary:hover { background: var(--jade-100); }
.listing-card__replace .meter {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(0,0,0,.05); color: var(--muted); margin-left: 2px;
}

/* — kw-table — */
.kw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kw-table thead th {
  text-align: left; padding: 10px 14px;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: var(--surface);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.kw-table thead th.num,
.kw-table thead th.center { text-align: center; }
.kw-table tbody td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text);
}
.kw-table tbody tr.kw-row { cursor: pointer; transition: background .12s ease; }
.kw-table tbody tr.kw-row:hover { background: var(--surface-2); }
.kw-table tbody tr.kw-row--open { background: var(--jade-50); }
.kw-table tbody tr:last-child td { border-bottom: 0; }
.kw-table .idx {
  width: 56px; color: var(--muted-2); font-family: var(--font-mono); font-size: 11.5px;
}
.kw-table .idx-cell { display: inline-flex; align-items: center; gap: 6px; }
.kw-table .kw { font-weight: 500; }
.kw-table .vol, .kw-table .comp {
  font-family: var(--font-mono); text-align: right; color: var(--muted);
}
.kw-table td.center { text-align: center; }

.row-chevron {
  width: 18px; height: 18px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 5px; color: var(--muted); cursor: pointer;
  transition: transform .15s ease;
}
.row-chevron--open { transform: rotate(180deg); background: var(--jade-50); color: var(--jade-700); border-color: var(--jade-100); }

.kw-status {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.kw-status.s-page1     { background: var(--jade-50);   color: var(--jade-700);   }
.kw-status.s-climbing-promo   { background: var(--lime-50);   color: var(--lime-700);   }
.kw-status.s-climbing-passive { background: var(--surface-2); color: var(--muted);      }
.kw-status.s-searching { background: var(--surface-2); color: var(--muted);      }
.kw-status.s-notfound  { background: var(--danger-50); color: var(--danger);     }
.kw-status.s-tracked   { background: var(--surface-2); color: var(--muted);      }

.position-cell {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
}
.position-cell--page1 { color: var(--jade-700); font-weight: 600; }
.position-cell--missing { color: var(--muted-2); }
.position-cell__page { font-weight: 600; }
.position-cell__sep { color: var(--muted-3); }
.position-cell__rank { color: var(--muted); }
.position-cell--page1 .position-cell__rank { color: var(--jade); }

/* — Sparkline — */
.sparkline {
  display: inline-block; width: 70px; height: 22px; vertical-align: middle;
}
.sparkline .line { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.sparkline .area { fill: rgba(107,114,128,.10); }
.sparkline.spark--up   .line { stroke: var(--jade);   }
.sparkline.spark--up   .area { fill: rgba(4,120,87,.10); }
.sparkline.spark--down .line { stroke: var(--danger); }
.sparkline.spark--down .area { fill: rgba(185,28,28,.08); }
.sparkline .end { fill: currentColor; }
.sparkline.spark--up   .end { fill: var(--jade);   }
.sparkline.spark--down .end { fill: var(--danger); }
.sparkline.spark--flat .end { fill: var(--muted);  }

/* — Tip card — */
.svc-tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--jade-50); border: 1px solid var(--jade-100);
  border-radius: 12px; padding: 12px 14px; margin-top: 14px;
  font-size: 12.5px; color: var(--jade-700);
}
.svc-tip--neutral { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.svc-tip__icon { flex-shrink: 0; color: inherit; display: inline-flex; }
.svc-tip__body { line-height: 1.55; }
.svc-tip a { font-weight: 600; }

/* — Section group header — */
.svc-group-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 2px 10px; gap: 8px;
}
.svc-group-hd__title {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-group-hd__title .count {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 7px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
