/*
 * SafeUsPay interface layer (loaded after app.css).
 *
 * Neon fintech system: midnight #030817, deep navy #07162F, elevated #0B2042,
 * electric cyan / turquoise / royal blue / indigo / violet / neon magenta.
 * Instrument Sans throughout; tabular figures for every amount. Existing
 * markup and class names are preserved; this file only changes the visual
 * system. No build step: plain CSS.
 */
:root,
[data-theme="dark"] {
  --bg: #030817;
  --bg-elev: #07162F;
  --bg-elev-2: #0B2042;
  --raised: #0B2042;
  --ink: #F7FAFF;
  --muted: #A9B9D4;
  --line: #16345F;
  --line-soft: rgba(0, 229, 255, 0.14);
  --accent: #00E5FF;
  --accent-ink: #03101F;
  --accent-2: #00F5D4;
  --royal: #1769FF;
  --indigo: #493BFF;
  --violet: #8B35FF;
  --magenta: #F044FF;
  --ok: #00D6A3;
  --warn: #FFC857;
  --danger: #FF5470;
  --ok-bg: rgba(0, 214, 163, 0.14);
  --warn-bg: rgba(255, 200, 87, 0.14);
  --danger-bg: rgba(255, 84, 112, 0.14);
  --neutral-bg: rgba(169, 185, 212, 0.12);
  --focus: #00E5FF;
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.16);
  --glow-violet: 0 18px 48px -24px rgba(139, 53, 255, 0.55);
  --surface: linear-gradient(180deg, #0B2042 0%, #07162F 100%);
  --surface-border: rgba(0, 229, 255, 0.14);
  --surface-shadow: 0 20px 46px -36px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --nav-surface: rgba(7, 22, 47, 0.92);
  --gradient-brand: linear-gradient(135deg, #1769FF 0%, #493BFF 42%, #8B35FF 72%, #F044FF 100%);
  --gradient-cyan: linear-gradient(135deg, #00F5D4 0%, #00E5FF 45%, #1769FF 100%);
  --radius: 18px;
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #EEF4FF;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #E6EFFF;
  --raised: #E6EFFF;
  --ink: #08152E;
  --muted: #4B5F82;
  --line: #CFDCF2;
  --line-soft: rgba(23, 105, 255, 0.18);
  --accent: #1769FF;
  --accent-ink: #FFFFFF;
  --accent-2: #8B35FF;
  --royal: #1769FF;
  --indigo: #493BFF;
  --violet: #8B35FF;
  --magenta: #D61FE0;
  --ok: #007F63;
  --warn: #9A6100;
  --danger: #C22B47;
  --ok-bg: #DCF7EF;
  --warn-bg: #FFF1D6;
  --danger-bg: #FFE4E9;
  --neutral-bg: #E6EFFF;
  --focus: #1769FF;
  --gradient-brand: linear-gradient(135deg, #1769FF 0%, #493BFF 55%, #8B35FF 100%);
  --gradient-cyan: linear-gradient(135deg, #007F9E 0%, #1769FF 100%);
  --surface: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%);
  --surface-border: #CFDCF2;
  --surface-shadow: 0 12px 30px -24px rgba(8, 21, 46, 0.2);
  --nav-surface: rgba(255, 255, 255, 0.94);
  color-scheme: light;
}

body { font-family: var(--sans); font-size: 15px; background: var(--bg); color: var(--ink); }
.num, .metric b, .metric strong, .balance, .pulse b, td.num, .amount { font-variant-numeric: tabular-nums; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Typography: sentence case, no tracked-out labels. */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 550; color: var(--muted); margin: 0; }
h1, .display { font-family: var(--font); font-weight: 650; letter-spacing: -0.02em; font-stretch: 92%; font-size: 28px; line-height: 1.15; }
h2 { font-family: var(--font); font-weight: 620; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 620; margin: 0 0 8px; }

/* Surfaces */
.panel { background: var(--bg-elev); border-color: var(--line); border-radius: var(--radius); }
.action { background: var(--bg-elev); border-color: var(--line); border-radius: 14px; transition: border-color .15s; }
.action:hover { border-color: var(--accent); color: var(--ink); }
.list-row { border-color: var(--line); align-items: center; }
.alert { background: var(--warn-bg); color: var(--ink); border: 1px solid transparent; border-left: 3px solid var(--warn); border-radius: 10px; }
.alert.error { background: var(--danger-bg); border-left-color: var(--danger); }
.alert.ok { background: var(--ok-bg); border-left-color: var(--ok); }
.empty { color: var(--muted); }

/* The card face keeps its own neon identity in both themes. */
.card-visual {
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(0, 229, 255, 0.36), transparent 48%),
    radial-gradient(95% 120% at 0% 100%, rgba(240, 68, 255, 0.30), transparent 58%),
    linear-gradient(135deg, #1769FF 0%, #493BFF 42%, #8B35FF 72%, #F044FF 100%);
  color: #F7FAFF;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 22px;
}
.card-visual .pan, .balance { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* Controls */
.btn { background: var(--accent); color: var(--accent-ink); border-radius: 12px; font-weight: 650; min-height: 48px; }
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--accent); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--muted); min-height: 40px; }
.btn.ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field label { color: var(--muted); font-weight: 550; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(111, 195, 223, 0.18); }
.field .hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* Status badges: a dot plus text, so colour never carries meaning alone. */
.badge { background: var(--neutral-bg); color: var(--ink); border-radius: 999px; gap: 6px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.ok::before { background: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.warn::before { background: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.danger::before { background: var(--danger); }
[data-theme="dark"] .badge { background: var(--neutral-bg); }
[data-theme="dark"] .badge.ok { background: var(--ok-bg); }
[data-theme="dark"] .badge.warn { background: var(--warn-bg); }
[data-theme="dark"] .badge.danger { background: var(--danger-bg); }
[data-theme="dark"] .calc, .calc { background: var(--raised); font-family: var(--font); }

/* Tables */
table { font-size: 14px; }
th { color: var(--muted); font-weight: 550; font-size: 13px; }
th, td { border-color: var(--line); }
tr:hover td { background: rgba(142, 154, 180, 0.05); }

/* Metric tiles */
.metric { background: var(--bg-elev); border-color: var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.metric b, .metric strong { font-family: var(--font); font-size: 26px; font-weight: 650; display: block; }
.metric small { color: var(--muted); font-size: 13px; }
a.metric:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- Customer shell */
.app-shell { padding-top: 24px; }
.nav {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  justify-content: space-between;
  gap: 2px;
  padding-left: 6px;
  padding-right: 6px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  overflow-x: auto;
}
.nav a { font-size: 11px; color: var(--muted); padding: 10px 6px; white-space: nowrap; border-radius: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 400px) { .nav a { font-size: 10.5px; padding: 10px 4px; } }
.nav a.active { color: var(--accent); background: rgba(212, 175, 90, 0.1); }
.theme-switch { position: absolute; top: 18px; right: 20px; }

/* ---------------------------------------------------------------- Stepwise sign-in */
.signin { margin-top: 28px; }
.signin .identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--raised); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.signin .identity span { overflow-wrap: anywhere; }
.js .signin .step:not([data-active]) { display: none; }
.signin .step-note { color: var(--muted); font-size: 13px; }
.signin .progress { display: flex; gap: 6px; margin: 0 0 18px; }
.signin .progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.signin .progress i.on { background: var(--accent); }
.no-js .signin .progress, .no-js .signin [data-js-only] { display: none; }

/* ---------------------------------------------------------------- Staff shell */
.staff-frame { min-height: 100dvh; }
.staff-rail {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.staff-rail .brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-rail .brand strong { font-size: 16px; font-weight: 680; letter-spacing: -0.01em; }
.staff-rail .brand .mark { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 8px; }
.role-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.role-chip.super { border-color: rgba(212, 175, 90, 0.5); color: var(--accent); }
.staff-rail details { margin-top: 8px; }
.staff-rail summary { cursor: pointer; color: var(--muted); font-size: 14px; min-height: 40px; display: flex; align-items: center; }
.rail-group { margin: 10px 0 0; }
.rail-group p { color: var(--muted); font-size: 12px; font-weight: 600; margin: 12px 8px 4px; }
.rail-group a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink); min-height: 40px; }
.rail-group a:hover { background: var(--raised); color: var(--ink); }
.rail-group a[aria-current="page"] { background: var(--raised); box-shadow: inset 2px 0 0 var(--accent); }
.rail-group a .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rail-foot .who { font-size: 13px; color: var(--muted); margin: 0 8px 8px; overflow-wrap: anywhere; }
.staff-shell { max-width: 1180px; padding: 20px 16px 48px; }
.staff-shell .topbar h1 { font-size: 24px; }
.staff-shell .btn { min-height: 42px; }

@media (min-width: 960px) {
  .staff-frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .staff-rail { position: sticky; top: 0; height: 100dvh; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 12px; }
  .js .staff-rail details > summary { display: none; }
  .staff-shell { padding: 28px 32px 56px; margin: 0; }
}

/* Queue pulse: the one bold element. Live counts, each a link to its queue. */
.pulse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 4px 0 18px;
}
.pulse > * { background: var(--bg-elev); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-height: 84px; }
.pulse a:hover { background: var(--raised); color: var(--ink); }
.pulse span { color: var(--muted); font-size: 13px; }
.pulse b { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.pulse .hot b { color: var(--accent); }
.pulse .hot { box-shadow: inset 0 3px 0 var(--accent); }
.pulse .bad b { color: var(--danger); }
.pulse .bad { box-shadow: inset 0 3px 0 var(--danger); }
.pulse .zero b { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .pulse .hot { animation: pulse-in .6s ease-out both; }
  @keyframes pulse-in { from { box-shadow: inset 0 0 0 var(--accent); } to { box-shadow: inset 0 3px 0 var(--accent); } }
}

.dash-grid { display: grid; gap: 14px; align-items: start; }
.dash-grid .panel { margin: 0; }
@media (min-width: 900px) {
  .dash-grid.two { grid-template-columns: 3fr 2fr; }
  .dash-grid.halves { grid-template-columns: 1fr 1fr; }
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 13px; color: var(--accent); }

/* Seven-day bars from real verified payments. */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; margin-top: 8px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--raised); min-height: 3px; }
.bars div.today i { background: var(--accent); }
.bars small { color: var(--muted); font-size: 11px; }
.bar-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 10px; }

