/* ==========================================================================
   Image SEO King — Design System
   imageseoking.net
   Layer: design tokens + components (Tailwind handles utilities)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-950: #05070f;
  --ink-900: #0b1020;
  --ink-800: #111935;
  --ink-700: #1b2450;
  --ink-600: #2a3568;

  --brand-500: #4f46e5;
  --brand-400: #6366f1;
  --brand-300: #8b8cf7;
  --violet-500: #7c3aed;
  --cyan-400: #22d3ee;

  --gold-500: #f5b301;
  --gold-400: #ffc531;
  --gold-300: #ffd97a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;

  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 1px 3px rgba(11, 16, 32, .08);
  --shadow-md: 0 8px 24px -8px rgba(11, 16, 32, .18), 0 2px 8px rgba(11, 16, 32, .06);
  --shadow-lg: 0 32px 64px -24px rgba(11, 16, 32, .35);
  --shadow-glow: 0 0 0 1px rgba(99, 102, 241, .25), 0 20px 60px -20px rgba(79, 70, 229, .55);

  --ring: 0 0 0 4px rgba(99, 102, 241, .18);
  --header-h: 76px;
  --sidebar-w: 264px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', var(--font-sans);
}

/* ---------- 2. Base ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4, .font-display { font-family: var(--font-display); letter-spacing: -0.025em; }

::selection { background: var(--brand-500); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* Scrollbar */
.scroll-slim::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-slim::-webkit-scrollbar-track { background: transparent; }
.scroll-slim::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .32); border-radius: 99px; }
.scroll-slim::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .55); }

/* ---------- 3. Typography helpers ---------- */
.text-gradient {
  background: linear-gradient(100deg, #fff 10%, var(--gold-300) 45%, var(--gold-500) 70%, #fff 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-brand {
  background: linear-gradient(100deg, var(--brand-500), var(--violet-500) 55%, var(--cyan-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 4. Layout ---------- */
.container-x { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 1024px) { .container-x { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }

/* ---------- 5. Backgrounds / decorative ---------- */
.bg-ink { background: var(--ink-900); }

.bg-mesh {
  position: relative;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(124, 58, 237, .38), transparent 60%),
    radial-gradient(50rem 36rem at 88% 8%, rgba(34, 211, 238, .22), transparent 62%),
    radial-gradient(44rem 34rem at 60% 110%, rgba(245, 179, 1, .18), transparent 60%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900) 45%, var(--ink-800));
}

.bg-grid::before {
  display: none !important;
  content: none !important;
}

.bg-dots {
  background-image: radial-gradient(rgba(79, 70, 229, .16) 1px, transparent 1px);
  background-size: 22px 22px;
}

.noise::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.glow-orb {
  position: absolute; border-radius: 999px; filter: blur(72px); opacity: .55; pointer-events: none;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: .875rem 1.375rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--violet-500));
  box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(79, 70, 229, .9); }

.btn-gold {
  color: #16130a;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 10px 30px -10px rgba(245, 179, 1, .7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(245, 179, 1, .85); }

.btn-ghost { color: var(--ink-900); background: transparent; border-color: rgba(11, 16, 32, .12); }
.btn-ghost:hover { background: rgba(11, 16, 32, .04); border-color: rgba(11, 16, 32, .2); }

.btn-glass {
  color: #fff; background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }

.btn-dark { color: #fff; background: var(--ink-900); }
.btn-dark:hover { background: var(--ink-800); transform: translateY(-2px); }

.btn-sm { padding: .625rem 1rem; font-size: .8125rem; }
.btn-lg { padding: 1.0625rem 1.875rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn-icon { padding: .625rem; border-radius: 12px; }

/* ---------- 7. Cards & surfaces ---------- */
.card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s ease, border-color .3s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, .35); }

/* App-style tool tiles (the Tools hub launcher) */
.tool-tile {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .28s ease, border-color .28s ease;
}
.tool-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, .35); }
.tool-tile.is-primary { border-color: rgba(245, 179, 1, .5); box-shadow: 0 0 0 1px rgba(245, 179, 1, .25), var(--shadow-sm); }
.tool-tile.is-primary:hover { border-color: var(--gold-500); box-shadow: 0 0 0 1px rgba(245, 179, 1, .4), var(--shadow-md); }
.tool-tile.is-locked { background: #fbfbfd; }
.tool-tile.is-locked:hover { border-color: var(--slate-300); }
.tool-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px; color: #fff;
}
.tool-icon svg { width: 23px; height: 23px; }
.tool-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 700; color: var(--brand-500);
}
.tool-cta svg { transition: transform .2s ease; }
.tool-tile:hover .tool-cta svg { transform: translateX(3px); }

.glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}
.glass-strong { background: rgba(17, 25, 53, .72); border-color: rgba(255, 255, 255, .1); }

/* Gradient border trick */
.border-gradient { position: relative; background: #fff; border-radius: var(--radius-lg); }
.border-gradient::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(140deg, rgba(99, 102, 241, .8), rgba(124, 58, 237, .25) 40%, rgba(245, 179, 1, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---------- 8. Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .3125rem .625rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.2;
}
.badge-brand { background: rgba(99, 102, 241, .1); color: var(--brand-500); }
.badge-gold { background: rgba(245, 179, 1, .14); color: #a37500; }
.badge-ok { background: rgba(16, 185, 129, .12); color: #047857; }
.badge-warn { background: rgba(245, 158, 11, .14); color: #b45309; }
.badge-danger { background: rgba(239, 68, 68, .1); color: #b91c1c; }
.badge-muted { background: var(--slate-100); color: var(--slate-600); }

.pill-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #dbe3f7; font-size: .8125rem; font-weight: 500;
  backdrop-filter: blur(10px);
}

.dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.dot-live { background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- 9. Forms ---------- */
.label { display: block; font-size: .8125rem; font-weight: 600; color: var(--slate-600); margin-bottom: .4375rem; }

.input, .select, .textarea {
  width: 100%; padding: .8125rem 1rem;
  font-size: .9375rem; font-family: inherit; color: var(--ink-900);
  background: #fff; border: 1px solid var(--slate-200); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: #a3aec0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: var(--ring);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.input-group { position: relative; }
.input-group .input { padding-left: 2.875rem; }
.input-group > svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate-400); pointer-events: none; }

.input-dark {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: #fff;
}
.input-dark::placeholder { color: rgba(219, 227, 247, .45); }

.check {
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--slate-200);
  accent-color: var(--brand-500); cursor: pointer;
}

/* Toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 46px; height: 26px; border-radius: 999px; background: var(--slate-200);
  transition: background-color .25s ease; position: relative;
}
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.switch input:checked + .switch-track { background: linear-gradient(135deg, var(--brand-500), var(--violet-500)); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }

/* ---------- 10. Navigation ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 7, 15, .78); backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header.header-light.is-stuck {
  background: rgba(255, 255, 255, .85); border-bottom-color: var(--slate-200); box-shadow: var(--shadow-sm);
}

.nav-link {
  position: relative; font-size: .9375rem; font-weight: 500; color: rgba(219, 227, 247, .78);
  padding: .5rem .125rem; text-decoration: none; transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--brand-400));
  transition: width .25s cubic-bezier(.2, .8, .3, 1);
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.header-light .nav-link { color: var(--slate-600); }
.header-light .nav-link:hover, .header-light .nav-link.is-active { color: var(--ink-900); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; padding-top: var(--header-h);
  background: rgba(5, 7, 15, .97); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a { display: block; padding: 1rem 0; font-size: 1.125rem; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .07); text-decoration: none; }

.burger { width: 22px; height: 14px; position: relative; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .2s, width .3s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; width: 70%; }
.burger span:nth-child(3) { top: 12px; }
.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 11. Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand-500), var(--violet-500) 60%, var(--gold-500));
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, .9);
}
.logo-mark svg { width: 21px; height: 21px; color: #fff; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.1; }
.logo-text span { display: block; font-family: var(--font-sans); font-size: .625rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }

/* ---------- 12. Feature / icon tiles ---------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(124, 58, 237, .08));
  color: var(--brand-500); border: 1px solid rgba(99, 102, 241, .16);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile-gold { background: linear-gradient(135deg, rgba(245, 179, 1, .18), rgba(245, 179, 1, .06)); color: #b47f02; border-color: rgba(245, 179, 1, .22); }
.icon-tile-cyan { background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .05)); color: #0891b2; border-color: rgba(34, 211, 238, .22); }
.icon-tile-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 13. Pricing ---------- */

/* Grid shell. Reserves the vertical room the floating badges and the featured
   card's overhang need, so neither ever clips or forces a horizontal scroll.
   The column counts stay with the utility classes in the templates. */
.pricing-grid { position: relative; padding-top: 1.5rem; align-items: stretch; }
@media (min-width: 1024px) { .pricing-grid { padding-block: 2rem 1.75rem; } }

.price-card {
  position: relative; display: flex; flex-direction: column; height: 100%; isolation: isolate;
  padding: 1.875rem 1.5rem 2rem; border-radius: var(--radius-lg);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s cubic-bezier(.2, .8, .3, 1), border-color .35s;
}
@media (min-width: 640px) { .price-card { padding: 2.125rem 1.75rem 2.25rem; } }

/* Standard cards: a whisper of the brand gradient along the top edge, revealed on
   hover — an accent, never noise. */
.price-card.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1; pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--brand-400) 28%, var(--violet-500) 72%, transparent);
  opacity: 0; transition: opacity .35s;
}
.price-card.card:hover::before { opacity: .9; }

/* Plain plans lift and pick up a soft brand-tinted shadow so the row feels alive
   next to the hero card. */
.price-card.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px -24px rgba(79, 70, 229, .42), var(--shadow-md);
  border-color: rgba(99, 102, 241, .4);
}

