/* ============================================================
   Softece — Design System
   ============================================================ */

/* ---------- Fonts ----------
   Self-hosted, one variable file per family, latin subset only. Served from
   this origin so a visit costs no third-party DNS, TLS and round trip before
   any text can be styled — and so the page still gets its typeface on a
   network where fonts.googleapis.com is slow or blocked.
   swap: text paints immediately in the fallback and re-renders when the file
   lands. ৳ is outside these subsets and comes from the system stack. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- Tokens ----------
   Day / night is automatic: with no data-theme attribute the page follows the
   operating system, live. data-theme="light" or "dark" is an explicit override
   the visitor chose, and wins over the system setting.

   The light palette is written twice on purpose — once for "system says light,
   nothing forced", once for "light was forced". Keep the two blocks in sync. */
:root {
  color-scheme: dark;

  /* Night palette. Deliberately not pure black behind not-quite-white text:
     that pairing is what makes long reads feel harsh after dark. */
  --bg:            #0b0e1a;
  --bg-soft:       #10141f;
  --surface:       rgba(255, 255, 255, 0.038);
  --surface-2:     rgba(255, 255, 255, 0.065);
  --border:        rgba(255, 255, 255, 0.095);
  --border-strong: rgba(255, 255, 255, 0.17);

  --text:          #dde2ef;
  --text-muted:    #99a2bb;
  --text-dim:      #8c96b4;

  --grid-line:     rgba(255, 255, 255, .045);
  --orb-1-op:      .42;
  --orb-2-op:      .28;
  --orb-3-op:      .19;
  --accent-text:   #22d3ee;
  --ok-text:       #3ddc6a;
  --focus-ring:    #4cc9f0;
  --bg-nav:        rgba(11, 14, 26, .78);
  --bg-veil:       rgba(11, 14, 26, .93);

  --brand:         #7c5cff;
  --brand-2:       #22d3ee;
  --brand-3:       #f472b6;
  --accent-grad:   linear-gradient(120deg, #7c5cff 0%, #4f8cff 45%, #22d3ee 100%);
  --accent-grad-2: linear-gradient(120deg, #f472b6 0%, #7c5cff 100%);

  --glow:          0 0 0 1px rgba(124,92,255,.18), 0 18px 50px -18px rgba(124,92,255,.5);
  --shadow-sm:     0 2px 10px rgba(0,0,0,.25);
  --shadow:        0 18px 45px -20px rgba(0,0,0,.7);

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

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    /* Day palette. Off-white rather than #fff, and ink rather than black —
       a full-brightness white page is the main source of daytime glare. */
    --bg:            #f1f3f7;
    --bg-soft:       #f8f9fc;
    --surface:       rgba(12, 16, 32, 0.030);
    --surface-2:     rgba(12, 16, 32, 0.058);
    --border:        rgba(12, 16, 32, 0.105);
    --border-strong: rgba(12, 16, 32, 0.185);

    --text:          #1d2334;
    --text-muted:    #4f5770;
    --text-dim:      #565e72;

    --grid-line:     rgba(16, 20, 42, .055);
    --orb-1-op:      .20;
    --orb-2-op:      .16;
    --orb-3-op:      .12;
    --accent-text:   #0b6b83;
    --ok-text:       #15803d;
    --focus-ring:    #5b3fd6;
  --bg-nav:        rgba(241, 243, 247, .80);
  --bg-veil:       rgba(241, 243, 247, .94);
    --bg-nav:        rgba(241, 243, 247, .80);
    --bg-veil:       rgba(241, 243, 247, .94);

    --shadow:        0 18px 45px -22px rgba(20, 25, 60, .30);
    --glow:          0 0 0 1px rgba(124,92,255,.15), 0 18px 45px -20px rgba(124,92,255,.30);
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  /* Day palette. Off-white rather than #fff, and ink rather than black —
     a full-brightness white page is the main source of daytime glare. */
  --bg:            #f1f3f7;
  --bg-soft:       #f8f9fc;
  --surface:       rgba(12, 16, 32, 0.030);
  --surface-2:     rgba(12, 16, 32, 0.058);
  --border:        rgba(12, 16, 32, 0.105);
  --border-strong: rgba(12, 16, 32, 0.185);

  --text:          #1d2334;
  --text-muted:    #4f5770;
  --text-dim:      #565e72;

  --grid-line:     rgba(16, 20, 42, .055);
  --orb-1-op:      .20;
  --orb-2-op:      .16;
  --orb-3-op:      .12;
  --accent-text:   #0b6b83;
  --ok-text:       #15803d;
  --focus-ring:    #5b3fd6;
  --bg-nav:        rgba(241, 243, 247, .80);
  --bg-veil:       rgba(241, 243, 247, .94);

  --shadow:        0 18px 45px -22px rgba(20, 25, 60, .30);
  --glow:          0 0 0 1px rgba(124,92,255,.15), 0 18px 45px -20px rgba(124,92,255,.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The nav is fixed, so an anchor jump would otherwise land with the
     section heading hidden underneath it. */
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(124,92,255,.35); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 108px 0; position: relative; }
.section--tight { padding: 76px 0; }
.grid { display: grid; gap: 26px; }
@media (min-width: 720px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .g-3 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%);
}
/* Soft glows painted as radial gradients. filter: blur() here re-rasterised
   three 500px layers on every scroll frame and pinned the page at ~14fps. */
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb--1 {
  width: 700px; height: 700px; top: -250px; left: -200px; opacity: var(--orb-1-op);
  background: radial-gradient(circle closest-side,
    rgba(124,92,255,1) 0%, rgba(124,92,255,.97) 38%, rgba(124,92,255,.72) 58%,
    rgba(124,92,255,.32) 78%, rgba(124,92,255,0) 100%);
  animation: float 18s ease-in-out infinite;
}
.orb--2 {
  width: 640px; height: 640px; top: calc(8% - 90px); right: -230px; opacity: var(--orb-2-op);
  background: radial-gradient(circle closest-side,
    rgba(34,211,238,1) 0%, rgba(34,211,238,.97) 38%, rgba(34,211,238,.72) 58%,
    rgba(34,211,238,.32) 78%, rgba(34,211,238,0) 100%);
  animation: float 22s ease-in-out infinite reverse;
}
.orb--3 {
  width: 610px; height: 610px; top: calc(62% - 90px); left: calc(42% - 90px); opacity: var(--orb-3-op);
  background: radial-gradient(circle closest-side,
    rgba(244,114,182,1) 0%, rgba(244,114,182,.97) 38%, rgba(244,114,182,.72) 58%,
    rgba(244,114,182,.32) 78%, rgba(244,114,182,0) 100%);
  animation: float 26s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(50px,-40px) scale(1.08); }
  66%     { transform: translate(-40px,35px) scale(.94); }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-grad); box-shadow: 0 8px 22px -8px rgba(124,92,255,.9);
  position: relative; overflow: hidden; flex: none;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__mark::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform: translateX(-120%); animation: shine 4.5s var(--ease) infinite;
}
@keyframes shine { 0%,65% { transform: translateX(-120%);} 100% { transform: translateX(120%);} }
.logo__text b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav__links { display: none; align-items: center; gap: 4px; }
@media (min-width: 960px) { .nav__links { display: flex; } }
.nav__link {
  padding: 9px 15px; border-radius: 99px; font-size: .93rem; font-weight: 500; color: var(--text-muted);
  transition: color .25s, background .25s; position: relative;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--accent-grad);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color .25s, background .25s, transform .25s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }
/* Three states: auto (no attribute, follows the OS), forced light, forced dark. */
.theme-btn .i-sun, .theme-btn .i-moon { display: none; }
.theme-btn .i-auto { display: block; }
:root[data-theme="light"] .theme-btn .i-auto,
:root[data-theme="dark"]  .theme-btn .i-auto { display: none; }
:root[data-theme="light"] .theme-btn .i-sun  { display: block; }
:root[data-theme="dark"]  .theme-btn .i-moon { display: block; }
.burger { display: grid; }
@media (min-width: 960px) { .burger { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99; display: grid; place-items: center;
  background: var(--bg-veil);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer nav { display: grid; gap: 6px; text-align: center; }
.drawer a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; padding: 12px 30px;
  border-radius: 14px; transform: translateY(14px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), background .2s;
}
.drawer a:hover { background: var(--surface-2); }
/* The Hire us button is hidden in the mobile header, so the drawer carries it. */
.drawer a.drawer__hire { background: var(--accent-grad); color: #fff; margin-top: 10px; }
.drawer a.drawer__hire:hover { background: var(--accent-grad); filter: brightness(1.07); }
.drawer.is-open a { transform: none; opacity: 1; }
.drawer.is-open a:nth-child(1){transition-delay:.05s}
.drawer.is-open a:nth-child(2){transition-delay:.10s}
.drawer.is-open a:nth-child(3){transition-delay:.15s}
.drawer.is-open a:nth-child(4){transition-delay:.20s}
.drawer.is-open a:nth-child(5){transition-delay:.25s}
.drawer.is-open a:nth-child(6){transition-delay:.30s}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 99px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent-grad); color: #fff; box-shadow: 0 14px 34px -14px rgba(124,92,255,.95); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -14px rgba(124,92,255,1); }
.btn--ghost { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn--ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--brand); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Pills / headings ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 10px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .8rem; font-weight: 500; color: var(--text-muted); letter-spacing: .02em;
}
/* The ring pulses on a pseudo-element via transform/opacity. Animating
   box-shadow instead repainted every frame and cost ~73% of idle CPU. */
.pill .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.16); }
.pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(34,211,238,.30); will-change: transform, opacity;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: .75; }
  50%      { transform: scale(2.1); opacity: 0; }
}

.head { max-width: 720px; margin-bottom: 56px; }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .45em; }
.head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: block; font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-2 { background: var(--accent-grad-2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 90px) 0 96px; position: relative; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 46px; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.35rem); line-height: 1.04; margin: 22px 0 20px; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--text-muted); max-width: 560px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 30px; }
.hero__meta div strong { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.hero__meta div span { font-size: .84rem; color: var(--text-dim); }

/* code card */
.codecard {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
/* Entrance only when scripting is on, for the same reason as [data-reveal]:
   an element hidden at opacity 0 until an animation reveals it is invisible
   forever if that animation never runs. */
.js .codecard { animation: rise 1s var(--ease) both .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.codecard::before {
  content:""; position:absolute; inset:-1px; border-radius: inherit; padding:1px;
  background: linear-gradient(140deg, rgba(124,92,255,.6), transparent 40%, rgba(34,211,238,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.codecard__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.codecard__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.codecard__bar i:nth-child(1){ background:#ff5f57 } .codecard__bar i:nth-child(2){ background:#febc2e } .codecard__bar i:nth-child(3){ background:#28c840 }
.codecard__bar span { margin-left: auto; font-size: .76rem; color: var(--text-dim); font-family: ui-monospace, monospace; }
.codecard pre { margin: 0; padding: 22px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; line-height: 1.85; overflow-x: auto; }
.codecard .c-key { color: #c792ea; } .codecard .c-str { color: #7bd88f; }
.codecard .c-fn  { color: #82aaff; } .codecard .c-num { color: #f78c6c; }
.codecard .c-com { color: var(--text-dim); font-style: italic; }
.codecard__foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); }
.codecard__foot .ok { width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 4px rgba(40,200,64,.16); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--border); background: var(--surface); position: relative; }
.marquee::before, .marquee::after { content:""; position:absolute; top:0; bottom:0; width: 130px; z-index: 2; pointer-events:none; }
.marquee::before { left:0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right:0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee__track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-dim);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color .25s;
}
.marquee__track span:hover { color: var(--text); }
.marquee__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: .85;
  transition: transform .25s, opacity .25s;
}
.marquee__track span:hover .marquee__icon {
  opacity: 1;
  transform: scale(1.15);
}

/* ---------- Cards ---------- */
.card {
  position: relative; border-radius: var(--radius-lg); padding: 30px;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.20), transparent 66%);
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%,-50%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover { transform: translateY(-7px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, rgba(124,92,255,.22), rgba(34,211,238,.14));
  border: 1px solid var(--border); color: var(--brand-2);
  transition: transform .4s var(--ease), color .3s;
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.24rem; margin-bottom: .5em; }
.card p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-size: .78rem; padding: 5px 12px; border-radius: 99px; letter-spacing: .02em;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim);
}
.card__num {
  position: absolute; top: 18px; right: 22px; font-family: var(--font-display);
  font-size: 3.4rem; font-weight: 700; line-height: 1; opacity: .07; z-index: 0;
}

/* Feature card (glow border) */
.card--glow { border-color: rgba(124,92,255,.34); box-shadow: var(--glow); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 940px) { .stats { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--bg-soft); padding: 34px 26px; text-align: center; transition: background .3s; }
.stat:hover { background: var(--surface-2); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem,3.6vw,2.7rem); line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .87rem; color: var(--text-muted); }