.status-list .list-row span:first-child { display: flex; flex-direction: column; }
.status-list small { color: var(--muted); font-size: 12px; }

.staff-shell table { display: table; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
@media (max-width: 640px) {
  .staff-shell table.stack thead { display: none; }
  .staff-shell table.stack, .staff-shell table.stack tbody, .staff-shell table.stack tr, .staff-shell table.stack td { display: block; width: 100%; }
  .staff-shell table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .staff-shell table.stack td { border: 0; padding: 3px 4px; }
}

/* Reseller workspace */
.partner-nav { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0; padding-bottom: 2px; }
.partner-nav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.partner-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.terms { border: 1px dashed var(--line); background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- Phone input */
.phone-input {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.phone-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(111, 195, 223, 0.18); }
.phone-input select,
.phone-input input {
  border: 0;
  border-radius: 0;
  min-height: 48px;
  background: var(--bg);
  color: var(--ink);
  padding: 0 12px;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.phone-input select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.phone-input input:focus, .phone-input select:focus { outline: none; box-shadow: none; }
.phone-input .dial { font-variant-numeric: tabular-nums; color: var(--muted); }
.phone-input-note { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.phone-input-note .example { color: var(--muted); font-size: 12px; text-align: right; }
@media (max-width: 480px) {
  .phone-input-note .example { display: none; }
}

/* ---------------------------------------------------------------- Password UX */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-wrap .reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.password-wrap .reveal:hover { color: var(--ink); background: var(--raised); }
.password-meter { margin-top: 10px; }
.password-meter .meter { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.password-meter .meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width .18s ease, background .18s ease; }
.password-meter .meter i[data-score="1"] { background: var(--danger); }
.password-meter .meter i[data-score="2"] { background: var(--warn); }
.password-meter .meter i[data-score="3"] { background: var(--accent-2); }
.password-meter .meter i[data-score="4"] { background: var(--ok); }
.password-meter .strength-label { margin: 6px 0 4px; font-size: 12.5px; color: var(--muted); }
.password-rules { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.password-rules li { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.password-rules li::before { content: "○"; color: var(--muted); font-size: 10px; }
.password-rules li.ok { color: var(--ok); }
.password-rules li.ok::before { content: "●"; color: var(--ok); }
.password-meter .hint { margin: 6px 0 0; font-size: 12.5px; color: var(--warn); }
@media (max-width: 420px) { .password-rules { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Registration */
.wizard-progress { margin: 18px 0 8px; }
.wizard-progress__steps { display: flex; align-items: flex-start; gap: 0; }
.wizard-progress__step { flex: 1; text-align: center; }
.wizard-progress__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--raised); color: var(--muted); font-weight: 650; font-size: .85rem;
  border: 1px solid var(--line);
}
.wizard-progress__label { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.wizard-progress__step--current .wizard-progress__number { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wizard-progress__step--current .wizard-progress__label { color: var(--ink); font-weight: 600; }
.wizard-progress__step--complete .wizard-progress__number { background: var(--ok); border-color: var(--ok); color: #07251a; }
.wizard-progress__step--complete .wizard-progress__label { color: var(--ink); }
.wizard-progress__connector { flex: 1; height: 1px; background: var(--line); margin-top: 1rem; }
.wizard-progress__step--complete + .wizard-progress__connector { background: var(--ok); }

.review-list .list-row span:last-child { text-align: right; overflow-wrap: anywhere; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1; }
.auth-switch { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.delivery-note { border-left: 3px solid var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.otp-form { display: grid; gap: 10px; }
.otp-code { font-size: 22px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }


/* ========================================================================
   NEON FINTECH LAYER
   Midnight surfaces, cyan/blue/violet/magenta gradients, luminous edges.
   Colour is never the only status signal: badges keep their dot + text.
   ======================================================================== */

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 8% -10%, rgba(23, 105, 255, 0.18), transparent 62%),
    radial-gradient(820px 520px at 102% -4%, rgba(139, 53, 255, 0.15), transparent 62%),
    radial-gradient(720px 540px at 52% 108%, rgba(0, 229, 255, 0.09), transparent 65%);
  background-attachment: fixed;
}
::selection { background: rgba(0, 229, 255, 0.28); color: #FFFFFF; }

.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; font-weight: 700; }
h1, .display { color: var(--ink); text-wrap: balance; }
h2, h3 { color: var(--ink); }
a:hover { color: var(--accent); }

.panel,
.action,
.metric,
.card-visual + .panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
}
.panel { border-radius: var(--radius); }
.action { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.action:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 18px 40px -30px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}
.metric { border-radius: 16px; }
a.metric:hover { border-color: rgba(0, 229, 255, 0.45); }
.list-row { border-color: rgba(169, 185, 212, 0.12); }
.empty { color: var(--muted); }

/* Hero card: controlled blue -> violet -> magenta with cyan edge light. */
.card-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(0, 229, 255, 0.36), transparent 48%),
    radial-gradient(95% 120% at 0% 100%, rgba(240, 68, 255, 0.30), transparent 58%),
    linear-gradient(135deg, #1769FF 0%, #493BFF 42%, #8B35FF 72%, #F044FF 100%);
  color: #F7FAFF;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 22px;
  box-shadow: 0 26px 60px -34px rgba(73, 59, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.13) 46%, transparent 62%);
  pointer-events: none;
}
.card-visual small { color: rgba(247, 250, 255, 0.78); }
.card-visual .pan { color: #FFFFFF; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28); }
.card-visual .balance { color: #FFFFFF; }
.card-visual .btn { background: rgba(3, 8, 23, 0.28); border-color: rgba(255, 255, 255, 0.36); color: #FFFFFF; box-shadow: none; }

/* Primary actions: blue-violet gradient; secondary: cyan outline. */
.btn,
.btn.primary {
  background: var(--gradient-brand);
  color: #F7FAFF;
  border: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 12px 28px -18px rgba(73, 59, 255, 0.95);
}
.btn:hover { filter: brightness(1.08); color: #FFFFFF; }
.btn.secondary {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.38);
  color: var(--accent);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(0, 229, 255, 0.1); border-color: var(--accent); color: var(--accent); }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; filter: saturate(.7); }

.field label { color: var(--muted); }
.field input,
.field select,
.field textarea {
  background: rgba(3, 8, 23, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: #FFFFFF; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(169, 185, 212, 0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 22px rgba(0, 229, 255, 0.08);
}
select option { background: var(--bg-elev); color: var(--ink); }

/* Phone control keeps one luminous frame around both parts. */
.phone-input { border-color: var(--line); background: var(--line); }
.phone-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 22px rgba(0, 229, 255, 0.08);
}
.phone-input select,
.phone-input input { background: rgba(3, 8, 23, 0.72); }
[data-theme="light"] .phone-input select,
[data-theme="light"] .phone-input input { background: #FFFFFF; }

/* Status colours stay semantic and distinct. */
.badge { border: 1px solid rgba(169, 185, 212, 0.12); }
.badge.ok { border-color: rgba(0, 214, 163, 0.24); }
.badge.warn { border-color: rgba(255, 200, 87, 0.24); }
.badge.danger { border-color: rgba(255, 84, 112, 0.24); }

/* Navigation: dark glass, cyan active edge. */
.nav {
  background: var(--nav-surface);
  border-top: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}
.nav a { color: var(--muted); border-radius: 10px; }
.nav a:hover { color: var(--ink); }
.nav a.active {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 2px 0 var(--accent);
}
[data-theme="light"] .nav { box-shadow: 0 -10px 26px rgba(8, 21, 46, 0.1); }

/* Staff rail and role chip. */
.staff-rail {
  background: linear-gradient(180deg, #07162F 0%, #030817 100%);
  border-right: 1px solid rgba(0, 229, 255, 0.16);
  box-shadow: 10px 0 34px -30px rgba(0, 229, 255, 0.22);
}
.staff-rail .brand .mark {
  background: var(--gradient-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}
.role-chip { border-color: rgba(0, 229, 255, 0.24); color: var(--muted); background: rgba(11, 32, 66, 0.72); }
.role-chip.super {
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}
.rail-group p { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; font-weight: 700; }
.rail-group a { color: var(--ink); }
.rail-group a:hover { background: rgba(23, 105, 255, 0.12); color: #FFFFFF; }
.rail-group a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(23, 105, 255, 0.30), rgba(139, 53, 255, 0.12));
  box-shadow: inset 2px 0 0 var(--accent);
  color: #FFFFFF;
}
.rail-foot { border-top-color: rgba(0, 229, 255, 0.14); }
.rail-foot .who { color: var(--muted); }
[data-theme="light"] .staff-rail { background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%); }

/* Queue pulse and charts. */
.pulse { background: rgba(0, 229, 255, 0.16); border-color: rgba(0, 229, 255, 0.20); box-shadow: 0 22px 50px -40px rgba(0, 229, 255, 0.25); }
.pulse > * { background: linear-gradient(180deg, #0B2042 0%, #07162F 100%); }
.pulse .hot { box-shadow: inset 0 3px 0 var(--accent); }
.pulse .hot b { color: var(--accent); }
.pulse .bad { box-shadow: inset 0 3px 0 var(--danger); }
.pulse .bad b { color: var(--danger); }
.pulse .zero b { color: var(--muted); }
[data-theme="light"] .pulse > * { background: #FFFFFF; }
.bars i { background: linear-gradient(180deg, rgba(0, 229, 255, 0.9), rgba(23, 105, 255, 0.42)); }
.bars div.today i { background: linear-gradient(180deg, #F044FF, #8B35FF); box-shadow: 0 0 14px rgba(240, 68, 255, 0.4); }

/* Progress and security feedback. */
.wizard-progress__number { background: rgba(11, 32, 66, 0.85); border-color: var(--line); color: var(--muted); }
.wizard-progress__step--current .wizard-progress__number {
  background: var(--gradient-cyan);
  border-color: transparent;
  color: #03101F;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}
.wizard-progress__step--complete .wizard-progress__number {
  background: linear-gradient(135deg, #00D6A3, #00E5FF);
  border-color: transparent;
  color: #03101F;
}
.wizard-progress__step--complete + .wizard-progress__connector { background: rgba(0, 229, 255, 0.45); }
.wizard-progress__step--current .wizard-progress__label { color: var(--accent); }
.password-meter .meter { background: rgba(169, 185, 212, 0.14); }
.password-wrap .reveal { color: var(--muted); }
.password-wrap .reveal:hover { color: var(--accent); background: rgba(0, 229, 255, 0.08); }
.auth-switch a { color: var(--accent); }
.delivery-note { border-left-color: var(--warn); background: var(--warn-bg); }

/* Tables and utility surfaces. */
th { color: var(--muted); }
tr:hover td { background: rgba(0, 229, 255, 0.035); }
.calc { background: rgba(11, 32, 66, 0.9); border: 1px solid var(--line-soft); }
[data-theme="light"] .calc { background: #E6EFFF; }
.timeline { border-left-color: rgba(0, 229, 255, 0.25); }
.timeline li::before { background: var(--accent); box-shadow: 0 0 10px rgba(0, 229, 255, 0.45); }
.panel-head a { color: var(--accent); }
.status-list small { color: var(--muted); }

/* Configured provider strip (customer home). Logos are optional uploads; the
   fallback is a neutral initial, never a substituted third-party brand. */
.provider-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.provider-row::-webkit-scrollbar { height: 0; }
.provider-tile {
  flex: 0 0 72px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px; border: 1px solid var(--surface-border); border-radius: 14px;
  background: rgba(11, 32, 66, 0.72); text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.provider-tile:hover { border-color: rgba(0, 229, 255, 0.45); color: var(--ink); transform: translateY(-1px); }
.provider-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  overflow: hidden; background: rgba(3, 8, 23, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.18);
}
.provider-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.provider-initial { font-size: 16px; font-weight: 750; color: var(--accent); }
.provider-tile strong { font-size: 11.5px; line-height: 1.2; font-weight: 650; }
.provider-tile small { font-size: 10px; color: var(--muted); }
.provider-tile.is-open small { color: var(--ok); }
.provider-tile.is-closed { opacity: .8; }
.provider-note { margin: 10px 0 0; font-size: 12.5px; }
[data-theme="light"] .provider-tile { background: #FFFFFF; }

/* Card carousel: real cards, horizontal snap, one card on phones and two on
   wider customer shells. The selected card panel is updated by app.js. */
.card-carousel {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 2px 2px 12px; margin: 0 -2px;
  scrollbar-width: thin;
}
.card-carousel .card-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; }
.card-carousel::-webkit-scrollbar { height: 3px; }
.card-carousel::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.35); border-radius: 999px; }
.card-carousel::-webkit-scrollbar-track { background: transparent; }
.card-carousel .card-slide.is-selected { box-shadow: 0 26px 60px -34px rgba(73, 59, 255, 0.95), 0 0 0 1px rgba(0, 229, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
@media (min-width: 520px) {
  .card-carousel .card-slide { flex-basis: calc(50% - 6px); }
}
.card-selection .list-row { align-items: center; }
.card-selection [data-selected-masked] { font-family: var(--font); letter-spacing: .08em; }

/* Native file inputs (provider logo upload) follow the same neon surface. */
input[type=file] {
  max-width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(3, 8, 23, 0.72); color: var(--muted); font-size: 12px;
}
input[type=file]::file-selector-button {
  margin-right: 8px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #1769FF, #8B35FF); color: #F7FAFF;
  font: inherit; font-weight: 600; cursor: pointer;
}
[data-theme="light"] input[type=file] { background: #FFFFFF; color: var(--muted); }

/* ========================================================================
   CUSTOMER EXPERIENCE — 2026-10-21
   Reference-led shell: brand header, real navigation, notification bell,
   wide desktop composition, five-item mobile navigation. Everything here is
   presentation only; no data or route semantics are introduced.
   ======================================================================== */

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Top bar */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, #030817 86%, transparent);
  border-bottom: 1px solid rgba(0, 229, 255, 0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.app-topbar__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand__mark--tiny { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.brand__copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand__copy strong { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand__copy small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.app-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.app-nav__link .icon { width: 17px; height: 17px; opacity: .9; }
.app-nav__link:hover { color: var(--ink); background: rgba(0, 229, 255, 0.06); }
.app-nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.30), rgba(139, 53, 255, 0.20));
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.24);
}
.app-topbar__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--ink); background: rgba(0, 229, 255, 0.07); border-color: rgba(0, 229, 255, 0.18); }
.icon-btn.is-active { color: var(--accent); background: rgba(0, 229, 255, 0.09); border-color: rgba(0, 229, 255, 0.28); }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(0, 245, 212, 0.35), transparent 60%),
    linear-gradient(135deg, #1769FF, #8B35FF 60%, #F044FF);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(23, 105, 255, 0.28);
}

/* ---------------------------------------------------------------- Layout */
.app-shell--app {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 64px;
  min-height: calc(100dvh - 63px);
}
.app-shell--auth {
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 34px 28px 48px;
  min-height: 0;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}
.page-head h1 { font-size: clamp(30px, 3.2vw, 38px); margin-top: 2px; }
.page-head__sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; max-width: 62ch; }
.page-head__action { flex: 0 0 auto; }
.page-head--compact { align-items: flex-start; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.back-link .icon { width: 15px; height: 15px; }
.back-link:hover { color: var(--accent); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; width: auto; }
.btn .icon { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- Home */
.home-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.home-main, .home-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.home-grid .panel, .detail-grid .panel, .cards-layout .panel,
.support-grid .panel, .account-grid .panel, .balance-grid .panel { margin: 0; }
@media (min-width: 1000px) {
  .home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

.card-visual.hero-card {
  padding: 24px;
  border-radius: 24px;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.hero-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-card__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #fff; }
.hero-card__middle { display: flex; align-items: center; gap: 14px; }
.hero-card__number {
  font-family: var(--font);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 650;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.card-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f9e6a4 0%, #d6b25c 48%, #b58c36 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0,0,0,.18);
  position: relative;
  flex: 0 0 auto;
}
.card-chip::before,
.card-chip::after {
  content: "";
  position: absolute;
  background: rgba(80, 55, 10, 0.34);
}
.card-chip::before { left: 9px; right: 9px; top: 9px; height: 1px; box-shadow: 0 4px 0 rgba(80,55,10,.34), 0 8px 0 rgba(80,55,10,.34); }
.card-chip::after { top: 5px; bottom: 5px; left: 18px; width: 1px; }
.hero-card__bottom { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.hero-card__bottom > div { display: flex; flex-direction: column; gap: 2px; }
.hero-card__bottom small {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero-card__bottom strong { font-size: 15px; font-weight: 650; color: #fff; }
.hero-card__word { margin-left: auto; font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: -0.03em; color: #fff; }

.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 14px;
  min-height: 108px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
  color: var(--ink);
  transition: border-color .16s ease, transform .16s ease;
}
.quick-action:hover { color: var(--ink); border-color: rgba(0, 229, 255, 0.42); transform: translateY(-1px); }
.quick-action__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--accent);
  flex: 0 0 auto;
}
.quick-action > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.quick-action strong { font-size: 13.5px; font-weight: 650; }
.quick-action small { color: var(--muted); font-size: 11.5px; }

.activity-row { align-items: center; gap: 11px; }
.activity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.35), rgba(139, 53, 255, 0.25));
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.activity-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.activity-main strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-main small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-amount { font-size: 13px; font-weight: 650; text-align: right; white-space: nowrap; }
.activity-empty { font-size: 13px; margin: 4px 0; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 44px 22px;
}
.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 4px;
}
.empty-state__icon .icon { width: 25px; height: 25px; }
.empty-state h2 { margin: 0; }
.empty-state p { color: var(--muted); font-size: 13.5px; margin: 2px 0 12px; max-width: 54ch; }
.empty-state--inline { padding: 30px 12px; }
.hero-empty { min-height: 210px; justify-content: center; }

/* Providers become a balanced grid when the shell has room. */
@media (min-width: 760px) {
  .provider-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    gap: 10px;
  }
  .provider-tile { flex: 0 1 auto; padding: 14px 8px; min-height: 108px; }
}

/* ---------------------------------------------------------------- Cards */
.cards-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .cards-layout { grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr); align-items: start; }
}
.cards-main { min-width: 0; }
.card-carousel {
  padding-top: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card-carousel::-webkit-scrollbar { display: none; height: 0; width: 0; }
@media (min-width: 1000px) {
  .cards-layout .card-carousel .card-slide { flex-basis: calc(50% - 6px); }
}
.cards-order-action { width: auto; margin-top: 16px; }
.card-carousel .card-visual .badge.ok,
.card-visual .badge.ok {
  background: rgba(0, 214, 163, 0.18);
  color: #9BFFE6;
  border-color: rgba(0, 214, 163, 0.42);
}
.card-visual .badge.ok::before { background: #9BFFE6; }
.card-carousel .card-slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 228px;
  padding: 22px;
}
@media (min-width: 520px) {
  .card-carousel .card-slide { flex-basis: 100%; }
}
.card-slide__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-slide__middle { display: flex; align-items: center; gap: 14px; }
.card-slide__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card-slide__bottom > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.card-slide__bottom small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.72); }
.card-slide__bottom strong { font-size: 20px; color: #fff; }
.carousel-hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.selection-actions { display: grid; gap: 8px; margin-top: 14px; }
.card-selection .panel-head { margin-bottom: 8px; }

/* ---------------------------------------------------------------- Detail pages & action rows */
.detail-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
}
.detail-card { margin: 0 0 18px; }
.detail-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.055);
  border: 1px solid rgba(0, 229, 255, 0.14);
  color: var(--muted);
  font-size: 12.5px;
}
.detail-note .icon { color: var(--accent); margin-top: 1px; }
.detail-note p { margin: 0; }
.action-list { display: flex; flex-direction: column; }
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(169, 185, 212, 0.12);
  color: var(--ink);
  min-height: 60px;
}
.action-row:last-child { border-bottom: 0; }
.action-row:hover { color: var(--accent); }
.action-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.14);
  color: var(--accent);
  flex: 0 0 auto;
}
.action-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.action-row__text strong { font-size: 13.5px; font-weight: 650; }
.action-row__text small { color: var(--muted); font-size: 11.5px; }
.action-row > .icon { width: 15px; height: 15px; color: var(--muted); }
.detail-back { margin-top: 14px; }

/* ---------------------------------------------------------------- Transactions */
.txn-toolbar { margin-bottom: 18px; }
.filter-drawer { display: block; }
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(0, 229, 255, 0.32);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 14px;
}
.filter-toggle::-webkit-details-marker { display: none; }
.filter-toggle .icon { width: 18px; height: 18px; color: var(--accent); }
.filter-toggle__chevron { display: inline-flex; margin-left: 4px; color: var(--muted); transition: transform .16s ease; }
.filter-toggle__chevron .icon { width: 14px; height: 14px; color: var(--muted); }
details[open] .filter-toggle__chevron { transform: rotate(180deg); }
.filter-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-panel { margin-top: 12px; padding: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.filter-grid__wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .filter-grid { grid-template-columns: minmax(0, 1fr); } }
.filter-actions { display: flex; gap: 10px; margin-top: 2px; }
.filter-actions .btn { width: auto; min-width: 140px; flex: 1; }
@media (max-width: 480px) {
  .filter-actions { flex-direction: column; }
  .filter-actions .btn { width: 100%; }
}
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.active-filters__label { font-size: 12px; font-weight: 650; color: var(--muted); }
.filter-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--ink);
}
.active-filters__clear { font-size: 12.5px; color: var(--accent); font-weight: 600; }

.txn-panel { padding: 0; overflow: hidden; }
.txn-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(169, 185, 212, 0.12);
}
.txn-panel__head h2 { margin: 0; }
.transaction-list { display: flex; flex-direction: column; }
.transaction-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(169, 185, 212, 0.1);
  color: var(--ink);
}
.transaction-row:last-child { border-bottom: 0; }
.transaction-row:hover { color: var(--ink); background: rgba(0, 229, 255, 0.035); }
.txn-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.38), rgba(139, 53, 255, 0.24));
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.txn-main { display: flex; flex-direction: column; min-width: 0; }
.txn-main strong { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-main small { color: var(--muted); font-size: 11.5px; }
.txn-amount { font-size: 14px; font-weight: 650; text-align: right; white-space: nowrap; }
.txn-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 112px; }
.txn-meta .date { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 720px) {
  .transaction-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    row-gap: 6px;
    padding: 13px 14px;
  }
  .txn-avatar { grid-row: 1 / 3; width: 38px; height: 38px; }
  .txn-main { grid-column: 2; grid-row: 1; }
  .txn-amount { grid-column: 3; grid-row: 1; font-size: 13px; }
  .txn-meta {
    grid-column: 2 / 4;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
  .txn-panel__head { padding: 13px 14px; }
}
.txn-detail { margin-top: 0; }
.txn-detail__figure {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(169, 185, 212, 0.12);
}
.txn-detail__figure span { color: var(--muted); font-size: 12px; }
.txn-detail__figure strong { font-family: var(--font); font-size: 36px; font-weight: 650; letter-spacing: -0.02em; }
.txn-detail__figure small { color: var(--muted); font-size: 12px; }