/* Featured = "Most popular": dark hero card. On desktop it grows *vertically*
   (negative block margin) rather than scaling, so a wide card can never spill
   past the container and trigger horizontal overflow on narrow screens. */
.price-card.is-featured {
  background:
    radial-gradient(130% 90% at 50% -12%, rgba(124, 58, 237, .44), transparent 58%),
    linear-gradient(168deg, var(--ink-800), var(--ink-900));
  color: #fff; box-shadow: var(--shadow-glow);
  border: 1px solid rgba(139, 140, 247, .42);
}
/* Faint inner top highlight — real depth on the dark card without extra noise.
   Sits below content (z-index:-1, above the card's own fill via `isolation`). */
.price-card.is-featured::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 20%);
}
@media (min-width: 1024px) {
  .price-card.is-featured { margin-block: -1.5rem; padding-block: 3.25rem; z-index: 2; }
}
.price-card.is-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 42px 84px -32px rgba(124, 58, 237, .68), var(--shadow-glow);
}

/* --- Card head --- */
.price-name {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2;
}
.price-tagline {
  margin-top: .4375rem; font-size: .875rem; line-height: 1.5; color: var(--slate-500);
  min-height: 2.625rem; /* two lines — keeps the price row aligned across cards */
}
.price-card.is-featured .price-name { color: #fff; }
.price-card.is-featured .price-tagline { color: #cbd5e1; }

/* --- Price figure ---
   Wraps rather than overflowing: the "/ month, billed yearly" label is long,
   and it drops to its own line identically on every card, so the CTAs below
   stay on the same baseline. */
.price-figure { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .25rem; margin-top: 1.375rem; min-width: 0; }
.price-currency {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 700;
  line-height: 1; margin-top: .3125rem; color: var(--slate-400);
}
.price-amount {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  letter-spacing: -.04em; line-height: 1;
}
.price-cycle {
  align-self: flex-end; margin-bottom: .375rem; margin-left: .125rem;
  font-size: .8125rem; font-weight: 500; color: var(--slate-500); white-space: nowrap;
}
.price-card.is-featured .price-currency { color: #a5b4fc; }
.price-card.is-featured .price-cycle { color: #cbd5e1; }

/* Reserved region so cards with and without a saving note stay aligned. Holds a
   green "save X%" pill plus an optional yearly-only annual figure (revealed by the
   billing toggle), or the free-plan note. */
.price-note {
  margin-top: .75rem; min-height: 1.625rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.price-save {
  display: inline-flex; align-items: center; gap: .3125rem;
  padding: .25rem .5625rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .01em; line-height: 1;
  color: #047857; background: rgba(16, 185, 129, .13);
}
.price-annual, .price-free-note {
  font-size: .75rem; font-weight: 600; line-height: 1.1; color: var(--slate-500);
}
.price-card.is-featured .price-save { color: var(--gold-300); background: rgba(255, 197, 49, .16); }
.price-card.is-featured .price-annual,
.price-card.is-featured .price-free-note { color: #cbd5e1; }

/* --- CTA --- */
.price-cta { margin-top: 1.375rem; }
.price-cta:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; box-shadow: none; }
.price-card.is-featured .price-cta:focus-visible { outline-color: var(--gold-300); }
.price-card.is-featured .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.price-card.is-featured .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
/* Always rendered (empty when the tier has no trial) so every card's feature
   list starts on exactly the same line. */
.price-trial { margin-top: .5625rem; min-height: 1.0625rem; text-align: center; font-size: .75rem; line-height: 1.0625rem; color: var(--slate-500); }
.price-card.is-featured .price-trial { color: #cbd5e1; }

/* --- Feature list --- */
.price-features {
  margin-top: 1.5rem; padding-top: 1.375rem; border-top: 1px solid var(--slate-200);
}
.price-card.is-featured .price-features { border-top-color: rgba(255, 255, 255, .16); }
.price-features-title {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-500);
}
.price-card.is-featured .price-features-title { color: #c7d2fe; }

.price-list { display: grid; gap: .75rem; margin-top: .9375rem; font-size: .875rem; line-height: 1.45; color: var(--slate-600); }
.price-list li { display: flex; gap: .625rem; align-items: flex-start; min-width: 0; }
.price-list li > span { overflow-wrap: anywhere; }
.price-list > li > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ok); }
.price-card.is-featured .price-list { color: #e2e8f0; }
.price-card.is-featured .price-list > li > svg { color: var(--gold-300); }

/* Check chip — the tick sits in a soft disc so long lists stay easy to scan. */
.price-check {
  width: 18px; height: 18px; border-radius: 999px; flex: none; margin-top: .0625rem;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, .12); color: #047857;
}
.price-check svg { width: 11px; height: 11px; }
.price-card.is-featured .price-check { background: rgba(255, 197, 49, .18); color: var(--gold-300); }

/* Optional "not included" rows: muted text + a dash, never colour alone. */
.price-list li.is-off { color: var(--slate-400); }
.price-list li.is-off .price-check { background: var(--slate-100); color: var(--slate-400); }
.price-card.is-featured .price-list li.is-off { color: #94a3b8; }
.price-card.is-featured .price-list li.is-off .price-check { background: rgba(255, 255, 255, .08); color: #94a3b8; }

/* The plan the customer is already on: calm brand ring, never the dark hero —
   "recommended" and "your current plan" must not look like the same thing. */
.price-card.is-current {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14), var(--shadow-sm);
  background: linear-gradient(180deg, rgba(99, 102, 241, .05), #fff 55%);
}
/* The plan you're on keeps its brand accent lit at all times — it's a statement,
   not a hover reward. Overrides the standard card's hidden-until-hover accent. */
.price-card.is-current::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--brand-500), var(--violet-500));
}
.badge-current {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .8125rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; white-space: nowrap; background: var(--brand-500);
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .6);
}
.badge-current svg { width: 12px; height: 12px; }

/* "Most popular" badge — gradient pill with a glow, floated over the top edge. */
.badge-popular {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .4375rem .9375rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(135deg, var(--brand-500), var(--violet-500) 55%, var(--gold-500));
  box-shadow: 0 10px 26px -6px rgba(124, 58, 237, .65), 0 0 0 4px rgba(124, 58, 237, .12);
}
.badge-popular svg { width: 13px; height: 13px; }

/* Shared anchor for both card badges: centred, straddling the top edge. */
.price-badge {
  position: absolute; top: 0; left: 50%; z-index: 3;
  transform: translate(-50%, -50%);
}

.billing-toggle {
  display: inline-flex; padding: .3125rem; border-radius: 999px;
  background: var(--slate-100); border: 1px solid var(--slate-200);
  box-shadow: inset 0 1px 2px rgba(11, 16, 32, .06);
}
.billing-toggle button {
  position: relative; padding: .5625rem 1.375rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--slate-500);
  border: none; background: transparent; cursor: pointer;
  transition: color .25s, background-color .25s, box-shadow .25s;
}
.billing-toggle button:hover { color: var(--ink-900); }
.billing-toggle button:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; box-shadow: none; }
.billing-toggle button.is-active {
  color: var(--ink-900); background: #fff;
  box-shadow: 0 1px 2px rgba(11, 16, 32, .09), 0 3px 10px -3px rgba(11, 16, 32, .12);
}
/* Small discount chip that rides inside the "Yearly" toggle button. */
.billing-toggle .toggle-save {
  margin-left: .4375rem; padding: .125rem .4375rem; border-radius: 999px;
  font-size: .625rem; font-weight: 800; letter-spacing: .02em; line-height: 1;
  color: #047857; background: rgba(16, 185, 129, .16); vertical-align: middle;
  transition: background-color .25s;
}
.billing-toggle button.is-active .toggle-save { background: rgba(16, 185, 129, .22); }