/* ---------- Process timeline ---------- */
.steps { display: grid; gap: 24px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-6px); border-color: var(--brand); }
.step__n {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 700; background: var(--accent-grad); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(124,92,255,.9);
}
.step h3 { font-size: 1.06rem; margin-bottom: .4em; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content:""; position:absolute; top: 45px; right: -16px; width: 12px; height: 2px;
    background: var(--border-strong);
  }
}

/* ---------- Split feature ---------- */
.split { display: grid; gap: 46px; align-items: center; }
.split > *, .form__row > * { min-width: 0; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; } .split--rev > *:first-child { order: 2; } }
.checks { display: grid; gap: 13px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--text-muted); }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--brand-2); margin-top: 2px; }

/* Panel visual */
.panel {
  border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 26px;
  background: linear-gradient(160deg, var(--surface-2), transparent);
  box-shadow: var(--shadow);
}
.panel__row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; transition: transform .3s var(--ease), border-color .3s; }
.panel__row:hover { transform: translateX(6px); border-color: var(--brand); }
.panel__row:last-child { margin-bottom: 0; }
.panel__row i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-grad); flex: none; color: #fff; }
.panel__row i svg { width: 17px; height: 17px; }
.panel__row b { display: block; font-size: .93rem; font-family: var(--font-display); }
.panel__row small { color: var(--text-dim); font-size: .8rem; }
.panel__row em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--ok-text); font-family: ui-monospace, monospace; }

/* ---------- Testimonials ---------- */
.quote { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), border-color .35s; }
.quote:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.quote__stars { display: flex; gap: 3px; color: #fbbf24; margin-bottom: 16px; }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { font-size: .97rem; color: var(--text-muted); font-style: italic; }
.quote__by { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--accent-grad); flex: none; font-size: .95rem; }
img.avatar { object-fit: cover; display: block; }
.quote__by b { display: block; font-size: .92rem; }
.quote__by small { color: var(--text-dim); font-size: .8rem; }

