/* ============================================================
   clienthub — Design System
   Premium digital private-bank aesthetic
   ============================================================ */

:root, [data-theme="nebula"] {
  --ink: #060a13;
  --ink-2: #0a101d;
  --ink-3: #0e1626;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #e9c684;
  --gold-2: #c99b4e;
  --gold-hi: #f3d9a4;
  --gold-rgb: 233, 198, 132;
  --gold-deep: #8a6425;
  --on-gold: #241a08;
  --mint: #3ce3b2;
  --red: #ff7a7a;
  --text: #eef2f8;
  --muted: #93a0b6;
  --faint: #5d6b82;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== SPACE THEMES ===== */
[data-theme="andromeda"] {
  --ink: #08071a;
  --ink-2: #0d0b26;
  --ink-3: #131038;
  --gold: #b9a3ff;
  --gold-2: #7a5af0;
  --gold-hi: #d8ccff;
  --gold-rgb: 185, 163, 255;
  --gold-deep: #4a2fb0;
  --on-gold: #170c38;
  --mint: #5ee6ff;
}

[data-theme="aurora"] {
  --ink: #041210;
  --ink-2: #071d19;
  --ink-3: #0b2823;
  --gold: #8ef5d2;
  --gold-2: #2bbd8f;
  --gold-hi: #c8ffe9;
  --gold-rgb: 142, 245, 210;
  --gold-deep: #157a5c;
  --on-gold: #052018;
  --mint: #ffd47a;
}

[data-theme="solar"] {
  --ink: #140905;
  --ink-2: #1f0f08;
  --ink-3: #2b1509;
  --gold: #ffb877;
  --gold-2: #e07020;
  --gold-hi: #ffd9b3;
  --gold-rgb: 255, 184, 119;
  --gold-deep: #9a4a12;
  --on-gold: #2a1204;
  --mint: #7ae8ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(var(--gold-rgb), 0.3); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); font-weight: 700;
  padding: 10px 18px; border-radius: 10px; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typography ---------- */
.display-1, .display-2, h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
.display-1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 40%, var(--gold-2) 75%, var(--gold-hi) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: 200% center; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-2));
  color: var(--on-gold); box-shadow: 0 12px 34px -12px rgba(var(--gold-rgb), 0.55);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -14px rgba(var(--gold-rgb), 0.65); }
.btn-ghost { background: var(--panel); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 10, 19, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold-2));
  color: var(--on-gold); font-weight: 700; font-size: 1.15rem; font-family: var(--serif);
  box-shadow: 0 8px 22px -8px rgba(var(--gold-rgb), 0.6);
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand b { font-weight: 500; }
.brand span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative; padding: 10px 14px; font-size: 0.9rem; color: var(--muted);
  border-radius: 10px; transition: color 0.3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 12px; width: 46px; height: 46px; place-items: center; color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 190px 0 110px; overflow: hidden; }
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 560px; height: 560px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(var(--gold-rgb), 0.28), transparent 65%); }
.aurora i:nth-child(2) { width: 480px; height: 480px; bottom: -220px; left: -140px; background: radial-gradient(circle, rgba(60, 227, 178, 0.16), transparent 65%); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; top: 20%; left: 34%; background: radial-gradient(circle, rgba(90, 120, 255, 0.14), transparent 65%); animation-delay: -11s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

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

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; }
.hero-copy > * + * { margin-top: 26px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-proof { display: flex; gap: 44px; flex-wrap: wrap; padding-top: 12px; }
.proof-item strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--text); }
.proof-item strong em { font-style: normal; color: var(--gold); }
.proof-item span { font-size: 0.8rem; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }

/* Floating bank card */
.hero-visual { position: relative; display: grid; place-items: center; perspective: 1200px; }
.bank-card {
  position: relative; width: min(420px, 88%); aspect-ratio: 1.586;
  border-radius: 26px; padding: 30px;
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(255, 235, 190, 0.22), transparent 45%),
    linear-gradient(150deg, #1a2438 0%, #0d1526 55%, #111c33 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
.bank-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; transform: translateZ(40px); }
.bank-card .card-brand { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); }
.bank-card .chip { width: 46px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.bank-card .card-number { margin-top: 44px; font-size: 1.25rem; letter-spacing: 0.18em; color: rgba(238, 242, 248, 0.92); transform: translateZ(40px); font-variant-numeric: tabular-nums; }
.bank-card .card-bottom { display: flex; justify-content: space-between; margin-top: 34px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; transform: translateZ(40px); }
.bank-card .card-bottom b { display: block; color: var(--text); font-size: 0.85rem; margin-top: 4px; letter-spacing: 0.04em; }
.bank-card .shield-badge {
  position: absolute; top: -18px; right: -18px; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(140deg, var(--gold-hi), var(--gold-2));
  color: var(--on-gold); box-shadow: 0 14px 30px -10px rgba(var(--gold-rgb), 0.7); transform: translateZ(60px);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 14px 42px -6px rgba(var(--gold-rgb), 0.9); } }

.orbit-ring {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 1px dashed rgba(var(--gold-rgb), 0.18); animation: spin 40s linear infinite;
}
.orbit-ring i {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 18px 4px rgba(var(--gold-rgb), 0.55);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(255,255,255,0.015); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  font-family: var(--serif); font-size: 1.05rem; color: var(--muted); letter-spacing: 0.04em;
}
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head > * + * { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* Cards */
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.6), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(var(--gold-rgb), 0.3); background: var(--panel-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * + * { margin-top: 16px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.icon-tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0.05));
  border: 1px solid rgba(var(--gold-rgb), 0.25); color: var(--gold);
  transition: transform 0.5s var(--ease);
}
.card:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
.icon-tile svg { width: 26px; height: 26px; }

.step-number {
  font-family: var(--serif); font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb), 0.45);
}