/* Laravel's default paginator markup, styled without Tailwind. */
.pagination-wrap { margin-top: 18px; overflow-x: auto; }
.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap nav > div { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav a,
.pagination-wrap nav span[aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}
.pagination-wrap nav a:hover { border-color: rgba(0, 229, 255, 0.4); color: var(--accent); }
.pagination-wrap nav span[aria-current] { background: rgba(0, 229, 255, 0.09); border-color: rgba(0, 229, 255, 0.36); color: var(--accent); }
.pagination-wrap nav span.cursor-default,
.pagination-wrap nav span[aria-disabled="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 13px;
}
.pagination-wrap svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- Balance */
.balance-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.balance-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.balance-card__head h2 { margin: 3px 0 0; }
.balance-card__figure { display: flex; flex-direction: column; gap: 2px; margin: 18px 0; }
.balance-card__figure span { color: var(--muted); font-size: 12px; }
.balance-card__figure strong { font-family: var(--font); font-size: 38px; font-weight: 650; letter-spacing: -0.025em; }
.balance-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(169, 185, 212, 0.12);
}
.balance-card__stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.balance-card__stats span { color: var(--muted); font-size: 11px; }
.balance-card__stats b { font-size: 13px; font-weight: 650; }
.balance-card__verified { color: var(--muted); font-size: 11.5px; margin: 12px 0 0; }
.balance-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.055);
  border: 1px solid rgba(0, 229, 255, 0.14);
  color: var(--muted);
  font-size: 12.5px;
}
.info-strip .icon { color: var(--accent); margin-top: 1px; }
.info-strip p { margin: 0; }
.balance-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px; }
.balance-hero__figure { display: flex; flex-direction: column; gap: 2px; }
.balance-hero__figure span { color: var(--muted); font-size: 12px; }
.balance-hero__figure strong { font-family: var(--font); font-size: clamp(38px, 4vw, 50px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.balance-hero__figure small { color: var(--muted); font-size: 12px; }
.balance-hero__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.balance-hero__meta .muted { font-size: 12px; }

/* ---------------------------------------------------------------- Notifications */
.notification-list { padding: 0; overflow: hidden; }
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(169, 185, 212, 0.1);
}
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: rgba(0, 229, 255, 0.035); box-shadow: inset 3px 0 0 var(--accent); }
.notification-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.16);
  color: var(--accent);
  flex: 0 0 auto;
}
.notification-item__body { flex: 1; min-width: 0; }
.notification-item__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notification-item__body p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.notification-item__body time { font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) {
  .notification-item { flex-wrap: wrap; padding: 14px; }
  .notification-item form { margin-left: 54px; }
}