/* ---------- Pricing ---------- */
.price { position: relative; padding: 34px 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s; }
.price:hover { transform: translateY(-7px); }
.price--best { border-color: rgba(124,92,255,.45); box-shadow: var(--glow); background: linear-gradient(170deg, rgba(124,92,255,.09), var(--surface)); }
.price__badge { position: absolute; top: -12px; left: 30px; padding: 5px 14px; border-radius: 99px; background: var(--accent-grad); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.price h3 { font-size: 1.15rem; margin-bottom: .3em; }
.price__amt { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.1; margin: 14px 0 4px; }
.price__amt small { font-size: .95rem; color: var(--text-dim); font-family: var(--font-body); font-weight: 400; }
.price > p { font-size: .9rem; color: var(--text-muted); }
.price ul { display: grid; gap: 11px; margin: 22px 0 28px; }
.price li { display: flex; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.price li svg { width: 18px; height: 18px; flex: none; color: var(--brand-2); }
.price .btn { margin-top: auto; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc + .acc { margin-top: 12px; }
.acc__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; cursor: pointer; display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; transition: background .25s; }
.acc__q:hover { background: var(--surface-2); }
.acc__q svg { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--text-dim); transition: transform .35s var(--ease), color .25s; }
.acc.is-open .acc__q svg { transform: rotate(45deg); color: var(--brand); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 22px 22px; margin: 0; color: var(--text-muted); font-size: .94rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { padding: 9px 20px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: .87rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active { background: var(--accent-grad); border-color: transparent; color: #fff; }
.work { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.work:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.work.is-hidden { display: none; }
.work__cover { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; overflow: hidden; }
.work__cover svg { width: 60px; height: 60px; color: #fff; opacity: .95; z-index: 1; transition: transform .5s var(--ease); }
.work:hover .work__cover svg { transform: scale(1.15) rotate(-6deg); }
.work__cover::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px); background-size: 18px 18px; }
.cv-1 { background: linear-gradient(135deg,#7c5cff,#4f8cff); }
.cv-2 { background: linear-gradient(135deg,#22d3ee,#3b82f6); }
.cv-3 { background: linear-gradient(135deg,#f472b6,#7c5cff); }
.cv-4 { background: linear-gradient(135deg,#f59e0b,#f472b6); }
.cv-5 { background: linear-gradient(135deg,#10b981,#22d3ee); }
.cv-6 { background: linear-gradient(135deg,#6366f1,#a855f7); }
.work__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.work__body h3 { font-size: 1.1rem; margin-bottom: .35em; }
.work__body p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.work__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.work__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--bg-soft, transparent);
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  transition: color .25s, border-color .25s, transform .25s;
}
.work__link:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.work__link svg { width: 15px; height: 15px; }
.work__link--live { background: var(--accent-grad); border-color: transparent; color: #fff; }
.work__link--live:hover { color: #fff; }

/* ---------- Team ---------- */
.member { text-align: center; padding: 32px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), border-color .35s; }
.member:hover { transform: translateY(-7px); border-color: var(--brand); }
.member .avatar { width: 78px; height: 78px; font-size: 1.6rem; margin: 0 auto 18px; }
.member h3 { font-size: 1.06rem; margin-bottom: .2em; }
/* --accent-text, not --brand-2: raw cyan reads at 1.6:1 on the light ground. */
.member span { font-size: .85rem; color: var(--accent-text); display: block; margin-bottom: 12px; }
.member p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px);
  text-align: center; overflow: hidden;
  border: 1px solid rgba(124,92,255,.3);
  background: linear-gradient(140deg, rgba(124,92,255,.16), rgba(34,211,238,.09));
}
.cta::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.field input, .field textarea, .field select {
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
  width: 100%;
  /* A form control's intrinsic width is its min-content size, and a grid item
     will not shrink below that — which pushed the whole form wider than a
     320px screen however small the container got. */
  min-width: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
/* .field sets display:grid, which would beat the [hidden] attribute. */
.field[hidden] { display: none; }
/* Honeypot trap: hidden from human view & assistive tech, filled by automated spam bots */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
/* Routing: one section is shown at a time, but only where scripting can put
   them back. Without JS every section stays visible and the page reads as one
   long document rather than a blank screen. */
html:not(.js) .route[hidden] { display: block; }
.route[hidden] { display: none; }
.field input[readonly] { background: var(--bg-soft); color: var(--text-muted); cursor: default; }
.field__hint { font-size: .8rem; color: var(--text-dim); margin: 0; }
.field__hint a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.field select option { background: var(--bg-soft); color: var(--text); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: .84rem; color: var(--text-dim); margin: 0; }
.form__ok {
  display: none; padding: 14px 18px; border-radius: 12px; font-size: .9rem;
  border: 1px solid rgba(40,200,64,.35); background: rgba(40,200,64,.10); color: #4ade80;
}
.form__ok.is-shown { display: block; animation: rise .4s var(--ease); }

.contact-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.contact-item:hover { transform: translateX(6px); border-color: var(--brand); }
.contact-item i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, rgba(124,92,255,.22), rgba(34,211,238,.14)); border: 1px solid var(--border); color: var(--brand-2); flex: none; }
.contact-item i svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-family: var(--font-display); font-size: .95rem; }
.contact-item span { font-size: .89rem; color: var(--text-muted); }
/* An email address is one unbreakable word: on a 320px screen it held the
   whole row open and pushed the page into a sideways scroll. */
.contact-item { min-width: 0; }
.contact-item > div { min-width: 0; }
.contact-item span, .form__note a, .footer a { overflow-wrap: anywhere; }

/* ---------- Page hero ---------- */
.phero { padding: calc(var(--nav-h) + 78px) 0 60px; text-align: center; }
.phero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: 20px 0 16px; }
.phero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 68px 0 30px; margin-top: 20px; }
.footer__grid { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__about p { color: var(--text-muted); font-size: .92rem; max-width: 320px; margin: 18px 0 22px; }
.footer h2 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: .92rem; color: var(--text-muted); transition: color .25s, padding-left .25s; }
.footer li a:hover { color: var(--text); padding-left: 5px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); transition: all .25s; }
.socials a:hover { background: var(--accent-grad); border-color: transparent; color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer__bar { border-top: 1px solid var(--border); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: var(--text-dim); }

/* ---------- Keyboard focus ----------
   Links and buttons had no focus style of their own, so keyboard users were
   left with the UA default — which all but disappears against the dark ground
   and the gradient buttons. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
/* Text fields draw their own ring via border + box-shadow. */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { outline: none; }

/* ---------- Reveal ----------
   Scoped to .js, which the pre-paint script in each head sets. Unscoped, a
   visitor without JavaScript — or one whose JS simply failed to run — got a
   page holding nothing but the navbar, because nothing ever added .is-in. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: var(--accent-grad); transition: width .1s linear; }

/* ---------- To top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  background: var(--accent-grad); color: #fff; border: 0; box-shadow: 0 14px 30px -12px rgba(124,92,255,.9);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-3px); }
.totop svg { width: 19px; height: 19px; }

/* ---------- Misc ---------- */
/* Names a section for assistive tech and keeps the heading outline intact
   without adding anything visible. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Print ----------
   A services site gets printed and PDF'd. Without this it came out as a dark
   page with decorative layers, and anything not yet scroll-revealed missing. */
/* ---------- Phone density ----------
   The desktop rhythm — 108px sections, a 78px gap under the fixed nav and a
   16:10 cover on every work card — reads as a screenful of empty space per
   section on a 390px phone, and stretched the work grid to roughly twenty
   screens of scrolling. Tighten the vertical spacing and the decoration
   there; nothing above 640px changes. */
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .section--tight { padding: 52px 0; }
  .phero { padding: calc(var(--nav-h) + 40px) 0 44px; }

  /* The cover carries an icon, not information: a strip will do. */
  .work__cover { aspect-ratio: 16 / 5; }
  .work__cover svg { width: 38px; height: 38px; }
  .work__body { padding: 20px; }

  /* Filters scroll sideways rather than stacking three rows deep. */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 26px;
    padding-bottom: 2px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }

  /* Thumb-sized targets: 38px is under every platform's guidance. */
  .socials a { width: 44px; height: 44px; }
  .work__link { padding: 12px 16px; }
}

@media print {
  .bg-fx, .progress, .totop, .drawer, .marquee, .nav__actions, .cta__btns, .filters { display: none !important; }
  .nav { position: static; border-bottom: 1px solid #ccc; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .codecard { animation: none !important; }
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --bg: #fff; --bg-soft: #fff;
    --surface: #fff; --surface-2: #fff;
    --border: #ccc; --border-strong: #999;
    --text: #000; --text-muted: #333; --text-dim: #444;
    --shadow: none; --glow: none;
  }
  body { background: #fff !important; color: #000 !important; }
  .card, .step, .quote, .price, .work, .member, .panel, .contact-item, .acc, .stats, .cta {
    box-shadow: none !important; background: #fff !important;
    border: 1px solid #ccc !important; break-inside: avoid;
  }
  .section { padding: 24px 0 !important; }
  .hero { padding-top: 24px !important; }
  /* Spell out where a link actually goes, since a printed page can't be clicked. */
  main a[href^="http"]::after, main a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .acc__a { grid-template-rows: 1fr !important; }
  .grad, .grad-2, .eyebrow, .stat b { -webkit-text-fill-color: #000; color: #000 !important; background: none !important; }
  /* Printers drop backgrounds by default, which would leave the white label on
     a gradient button invisible. Print them as outlined text instead. */
  .btn, .btn--primary, .price__badge, .step__n, .avatar, .logo__mark {
    background: none !important; color: #000 !important; border: 1px solid #666 !important;
    box-shadow: none !important; -webkit-text-fill-color: #000;
  }
  .logo__mark svg { stroke: #000 !important; }
  .card__icon, .panel__row i, .contact-item i { background: none !important; color: #000 !important; }
  .codecard { background: #fff !important; color: #000 !important; border: 1px solid #ccc !important; }
  .codecard__bar i { background: #999 !important; }
  .codecard__bar span, .codecard__foot, .codecard .c-com { color: #555 !important; }
  .codecard .c-key, .codecard .c-str, .codecard .c-fn, .codecard .c-num { color: #000 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* Show everything up front rather than gating it behind a scroll reveal. */
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .codecard { animation: none !important; }
}

/* ---------- Nav hire button ---------- */
.nav__hire { display: none; }
@media (min-width: 960px) { .nav__hire { display: inline-flex; } }

/* ---------- Code card ----------
   An editor surface reads as dark in either palette, so it carries its own
   colours instead of following the theme tokens. */
.codecard { background: linear-gradient(160deg, #141935, #0c1020); color: #e7eaf6; }
.codecard, .codecard__bar, .codecard__foot { border-color: rgba(255,255,255,.11); }
.codecard__bar i { background: rgba(255,255,255,.2); }
.codecard__bar span, .codecard__foot { color: #98a1bd; }
.codecard .c-com { color: #7b85a2; }

/* ---------- Tech Stack Section ---------- */
.stack-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.stack-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 16px 36px -12px rgba(124, 92, 255, 0.18);
}
.stack-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-bottom: 20px;
}
.stack-card__icon svg {
  width: 22px;
  height: 22px;
}
.stack-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.stack-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: .83rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .25s, transform .25s, background .25s;
}
.tech-tag:hover {
  border-color: var(--brand);
  background: var(--surface);
  transform: translateY(-2px);
}
.tech-tag .tech-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Floating WhatsApp Widget ---------- */
.wa-widget {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 95;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  padding: 6px 18px 6px 8px;
  border-radius: 999px;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
}
.wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -6px rgba(37, 211, 102, 0.65), 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}
.wa-btn__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-btn__icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}
.wa-btn__tooltip {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.wa-btn__status {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wa-btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
  animation: wa-dot 1.8s infinite;
}
.wa-btn__text {
  font-size: 0.88rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.wa-btn__pulse {
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: wa-ripple 2.4s infinite;
  pointer-events: none;
}
@keyframes wa-ripple {
  0% { transform: scale(0.96); opacity: 0.9; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes wa-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@media (max-width: 640px) {
  .wa-widget {
    left: 16px;
    bottom: 16px;
  }
  .wa-btn {
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
  }
  .wa-btn__icon {
    width: 50px;
    height: 50px;
    background: transparent;
  }
  .wa-btn__icon svg {
    width: 26px;
    height: 26px;
  }
  .wa-btn__tooltip {
    display: none;
  }
}
@media print {
  .wa-widget { display: none !important; }
}

/* ---------- Order Payment Methods & Post-Order Receipt ---------- */
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.pay-chip {
  display: block;
  cursor: pointer;
  position: relative;
}
.pay-chip input[type="radio"] {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.pay-chip__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.pay-chip:hover .pay-chip__body {
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--surface-2);
}
.pay-chip:has(input:checked) .pay-chip__body {
  border-color: var(--brand);
  background: rgba(124, 92, 255, 0.09);
  box-shadow: 0 0 0 1px var(--brand);
}
.pay-chip__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.pay-chip__top b {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pay-chip__body small {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.pay-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.pay-badge--bkash {
  background: #e2136e;
}
.pay-badge--nagad {
  background: #f7941d;
}
.pay-badge--rocket {
  background: #8c3494;
}
.pay-badge--binance {
  background: #F0B90B;
  color: #0c0d10;
}

/* Post-order Receipt Card */
.order-receipt {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(40, 200, 64, 0.4);
  background: linear-gradient(170deg, rgba(40, 200, 64, 0.08) 0%, rgba(18, 22, 34, 0.85) 100%);
  animation: rise 0.45s var(--ease);
  margin-top: 10px;
}
.order-receipt[hidden] {
  display: none !important;
}

.order-receipt__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.order-receipt__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(40, 200, 64, 0.18);
  border: 1px solid rgba(40, 200, 64, 0.4);
  color: #4ade80;
  flex-shrink: 0;
}
.order-receipt__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.order-receipt__sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.order-receipt__summary {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}
.order-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.order-receipt__row span:first-child {
  color: var(--text-dim);
}
.order-receipt__row b,
.order-receipt__row span:last-child {
  font-weight: 600;
}

.receipt-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
}
.receipt-badge--pending {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.receipt-badge--paid {
  background: rgba(40, 200, 64, 0.15);
  color: #4ade80;
  border: 1px solid rgba(40, 200, 64, 0.3);
}

.order-receipt__paybox {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}
.order-receipt__paybox h4 {
  font-size: 0.94rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.order-receipt__desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px dashed rgba(124, 92, 255, 0.4);
  border-radius: 10px;
  transition: all 0.25s ease;
}
.copy-box--highlight {
  border: 1px solid var(--brand) !important;
  background: rgba(124, 92, 255, 0.12) !important;
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.22);
}
.copy-box__num {
  display: flex;
  align-items: center;
  gap: 8px;
}
.copy-box__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.copy-box code {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.04em;
  font-family: monospace;
}

.btn--whatsapp {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.order-receipt__trx {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}
.order-receipt__trx label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}
.order-receipt__trx-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.order-receipt__trx-form input {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 9px 12px;
  font-size: 0.88rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.order-receipt__trx-form input:focus {
  border-color: var(--brand);
}

/* ============================================================
   Softece FlexiPlan — Custom Bundle Builder (GP Flexi Style)
   ============================================================ */


/* ---------- FlexiPlan Layout & Presets ---------- */
.flexi-wrap {
  animation: flexiFadeIn 0.35s var(--ease);
}
@keyframes flexiFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.flexi-presets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-bottom: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.flexi-presets-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.flexi-presets-label svg {
  width: 18px;
  height: 18px;
  color: var(--brand-2);
}
.flexi-presets-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-pill {
  padding: 7px 15px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.preset-pill:hover {
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-1px);
}
.preset-pill--reset {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.preset-pill--reset:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: #f87171;
  color: #ef4444;
}

.flexi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: start;
}

/* ---------- Flexi Service Cards ---------- */
.flexi-services {
  display: grid;
  gap: 18px;
}
.flexi-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.flexi-card:hover {
  border-color: var(--border-strong);
}
.flexi-card.is-selected {
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(170deg, rgba(124, 92, 255, 0.05), var(--surface));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.flexi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.flexi-card__info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flexi-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  flex: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}
.flexi-card__icon svg {
  width: 20px;
  height: 20px;
}
.flexi-card__info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text);
}
.flexi-card__desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}
.flexi-card__cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.flexi-price-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.flexi-card.is-selected .flexi-price-badge {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent-text);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}
/* Type Badges (One-Time vs Yearly) */
.flexi-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  margin-left: 6px;
  vertical-align: middle;
}
.flexi-type-badge--recurring {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

/* Premium Styling for Duration Select */
.flexi-duration {
  display: none;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  outline: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.flexi-duration:hover, .flexi-duration:focus {
  border-color: #7c5cff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.35);
}
.flexi-card.is-selected .flexi-duration {
  display: block;
}

/* Savings Banner in Live Sidebar */
.flexi-savings-banner {
  display: flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
}
.flexi-savings-banner.is-hint {
  background: rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.25);
  color: #a78bfa;
}
.flexi-chip-discount {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Range Slider - GP Flexi Style */
.flexi-slider-wrap {
  position: relative;
  margin: 18px 0 14px;
}
.flexi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, #7c5cff 0%, #22d3ee var(--fill-pct, 0%), var(--border) var(--fill-pct, 0%), var(--border) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease-out;
}
.flexi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #7c5cff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7);
  cursor: grab;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.flexi-range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.22);
  border-color: #22d3ee;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
}
.flexi-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #7c5cff;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7);
  cursor: grab;
  transition: transform 0.15s, border-color 0.15s;
}
.flexi-range:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.22);
  border-color: #22d3ee;
}

/* Step Pills */
.flexi-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.flexi-step {
  flex: 1 1 0;
  min-width: 90px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s var(--ease);
}
.flexi-step:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.flexi-step.is-active {
  background: rgba(124, 92, 255, 0.15);
  border-color: var(--brand);
  color: var(--text);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
}
.step-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.step-price {
  font-size: 0.73rem;
  color: var(--text-dim);
}
.flexi-step.is-active .step-price {
  color: var(--brand-2);
  font-weight: 700;
}

/* ---------- Sticky Summary Card ---------- */
.flexi-summary-col {
  position: sticky;
  top: 96px;
}
.flexi-summary-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, rgba(124, 92, 255, 0.08), var(--bg-soft, #10141f));
  box-shadow: var(--shadow), 0 0 35px rgba(124, 92, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.flexi-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
}
.flexi-summary__header {
  margin-bottom: 20px;
}
.flexi-summary__header h3 {
  font-size: 1.35rem;
  margin: 10px 0 4px;
}
.flexi-summary__header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.flexi-chosen-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 18px;
}
.flexi-chosen-list::-webkit-scrollbar {
  width: 4px;
}
.flexi-chosen-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.flexi-empty-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 12px 0;
  text-align: center;
}
.flexi-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  animation: chipFade 0.2s var(--ease);
}
@keyframes chipFade {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
.flexi-chip b {
  color: var(--text);
  font-weight: 600;
}
.flexi-chip span {
  color: var(--brand-2);
  font-weight: 700;
  font-family: var(--font-display);
}

.flexi-summary__divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.flexi-billing-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.flexi-billing-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.flexi-billing-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand-2);
}
.flexi-billing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.billing-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.billing-pill:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}
.billing-pill.active {
  background: var(--brand-grad);
  color: #000;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.flexi-summary__price-box {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.flexi-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.flexi-price-row strong {
  color: var(--text);
  font-weight: 700;
}
.flexi-price-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.flexi-total-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.flexi-total-price .currency {
  font-size: 1.8rem;
  color: var(--brand-2);
}
.flexi-advance-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  background: rgba(61, 220, 106, 0.12);
  color: var(--ok-text);
  border: 1px solid rgba(61, 220, 106, 0.3);
}

.flexi-summary__features {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.flexi-feat {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.flexi-feat svg {
  width: 15px;
  height: 15px;
  color: var(--ok-text);
  flex: none;
}

.flexi-summary__actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 991px) {
  .flexi-grid {
    grid-template-columns: 1fr;
  }
  .flexi-summary-col {
    position: static;
    margin-top: 24px;
  }
}

/* ============================================================
   Softece Smart Client Auth & One-Click Order System
   ============================================================ */

/* Navbar User Chip */
.nav__auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
}
.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.nav-user-chip:hover {
  background: var(--surface-2);
  border-color: rgba(124, 92, 255, 0.4);
}
.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-transform: uppercase;
}
.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-chevron {
  color: var(--text-dim);
  transition: transform 0.2s;
}
.nav-user-chip--open .nav-user-chevron {
  transform: rotate(180deg);
}

/* Nav User Dropdown Menu */
.nav-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: none;
  grid-gap: 4px;
  z-index: 1000;
  animation: authPop 0.2s var(--ease);
}
.nav-user-chip--open .nav-user-menu {
  display: grid;
}
.nav-user-menu__header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 2px;
}
.nav-user-menu__header b {
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-menu__header span {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.nav-user-menu__item:hover {
  background: var(--surface-2);
}
.nav-user-menu__item--danger {
  color: #f87171;
}
.nav-user-menu__item--danger:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #ef4444;
}

/* Smart Client Badge in Order Form */
.smart-client-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
  border: 1px solid rgba(124, 92, 255, 0.28);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.smart-client-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--accent-grad);
}
.smart-client-badge__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.smart-client-badge__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.35);
}
.smart-client-badge__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.smart-client-badge__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}
.smart-client-badge__role {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--brand-2);
}
.smart-client-badge__status {
  color: #4ade80;
  font-weight: 600;
}
.smart-client-badge__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smart-client-badge__contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Smart Client Gate (When not signed in on #order) */
.smart-client-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(240, 185, 11, 0.08);
  border: 1px dashed rgba(240, 185, 11, 0.35);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.smart-client-gate__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.smart-client-gate__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.smart-client-gate b {
  display: block;
  font-size: 0.94rem;
  color: var(--text);
  margin-bottom: 2px;
}
.smart-client-gate p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Auth Modal Backdrop & Card */
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  animation: authFadeIn 0.25s var(--ease);
}
.auth-backdrop[hidden] {
  display: none !important;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  animation: authPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-modal__close:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.auth-modal__header {
  margin-bottom: 22px;
}
.auth-modal__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.auth-modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.auth-modal__sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  padding: 4px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  gap: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.auth-tab:hover {
  color: var(--text);
}
.auth-tab--active {
  background: var(--brand);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(124, 92, 255, 0.4);
}

/* Auth Forms */
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form .field {
  display: grid;
  gap: 5px;
}
.auth-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-form input {
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.auth-quick-fill {
  margin-top: 4px;
}
.auth-quick-fill .btn {
  font-size: 0.82rem;
  color: var(--brand-2);
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.05);
}
.auth-quick-fill .btn:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--brand-2);
}