/* ---------- Protection tracker demo ---------- */
.tracker {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 28px; padding: 46px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.tracker-stage-list { display: grid; gap: 0; }
.tracker-step { display: flex; gap: 18px; padding: 16px 0; opacity: 0.4; transition: opacity 0.4s; position: relative; }
.tracker-step:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 44px; bottom: -8px; width: 2px;
  background: var(--line-strong);
}
.tracker-step.done { opacity: 1; }
.tracker-step.done:not(:last-child)::before { background: linear-gradient(var(--gold), var(--line-strong)); }
.tracker-step .dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line-strong); background: var(--ink); color: transparent;
  transition: all 0.4s var(--ease); z-index: 1;
}
.tracker-step.done .dot { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.tracker-step.current .dot { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0.15); animation: pulse 2s infinite; }
.tracker-step.current { opacity: 1; }
.tracker-step h4 { font-size: 1rem; font-family: var(--sans); font-weight: 600; }
.tracker-step p { font-size: 0.85rem; color: var(--muted); }
.tracker-demo-card { text-align: center; }
.tracker-amount { font-family: var(--serif); font-size: 3rem; color: var(--gold-text, var(--gold)); }
.tracker-progress { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin: 26px 0 14px; }
.tracker-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-hi)); transition: width 0.8s var(--ease); }

/* ---------- Plans ---------- */
.plan-card { display: flex; flex-direction: column; }
.plan-card.featured { border-color: rgba(var(--gold-rgb), 0.45); background: linear-gradient(170deg, rgba(var(--gold-rgb), 0.09), var(--panel) 45%); }
.plan-tag {
  position: absolute; top: 22px; right: 22px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-hi), var(--gold-2));
  padding: 6px 12px; border-radius: 99px;
}
.plan-price { font-family: var(--serif); font-size: 2.6rem; }
.plan-price small { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan-features { list-style: none; display: grid; gap: 12px; margin: 10px 0 26px; flex: 1; }
.plan-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.plan-features li svg { flex: none; width: 18px; height: 18px; color: var(--mint); margin-top: 3px; }

/* ---------- Rewards band ---------- */
.band {
  position: relative; border-radius: 30px; overflow: hidden; padding: 70px 60px;
  background: linear-gradient(120deg, #131c30, #0b1220 60%);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
}
.band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  top: -200px; right: -100px; background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22), transparent 65%);
}
.band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.percent-ring {
  flex: none; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) 0 36deg, var(--panel-2) 36deg 360deg);
}
.percent-ring b {
  width: 118px; height: 118px; border-radius: 50%; background: var(--ink-2);
  display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: var(--gold);
}

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 14px; }
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.accordion-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 0.98rem; transition: color 0.3s;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--gold); }
.accordion-item summary .chev { flex: none; width: 22px; height: 22px; color: var(--gold); transition: transform 0.4s var(--ease); }
.accordion-item[open] summary .chev { transform: rotate(180deg); }
.accordion-item .acc-body { padding: 0 24px 22px; color: var(--muted); font-size: 0.93rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(var(--gold-rgb), 0.03)); }
.footer-cta { text-align: center; padding: 90px 0 70px; }
.footer-cta > * + * { margin-top: 22px; }
.footer-word {
  font-family: var(--serif); font-size: clamp(4rem, 14vw, 11rem); line-height: 0.95; text-align: center;
  letter-spacing: 0.02em; padding: 20px 0 10px;
  background: linear-gradient(180deg, rgba(238, 242, 248, 0.16), rgba(238, 242, 248, 0.015));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.footer-grid h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 12px; }
.footer-grid a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s, padding-left 0.3s; }
.footer-grid a:hover { color: var(--gold); padding-left: 6px; }
.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; margin-top: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem;
}
.footer-line { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--mint), transparent); opacity: 0.6; }

/* ---------- Forms ---------- */
.form-shell { max-width: 460px; margin: 0 auto; }
.form-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 42px 38px;
  backdrop-filter: blur(14px);
}
.form-card > * + * { margin-top: 20px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 0.98rem; font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field select option { background: var(--ink-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.14); background: rgba(255, 255, 255, 0.07);
}
.field .error { color: var(--red); font-size: 0.82rem; margin-top: 6px; }
.form-alt { text-align: center; color: var(--muted); font-size: 0.9rem; }
.form-alt a { color: var(--gold); font-weight: 600; }

/* ---------- App (portal/admin) ---------- */
.app-hero { padding: 150px 0 40px; }
.app-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), 0.3); }
.stat-card .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat-card .value { font-family: var(--serif); font-size: 1.9rem; margin-top: 8px; }
.stat-card .value.mint { color: var(--mint); }
.stat-card .value.gold { color: var(--gold); }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 26px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.3rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left; padding: 12px 14px; color: var(--faint); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong);
}
.data-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.strong { color: var(--text); font-weight: 600; }
.amount-in { color: var(--mint); font-weight: 600; font-variant-numeric: tabular-nums; }
.amount-out { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 99px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--muted);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.gold { color: var(--gold); border-color: rgba(var(--gold-rgb), 0.35); }
.pill.mint { color: var(--mint); border-color: rgba(60, 227, 178, 0.35); }
.pill.red { color: var(--red); border-color: rgba(255, 122, 122, 0.35); }

/* Claim progress bar */
.claim-progress { display: flex; gap: 5px; margin-top: 10px; }
.claim-progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--panel-2); }
.claim-progress i.on { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.quick-action {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.quick-action:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), 0.4); background: var(--panel-2); }
.quick-action .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.quick-action .icon-tile svg { width: 20px; height: 20px; }
.quick-action b { font-size: 0.92rem; display: block; }
.quick-action span { font-size: 0.76rem; color: var(--faint); }

/* Referral link box */
.ref-link {
  display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(var(--gold-rgb), 0.4); border-radius: 12px; padding: 14px 18px;
  font-size: 0.9rem; color: var(--gold); word-break: break-all;
}
.ref-link button { flex: none; }

/* Flash toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120px); z-index: 300;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-2)); color: var(--on-gold);
  font-weight: 600; font-size: 0.92rem; padding: 15px 26px; border-radius: 99px;
  box-shadow: 0 18px 44px -12px rgba(var(--gold-rgb), 0.6);
  transition: transform 0.6s var(--ease); display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 180px 0 70px; overflow: hidden; }
.page-hero > .container > * + * { margin-top: 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

/* ---------- 404 ---------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: 100px; }
.error-page .code { font-family: var(--serif); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .tracker { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
  .orbit-ring { width: 380px; height: 380px; }
}

@media (max-width: 1020px) {
  .main-nav {
    position: fixed; inset: 78px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(6, 10, 19, 0.97); backdrop-filter: blur(20px);
    padding: 20px 5vw 30px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.5s var(--ease);
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 15px 18px; font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: grid; }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 760px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 80px; }
  .hero-proof { gap: 26px; }
  .section { padding: 76px 0; }
  .band { padding: 46px 30px; }
  .tracker { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   SIGNATURE HERO — clienthub.com design
   ============================================================ */