/* --- Checkout: plan / order summary --- */
.plan-summary-head {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.25rem;
  color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124, 58, 237, .55), transparent 62%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
}
.summary-rows { display: grid; gap: .0625rem; font-size: .875rem; }
.summary-rows > li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .625rem .875rem; background: var(--slate-50); border: 1px solid var(--slate-200);
}
.summary-rows > li:first-child { border-radius: 12px 12px 0 0; }
.summary-rows > li:last-child { border-radius: 0 0 12px 12px; }
.summary-rows > li + li { border-top: 0; }
.summary-rows dt, .summary-rows .k { color: var(--slate-500); }
.summary-rows dd, .summary-rows .v { font-weight: 600; color: var(--ink-900); text-align: right; }
.summary-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.125rem; border-radius: 14px;
  background: linear-gradient(180deg, rgba(99, 102, 241, .08), rgba(99, 102, 241, .03));
  border: 1px solid rgba(99, 102, 241, .22);
}

/* ---------- 14. Marquee / logo strip ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 15. Accordion ---------- */
.acc-item { border-bottom: 1px solid var(--slate-200); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.375rem 0; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--ink-900);
}
.acc-icon { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; flex: none; background: var(--slate-100); color: var(--slate-600); transition: transform .3s, background-color .3s, color .3s; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--brand-500); color: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .3, 1); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: 1.375rem; color: var(--slate-600); line-height: 1.7; max-width: 62ch; }