.auth-modal__footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ============================================================
   Orders & Project Tracker Styles (#orders)
   ============================================================ */
.nav__orders {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(124, 92, 255, 0.4);
}
.nav__orders:hover {
  border-color: var(--brand-1);
}
.nav-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  line-height: 1;
}
.drawer__orders {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--brand-1);
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}
.drawer__orders svg {
  stroke: var(--brand-1);
}

/* Client User Banner */
.orders-user-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.orders-user-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.orders-user-banner__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
  flex-shrink: 0;
}
.orders-user-banner__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.orders-user-banner__contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.orders-user-banner__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.orders-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(124, 92, 255, 0.15);
  color: var(--brand-1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Empty State & Gate */
.orders-empty,
.orders-gate {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 20px;
  max-width: 620px;
  margin: 30px auto;
}
.orders-empty__icon,
.orders-gate__icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
  display: inline-block;
}
.orders-empty h3,
.orders-gate h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.orders-empty p,
.orders-gate p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Order Card */
.orders-list {
  display: grid;
  gap: 22px;
}
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
}
.order-card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.order-card__id-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.order-card__id {
  font-family: var(--font-mono, monospace);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: 0.5px;
}
.order-card__date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Status Badges */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}
.order-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.order-badge--advance {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.order-badge--progress {
  background: rgba(124, 92, 255, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 92, 255, 0.35);
}
.order-badge--delivered {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.admin-stage-select {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 24px;
}
.admin-stage-select option {
  background: #0f172a;
  color: #f8fafc;
}
.admin-stage-select:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.2);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulseDot 1.4s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* Card Main Details */
.order-card__pkg {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.order-card__pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.order-price-total {
  font-weight: 800;
  color: var(--text);
}
.order-price-divider {
  color: var(--text-muted);
}
.order-price-adv {
  color: var(--brand-1);
}
.order-card__meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.order-card__trx-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
  font-size: 0.84rem;
  margin-top: 10px;
}

/* 4-Step Stepper Timeline */
.order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 18px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow-x: auto;
}
.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 85px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.order-step__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.25s;
}
.order-step--done .order-step__circle {
  background: var(--brand-1);
  border-color: var(--brand-1);
  color: #fff;
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.4);
}
.order-step--current .order-step__circle {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #000;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.order-step__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.order-step--done .order-step__label,
.order-step--current .order-step__label {
  color: var(--text);
  font-weight: 700;
}
.order-step__bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px 18px;
  min-width: 20px;
  transition: background 0.25s;
}
.order-step__bar--active {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}