.hero-signature {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding: 120px 0 90px; overflow: hidden;
}
#gold-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-signature-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(var(--gold-rgb), 0.35); border-radius: 99px;
  padding: 9px 20px; background: rgba(var(--gold-rgb), 0.06); backdrop-filter: blur(8px);
}

.signature-word {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(4.2rem, 13vw, 10.5rem); line-height: 0.95; color: #ffffff;
  text-shadow: 0 0 80px rgba(var(--gold-rgb), 0.25);
}
.signature-word span {
  background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 40px rgba(var(--gold-rgb), 0.45));
}

.signature-tagline {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-style: italic;
  color: var(--gold-hi); letter-spacing: 0.01em;
}
.signature-sub { color: var(--muted); max-width: 52ch; font-size: clamp(0.95rem, 1.5vw, 1.08rem); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.34em; color: var(--faint); text-transform: uppercase;
  display: grid; justify-items: center; gap: 6px; animation: hintFloat 2.4s ease-in-out infinite;
}
.scroll-hint span { color: var(--gold); font-size: 0.8rem; }
@keyframes hintFloat { 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   SWITCHERS (theme + language)
   ============================================================ */
.switcher { position: relative; }
.switcher-btn {
  display: inline-flex; align-items: center; gap: 7px;
  width: 42px; height: 42px; border-radius: 12px; justify-content: center;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.switcher-btn:hover { background: var(--panel-2); border-color: rgba(var(--gold-rgb), 0.4); transform: translateY(-2px); }
.switcher-btn svg { width: 19px; height: 19px; }
.switcher-btn .lang-current { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.switcher:has(.lang-current) .switcher-btn { width: auto; padding: 0 13px; }

.switcher-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 200px; padding: 8px; border-radius: 16px;
  background: rgba(10, 14, 24, 0.92); border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: all 0.3s var(--ease);
}
.switcher.open .switcher-menu { opacity: 1; visibility: visible; transform: none; }

.theme-option, .lang-option {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border: none; border-radius: 10px; background: transparent;
  color: var(--muted); font-size: 0.88rem; font-weight: 500; text-align: left;
  transition: background 0.25s, color 0.25s;
}
.theme-option:hover, .lang-option:hover { background: var(--panel-2); color: var(--text); }
.theme-option.active, .lang-option.active { color: var(--gold); background: rgba(var(--gold-rgb), 0.08); }
.swatch { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15); }

.lang-menu { max-height: 340px; overflow-y: auto; min-width: 220px; }
.lang-menu::-webkit-scrollbar { width: 6px; }
.lang-menu::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.lang-option .native { font-weight: 600; color: var(--text); }
.lang-option .english { margin-left: auto; font-size: 0.74rem; color: var(--faint); }

/* ============================================================
   LIVE CASE PROGRESS (dashboard)
   ============================================================ */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint);
}
.live-badge i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--mint);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 227, 178, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(60, 227, 178, 0); }
}

.live-track { display: flex; align-items: center; gap: 0; min-width: 150px; max-width: 100%; }
.live-node {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--ink);
  display: grid; place-items: center; color: transparent;
  transition: all 0.6s var(--ease); z-index: 1;
}
.live-node svg { width: 12px; height: 12px; }
.live-node.done { border-color: var(--gold); background: var(--gold); color: var(--on-gold); transform: scale(1.05); }
.live-node.current {
  border-color: var(--gold); color: var(--gold);
  animation: nodePulse 1.8s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(var(--gold-rgb), 0); }
}
.live-link { flex: 1; height: 3px; min-width: 14px; background: var(--panel-2); position: relative; overflow: hidden; border-radius: 99px; }
.live-link i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); border-radius: 99px; }
.live-link.done i { transform: scaleX(1); }
.live-link.active i { transform: scaleX(1); background: linear-gradient(90deg, var(--gold), transparent); animation: linkFlow 1.4s linear infinite; }
@keyframes linkFlow { to { opacity: 0.3; } }

.stage-flip { display: inline-block; transition: opacity 0.4s, transform 0.4s var(--ease); }
.stage-flip.changing { opacity: 0; transform: translateY(6px); }

.stage-announce {
  margin-top: 10px; font-size: 0.82rem; color: var(--gold);
  display: flex; align-items: center; gap: 8px; min-height: 20px;
}
.stage-announce svg { width: 15px; height: 15px; flex: none; animation: starSpin 2.4s linear infinite; }
@keyframes starSpin { to { transform: rotate(360deg); } }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card .read-more { margin-top: auto; padding-top: 18px; color: var(--gold); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s var(--ease); }
.blog-card:hover .read-more { gap: 14px; }
.blog-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--faint); }

.article { max-width: 760px; margin-inline: auto; }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; }
.article-body { margin-top: 40px; display: grid; gap: 26px; }
.article-body h2 { font-size: 1.65rem; margin-top: 18px; }
.article-body p { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.article-body ul { color: var(--muted); padding-left: 22px; display: grid; gap: 10px; line-height: 1.7; }
.article-body strong { color: var(--text); }
.article-cta {
  margin-top: 50px; text-align: center; padding: 44px 34px;
  border: 1px solid rgba(var(--gold-rgb), 0.3); border-radius: 24px;
  background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.08), var(--panel));
}
.article-cta > * + * { margin-top: 16px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; flex-wrap: wrap; }
.article-nav a { color: var(--gold); font-weight: 600; font-size: 0.92rem; }

@media (max-width: 1020px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .switcher:has(.lang-current) .switcher-btn .lang-current { display: none; }
  .switcher:has(.lang-current) .switcher-btn { width: 42px; padding: 0; }
  .signature-word { font-size: clamp(3.4rem, 17vw, 6rem); }
  .live-track { min-width: 150px; }
}


/* ============================================================
   PLAIN-LANGUAGE HERO LINE
   ============================================================ */
.signature-plain {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  color: var(--text); font-weight: 500; max-width: 34ch;
}

/* ============================================================
   BANK CARD — the clienthub gold card
   ============================================================ */
