/* ==========================================================================
   SmsOtp — design system
   Single stylesheet for landing + dashboard. No build step required.
   ========================================================================== */

/* ---------- 1. Theme tokens ----------
   Awaiso family tokens (awaisosuite.com is the reference):
   obsidian dark by default, lime #c8f233, Plus Jakarta Sans + JetBrains Mono.
   Theme key in localStorage: `awaiso_theme` (light | dark). */

:root {
  /* brand (accent colour used for text / borders / rings) */
  --brand-1: #c8f233;
  --brand-2: #a8d420;
  --brand-3: #10b981;
  --lime: #c8f233;
  --lime-hover: #d7fa4d;
  --on-lime: #0a0c0e;
  /* filled lime (buttons, logo mark, counters) - identical in both themes */
  --grad: linear-gradient(135deg, #c8f233 0%, #bfe82c 100%);
  /* lime text gradient (headline accents, OTP code) - overridden for light */
  --grad-text: linear-gradient(135deg, #c8f233 0%, #a8d420 55%, #10b981 100%);
  --grad-soft: rgba(200, 242, 51, .12);
  --lime-shadow: 0 8px 24px -8px rgba(200, 242, 51, .55);
  --lime-shadow-hover: 0 12px 32px -8px rgba(200, 242, 51, .6);

  --radius: 16px;
  --radius-sm: 12px;
  --shell: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --eco-h: 0px;   /* height of the ecosystem bar; set by app.js */
}
body:has(#awaiso-eco) { --eco-h: 38px; }

/* dark is the default look */
html[data-theme="dark"], html:not([data-theme]) {
  --bg: #090b0e;
  --bg-2: #0e1117;
  --bg-input: #10141c;
  --surface: #131720;
  --surface-2: rgba(255, 255, 255, .05);
  --surface-solid: #131720;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #7d8ba0;
  --ok: #34d399;
  --warn: #f59e0b;
  --bad: #f87171;
  --info: #38bdf8;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(200, 242, 51, .22), 0 18px 60px -18px rgba(200, 242, 51, .35);
  --aurora-op: .2;
  color-scheme: dark;
}

html[data-theme="light"] {
  --brand-1: #5a9216;
  --brand-2: #4d7c0f;
  --brand-3: #047857;
  --grad-text: linear-gradient(135deg, #5a9216 0%, #3f6b0b 60%, #047857 100%);
  --grad-soft: rgba(90, 146, 22, .12);
  --lime-shadow: 0 8px 22px -8px rgba(90, 146, 22, .5);
  --lime-shadow-hover: 0 12px 30px -8px rgba(90, 146, 22, .55);
  --bg: #f4f6f9;
  --bg-2: #eceff4;
  --bg-input: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --surface-solid: #ffffff;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .16);
  --text: #0b1220;
  --muted: #4b5a70;
  --faint: #5f6e83;
  --ok: #047857;
  --warn: #b45309;
  --bad: #b91c1c;
  --info: #0369a1;
  --shadow: 0 18px 44px -24px rgba(15, 23, 42, .35);
  --glow: 0 0 0 1px rgba(90, 146, 22, .22), 0 16px 40px -20px rgba(90, 146, 22, .35);
  --aurora-op: .1;
  color-scheme: light;
}
/* ---------- 2. Base ---------- */

* { box-sizing: border-box; }

/* Author `display` rules beat the UA sheet's [hidden] rule, so restate it. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

code, kbd, .mono { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }

h1, h2, h3, h4, .display {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -.022em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(200, 242, 51, .35); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* focus ring that works on both themes */
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- 3. Ambient background ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--aurora-op, .2);
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { background: var(--brand-1); top: -14vw; left: -8vw; }
.aurora span:nth-child(2) { background: var(--brand-2); top: 4vw; right: -12vw; animation-delay: -7s; }
.aurora span:nth-child(3) { background: var(--brand-3); bottom: -20vw; left: 26vw; animation-delay: -13s; opacity: calc(var(--aurora-op, .2) * .6); }


@keyframes drift {
  to { transform: translate3d(4vw, 5vw, 0) scale(1.14); }
}

/* subtle grid overlay */
.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  opacity: .5;
}

/* ---------- 4. Surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card-solid { background: var(--surface-solid); backdrop-filter: none; }

.card-lift:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

/* gradient hairline border on hover — the signature accent */
.card-glow { position: relative; }
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--grad);
  color: var(--on-lime);
  box-shadow: var(--lime-shadow);
}
.btn-primary:hover:not(:disabled) { background: var(--lime-hover); box-shadow: var(--lime-shadow-hover); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--brand-2); color: var(--text); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 6. Chips, badges, pills ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: inherit;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--grad-soft);
  border-color: rgba(200, 242, 51, .5);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok   { color: var(--ok);   background: rgba(52, 211, 153, .13); border-color: rgba(52, 211, 153, .3); }