/* Details Dropdown & Pre */
.order-card__details {
  margin: 16px 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.order-card__details summary {
  font-weight: 600;
  color: var(--brand-2);
  cursor: pointer;
  outline: none;
}
.order-card__pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* Card Action Buttons */
.order-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .orders-user-banner {
    padding: 16px;
  }
  .orders-user-banner__left {
    width: 100%;
  }
  .orders-user-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .order-card {
    padding: 18px;
  }
  .order-stepper {
    padding: 14px 10px;
  }
  .order-step {
    min-width: 72px;
  }
}

/* ============================================================
   Deliverables, Handover & Admin Manage Styles
   ============================================================ */
.order-deliverables {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0 16px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.1);
}
.order-deliverables__badge {
  font-size: 1.05rem;
  font-weight: 800;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.order-deliverables p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.order-deliverables__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.btn--deliverable {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn--deliverable:hover {
  transform: translateY(-2px);
}

/* Active Sprint Preview Box (Step 3) */
.order-sprint-preview {
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 18px 0 14px;
}
.order-sprint-preview__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 10px;
}
.order-sprint-preview__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.order-sprint-notes {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  line-height: 1.45;
  border-left: 3px solid var(--brand-1);
}

/* Client Feedback & Rating Box */
.order-review-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.order-review-box__head {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.review-stars {
  display: inline-flex;
  gap: 6px;
  font-size: 1.35rem;
  cursor: pointer;
  user-select: none;
}
.review-star {
  opacity: 0.35;
  transition: opacity 0.15s, transform 0.15s;
}
.review-star:hover,
.review-star.review-star--active {
  opacity: 1;
  color: #fbbf24;
  transform: scale(1.15);
}
.review-saved-msg {
  font-size: 0.82rem;
  color: #4ade80;
  font-weight: 600;
  margin-top: 6px;
}

/* Manage Modal Specifics */
.auth-modal--manage {
  max-width: 560px;
}
.stage-radio-group {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.stage-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s;
}
.stage-radio:hover {
  border-color: var(--brand-1);
}
.stage-radio:has(input[type="radio"]:checked),
.stage-radio.is-selected {
  border-color: var(--brand-1);
  background: rgba(124, 92, 255, 0.14);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.22);
}
.stage-radio input[type="radio"]:checked + span {
  color: #fff;
  font-weight: 700;
}
.stage-radio--complete {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.04);
}
.stage-radio--complete:hover,
.stage-radio--complete:has(input[type="radio"]:checked),
.stage-radio--complete.is-selected {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
}