.bank-card-stage { display: grid; justify-items: center; gap: 18px; margin-top: 26px; perspective: 1100px; }
.bank-card {
  position: relative; width: min(380px, 82vw); aspect-ratio: 1.586; border-radius: 22px;
  padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between;
  color: #2b1d05;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-2) 100%);
  box-shadow:
    0 30px 70px -18px rgba(var(--gold-rgb), 0.5),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform-style: preserve-3d; transition: transform 0.18s ease-out;
  animation: cardFloat 7s ease-in-out infinite;
  overflow: hidden; text-align: left;
}
@keyframes cardFloat { 50% { transform: translateY(-10px) rotate(-0.6deg); } }
.bank-card-shine {
  position: absolute; inset: -40%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
  animation: cardShine 5.5s ease-in-out infinite;
}
@keyframes cardShine { 0%, 55% { transform: translateX(-60%); } 90%, 100% { transform: translateX(60%); } }
.bank-card-top { display: flex; align-items: center; justify-content: space-between; }
.bank-card-top .brand-mark {
  width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px;
  background: rgba(43, 29, 5, 0.9); color: var(--gold-hi); display: grid; place-items: center;
  font-weight: 700;
}
.bank-card-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.75; }
.bank-card-chip { width: 44px; color: rgba(43, 29, 5, 0.85); margin-top: 4px; }
.bank-card-number {
  font-family: var(--mono, "SFMono-Regular", Consolas, monospace); font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  letter-spacing: 0.14em; font-weight: 600; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.bank-card-bottom { display: flex; align-items: flex-end; gap: 22px; }
.bank-card-bottom span { display: grid; gap: 2px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; }
.bank-card-bottom small { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.bank-card-brand { margin-left: auto; font-size: 1.05rem; font-weight: 700; color: #2b1d05; }
.bank-card-brand span { color: rgba(43, 29, 5, 0.6); display: inline; font-size: inherit; letter-spacing: 0; }
.bank-card-caption { max-width: 46ch; color: var(--muted); font-size: 0.95rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .bank-card, .bank-card-shine { animation: none; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px; margin-top: 46px;
}
.review-card {
  margin: 0; padding: 26px 26px 22px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), 0.4); }
.review-card blockquote { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.65; flex: 1; }
.review-card figcaption { display: grid; gap: 2px; }
.review-card figcaption b { font-size: 0.95rem; }
.review-card figcaption span { color: var(--faint); font-size: 0.82rem; }
.stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 0.14em; }
.stars i { font-style: normal; color: var(--faint); opacity: 0.4; }

/* ============================================================
   SETTINGS LAYOUT
   ============================================================ */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: start; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 44px; height: 24px; border-radius: 99px; background: var(--ink-2);
  border: 1px solid var(--line-strong); position: relative; transition: background 0.25s, border-color 0.25s; flex: none;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform 0.25s var(--ease), background 0.25s;
}
.switch input:checked + .switch-track { background: rgba(var(--gold-rgb), 0.25); border-color: rgba(var(--gold-rgb), 0.6); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: var(--gold); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   TOP-UP MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: min(560px, 100%); max-height: min(86vh, 780px); overflow-y: auto;
  background: var(--panel); border: 1px solid rgba(var(--gold-rgb), 0.3); border-radius: 26px;
  padding: 34px 32px 30px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(14px) scale(0.98); transition: transform 0.28s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--text); border-color: rgba(var(--gold-rgb), 0.5); }

.method-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 18px; }
.method-tab {
  display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 16px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.22s var(--ease);
}
.method-tab svg { width: 22px; height: 22px; }
.method-tab:hover { border-color: rgba(var(--gold-rgb), 0.4); color: var(--text); }
.method-tab.active {
  background: rgba(var(--gold-rgb), 0.12); border-color: rgba(var(--gold-rgb), 0.6);
  color: var(--gold-hi); box-shadow: 0 6px 20px -8px rgba(var(--gold-rgb), 0.4);
}
.method-pane { animation: paneIn 0.3s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }

.copy-field {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
  background: var(--ink-2); border: 1px dashed rgba(var(--gold-rgb), 0.4); border-radius: 14px;
}
.copy-field code {
  flex: 1; font-family: var(--mono, Consolas, monospace); font-size: 0.85rem; color: var(--gold-hi);
  word-break: break-all;
}
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.detail-table td:first-child { color: var(--muted); width: 40%; }
.method-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--gold-rgb), 0.07); border: 1px solid rgba(var(--gold-rgb), 0.25); color: var(--muted); font-size: 0.88rem; }

.coming-soon { text-align: center; padding: 34px 18px; display: grid; justify-items: center; gap: 10px; }
.coming-soon-icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; color: var(--gold); background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
}
.coming-soon h3 { font-size: 1.15rem; }
.coming-soon p { color: var(--muted); font-size: 0.9rem; max-width: 36ch; }

/* ============================================================
   TABLE TOOLBAR / SELECTION / DELETE
   ============================================================ */
.table-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.table-toolbar-hint { color: var(--faint); font-size: 0.8rem; }
.check-col { width: 36px; }
.check-col input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.row-actions { white-space: nowrap; text-align: right; }
.row-delete {
  width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--faint); font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: all 0.2s;
}
.row-delete:hover { color: var(--red); border-color: var(--red); background: rgba(255, 92, 92, 0.08); }
.btn-danger-ghost { color: var(--red) !important; }
.btn-danger-ghost:hover { border-color: var(--red) !important; background: rgba(255, 92, 92, 0.08) !important; }
.pill.danger { color: var(--red); border-color: rgba(255, 92, 92, 0.4); background: rgba(255, 92, 92, 0.08); }