/* ---------- 16. Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.table thead th {
  text-align: left; padding: .875rem 1rem; white-space: nowrap;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500);
  background: var(--slate-50); border-bottom: 1px solid var(--slate-200);
}
.table thead th:first-child { border-top-left-radius: 12px; }
.table thead th:last-child { border-top-right-radius: 12px; }
.table tbody td { padding: .9375rem 1rem; border-bottom: 1px solid var(--slate-100); vertical-align: middle; white-space: nowrap; }
.table tbody tr { transition: background-color .18s; }
.table tbody tr:hover { background: #fbfcfe; }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 17. Dashboard shell ---------- */
.app-body { background: #f6f7fb; color: var(--ink-900); }

.sidebar {
  position: fixed; inset-block: 0; left: 0; width: var(--sidebar-w); z-index: 50;
  display: flex; flex-direction: column; padding: 1.25rem 1rem;
  background: var(--ink-900); color: #cdd6ee;
  border-right: 1px solid rgba(255, 255, 255, .06);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.sidebar.is-open { transform: translateX(0); }
@media (min-width: 1024px) { .sidebar { transform: translateX(0); } }

.side-group { margin-top: 1.5rem; }
.side-group-title { padding: 0 .75rem .5rem; font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(205, 214, 238, .38); }

.side-link {
  display: flex; align-items: center; gap: .75rem; padding: .6875rem .75rem; border-radius: 12px;
  font-size: .875rem; font-weight: 500; color: rgba(205, 214, 238, .78); text-decoration: none;
  transition: background-color .2s, color .2s; position: relative;
}
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.is-active { background: linear-gradient(100deg, rgba(99, 102, 241, .28), rgba(124, 58, 237, .12)); color: #fff; }
.side-link.is-active::before {
  content: ''; position: absolute; left: -1rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--gold-400), var(--brand-400));
}
.side-link .count { margin-left: auto; font-size: .6875rem; font-weight: 700; padding: .125rem .4375rem; border-radius: 999px; background: rgba(255, 255, 255, .1); }

.app-main { min-height: 100vh; }
@media (min-width: 1024px) { .app-main { padding-left: var(--sidebar-w); } }

.app-topbar {
  position: sticky; top: 0; z-index: 40; height: 68px;
  display: flex; align-items: center; gap: 1rem; padding-inline: 1.25rem;
  background: rgba(246, 247, 251, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
}
@media (min-width: 1024px) { .app-topbar { padding-inline: 2rem; } }

.app-content { padding: 1.5rem 1.25rem 3rem; }
@media (min-width: 1024px) { .app-content { padding: 2rem 2rem 4rem; } }

.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(5, 7, 15, .5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.is-open { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .scrim { display: none; } }

/* Stat cards */
.stat { padding: 1.375rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.trend { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 700; }
.trend-up { color: #059669; }
.trend-down { color: #dc2626; }

/* Dropzone */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center;
  padding: 3rem 1.5rem; border-radius: var(--radius-lg);
  border: 2px dashed var(--slate-200); background: #fff;
  transition: border-color .25s, background-color .25s, transform .25s;
}
.dropzone:hover { border-color: var(--brand-400); background: #fafaff; }
.dropzone.is-dragging { border-color: var(--brand-500); background: rgba(99, 102, 241, .06); transform: scale(1.01); }

.progress { height: 6px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--violet-500)); transition: width .5s cubic-bezier(.2, .8, .3, 1); }
.progress-gold > i { background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); }

/* Image tile */
.img-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--slate-100); aspect-ratio: 4 / 3; }
.img-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.img-tile:hover img { transform: scale(1.07); }
.img-tile-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: .875rem;
  background: linear-gradient(to top, rgba(5, 7, 15, .88), rgba(5, 7, 15, .1) 55%, transparent);
  opacity: 0; transition: opacity .3s;
}
.img-tile:hover .img-tile-overlay { opacity: 1; }

/* ---------- 18. Charts (pure CSS/SVG) ---------- */
.spark { width: 100%; height: 48px; display: block; }
.bar-chart { display: flex; align-items: flex-end; gap: .5rem; height: 190px; }
.bar-chart .bar { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--brand-400), rgba(99, 102, 241, .25)); transition: opacity .2s, transform .2s; transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .3, 1) backwards; }
.bar-chart .bar:hover { opacity: .85; }
@keyframes grow { from { transform: scaleY(0); } }

.donut { transform: rotate(-90deg); }
.donut circle { fill: none; stroke-linecap: round; }