/* Modern Non-intrusive Admin Toast */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #f8fafc;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 197, 94, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.admin-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   Master Admin Control Panel Styles (#admin)
   ============================================================ */
.admin-gate {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 480px;
  margin: 30px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.admin-gate__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.admin-gate h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.admin-gate p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Admin Top Bar */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.admin-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.4);
}
.admin-kpi-card__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.admin-kpi-card__val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text) 50%, var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-kpi-card__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Admin Navigation Tabs */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.admin-tab {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-tab:hover {
  color: var(--text);
  border-color: var(--brand-1);
}
.admin-tab--active {
  background: var(--brand-1);
  border-color: var(--brand-1);
  color: #fff;
}

/* Filter Bar */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-filter-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-filter-pill:hover {
  border-color: var(--brand-1);
  color: var(--text);
}
.admin-filter-pill.is-active {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #000;
  font-weight: 800;
}

/* Admin Orders Table */
.admin-orders-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}
.admin-table th {
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}
.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-order-id-cell {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  color: var(--brand-2);
}
.admin-cell-user-name {
  font-weight: 700;
  color: var(--text);
}
.admin-cell-user-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.admin-links-preview {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--brand-2);
  text-decoration: none;
  font-size: 0.75rem;
}
.admin-link-icon:hover {
  background: var(--brand-1);
  color: #fff;
}