/* Inline edit rows (admin) */
.edit-row > td { background: var(--ink-2); border-radius: 0; padding: 22px; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

@media (max-width: 640px) {
  .method-tabs { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 26px 20px; }
  .table-toolbar-hint { width: 100%; }
}

/* ============================================================
   NOTIFICATION BELL — live badge + panel
   ============================================================ */
.bell-wrap { position: relative; }
.bell-btn { position: relative; }
.bell-btn.ringing svg { animation: bellRing 0.8s ease-in-out; transform-origin: top center; }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 99px; background: var(--gold); color: #2b1d05;
  font-size: 0.62rem; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #060a13); animation: badgePop 0.35s var(--ease, ease);
}
@keyframes badgePop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.notif-panel { width: min(340px, 86vw); padding: 0; overflow: hidden; }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.88rem;
}
.notif-readall {
  background: none; border: none; color: var(--gold); font-size: 0.76rem; font-weight: 600;
  cursor: pointer; padding: 2px 0;
}
.notif-readall:hover { text-decoration: underline; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--ink-2); }
.notif-item.unread { background: rgba(var(--gold-rgb), 0.06); }
.notif-item .notif-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.25);
}
.notif-item .notif-ico svg { width: 17px; height: 17px; }
.notif-item b { display: block; font-size: 0.86rem; line-height: 1.3; }
.notif-item p { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.notif-item small { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--faint); }
.notif-empty { padding: 22px 16px; text-align: center; color: var(--faint); font-size: 0.85rem; margin: 0; }

/* ============================================================
   TOAST STACK — live pop-up notifications
   ============================================================ */
.toast-stack {
  position: fixed; top: 76px; right: 18px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast-item {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start;
  width: min(340px, 86vw); padding: 14px 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid rgba(var(--gold-rgb), 0.4);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--gold-rgb), 0.1);
  animation: toastIn 0.45s var(--ease, cubic-bezier(0.2, 0.9, 0.3, 1.2));
}
.toast-item.leaving { animation: toastOut 0.35s ease forwards; }
@keyframes toastIn { 0% { opacity: 0; transform: translateX(60px) scale(0.95); } 100% { opacity: 1; transform: none; } }
@keyframes toastOut { 100% { opacity: 0; transform: translateX(60px) scale(0.95); } }
.toast-item .notif-ico {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.25);
}
.toast-item .notif-ico svg { width: 18px; height: 18px; }
.toast-item b { display: block; font-size: 0.88rem; }
.toast-item p { margin: 3px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.toast-item .toast-x {
  margin-left: auto; background: none; border: none; color: var(--faint);
  font-size: 1rem; cursor: pointer; line-height: 1; padding: 2px;
}
.toast-item .toast-x:hover { color: var(--text); }

/* ============================================================
   IMPERSONATION BANNER
   ============================================================ */
.impersonate-banner {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 18px; background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0.06));
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.35); font-size: 0.88rem; color: var(--text);
}

/* ============================================================
   DASHBOARD MONEY CARD ROW
   ============================================================ */
.dash-card-row {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  margin: 34px 0 8px; padding: 30px; border-radius: 24px;
  background: var(--panel); border: 1px solid var(--line);
}
.dash-card-side h2 { font-family: var(--serif); }
.dash-card-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.dash-card-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.dash-card-hint { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 0.78rem; color: var(--faint); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0); }
}
@media (max-width: 760px) {
  .dash-card-row { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}

/* ============================================================
   CASE WELCOME OVERLAY — "we got your case", proof in motion
   ============================================================ */
.case-welcome-overlay {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center;
  background: rgba(4, 7, 14, 0.82); backdrop-filter: blur(10px);
  animation: overlayIn 0.4s ease; padding: 20px;
}
.case-welcome-overlay.closing { animation: overlayOut 0.35s ease forwards; }
@keyframes overlayIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes overlayOut { 100% { opacity: 0; } }
.case-welcome-card {
  width: min(620px, 94vw); padding: 40px 34px 32px; border-radius: 26px; text-align: center;
  background: var(--panel); border: 1px solid rgba(var(--gold-rgb), 0.35);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 80px -30px rgba(var(--gold-rgb), 0.35);
  animation: cardPop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes cardPop { 0% { opacity: 0; transform: translateY(26px) scale(0.94); } 100% { opacity: 1; transform: none; } }
.case-welcome-shield {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center;
  color: var(--gold); background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.35);
  animation: shieldBreathe 2.4s ease-in-out infinite;
}
.case-welcome-shield svg { width: 36px; height: 36px; }
@keyframes shieldBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(var(--gold-rgb), 0); }
}
.case-welcome-card h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.loading-dots i { animation: dotBlink 1.2s infinite; font-style: normal; }
.loading-dots i:nth-child(2) { animation-delay: 0.2s; }
.loading-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
.case-welcome-sub { color: var(--muted); margin: 8px 0 0; font-size: 0.95rem; }
.case-welcome-track {
  list-style: none; display: flex; justify-content: space-between; gap: 4px;
  margin: 30px 0 0; padding: 0;
}
.case-welcome-track li { flex: 1; display: grid; justify-items: center; gap: 8px; position: relative; }
.case-welcome-track li::before {
  content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.case-welcome-track li:first-child::before { display: none; }
.case-welcome-track li.done::before, .case-welcome-track li.active::before { background: var(--gold); }
.case-welcome-track .node {
  width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2);
  border: 2px solid var(--line); position: relative; z-index: 1; transition: all 0.4s;
}
.case-welcome-track li.done .node { background: var(--gold); border-color: var(--gold); }
.case-welcome-track li.active .node {
  background: var(--gold); border-color: var(--gold);
  animation: nodePulse 1.4s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(var(--gold-rgb), 0); }
}
.case-welcome-track .name {
  font-size: 0.62rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em;
  line-height: 1.3; max-width: 8ch;
}
.case-welcome-track li.active .name, .case-welcome-track li.done .name { color: var(--gold); }
.case-welcome-line { margin: 22px 0 24px; font-size: 1rem; color: var(--text); min-height: 1.5em; transition: opacity 0.3s; }
@media (max-width: 560px) {
  .case-welcome-track .name { display: none; }
  .case-welcome-card { padding: 30px 20px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .bell-btn.ringing svg, .case-welcome-shield, .case-welcome-track li.active .node,
  .pulse-dot, .loading-dots i { animation: none; }
}


/* ============ Round 3: magnetic CTAs, message FAB, progress modal, uploads ============ */

/* Magnetic call-to-action buttons */
.btn-magnet { position: relative; overflow: hidden; isolation: isolate; }
.btn-magnet::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; left: -30%; width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-24deg) translateX(-260%);
  animation: magnet-shine 2.8s ease-in-out infinite; z-index: 1; pointer-events: none;
}
.btn-magnet::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: radial-gradient(60% 120% at 50% 120%, rgba(240,192,90,.55), transparent 70%);
  opacity: .85; animation: magnet-glow 2.8s ease-in-out infinite;
}
@keyframes magnet-shine { 0%, 55% { transform: skewX(-24deg) translateX(-260%); } 90%, 100% { transform: skewX(-24deg) translateX(560%); } }
@keyframes magnet-glow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.btn-magnet:hover { transform: translateY(-2px) scale(1.02); }
.btn-magnet:active { transform: translateY(0) scale(.99); }