/* ---------- 19. Footer ---------- */
.footer-link { color: rgba(205, 214, 238, .62); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer-link:hover { color: #fff; }

.pay-icon {
  height: 34px; min-width: 54px; padding-inline: .5rem; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .2s, transform .2s;
}
.pay-icon:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.pay-icon svg, .pay-icon img { height: 16px; width: auto; }

.trust-badge {
  display: flex; align-items: center; gap: .625rem; padding: .625rem .875rem; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .75rem; line-height: 1.3; color: rgba(205, 214, 238, .82);
}
.trust-badge svg { width: 22px; height: 22px; flex: none; color: #34d399; }

/* ---------- 20. Misc ---------- */
.avatar { border-radius: 999px; object-fit: cover; background: var(--slate-200); flex: none; }
.avatar-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(99, 102, 241, .35); }

.divider-x { height: 1px; background: linear-gradient(90deg, transparent, var(--slate-200) 20%, var(--slate-200) 80%, transparent); }
.divider-dark { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }

.tab-bar { display: flex; gap: .25rem; border-bottom: 1px solid var(--slate-200); overflow-x: auto; }
.tab {
  padding: .8125rem 1rem; font-size: .875rem; font-weight: 600; color: var(--slate-500);
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink-900); }
.tab.is-active { color: var(--brand-500); border-bottom-color: var(--brand-500); }

.toast-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; display: grid; gap: .625rem; }
.toast {
  display: flex; align-items: center; gap: .75rem; padding: .875rem 1.125rem; border-radius: 14px;
  background: var(--ink-900); color: #fff; box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 500;
  animation: toast-in .4s cubic-bezier(.2, .8, .3, 1);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.is-leaving { animation: toast-out .3s forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.25rem; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 15, .6); backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .3, 1); max-height: 88vh; overflow-y: auto; }
.modal.is-open .modal-panel { transform: none; }

.skeleton { background: linear-gradient(90deg, var(--slate-100) 25%, #e9edf4 37%, var(--slate-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -135% 0; } }

.code-block {
  background: var(--ink-900); color: #dbe3f7; border-radius: var(--radius);
  padding: 1.125rem 1.25rem; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .8125rem; line-height: 1.75; overflow-x: auto;
}
.code-block .tok-key { color: var(--gold-400); }
.code-block .tok-str { color: #86efac; }
.code-block .tok-com { color: #64748b; }

/* Prose (blog article) */
.prose { color: var(--slate-600); font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.375rem; }
.prose h2 { font-size: 1.75rem; font-weight: 700; color: var(--ink-900); margin-top: 3rem; }
.prose h3 { font-size: 1.3125rem; font-weight: 700; color: var(--ink-900); margin-top: 2.25rem; }
.prose a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.375rem; display: grid; gap: .625rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote { border-left: 3px solid var(--brand-500); padding: .25rem 0 .25rem 1.375rem; font-size: 1.1875rem; color: var(--ink-800); font-style: italic; }
.prose img { border-radius: var(--radius); width: 100%; }
.prose code { background: var(--slate-100); padding: .1875rem .375rem; border-radius: 6px; font-size: .875em; color: var(--violet-500); }

/* ---------- 21. Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.float-y { animation: float-y 6s ease-in-out infinite; }
@keyframes float-y { 50% { transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 22. Overflow guards ----------
   Grid and flex children default to `min-width: auto`, which lets an
   intrinsically wide child (a data table, a code block, a long token) push the
   whole column past the viewport on small screens. Forcing `min-width: 0` lets
   the column shrink so the inner scroll container does its job instead. */
[class*="grid-cols"] > *,
[class*="flex"] > .table-wrap,
[class*="flex"] > .tab-bar { min-width: 0; }

.table-wrap, .tab-bar, .code-block, .prose pre, .marquee { max-width: 100%; }

/* Nothing may create horizontal page scroll. */
.app-content, .container-x { overflow-x: clip; }

/* ---------- 23. Print ---------- */
@media print {
  .site-header, .sidebar, .app-topbar, .no-print { display: none !important; }
  .app-main { padding-left: 0; }
}

/* ==========================================================================
   24. Super Admin dashboard — APPEND-ONLY, additive.
   Every selector below is namespaced `adm-*` and used solely by
   resources/views/admin/index.blade.php. Nothing above this banner is
   modified. These rules reuse the design tokens declared at the top of
   this file so the console stays on-brand with the rest of the app.
   ========================================================================== */

/* --- Page intro / section rhythm --- */
.adm-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.5rem;
}
.adm-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500);
}
.adm-eyebrow::before {
  content: ''; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--gold-400));
}
.adm-hero-title {
  margin-top: .55rem; font-family: var(--font-display);
  font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
}
.adm-hero-sub { margin-top: .375rem; font-size: .9375rem; color: var(--slate-500); }
.adm-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.adm-live-pill,
.adm-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.adm-live-pill {
  background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm);
  color: var(--slate-600);
}
.adm-chip { background: var(--slate-100); color: var(--slate-600); }
.adm-chip svg { flex: none; color: var(--slate-400); }