/* ---------------------------------------------------------------- Support */
.support-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.support-ticket__main { display: flex; flex-direction: column; min-width: 0; }
.support-ticket__main strong { font-size: 13.5px; }
.support-ticket__main small { color: var(--muted); font-size: 11.5px; }

/* ---------------------------------------------------------------- Account */
.account-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .account-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; } }
.account-value { overflow-wrap: anywhere; text-align: right; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-actions form { margin: 0; }

/* ---------------------------------------------------------------- Transfers */
.service-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.service-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: rgba(11, 32, 66, 0.55);
  color: var(--ink);
}
.service-tile:hover { color: var(--ink); border-color: rgba(0, 229, 255, 0.42); }
.service-tile__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #1769FF, #8B35FF);
  color: #fff;
  font-weight: 750;
}
.service-tile__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.service-tile__body strong { font-size: 14px; }
.service-tile__body small { color: var(--muted); font-size: 11.5px; }

/* ---------------------------------------------------------------- Notification bell */
.notif { position: relative; }
.notif__trigger { color: var(--muted); }
.notif__badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #030817;
}
.notif__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(390px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: 0 28px 70px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 229, 255, 0.06);
  z-index: 70;
  overflow-x: hidden;
}
.notif__panel[hidden] { display: none; }
.notif__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(169, 185, 212, 0.14); }
.notif__head h2 { font-size: 18px; margin: 2px 0 0; }
.notif__all { color: var(--accent); font-size: 12.5px; font-weight: 650; }
.notif__list { list-style: none; margin: 0; padding: 0; max-height: 348px; overflow-y: auto; }
.notif__item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(169, 185, 212, 0.09); }
.notif__item:last-child { border-bottom: 0; }
.notif__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); margin-top: 7px; flex: 0 0 auto; }
.notif__item.is-unread .notif__dot { background: var(--accent); box-shadow: 0 0 8px rgba(0, 229, 255, 0.65); }
.notif__body { flex: 1; min-width: 0; }
.notif__title-row { display: flex; align-items: center; gap: 6px; }
.notif__body strong { display: block; font-size: 12.8px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif__body p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif__body time { font-size: 10.8px; color: var(--muted); }
.notif__read { align-self: flex-start; }
.notif__link { background: none; border: 0; color: var(--accent); font-size: 11.5px; font-weight: 650; cursor: pointer; padding: 2px 0; }
.notif__link:hover { text-decoration: underline; }
.notif__empty { color: var(--muted); font-size: 13px; padding: 14px 0; margin: 0; }
.notif__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(169, 185, 212, 0.14); }
.notif__foot form { margin: 0; }
.notif__foot .btn { min-height: 36px; }