/* Floating clienthub Message button */
.msg-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #f0c05a, #d9a83c); color: #1a1305;
  font: inherit; font-weight: 800; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(217,168,60,.45), 0 2px 8px rgba(0,0,0,.35);
  animation: fab-breathe 3.2s ease-in-out infinite;
}
.msg-fab svg { width: 19px; height: 19px; }
.msg-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(217,168,60,.6), 0 2px 8px rgba(0,0,0,.35); }
@keyframes fab-breathe { 0%, 100% { box-shadow: 0 10px 30px rgba(217,168,60,.45), 0 0 0 0 rgba(240,192,90,.5); } 50% { box-shadow: 0 10px 30px rgba(217,168,60,.45), 0 0 0 12px rgba(240,192,90,0); } }
.msg-modal { max-width: 640px; width: min(640px, calc(100vw - 32px)); }
.msg-modal textarea { min-height: 130px; resize: vertical; }

/* Refund progress modal */
.progress-modal { max-width: 860px; width: min(860px, calc(100vw - 24px)); }
.pm-journey { display: flex; align-items: center; gap: 12px; margin: 20px 0 6px; }
.pm-track { flex: 1; list-style: none; margin: 0; padding: 26px 0 0; display: flex; position: relative; }
.pm-track::before { content: ''; position: absolute; top: 34px; left: 4%; right: 4%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); }
.pm-track::after { content: ''; position: absolute; top: 34px; left: 4%; height: 3px; border-radius: 3px; width: var(--pm-fill, 0%); max-width: 92%; background: linear-gradient(90deg, #f0c05a, #7ce0b8); transition: width 1.4s cubic-bezier(.22,1,.36,1); box-shadow: 0 0 12px rgba(240,192,90,.6); }
.pm-track li { flex: 1; position: relative; text-align: center; min-width: 0; }
.pm-track .node { width: 15px; height: 15px; margin: 0 auto; border-radius: 50%; background: #2a2f3d; border: 2px solid rgba(255,255,255,.25); position: relative; z-index: 1; transition: all .4s; }
.pm-track li.done .node { background: #7ce0b8; border-color: #7ce0b8; box-shadow: 0 0 10px rgba(124,224,184,.7); }
.pm-track li.active .node { background: #f0c05a; border-color: #f0c05a; box-shadow: 0 0 0 6px rgba(240,192,90,.22), 0 0 16px rgba(240,192,90,.8); animation: pm-pulse 1.6s ease-in-out infinite; }
@keyframes pm-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(240,192,90,.25), 0 0 14px rgba(240,192,90,.7); } 50% { box-shadow: 0 0 0 10px rgba(240,192,90,0), 0 0 20px rgba(240,192,90,.9); } }
.pm-track .name { display: block; margin-top: 8px; font-size: .62rem; line-height: 1.25; color: var(--muted); word-break: break-word; }
.pm-track li.active .name { color: #f0c05a; font-weight: 800; }
.pm-track li.done .name { color: #7ce0b8; }
.pm-destination { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.pm-card { width: 92px; height: 58px; border-radius: 10px; background: linear-gradient(135deg, #f0c05a, #b8862e); color: #1a1305; padding: 8px 9px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 8px 22px rgba(217,168,60,.45); position: relative; animation: pm-card-float 3s ease-in-out infinite; }
@keyframes pm-card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pm-card-brand { font-weight: 900; font-size: .85rem; }
.pm-card-name { font-size: .52rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-card-check { position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: #7ce0b8; color: #0c241b; opacity: 0; transform: scale(.4); transition: all .5s .9s; }
.pm-card.arrived .pm-card-check { opacity: 1; transform: scale(1); }
.pm-dest-label { font-size: .62rem; color: var(--muted); text-align: center; max-width: 96px; }
.pm-line { min-height: 22px; font-size: .95rem; margin: 14px 0 10px; }
.pm-meter { height: 7px; border-radius: 7px; background: rgba(255,255,255,.1); overflow: hidden; }
.pm-meter i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, #f0c05a, #7ce0b8); transition: width 1.4s cubic-bezier(.22,1,.36,1); }
.pm-pct { margin: 8px 0 0; font-size: .82rem; color: var(--muted); text-align: right; }
.pm-pct span { color: #f0c05a; font-weight: 800; }

/* Small animated progress-check button on case rows */
.btn-progress-check {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: .76rem; font-weight: 800; letter-spacing: .02em;
  color: #f0c05a; background: rgba(240,192,90,.08); border: 1px solid rgba(240,192,90,.45);
  position: relative; overflow: hidden; transition: all .25s;
}
.btn-progress-check::after { content: ''; position: absolute; top: -60%; bottom: -60%; left: -20%; width: 30%; background: linear-gradient(105deg, transparent, rgba(240,192,90,.35), transparent); transform: skewX(-24deg) translateX(-240%); animation: magnet-shine 3.4s ease-in-out infinite; }
.btn-progress-check:hover { background: rgba(240,192,90,.18); border-color: #f0c05a; transform: translateY(-1px); }
.btn-progress-check svg { width: 14px; height: 14px; animation: pm-pulse 1.8s ease-in-out infinite; }

/* Animated empty-activity state: coin travels into card */
.activity-empty { padding: 26px 10px 18px; text-align: center; }
.activity-empty-stage { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.ae-coin { width: 34px; height: 34px; color: #f0c05a; animation: ae-coin-travel 3s ease-in-out infinite; }
.ae-coin svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(240,192,90,.6)); }
.ae-path { display: inline-flex; gap: 7px; align-items: center; }
.ae-path i { width: 5px; height: 5px; border-radius: 50%; background: rgba(240,192,90,.55); animation: ae-dot 1.4s ease-in-out infinite; }
.ae-path i:nth-child(2) { animation-delay: .15s; } .ae-path i:nth-child(3) { animation-delay: .3s; }
.ae-path i:nth-child(4) { animation-delay: .45s; } .ae-path i:nth-child(5) { animation-delay: .6s; }
.ae-card { width: 40px; height: 40px; color: var(--muted); }
.ae-card svg { width: 100%; height: 100%; }
@keyframes ae-coin-travel { 0%, 15% { transform: translateX(0) scale(1); opacity: 1; } 55% { transform: translateX(calc(100% + 52px)) scale(.85); opacity: 1; } 70% { transform: translateX(calc(100% + 62px)) scale(.4); opacity: 0; } 71% { transform: translateX(0) scale(.4); opacity: 0; } 85%, 100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes ae-dot { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.activity-empty p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Upload dropzone + previews */
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border: 2px dashed rgba(240,192,90,.5); border-radius: 14px; background: rgba(240,192,90,.05); cursor: pointer; text-align: center; transition: all .25s; }
.upload-drop:hover, .upload-drop.dragover { border-color: #f0c05a; background: rgba(240,192,90,.12); }
.upload-drop svg { width: 34px; height: 34px; color: #f0c05a; }
.upload-drop strong { font-size: .95rem; }
.upload-drop span { font-size: .78rem; color: var(--muted); }
.upload-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-grid .up-thumb { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(240,192,90,.4); background: #1a1e28; }
.upload-grid .up-thumb img, .upload-grid .up-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-grid .up-thumb .up-badge { position: absolute; left: 0; right: 0; bottom: 0; font-size: .52rem; font-weight: 800; text-align: center; padding: 1px 0; background: rgba(0,0,0,.65); color: #f0c05a; letter-spacing: .05em; }
.upload-count { margin: 8px 0 0; font-size: .8rem; color: #7ce0b8; font-weight: 700; }

/* Admin proof gallery */
.proof-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0 4px; }
.proof-item { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(240,192,90,.35); display: block; transition: transform .2s; }
.proof-item:hover { transform: scale(1.06); border-color: #f0c05a; }
.proof-item img, .proof-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-item .up-badge { position: absolute; left: 0; right: 0; bottom: 0; font-size: .55rem; font-weight: 800; text-align: center; padding: 2px 0; background: rgba(0,0,0,.65); color: #f0c05a; }

/* Admin message inbox */
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.msg-item.unread { border-color: rgba(240,192,90,.55); background: rgba(240,192,90,.06); }
.msg-item .msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.msg-item .msg-body { white-space: pre-wrap; font-size: .92rem; line-height: 1.55; }
.msg-item .msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Quick stage select */
.quick-stage select { padding: 6px 10px; border-radius: 9px; background: #14181f; color: var(--text); border: 1px solid rgba(240,192,90,.4); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.quick-stage select:hover, .quick-stage select:focus { border-color: #f0c05a; outline: none; }

/* Phone fit */
@media (max-width: 760px) {
  .msg-fab { padding: 13px; right: 14px; bottom: 14px; }
  .msg-fab .fab-label { display: none; }
  .pm-journey { flex-direction: column; align-items: stretch; }
  .pm-destination { flex-direction: row; justify-content: center; margin-top: 6px; }
  .pm-dest-label { max-width: none; }
  .pm-track .name { display: none; }
  .pm-track li.active .name, .pm-track li.done:first-child .name { display: block; }
  .pm-track li.active .name { position: absolute; left: 50%; transform: translateX(-50%); width: 84px; }
  .progress-modal { padding: 20px 14px; }
  .live-track { min-width: 0 !important; }
  .live-node { width: 11px !important; height: 11px !important; }
  .live-link { height: 2px !important; }
  .live-track .name { display: none; }
  .proof-item { width: 66px; height: 66px; }
  .upload-grid .up-thumb { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-magnet::after, .btn-magnet::before, .msg-fab, .pm-card, .ae-coin, .ae-path i,
  .btn-progress-check::after, .btn-progress-check svg, .pm-track li.active .node { animation: none; }
}


/* ============ Success-fee plans & top-up reason ============ */
.topup-reason { font-size: .82rem; line-height: 1.5; color: var(--muted); border-left: 3px solid rgba(240,192,90,.6); padding: 6px 0 6px 12px; margin: 12px 0 0; }
.topup-plans { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(240,192,90,.3); border-radius: 12px; background: rgba(240,192,90,.05); }
.topup-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .82rem; }
.topup-plan strong { color: #f0c05a; font-size: .85rem; min-width: 96px; }
.topup-plan span { font-weight: 800; }
.topup-plan span small { font-weight: 500; color: var(--muted); }
.topup-plan em { font-style: normal; color: var(--muted); font-size: .76rem; width: 100%; }
.topup-plan-hint { margin: 8px 0 0; font-size: .8rem; line-height: 1.45; color: #7ce0b8; }
.plan-range { margin: 4px 0 0; font-size: .82rem; font-weight: 700; color: #f0c05a; }
.plan-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-promise-step { position: relative; padding: 22px 20px 20px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.plan-promise-step p { margin: 10px 0 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.plan-promise-step p strong { color: var(--text); display: block; margin-bottom: 4px; }
.plan-promise-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f0c05a, #d9a83c); color: #1a1305; font-weight: 900; font-size: .95rem; box-shadow: 0 6px 16px rgba(217,168,60,.4); }
@media (max-width: 760px) {
  .plan-promise { grid-template-columns: 1fr; }
  .topup-plan strong { min-width: 0; }
}


/* ============ Phone: case rows become cards — full 12-stage progress visible, no scrolling ============ */
@media (max-width: 760px) {
  .cases-table { display: block; overflow-x: visible; white-space: normal; }
  .cases-table thead { display: none; }
  .cases-table tbody { display: block; }
  .cases-table tbody tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    padding: 14px 4px; border-bottom: 1px solid var(--line);
  }
  .cases-table tbody tr:last-child { border-bottom: none; }
  .cases-table td { display: block; padding: 0 !important; border: none !important; white-space: normal; vertical-align: top; }
  .cases-table td.check-col { order: 1; }
  .cases-table td:nth-child(2) { order: 2; flex: 1 1 auto; min-width: 0; font-size: .88rem; line-height: 1.35; }
  .cases-table td.row-actions { order: 3; }
  .cases-table td:nth-child(3) { order: 4; font-size: .8rem; color: var(--muted); }
  .cases-table td:nth-child(4) { order: 5; font-size: .88rem; }
  .cases-table td:nth-child(5) { order: 6; }
  .cases-table td.progress-cell { order: 7; flex: 1 0 100%; margin-top: 10px; }
  .cases-table .live-track { width: 100%; min-width: 0 !important; max-width: 100%; }
  .cases-table .live-node { width: 15px !important; height: 15px !important; border-width: 1.5px; }
  .cases-table .live-node svg { width: 8px; height: 8px; }
  .cases-table .live-link { min-width: 0; height: 2px !important; }
  .cases-table .btn-progress-check { margin-top: 10px; }
  .cases-table .stage-announce { position: static; margin-top: 6px; }
}


/* ============ 5-plan grid ============ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }
.plans-grid .plan-card { display: flex; flex-direction: column; }
.plans-grid .plan-card .btn { margin-top: auto; }


/* ============ Recovery Force & About pages ============ */
.rf-band { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(240,192,90,.22); }
.rf-band img { width: 100%; display: block; aspect-ratio: 21/9; object-fit: cover; }
.rf-band-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; background: linear-gradient(180deg, rgba(8,10,16,0) 30%, rgba(8,10,16,.88) 82%); }
.rf-band-caption h2 { margin: 8px 0 6px; }
.rf-band-caption p { margin: 0; max-width: 560px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.rf-band-caption .eyebrow { justify-content: flex-start; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rf-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--text); background: rgba(240,192,90,.08); border: 1px solid rgba(240,192,90,.35); }
.rf-badge svg { width: 15px; height: 15px; color: #f0c05a; }
.rf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rf-step { padding: 18px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); position: relative; transition: border-color .3s, transform .3s; }
.rf-step:hover { border-color: rgba(240,192,90,.5); transform: translateY(-3px); }
.rf-step-num { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .1em; color: #f0c05a; margin-bottom: 8px; }
.rf-step strong { display: block; font-size: .95rem; margin-bottom: 6px; }
.rf-step p { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.rf-steps-4 { grid-template-columns: repeat(4, 1fr); }
.channel-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.channel-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.power-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; padding: 16px 30px; }
.power-btn svg { width: 20px; height: 20px; }

/* CTA link in the main nav */
.nav-recovery { position: relative; font-weight: 800 !important; color: #f0c05a !important; }
.nav-recovery::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f0c05a, transparent); }

/* Dashboard recovery banner */
.recovery-banner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; margin-bottom: 22px; background: linear-gradient(120deg, rgba(240,192,90,.14), rgba(240,192,90,.04)); border: 1px solid rgba(240,192,90,.4); text-decoration: none; color: var(--text); transition: transform .25s, border-color .25s; }
.recovery-banner:hover { transform: translateY(-2px); border-color: #f0c05a; }
.recovery-banner-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #f0c05a, #d9a83c); color: #1a1305; box-shadow: 0 6px 16px rgba(217,168,60,.4); }
.recovery-banner-icon svg { width: 22px; height: 22px; }
.recovery-banner-text { flex: 1; min-width: 0; }
.recovery-banner-text b { display: block; font-size: .98rem; }
.recovery-banner-text span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.recovery-banner-arrow { flex: none; color: #f0c05a; font-weight: 900; font-size: 1.2rem; }

@media (max-width: 900px) {
  .rf-steps, .rf-steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rf-band-caption { padding: 20px; }
  .rf-band-caption h2 { font-size: 1.35rem; }
  .rf-band-caption p { font-size: .85rem; }
  .rf-steps, .rf-steps-4 { grid-template-columns: 1fr; }
}


/* ============================================================
   IMPERSONATION BANNER — fixed bottom bar, never blocked by the menu
   ============================================================ */
.impersonate-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; background: #14100a;
  border-top: 1px solid rgba(var(--gold-rgb), 0.45); border-bottom: none;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);
  font-size: 0.9rem; color: var(--text);
}
.impersonate-banner form { margin: 0; }
.impersonate-banner .btn { white-space: nowrap; }
body.impersonating { padding-bottom: 76px; }
@media (max-width: 640px) {
  .impersonate-banner { font-size: 0.8rem; padding: 10px 12px; gap: 10px; text-align: center; }
  body.impersonating { padding-bottom: 96px; }
}


/* ============================================================
   HOMEPAGE LIGHTENING — tracker steps in two calm columns
   ============================================================ */
@media (min-width: 900px) {
  .tracker-stage-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
  }
}
.tracker-step p { margin-bottom: 0; }

/* Team intro — editorial photo + text block (homepage) */
.team-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center; max-width: 1080px; margin: 0 auto; }
.team-intro-photo { border-radius: 18px; overflow: hidden; border: 1px solid rgba(240,192,90,.16); box-shadow: 0 18px 46px rgba(0,0,0,.32); }
.team-intro-photo img { width: 100%; display: block; }
.team-intro-text p { color: var(--muted); margin: 1.1rem 0 1.7rem; max-width: 46ch; }
@media (max-width: 860px) {
  .team-intro { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* Team intro — mobile: text first, photo capped so it never fills the screen */
@media (max-width: 860px) {
  .team-intro-text { order: -1; }
  .team-intro-photo { max-width: 560px; margin: 0 auto; }
  .team-intro-photo img { max-height: 340px; object-fit: cover; object-position: center 28%; }
}

/* Team intro — desktop refinement: compact editorial band, no poster look */
@media (min-width: 861px) {
  .team-intro { grid-template-columns: .92fr 1.08fr; max-width: 960px; }
  .team-intro-photo img { max-height: 320px; object-fit: cover; object-position: center 30%; }
  .team-intro-text .display-2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
}

/* WhatsApp floating chat — bottom left, green counterpart to clienthub Message */
.wa-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, #2fe073, #1eb85a); color: #06240f;
  font-weight: 800; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 2px 8px rgba(0,0,0,.35);
  animation: wa-breathe 3.2s ease-in-out infinite;
}
.wa-fab svg { width: 19px; height: 19px; }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(37,211,102,.55), 0 2px 8px rgba(0,0,0,.35); }
@keyframes wa-breathe { 0%, 100% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 0 rgba(46,224,115,.45); } 50% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 12px rgba(46,224,115,0); } }
@media (max-width: 640px) {
  .wa-fab { padding: 13px; left: 14px; bottom: 14px; }
  .wa-fab .fab-label { display: none; }
}