/* Registered Clients Grid */
.admin-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.admin-user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.admin-user-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-user-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.admin-user-card__info b {
  font-size: 0.98rem;
  color: var(--text);
  display: block;
}
.admin-user-card__info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.admin-user-card__stats {
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--brand-1);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-user-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* User Status Badges */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.user-badge--active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.user-badge--verified {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.user-badge--vip {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(168, 85, 247, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.user-badge--discussion {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.user-badge--blocked {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sales Social Proof Toast */
.sales-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}
@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sales-toast__icon {
  font-size: 1.5rem;
  background: rgba(255, 107, 0, 0.12);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sales-toast__content {
  flex: 1;
  min-width: 0;
}
.sales-toast__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.2;
}
.sales-toast__text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-toast__time {
  font-size: 0.7rem;
  color: var(--brand-2);
  font-weight: 600;
  margin-top: 3px;
}
.sales-toast__close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.sales-toast__close:hover {
  color: var(--text);
}

/* Revenue Analytics Chart Bars */
.revenue-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.revenue-bar-fill {
  width: 100%;
  max-width: 32px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-1));
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}
.revenue-bar-fill:hover {
  background: linear-gradient(180deg, #38bdf8, var(--brand-2));
  filter: brightness(1.15);
}
.revenue-bar-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}

/* Subscription Renewal Alert Card */
.renewal-due-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.renewal-due-alert__info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f87171;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.renewal-due-alert__info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.user-status-option:hover {
  border-color: var(--brand-1);
}
.user-status-option input[type="radio"] {
  accent-color: var(--brand-1);
}
.admin-user-card__notes {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--brand-2);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.admin-user-card__tag {
  display: inline-block;
  background: rgba(124, 92, 255, 0.14);
  color: var(--brand-2);
  border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
.admin-kpi-card--clickable {
  cursor: pointer;
  user-select: none;
}
.admin-kpi-card--clickable:hover {
  transform: translateY(-3px);
  border-color: var(--brand-2);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.15);
}
.admin-kpi-card--clickable .admin-kpi-card__label span {
  transition: transform 0.2s;
  display: inline-block;
}
.admin-kpi-card--clickable:hover .admin-kpi-card__label span {
  transform: translateX(4px);
}