.badge-warn { color: var(--warn); background: rgba(251, 191, 36, .13); border-color: rgba(251, 191, 36, .3); }
.badge-bad  { color: var(--bad);  background: rgba(251, 113, 133, .13); border-color: rgba(251, 113, 133, .3); }
.badge-info { color: var(--info); background: rgba(96, 165, 250, .13); border-color: rgba(96, 165, 250, .3); }
.badge-mute { color: var(--muted); background: var(--surface-2); border-color: var(--line); }

.pulse { animation: pulse 1.7s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- 7. Form controls ---------- */

.field { display: block; margin-bottom: 14px; }
.field > label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: .01em;
}

.input, select.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(200, 242, 51, .18);
  outline: none;
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2397a3c0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
select.input:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 8. Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.nav-link {
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 2px;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #c8f233;
  display: grid; place-items: center;
  color: #0a0c0e;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0;
  box-shadow: 0 6px 20px rgba(200, 242, 51, .28);
  flex: 0 0 auto;
}
.logo-by { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); align-self: flex-end; padding-bottom: 3px; white-space: nowrap; }
.logo-by b { color: var(--brand-1); font-weight: 800; }

/* ---------- 9. Sections ---------- */

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }

/* ---------- 10. Landing bits ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-strip > div { background: var(--bg); padding: 24px 20px; text-align: center; }
.stat-strip .n { font-size: 30px; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em; }
.stat-strip .l { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--brand-1);
}

.step-line { position: relative; }
.step-line::before {
  content: "";
  position: absolute;
  left: 22px; top: 44px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-2), transparent);
  opacity: .45;
}
.step-line > div:last-child::before { display: none; }

.step-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  background: var(--grad);
  color: var(--on-lime);
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.faq-q svg { flex: 0 0 auto; transition: transform .3s var(--ease); color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--brand-1); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 22px; color: var(--muted); line-height: 1.7; max-width: 68ch; }

/* ---------- 11. Dashboard shell ---------- */

.app { display: grid; grid-template-columns: 264px 1fr; grid-template-rows: minmax(0, 1fr); height: 100vh; overflow: hidden; }
/* App pages (dashboard/admin): the ecosystem bar sits above the shell, so the
   body is a column and the shell takes whatever height is left (no double scroll). */
body.app-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.app-page > #awaiso-eco { flex: 0 0 auto; }
body.app-page > .app { flex: 1 1 0; height: auto; min-height: 0; }
.app > div { min-height: 0; }

.sidebar {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  backdrop-filter: blur(16px);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.side-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 16px 12px 6px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  font-family: inherit;
  background: none;
  width: 100%;
  text-align: left;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active {
  background: var(--grad-soft);
  border-color: rgba(200, 242, 51, .38);
  color: var(--text);
  font-weight: 700;
}
.side-link .ico { flex: 0 0 auto; opacity: .9; }
.side-link .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-lime);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.wallet-pill .amt { font-weight: 800; font-size: 15px; letter-spacing: -.02em; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* wizard */
.wizard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.wstep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  color: var(--faint);
  font-weight: 600;
  font-size: 14.5px;
}
.wstep:last-child { border-right: 0; }
.wstep .n {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--line-strong);
  flex: 0 0 auto;
}
.wstep.active { color: var(--text); }
.wstep.active .n { background: var(--grad); color: var(--on-lime); border-color: transparent; }
.wstep.done { color: var(--ok); }
.wstep.done .n { background: rgba(52, 211, 153, .16); border-color: rgba(52, 211, 153, .45); color: var(--ok); }