.adm-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.adm-sec-title {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em;
}
.adm-sec-note {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-400);
}

/* --- KPI tiles --- */
.adm-kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 1.25rem 1.3rem 1.35rem;
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.adm-kpi::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--brand-400), var(--violet-500));
  opacity: 0; transition: opacity .25s ease;
}
.adm-kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, .28); }
.adm-kpi:hover::before { opacity: .9; }
.adm-kpi-top {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: 42px; margin-bottom: .9rem;
}
.adm-kpi-ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; border: 1px solid transparent;
}
.adm-kpi-ic svg { width: 22px; height: 22px; }
.adm-kpi-ic--brand  { background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(124, 58, 237, .07)); color: var(--brand-500); border-color: rgba(99, 102, 241, .18); }
.adm-kpi-ic--violet { background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(168, 85, 247, .07)); color: var(--violet-500); border-color: rgba(124, 58, 237, .2); }
.adm-kpi-ic--cyan   { background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .05)); color: #0891b2; border-color: rgba(34, 211, 238, .22); }
.adm-kpi-ic--ok     { background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(16, 185, 129, .05)); color: #047857; border-color: rgba(16, 185, 129, .22); }
.adm-kpi-ic--gold   { background: linear-gradient(135deg, rgba(245, 179, 1, .2), rgba(245, 179, 1, .06)); color: #b47f02; border-color: rgba(245, 179, 1, .24); }
.adm-kpi-ic--rose   { background: linear-gradient(135deg, rgba(239, 68, 68, .15), rgba(239, 68, 68, .05)); color: #dc2626; border-color: rgba(239, 68, 68, .2); }
.adm-kpi-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 600; color: var(--slate-500);
}
.adm-kpi-val {
  margin-top: .4rem; font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--ink-900);
}
.adm-kpi-foot { margin-top: .5rem; font-size: .75rem; color: var(--slate-400); }