/* ---------------------------------------------------------------- Auth pages */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 4vw, 52px);
  min-height: 100dvh;
  border-right: 1px solid rgba(0, 229, 255, 0.12);
  background:
    radial-gradient(900px 620px at 8% -10%, rgba(23, 105, 255, 0.30), transparent 62%),
    radial-gradient(760px 540px at 102% 8%, rgba(139, 53, 255, 0.24), transparent 62%),
    radial-gradient(700px 520px at 52% 108%, rgba(0, 229, 255, 0.14), transparent 65%),
    #030817;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  pointer-events: none;
}
.brand--auth { position: relative; z-index: 1; }
.auth-brand__body { position: relative; z-index: 1; max-width: 560px; }
.auth-brand__body .eyebrow { color: var(--accent); }
.auth-brand__body h2 {
  font-family: var(--font);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 6px 0 18px;
}
.auth-brand__body h2 span {
  background: linear-gradient(100deg, #00F5D4, #00E5FF 42%, #8B35FF 72%, #F044FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand__body > p { color: var(--muted); max-width: 46ch; font-size: 15px; }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points li > .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.18);
}
.auth-points li > span { display: flex; flex-direction: column; }
.auth-points strong { font-size: 13.5px; font-weight: 650; }
.auth-points small { color: var(--muted); font-size: 12px; }
.auth-card-art {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  aspect-ratio: 1.62;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(0, 229, 255, 0.42), transparent 48%),
    radial-gradient(95% 120% at 0% 100%, rgba(240, 68, 255, 0.34), transparent 58%),
    linear-gradient(135deg, #1769FF 0%, #493BFF 42%, #8B35FF 72%, #F044FF 100%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 34px 80px -36px rgba(73, 59, 255, 0.9);
  transform: rotate(-4deg);
}
.auth-card-art__brand { font-weight: 700; font-size: 14px; }
.auth-card-art__chip {
  position: absolute;
  left: 20px;
  top: 56px;
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f9e6a4, #b58c36);
}
.auth-card-art__number { font-family: var(--font); letter-spacing: 0.12em; font-size: 17px; opacity: .95; }
.auth-card-art__word { align-self: flex-end; font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: -0.03em; }
.app-shell--auth > form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--surface-shadow);
}
.auth-form-head { display: flex; align-items: flex-start; gap: 16px; }
.auth-form-head > .brand__mark { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; font-size: 24px; margin-top: 2px; }
.auth-form-head h1 { font-size: clamp(30px, 3.4vw, 40px); margin-top: 2px; }
.auth-form-head .muted { margin: 6px 0 0; font-size: 14px; }
.auth-card { margin-top: 20px; padding: 22px; border-radius: 22px; border: 1px solid var(--surface-border); background: var(--surface); box-shadow: var(--surface-shadow); }
.auth-card .signin { margin-top: 0; }
.auth-links { margin-top: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; }
.auth-links p { margin: 0; }
.auth-links a { color: var(--accent); font-weight: 600; }
.welcome-points { display: grid; gap: 10px; margin: 22px 0; }
.welcome-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: rgba(11, 32, 66, 0.55);
}
.welcome-point > span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.16);
}
.welcome-point div { display: flex; flex-direction: column; }
.welcome-point strong { font-size: 13.5px; }
.welcome-point small { color: var(--muted); font-size: 12px; }
.welcome-actions { display: grid; gap: 10px; margin-top: 22px; }
.welcome-note { margin-top: 18px; font-size: 13px; }
.auth-mobile-brand { display: none; margin-bottom: 20px; }