/* selectable row/card */
.pick {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: all .22s var(--ease);
}
.pick:hover { border-color: var(--brand-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.pick .flag { font-size: 26px; line-height: 1; }
.pick .name { font-weight: 700; font-size: 15.5px; }
.pick .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pick .price { margin-left: auto; text-align: right; }
.pick .price b { font-size: 16px; letter-spacing: -.02em; }

/* live number card */
.number-plate {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: .04em;
}

.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring .track { stroke: var(--line); }
.ring .prog { stroke: url(#ringGrad); transition: stroke-dashoffset 1s linear; }

.otp-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .32em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* table-ish history rows */
.hrow {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .9fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hrow:last-child { border-bottom: 0; }
.hrow:hover { background: var(--surface-2); }

/* toast */
.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  animation: toastIn .35s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- maintenance freeze ---------- */

.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  animation: toastIn .3s var(--ease);
}
.maint-card {
  max-width: 460px;
  text-align: center;
  padding: 38px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.maint-card .icon {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
}
.maint-card h2 { font-size: 23px; margin-bottom: 10px; }
.maint-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* Admins keep working, but never lose sight of the store being closed. */
.maint-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2b1a00;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* ---------- dismissible modal (service notice etc.) ---------- */

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 7, 15, .55);
  backdrop-filter: blur(6px);
  animation: toastIn .25s var(--ease);
}
.modal-box {
  width: 100%;
  max-width: 440px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.modal-box .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-box h3 { font-size: 18px; }
.modal-box p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; }

/* ---------- service tiles ---------- */

.svc-logo {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  flex: 0 0 auto;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 12. Responsive ---------- */

@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: var(--eco-h, 0px) auto 0 0;
    height: auto;
    width: 264px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    background: var(--bg-2);
  }
  .sidebar.open { transform: none; }
  .scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(3, 6, 14, .6);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  [data-nav-burger] { display: grid !important; }
  .ws-label { display: none; }
  .wallet-pill { padding: 6px 12px; }
  .wallet-pill .amt { font-size: 13.5px; }
  .foot-grid { grid-template-columns: 1fr !important; }
  .topbar { padding: 12px 16px; }
  .shell { padding-inline: 16px; }
  .wizard { grid-template-columns: 1fr; }
  .wstep { border-right: 0; border-bottom: 1px solid var(--line); }
  .wstep:last-child { border-bottom: 0; }
  .hrow { grid-template-columns: 1fr 1fr; }
  .nav-desktop { display: none !important; }
}

/* ---------- 13. Awaiso family: promo blocks, auth wrap ---------- */

.auth-wrap { min-height: calc(100vh - var(--eco-h, 0px)); display: grid; place-items: center; padding: 28px 20px; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), opacity .7s var(--ease);
}
.promo-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 242, 51, .16), transparent);
  pointer-events: none;
}
html[data-theme="light"] .promo-card::after { background: radial-gradient(closest-side, rgba(90, 146, 22, .14), transparent); }
.promo-card:hover { transform: translateY(-3px); border-color: var(--brand-2); box-shadow: var(--shadow); }
.promo-card .tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-1);
  background: var(--grad-soft);
  border: 1px solid rgba(200, 242, 51, .3);
}
html[data-theme="light"] .promo-card .tag { border-color: rgba(90, 146, 22, .35); }
.promo-card h3 { font-size: 21px; line-height: 1.2; }
.promo-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.promo-card .btn { align-self: flex-start; margin-top: auto; }

.foot-more a { color: var(--muted); }
.foot-more a:hover, .foot-grid a.muted:hover { color: var(--brand-1); }

/* dashboard sidebar: small "Also from Awaiso" card */
.side-promo { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.side-promo .t { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.side-promo a { display: block; padding: 6px 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.side-promo a b { color: var(--text); display: block; font-size: 13px; }
.side-promo a:hover b { color: var(--brand-1); }

.wait-promo { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); font-size: 13px; color: var(--muted); line-height: 1.6; }
.wait-promo a { color: var(--brand-1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* light theme: soften the glass layers and keep text readable */
html[data-theme="light"] .card { backdrop-filter: none; }
html[data-theme="light"] .maint-banner { color: #2b1a00; }
html[data-theme="light"] .modal-back { background: rgba(15, 23, 42, .45); }
html[data-theme="light"] .nav.stuck { background: rgba(255, 255, 255, .86); }
html[data-theme="light"] ::selection { background: rgba(90, 146, 22, .3); }
@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .topbar > div:first-of-type { flex: 1 1 0; min-width: 0; }
  .topbar [data-view-title] { display: block; overflow: hidden; text-overflow: ellipsis; }
  .topbar > div:last-child { flex: 0 0 auto; gap: 6px !important; }
  .topbar .user-chip { display: none !important; }
  .wallet-pill { padding: 5px 11px; }
  .wallet-pill > span { display: none !important; }
  .wallet-pill .faint { display: none; }
  .wallet-pill .amt { white-space: nowrap; }
  main[data-main] { padding: 22px 14px 48px !important; }
}
@media (max-width: 1100px) {
  .nav .logo-by { display: none; }
}
@media (max-width: 760px) {
  .logo-by { display: none; }
  .auth-wrap { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