/* --- Delta pills (status colour + arrow, never colour-alone) --- */
.adm-delta {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .5rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; line-height: 1; white-space: nowrap;
}
.adm-delta svg { width: 11px; height: 11px; flex: none; }
.adm-delta--up   { color: #047857; background: rgba(16, 185, 129, .12); }
.adm-delta--down { color: #b91c1c; background: rgba(239, 68, 68, .1); }
.adm-delta--flat { color: var(--slate-600); background: var(--slate-100); }

/* --- Card surface --- */
.adm-card {
  position: relative; background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.adm-card-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.35rem 1.4rem; border-bottom: 1px solid var(--slate-100);
}
.adm-card-eyebrow {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-400);
}
.adm-card-title {
  margin-top: .3rem; font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.adm-card-sub { margin-top: .3rem; font-size: .875rem; color: var(--slate-500); }
.adm-card-body { padding: 1.4rem; }

/* --- Segmented control (data-tabs: JS toggles .is-active) --- */
.adm-seg {
  display: inline-flex; padding: .25rem; gap: .15rem; flex: none;
  border-radius: 999px; background: var(--slate-100); border: 1px solid var(--slate-200);
}
.adm-seg-btn {
  padding: .45rem .85rem; border: none; border-radius: 999px; background: transparent;
  font-size: .75rem; font-weight: 600; color: var(--slate-500); cursor: pointer; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.adm-seg-btn:hover { color: var(--ink-900); }
.adm-seg-btn.is-active { color: var(--brand-500); background: #fff; box-shadow: var(--shadow-sm); }

/* --- Revenue figure + chart --- */
.adm-figrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1.75rem; }
.adm-figure {
  margin-top: .3rem; font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--ink-900);
}
.adm-figure-cap { display: flex; align-items: center; gap: .5rem; padding-bottom: .2rem; font-size: .75rem; color: var(--slate-400); }

.adm-chart { position: relative; margin-top: 1.5rem; }
.adm-chart-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(to top, var(--slate-100) 0, var(--slate-100) 1px, transparent 1px, transparent 25%);
  border-bottom: 1px solid var(--slate-200);
}
.adm-chart .bar-chart { position: relative; z-index: 1; }
.adm-chart .bar {
  background: linear-gradient(180deg, var(--brand-500), rgba(124, 58, 237, .16));
  box-shadow: 0 8px 16px -10px rgba(79, 70, 229, .55);
}
.adm-chart .bar:hover { filter: brightness(1.06); }
.adm-axis { margin-top: .75rem; }
.adm-chart-empty {
  margin-top: 1.5rem; height: 190px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px dashed var(--slate-200); background: var(--slate-50);
  font-size: .875rem; color: var(--slate-400); text-align: center; padding: 1rem;
}

/* --- Donut + legend --- */
.adm-donut { display: grid; place-items: center; padding: .25rem 0 .5rem; }
.adm-legend { display: grid; gap: .9rem; list-style: none; }
.adm-legend-top { display: flex; align-items: center; gap: .6rem; }
.adm-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.adm-legend-name { font-size: .85rem; font-weight: 600; color: var(--slate-800); }
.adm-legend-val { margin-left: auto; font-size: .8rem; color: var(--slate-500); }
.adm-legend-pct { min-width: 2.75rem; text-align: right; font-size: .8rem; font-weight: 700; color: var(--ink-900); }
.adm-legend-bar { margin-top: .45rem; height: 5px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.adm-legend-bar > i { display: block; height: 100%; border-radius: 999px; }

/* --- Acquisition sources --- */
.adm-src + .adm-src { margin-top: 1.1rem; }
.adm-src-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.adm-src-name { font-size: .85rem; font-weight: 600; color: var(--slate-800); }
.adm-src-meta { font-size: .8rem; color: var(--slate-500); white-space: nowrap; }
.adm-src-meta b { margin-left: .3rem; font-weight: 700; color: var(--ink-900); }

/* --- Live activity feed --- */
.adm-feed { max-height: 380px; overflow-y: auto; list-style: none; }
.adm-feed-item {
  display: flex; gap: .85rem; padding: .8rem .35rem; border-radius: 12px;
  transition: background-color .18s ease;
}
.adm-feed-item + .adm-feed-item { border-top: 1px solid var(--slate-100); }
.adm-feed-item:hover { background: var(--slate-50); }
.adm-feed-body { min-width: 0; flex: 1; }
.adm-feed-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.adm-feed-title { font-size: .875rem; font-weight: 600; color: var(--ink-900); }
.adm-feed-time { flex: none; font-size: .6875rem; color: var(--slate-400); }
.adm-feed-desc {
  display: block; margin-top: .15rem; font-size: .78rem; color: var(--slate-500);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- Pending actions --- */
.adm-todo {
  display: flex; align-items: center; gap: .85rem; padding: 1rem;
  border-radius: 14px; border: 1px solid var(--slate-200); background: #fff;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.adm-todo + .adm-todo { margin-top: .75rem; }
.adm-todo:hover {
  transform: translateY(-1px); border-color: rgba(99, 102, 241, .35);
  box-shadow: var(--shadow-sm); background: var(--slate-50);
}
.adm-todo-body { min-width: 0; }
.adm-todo-title { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-900); }
.adm-todo-sub { display: block; margin-top: .15rem; font-size: .78rem; color: var(--slate-500); }

.adm-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; text-align: center; }
.adm-stat3-cell { padding: .85rem .4rem; border-radius: 12px; background: var(--slate-50); border: 1px solid var(--slate-100); }
.adm-stat3-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); }
.adm-stat3-lab { margin-top: .2rem; font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); }

@media (prefers-reduced-motion: reduce) {
  .adm-kpi, .adm-kpi::before, .adm-todo, .adm-feed-item, .adm-seg-btn, .adm-chart .bar { transition: none; }
  .adm-kpi:hover, .adm-todo:hover { transform: none; }
}

/* ---------- Pricing polish (2026) ---------- */
.price-card:hover .price-check { transform: scale(1.14); }
.price-check { transition: transform .2s ease; }
.price-card.is-featured { box-shadow: 0 34px 66px -22px rgba(79, 70, 229, .6), 0 0 0 1px rgba(255, 255, 255, .06); }

/* ---------- Pricing tier icons + always-on accent (2026) ---------- */
/* Give the whole table a finished look: the top gradient accent is now always
   faintly present, brightening on hover, instead of appearing only on hover. */
.price-card.card::before { opacity: .5; }
.price-card.card:hover::before { opacity: 1; }

.price-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 14px; margin-bottom: 1.125rem;
  color: var(--brand-600); background: rgba(99, 102, 241, .1);
}
.price-icon svg { width: 1.375rem; height: 1.375rem; }
.price-icon-free      { color: #0891b2; background: rgba(8, 145, 178, .1); }
.price-icon-starter   { color: #7c3aed; background: rgba(124, 58, 237, .1); }
.price-icon-enterprise{ color: #059669; background: rgba(5, 150, 105, .1); }
/* The featured (dark) card overrides any per-slug tint. */
.price-card.is-featured .price-icon { background: rgba(255, 255, 255, .1); color: #c7d2fe; }