/* ---------------------------------------------------------------- Mobile shell */
.mobile-nav { display: none; }
@media (min-width: 1121px) {
  .quick-nav { display: none; }
}
@media (max-width: 1120px) {
  .app-nav__link span { display: none; }
  .app-nav__link { padding: 10px; }
}
@media (max-width: 900px) {
  .app-nav { display: none; }
  .app-topbar__inner { padding: 8px 14px; gap: 10px; }
  .brand__copy small { display: none; }
  .brand__copy strong { font-size: 15px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
  .app-topbar__actions { margin-left: auto; }
  .icon-btn { width: 40px; height: 40px; }
  .app-shell--app {
    padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
    min-height: calc(100dvh - 57px);
  }
  .page-head { align-items: flex-start; flex-wrap: wrap; }
  .page-head h1 { font-size: 30px; }
  .page-head__action { margin-left: auto; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, #07162F 96%, transparent);
    border-top: 1px solid rgba(0, 229, 255, 0.22);
    box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .mobile-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    min-height: 54px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .mobile-nav__icon { display: grid; place-items: center; }
  .mobile-nav__icon .icon { width: 22px; height: 22px; }
  .mobile-nav__link.is-active { color: var(--accent); background: rgba(0, 229, 255, 0.08); box-shadow: inset 0 2px 0 var(--accent); }
  .notif__panel {
    position: fixed;
    top: calc(62px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(70dvh, 560px);
    overflow-y: auto;
  }
  .auth-page { display: block; }
  .auth-brand { display: none; }
  .app-shell--auth { margin: 0 auto; padding: 22px 18px 40px; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-form-head { gap: 12px; }
  .auth-form-head > .brand__mark { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
  .balance-hero { align-items: flex-start; flex-direction: column; }
  .balance-hero__meta { align-items: flex-start; }
}
@media (max-width: 420px) {
  .mobile-nav__link { font-size: 9.2px; }
  .brand__mark { width: 32px; height: 32px; }
  .notif__panel { top: 58px; }
}
@media (max-width: 900px) {
  .auth-form-head > .brand__mark { display: none; }
  .notif__read { display: none; }
}
@media (min-width: 901px) {
  .welcome-points { display: none; }
}


/* ---------------------------------------------------------------- Customer sign-in responsive layout */
@media (min-width: 721px) {
  .auth-page {
    display: grid;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .auth-page > .auth-brand {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: clamp(14px, 2.4vh, 28px);
    padding: clamp(22px, 3.8vw, 52px);
  }

  .auth-page > .app-shell--auth {
    align-self: stretch;
    justify-self: center;
    display: flex;
    width: min(100%, 560px);
    max-width: 560px;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: clamp(24px, 5vh, 56px) clamp(22px, 3vw, 42px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .auth-page {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .auth-page > .auth-brand {
    gap: 18px;
    padding: 24px 20px;
  }

  .auth-page .auth-brand__body h2 {
    font-size: clamp(29px, 4vw, 38px);
  }

  .auth-page .auth-points {
    gap: 10px;
    margin-top: 18px;
  }

  .auth-page .auth-card-art {
    width: min(290px, 90%);
    padding: 16px;
  }

  .auth-page .auth-card-art__chip {
    top: 46px;
    left: 16px;
  }
}

@media (min-width: 721px) and (max-height: 820px) {
  .auth-page > .auth-brand {
    gap: 12px;
    padding: 22px 30px;
  }

  .auth-page .auth-brand__body h2 {
    font-size: clamp(30px, 3.8vw, 46px);
    margin-bottom: 12px;
  }

  .auth-page .auth-brand__body > p {
    font-size: 14px;
  }

  .auth-page .auth-points {
    gap: 8px;
    margin-top: 16px;
  }

  .auth-page .auth-card-art {
    width: min(300px, 82%);
    padding: 16px;
  }

  .auth-page .auth-card-art__chip {
    top: 46px;
    left: 16px;
  }
}

@media (max-width: 720px) {
  .auth-page {
    display: flex;
    min-height: 100dvh;
    height: auto;
    flex-direction: column;
    overflow: visible;
  }

  .auth-page > .auth-brand {
    display: none;
  }

  .auth-page > .app-shell--auth {
    align-self: center;
    display: flex;
    width: 100%;
    max-width: 560px;
    min-height: 100dvh;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  }

  .auth-page .auth-mobile-brand {
    margin-bottom: clamp(18px, 4vh, 28px);
  }
}

@media (max-width: 360px) {
  .auth-page > .app-shell--auth {
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-page .auth-card {
    padding: 18px;
  }

  .auth-page .auth-form-head {
    gap: 10px;
  }

  .auth-page .auth-form-head h1 {
    font-size: 30px;
  }
}

.home-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.home-cards__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-cards__head h2 { margin: 0; font-size: 16px; }
.home-cards__head a { color: var(--accent); font-size: 13px; font-weight: 600; }
.card-carousel--home { margin: 0; }
@media (min-width: 1000px) {
  .card-carousel--home .card-slide { flex-basis: calc(50% - 6px); }
}
.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.carousel-hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.carousel-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Unverified balances read as a statement, never as a fabricated $0.00. */
.card-slide__bottom strong.card-slide__unverified,
.card-slide__unverified { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.balance-card__figure .card-slide__unverified { color: var(--muted); font-size: 18px; }
.card-carousel .card-slide.is-restricted { filter: saturate(0.45); }
.card-carousel .card-slide.is-restricted.is-selected { filter: saturate(0.7); }
.selection-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }

.home-selected { display: grid; gap: 12px; margin-bottom: 18px; }
.home-selected__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 13px; }
.home-selected__meta [data-selected-masked] { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.home-selected__note { color: var(--muted); font-size: 12.5px; }
.quick-action[hidden] { display: none; }
.quick-action--notice { border-color: rgba(255, 176, 32, 0.38); }
.quick-action--notice .quick-action__icon { color: #ffb020; }

/* ---------------------------------------------------------------- Phase 2: compact mobile home + service separation */
.home-cards .home-selected { margin: 10px 0 0; }
.carousel-foot .selection-note { margin: 0; }
.carousel-dots { display: flex; align-items: center; gap: 6px; }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.28); cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}
.carousel-dot.is-active { width: 22px; background: var(--accent); }
.carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Each dot keeps a 24px touch target without growing visually. */
.carousel-dot { position: relative; }
.carousel-dot::after { content: ""; position: absolute; inset: -8px -3px; }
[data-theme="light"] .carousel-dot { background: rgba(10, 30, 60, 0.22); }
@media (prefers-reduced-motion: reduce) { .carousel-dot { transition: none; } }

.services-panel__lead { margin: -4px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 60ch; }

/* Phone: four small actions in one row (icon + short label); helper text hidden. */
@media (max-width: 640px) {
  .quick-actions--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .quick-actions--compact .quick-action {
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 6px; padding: 10px 4px; text-align: center; min-height: 0;
  }
  .quick-actions--compact .quick-action > span:last-child { align-items: center; }
  .quick-actions--compact .quick-action strong { font-size: 12px; font-weight: 600; line-height: 1.2; }
  .quick-actions--compact .quick-action small { display: none; }
  .quick-actions--compact .quick-action__icon { width: 36px; height: 36px; }
  .home-cards__head { margin-bottom: 2px; }
  /* The next card peeks in from the edge, so swiping is self-evident. */
  .card-carousel .card-slide { flex-basis: 86%; min-height: 196px; padding: 18px; gap: 14px; }
  .card-carousel .card-slide:only-child { flex-basis: 100%; }
}

/* Product catalog: a swipeable, server-priced card selection flow. */
.catalog-head { margin-bottom: 18px; }
.product-carousel { display: grid; gap: 12px; }
.product-carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-carousel__controls[hidden] { display: none; }
.product-carousel__buttons { display: flex; align-items: center; gap: 8px; }
.product-carousel__buttons .icon-btn { width: auto; min-width: 72px; padding: 0 12px; gap: 6px; }
.product-carousel__buttons .icon-btn:disabled { opacity: .4; cursor: default; }
.product-carousel__track {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 3px 2px 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, .35) transparent;
}
.product-option {
  flex: 0 0 min(86%, 390px);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--surface-shadow), var(--glow-violet);
}
.product-option__art {
  position: relative;
  display: flex;
  min-height: 184px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background: radial-gradient(circle at 82% 20%, rgba(0, 229, 255, .38), transparent 36%), linear-gradient(135deg, #1769FF 0%, #493BFF 48%, #8B35FF 100%);
}
.product-option__art::after { position: absolute; right: -46px; bottom: -96px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ""; box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025); }
.product-option__art-head, .product-option__art-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }
.product-option__art-name { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.product-option__art-type { margin-left: auto; padding: 5px 9px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: rgba(255,255,255,.9); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.product-option__chip { position: relative; z-index: 1; width: 34px; height: 27px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(255,255,255,.12)); }
.product-option__art-foot { justify-content: space-between; color: rgba(255,255,255,.82); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.product-option__art-foot strong { color: #fff; font-size: 13px; }
.product-option__body { display: grid; gap: 12px; padding: 20px; }
.product-option__body .eyebrow { margin: 0; }
.product-option__body h2 { margin: -6px 0 0; font-size: 21px; }
.product-option__description { min-height: 2.8em; margin: -4px 0 0; line-height: 1.5; }
.product-option__terms { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line-soft); }
.product-option__terms > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.product-option__terms dt { color: var(--muted); font-size: 13px; }
.product-option__terms dd { margin: 0; text-align: right; font-size: 14px; font-weight: 650; }
.product-option__choose { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.product-option__choose svg { width: 17px; height: 17px; }
.product-carousel__dots { display: flex; justify-content: center; gap: 10px; padding: 2px 0 8px; }
.product-carousel__dots .carousel-dot { width: 9px; height: 9px; }
.product-carousel__dots .carousel-dot.is-active { width: 24px; }
.product-option:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 900px) {
  .product-option { flex-basis: calc(50% - 7px); }
}
@media (max-width: 640px) {
  .catalog-head { align-items: flex-start; }
  .catalog-head > .btn { align-self: center; }
  .product-option { flex-basis: 86%; }
  .product-option__art { min-height: 166px; }
  .product-option__body { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-carousel__track { scroll-behavior: auto; }
}

/* Sign-in page, mobile first (2026-11-14): real logo, guided copy, button-style links, trust line */
.brand__logo { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgba(91, 46, 232, .45)); }
.auth-form-head--login { display: block; }
.auth-form-head--login .muted { max-width: 38ch; }
.auth-more { margin-top: 18px; display: grid; gap: 12px; }
.auth-new { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, rgba(59, 108, 255, .16), rgba(168, 85, 247, .14)); border: 1px solid rgba(124, 146, 255, .32); transition: transform .15s ease, border-color .15s ease; }
.auth-new:hover { border-color: rgba(124, 146, 255, .6); transform: translateY(-1px); }
.auth-new__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #3B6CFF, #A855F7); color: #fff; flex: none; }
.auth-new__icon .icon, .auth-new__icon svg { width: 20px; height: 20px; }
.auth-new__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.auth-new__text strong { font-size: 15px; }
.auth-new__text small { color: var(--muted); font-size: 13px; }
.auth-new__go { color: var(--muted); display: inline-flex; }
.auth-help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-help a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--surface-border); }
.auth-help a:hover { border-color: var(--accent); }
.auth-help .icon, .auth-help svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.auth-trust { margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.auth-trust .icon, .auth-trust svg { width: 14px; height: 14px; }
.auth-new:focus-visible, .auth-help a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .app-shell--auth { position: relative; }
  .app-shell--auth::before { content: ""; position: absolute; inset: -40px -16px auto; height: 320px; pointer-events: none; z-index: -1; background: radial-gradient(60% 70% at 20% 0%, rgba(59, 108, 255, .28), transparent 70%), radial-gradient(50% 60% at 90% 10%, rgba(168, 85, 247, .22), transparent 70%); }
  .auth-mobile-brand .brand__logo { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .auth-new { transition: none; } }

/* Mobile sign-in card visual (2026-11-14): the product, shown where the side panel is hidden */
.auth-mcard { display: none; }
@media (max-width: 720px) {
  .auth-mcard { display: block; margin: 0 0 18px; perspective: 900px; }
  .auth-mcard__card { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; width: min(250px, 68%); aspect-ratio: 1.586; box-sizing: border-box; padding: 13px 15px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #2F5BFF 0%, #6C3BFF 55%, #C04BFF 100%); box-shadow: 0 24px 48px -22px rgba(91, 46, 232, .9); transform: rotate(-4deg); overflow: hidden; }
  .auth-mcard__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 42%); pointer-events: none; }
  .auth-mcard__top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .auth-mcard__top img { width: 28px; height: 28px; object-fit: contain; }
  .auth-mcard__chip { width: 30px; height: 22px; margin-top: 8px; border-radius: 6px; background: linear-gradient(135deg, #F7D774, #C9A43B); }
  .auth-mcard__num { letter-spacing: .12em; font-size: 13px; opacity: .95; }
  .auth-mcard__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
  .auth-mcard__foot small { font-size: 11px; opacity: .85; }
  .auth-mcard__foot b { font-size: 20px; font-style: italic; font-weight: 800; letter-spacing: -.03em; }
  .auth-page > .app-shell--auth { justify-content: flex-start; padding-top: 28px; }
}
