@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink:        #0B1019;
  --surface:    #141B29;
  --surface-2:  #1B2436;
  --border:     #2A344A;
  --text:       #E7E9F0;
  --muted:      #8891A6;
  --gold:       #C79A46;
  --gold-dim:   #8A6C31;
  --gain:       #4F9C82;
  --loss:       #C1615C;
  --info:       #5B8DEF;
  --radius:     18px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Typography ---------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { color: var(--muted); margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75em;
}

.mono { font-family: var(--font-mono); }

/* ---------------- App shell / sidebar ---------------- */

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand .dot { color: var(--gold); }

.sidebar-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  padding: 20px 24px 8px;
}

.sidebar-links { display: flex; flex-direction: column; padding-bottom: 12px; }
.sidebar-links a {
  padding: 11px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-links a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.sidebar-links a.active {
  color: var(--text);
  border-left-color: var(--gold);
  background: var(--surface-2);
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.sidebar-foot .user-name { color: var(--text); font-size: 0.88rem; }
.sidebar-foot .user-role { color: var(--muted); font-size: 0.78rem; font-family: var(--font-body); text-transform: none; }
.sidebar-foot a { font-size: 0.82rem; }

.main-content { flex: 1; min-width: 0; }

.nav-toggle-checkbox { display: none; }
.nav-toggle-overlay { display: none; }
.mobile-topbar { display: none; }
.sidebar-close { display: none; }

@media (max-width: 860px) {
  .app-shell { flex-direction: column; }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--ink);
    z-index: 15;
  }
  .hamburger-btn {
    font-size: 1.9rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  .hamburger-btn:active { background: var(--surface-2); }
  .mobile-topbar-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
  }
  .mobile-topbar-brand .dot { color: var(--gold); }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 40;
    flex-direction: column;
    border-right: 1px solid var(--border);
  }
  .sidebar-brand { border-right: none; }
  .sidebar-links { flex-direction: column; padding-bottom: 12px; }
  .sidebar-links a {
    border-left: 3px solid transparent;
    border-bottom: none;
    padding: 12px 24px;
    white-space: normal;
  }
  .sidebar-links a.active { border-left-color: var(--gold); border-bottom-color: transparent; }
  .sidebar-foot { border-left: none; border-top: 1px solid var(--border); white-space: normal; margin-top: auto; }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin: 12px 12px 0;
    width: 40px;
    height: 40px;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 8px;
  }
  .sidebar-close:active { background: var(--surface-2); }

  .nav-toggle-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 35;
  }

  .nav-toggle-checkbox:checked ~ .app-shell .sidebar { transform: translateX(0); }
  .nav-toggle-checkbox:checked ~ .app-shell .nav-toggle-overlay { display: block; }
}

/* ---------------- Nav (guest/public pages) ---------------- */

.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(11,16,25,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { color: var(--ink); }

.public-nav-toggle-checkbox { display: none; }
.public-nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.public-nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.public-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
}
.public-nav-toggle-checkbox:checked ~ .public-nav-overlay { display: block; }

.public-nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 22px;
  border-top: 1px solid var(--border);
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--ink);
  z-index: 50;
}
.public-nav-mobile-menu a { padding: 12px 4px; font-size: 0.95rem; color: var(--text); border-bottom: 1px solid var(--border); }
.public-nav-mobile-menu a:last-child { border-bottom: none; margin-top: 6px; }
.public-nav-mobile-menu a:hover { text-decoration: none; color: var(--gold); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .public-nav-hamburger { display: flex; }
  .public-nav-toggle-checkbox:checked ~ .nav .public-nav-mobile-menu { display: flex; }
  .public-nav-toggle-checkbox:checked ~ .nav .public-nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .public-nav-toggle-checkbox:checked ~ .nav .public-nav-hamburger span:nth-child(2) { opacity: 0; }
  .public-nav-toggle-checkbox:checked ~ .nav .public-nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------- Ticker (signature element) ---------------- */

.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}
.ticker-track {
  display: inline-block;
  animation: scroll-left 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.ticker-track span { margin-right: 42px; color: var(--muted); }
.ticker-track .up { color: var(--gain); }
.ticker-track .down { color: var(--loss); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary {
  background: var(--gold);
  color: #1a1305;
}
.btn-primary:hover { background: #d8ab52; text-decoration: none; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-danger { background: var(--loss); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-block { width: 100%; }

.btn-cta {
  background: linear-gradient(135deg, #E8BE72 0%, var(--gold) 55%, var(--gold-dim) 100%);
  color: #1a1305;
  font-size: 1rem;
  padding: 17px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(199,154,70,0.26);
}
.btn-cta:hover { box-shadow: 0 12px 30px rgba(199,154,70,0.34); text-decoration: none; }
.btn-cta:disabled, .btn-cta.btn-loading { opacity: 0.65; box-shadow: none; cursor: not-allowed; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(26,19,5,0.3);
  border-top-color: #1a1305;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.btn-loading .btn-spinner { display: inline-block; }
.btn-loading .btn-label-text { opacity: 0.85; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(199,154,70,0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero p.lede { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.trust-indicators { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 36px; }
.trust-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.trust-indicator svg { color: var(--gain); width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) { .hero { padding: 40px 0 44px; } }

.rate-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.rate-panel .row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.rate-panel .row:last-child { border-bottom: none; }
.rate-panel .pair { color: var(--text); }
.rate-panel .val.up { color: var(--gain); }
.rate-panel .val.down { color: var(--loss); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------------- Sections ---------------- */

.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}
.step .num {
  font-family: var(--font-mono);
  color: var(--gold-dim);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

.disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--muted);
}
.disclosure strong { color: var(--text); }

/* ---------------- Cards / dashboard ---------------- */

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.card-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  color: var(--text);
}
.card-value .unit { font-size: 0.9rem; color: var(--muted); margin-left: 6px; }

.page-head {
  padding: 40px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.page-body { padding: 32px 0 72px; }

/* ---------------- Tables ---------------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
td.num { font-family: var(--font-mono); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid var(--border);
}
.badge-pending { color: var(--gold); border-color: var(--gold-dim); }
.badge-approved, .badge-paid, .badge-active, .badge-verified { color: var(--gain); border-color: var(--gain); }
.badge-rejected, .badge-suspended { color: var(--loss); border-color: var(--loss); }
.badge-processing { color: var(--info); border-color: var(--info); background: rgba(91,141,239,0.1); }

/* ---------------- Forms ---------------- */

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 460px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin: 18px 0 7px;
}
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199,154,70,0.14);
}
input::placeholder, textarea::placeholder { color: #4E5A72; }
.field-hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.form-foot { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

/* ---------------- Flash messages ---------------- */

.flash {
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border: 1px solid;
}
.flash-success { background: rgba(79,156,130,0.1); border-color: var(--gain); color: var(--gain); }
.flash-error   { background: rgba(193,97,92,0.1); border-color: var(--loss); color: var(--loss); }
.flash-info    { background: rgba(199,154,70,0.1); border-color: var(--gold-dim); color: var(--gold); }

/* ---------------- Footer ---------------- */

footer {
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------------- Utility ---------------- */

.flex { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ================================================================
   EXTENDED COMPONENTS — Audit additions
   ================================================================ */

/* -------------- Breadcrumb -------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  padding: 16px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }

/* -------------- Stats bar -------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-bar-item {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 600;
}
.stats-bar-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 860px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-item:nth-child(2) { border-right: none; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stats-bar-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stats-bar-item:last-child { border-bottom: none; }
}

/* -------------- How It Works steps -------------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
}
.how-step {
  padding: 0 20px;
  text-align: center;
  position: relative;
}
.how-step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.how-step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.how-step h4 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  color: var(--text);
}
.how-step p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 860px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .how-steps::before { display: none; }
}
@media (max-width: 480px) {
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
}

/* -------------- Feature cards (Why Choose Us) -------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(199,154,70,0.08);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h4 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
}
.feature-card p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* -------------- Compliance grid -------------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.compliance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.compliance-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(79,156,130,0.08);
  border: 1px solid rgba(79,156,130,0.25);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gain);
}
.compliance-icon svg { width: 18px; height: 18px; }
.compliance-card h4 {
  font-size: 0.9rem;
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
}
.compliance-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 680px) {
  .compliance-grid { grid-template-columns: 1fr; }
}

/* -------------- KYC steps -------------- */
.kyc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.kyc-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.kyc-step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(199,154,70,0.08);
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.kyc-step h4 {
  font-size: 0.9rem;
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
}
.kyc-step p { font-size: 0.82rem; color: var(--muted); margin: 0; }
@media (max-width: 680px) {
  .kyc-steps { grid-template-columns: 1fr; }
}

/* -------------- Timeline -------------- */
.onboarding-timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 40px;
}
.onboarding-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.timeline-item h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.timeline-item p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* -------------- Testimonials -------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
}
.testimonial-name {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* -------------- FAQ -------------- */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
details.faq-item[open] {
  border-color: var(--gold-dim);
}
details.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}
details.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 18px;
}

/* -------------- CTA section -------------- */
.cta-main {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 60px 40px;
  text-align: center;
}
.cta-main::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(199,154,70,0.14), transparent 70%);
  pointer-events: none;
}
.cta-main > * { position: relative; z-index: 1; }
.cta-main h2 { margin-bottom: 12px; }
.cta-main p { max-width: 52ch; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* -------------- Footer (expanded) -------------- */
footer {
  border-top: 1px solid var(--border);
}
.footer-main {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 12px;
  display: block;
}
.footer-brand-name .dot { color: var(--gold); }
.footer-tagline {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.footer-col-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* -------------- Policy page -------------- */
.policy-body {
  max-width: 720px;
  padding-bottom: 80px;
}
.policy-body h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
}
.policy-body p { font-size: 0.9rem; line-height: 1.75; }
.policy-body ul {
  padding-left: 20px;
  margin: 0 0 1em;
}
.policy-body ul li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.65;
}
.policy-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 32px;
  display: block;
}

/* -------------- Loading skeletons -------------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }
.skeleton-value {
  height: 28px;
  width: 55%;
  border-radius: 4px;
  margin-top: 6px;
}

/* -------------- KYC verification banner -------------- */
.kyc-banner {
  background: rgba(199,154,70,0.08);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.88rem;
}
.kyc-banner svg { color: var(--gold); flex-shrink: 0; width: 18px; height: 18px; }
.kyc-banner a { color: var(--gold); font-weight: 600; }

/* -------------- Empty state improved -------------- */
.empty-state {
  text-align: center;
  padding: 56px 32px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.3;
}
.empty-state h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 600;
}
.empty-state p { font-size: 0.85rem; margin: 0; }

/* -------------- Account overview widget -------------- */
.account-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.account-overview-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.account-overview-rows { padding: 6px 0; }
.account-overview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.account-overview-row:last-child { border-bottom: none; }
.account-overview-row .label { color: var(--muted); display: flex; align-items: center; gap: 9px; }
.account-overview-row .label svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.account-overview-row .value { font-family: var(--font-mono); color: var(--text); }

/* ---------------- Recent activity feed ---------------- */

.feed-list { display: flex; flex-direction: column; padding: 4px 22px 6px; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }
.feed-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feed-icon.credit { background: rgba(79,156,130,0.12); color: var(--gain); }
.feed-icon.debit { background: rgba(193,97,92,0.12); color: var(--loss); }
.feed-icon.neutral { background: rgba(199,154,70,0.12); color: var(--gold); }
.feed-icon svg { width: 20px; height: 20px; }
.feed-main { flex: 1; min-width: 0; }
.feed-title { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.feed-date { font-size: 0.78rem; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.feed-amount { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; white-space: nowrap; flex-shrink: 0; }
.feed-amount.credit { color: var(--gain); }
.feed-amount.debit { color: var(--loss); }

/* ---------------- Monthly performance chart ---------------- */

.perf-chart-card { }
.perf-chart-sub { font-size: 0.82rem; color: var(--muted); margin: 14px 22px -8px; }
.perf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  margin: 22px 22px 10px;
  padding-bottom: 20px;
}
.perf-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.perf-chart-bar {
  width: 100%;
  max-width: 30px;
  border-radius: 8px 8px 3px 3px;
  background: var(--gain);
  min-height: 4px;
  transition: opacity .15s ease;
}
.perf-chart-bar.negative { background: var(--loss); }
.perf-chart-bar.zero { background: var(--border); }
.perf-chart-month {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* -------------- Notification dot -------------- */
.notif-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

/* -------------- Verification status card -------------- */
.verification-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.verification-steps {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.vstep {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.vstep.done { color: var(--gain); }
.vstep.pending { color: var(--gold); }
.vstep-sep { color: var(--border); }

/* ================================================================
   MOBILE APP SHELL v2 — top bar icons + bottom tab bar
   ================================================================ */

.currency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .mobile-topbar {
    justify-content: space-between;
  }
  .mobile-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
  }
  .topbar-icon-btn:active { background: var(--surface-2); }
  .topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    flex-shrink: 0;
  }

  /* Bottom tab bar — primary nav on mobile */
  .bottom-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    color: var(--muted);
    font-size: 0.66rem;
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
    border-radius: 10px;
  }
  .bottom-tabbar a:hover { text-decoration: none; }
  .bottom-tabbar a.active { color: var(--gold); background: rgba(199,154,70,0.08); }
  .bottom-tabbar svg { width: 20px; height: 20px; }

  /* Room for the fixed bottom tab bar so content isn't hidden behind it */
  .main-content { padding-bottom: 76px; }
}

/* ---------------- Stat card (single, icon top-right) — used on withdraw.php ---------------- */

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.stat-card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card-icon.gold { background: rgba(199,154,70,0.1); color: var(--gold); }
.stat-card-icon.gain { background: rgba(79,156,130,0.1); color: var(--gain); }
.stat-card-icon.muted { background: var(--surface-2); color: var(--muted); }
.stat-card .card-value { margin-top: 2px; }

/* ---------------- Hero card (glassmorphism greeting) ---------------- */

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(199,154,70,0.14), transparent 55%),
    rgba(20,27,41,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hero-card .eyebrow { color: var(--gold); margin-bottom: 2px; }
.hero-card h2 { margin: 2px 0 6px; font-size: 1.4rem; }
.hero-card p { margin: 0; font-size: 0.86rem; color: var(--muted); max-width: 90%; }
.hero-illustration {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(79,156,130,0.12);
  color: var(--gain);
  display: flex; align-items: center; justify-content: center;
}
.hero-illustration svg { width: 28px; height: 28px; }

/* ---------------- Quick action buttons row ---------------- */

.action-row { display: flex; gap: 12px; margin-bottom: 22px; }
.action-row .btn { flex: 1; padding: 14px 16px; }
.action-row .btn svg { width: 17px; height: 17px; }

/* ---------------- KPI grid (2x2) ---------------- */

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kpi-card:hover, .kpi-card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
  border-color: var(--gold-dim);
}
.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.kpi-icon.gold { background: rgba(199,154,70,0.12); color: var(--gold); }
.kpi-icon.gain { background: rgba(79,156,130,0.12); color: var(--gain); }
.kpi-icon.muted { background: var(--surface-2); color: var(--muted); }
.kpi-icon svg { width: 19px; height: 19px; }
.kpi-value { font-family: var(--font-mono); font-size: 1.4rem; color: var(--text); line-height: 1.2; }
.kpi-label { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
@media (max-width: 380px) { .kpi-value { font-size: 1.2rem; } }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- Recent activity list ---------------- */

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.activity-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.activity-card-head h3 { margin: 0; font-size: 0.95rem; }
.activity-card-head a { font-size: 0.82rem; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child { border-bottom: none; }
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-icon.credit { background: rgba(79,156,130,0.1); color: var(--gain); }
.activity-icon.debit { background: rgba(193,97,92,0.1); color: var(--loss); }
.activity-icon.neutral { background: rgba(199,154,70,0.1); color: var(--gold); }
.activity-row-main { flex: 1; min-width: 0; }
.activity-row-label { font-size: 0.88rem; color: var(--text); }
.activity-row-date { font-size: 0.76rem; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.activity-row-amount { font-family: var(--font-mono); font-size: 0.88rem; text-align: right; flex-shrink: 0; }
.activity-row-amount.credit { color: var(--gain); }
.activity-row-amount.debit { color: var(--loss); }

/* ---------------- List row with chevron (link-style row) ---------------- */

/* ---------------- (list-row-link superseded by .action-link-card below) ---------------- */


/* ---------------- Form rows (side by side fields) ---------------- */

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-2 > div { min-width: 0; }
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---------------- Saved payout method card ---------------- */

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.method-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.method-card-title { display: flex; align-items: center; gap: 10px; }
.method-card-title strong { font-size: 0.92rem; color: var(--text); }
.default-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--gain);
  border: 1px solid var(--gain);
  border-radius: 100px;
  padding: 2px 9px;
  margin-left: 8px;
}
.method-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.method-card-detail { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); word-break: break-all; margin: 0; }

/* ---------------- Collapsible section (details/summary) ---------------- */

details.collapse-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 22px;
}
details.collapse-panel summary {
  list-style: none;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
details.collapse-panel summary::-webkit-details-marker { display: none; }
details.collapse-panel summary svg { color: var(--muted); transition: transform .2s; }
details.collapse-panel[open] summary svg { transform: rotate(90deg); }
details.collapse-panel .collapse-body { padding: 4px 18px 20px; border-top: 1px solid var(--border); padding-top: 16px; }

/* ================================================================
   PREMIUM FUNDING PAGE — hero, crypto cards, upload, transaction feed
   ================================================================ */

/* Reusable page hero (title + subtitle + decorative icon), used above forms */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(199,154,70,0.14), transparent 55%),
    rgba(20,27,41,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.page-hero-text .eyebrow { margin-bottom: 4px; }
.page-hero-text h1, .page-hero-text h2 { margin: 2px 0 8px; font-size: 1.6rem; }
.page-hero-text p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 42ch; }
.page-hero-icon {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(199,154,70,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.page-hero-icon svg { width: 28px; height: 28px; }
@media (max-width: 520px) { .page-hero-icon { display: none; } }

/* Section wrapper — consistent spacing between major blocks */
.page-section { margin-top: 26px; }
.page-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-section-head h3 { margin: 0; font-size: 1.05rem; }
.page-section-sub { font-size: 0.85rem; color: var(--muted); margin: -10px 0 16px; }

/* ---------------- Crypto deposit-address cards ---------------- */

.crypto-card-list { display: flex; flex-direction: column; gap: 14px; }
.crypto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.crypto-card:hover, .crypto-card:focus-within {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.24);
}
.crypto-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.crypto-card-head .currency-badge { width: 44px; height: 44px; font-size: 1.25rem; }
.crypto-card-head-text { flex: 1; min-width: 0; }
.crypto-card-name { font-weight: 600; font-size: 1rem; color: var(--text); }
.crypto-network-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.crypto-address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
}
.crypto-address-box code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  word-break: break-all;
  line-height: 1.5;
}
.crypto-card-hint { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

.copy-btn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}
.copy-btn:hover { color: var(--gold); border-color: var(--gold-dim); }
.copy-btn:active { transform: scale(0.92); }
.copy-btn .copy-icon-success { display: none; }
.copy-btn.copied { color: var(--gain); border-color: var(--gain); background: rgba(79,156,130,0.1); }
.copy-btn.copied .copy-icon-default { display: none; }
.copy-btn.copied .copy-icon-success { display: inline-flex; }

/* ---------------- Premium select (with leading currency icon) ---------------- */

.select-icon-wrap { position: relative; }
.select-icon-wrap .select-leading-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.select-icon-wrap select { padding-left: 48px; appearance: none; -webkit-appearance: none; }
.select-icon-wrap::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------------- Upload dropzone ---------------- */

.upload-dropzone {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload-dropzone:hover, .upload-dropzone.has-file { border-color: var(--gold-dim); background: rgba(199,154,70,0.04); }
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
}
.upload-dropzone-icon {
  width: 38px; height: 38px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.upload-dropzone-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.upload-dropzone-sub { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.upload-dropzone-filename {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gain);
  font-family: var(--font-mono);
}

/* ---------------- Funding history — transaction cards ---------------- */

.txn-list { display: flex; flex-direction: column; gap: 12px; }
.txn-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}
.txn-card .currency-badge { width: 40px; height: 40px; font-size: 1.05rem; flex-shrink: 0; }
.txn-main { flex: 1; min-width: 0; }
.txn-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.txn-date { font-size: 0.76rem; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; color: var(--text); }
.txn-right .badge { margin-top: 6px; }

/* ================================================================
   PREMIUM PAYOUT PAGE — balance card, action link, summary, history
   ================================================================ */

/* ---------------- Balance highlight card ---------------- */

.balance-highlight-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(199,154,70,0.18), transparent 55%),
    rgba(20,27,41,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(199,154,70,0.28);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
.balance-highlight-head { display: flex; align-items: center; justify-content: space-between; }
.balance-highlight-card .card-label { margin-bottom: 0; }
.balance-highlight-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(199,154,70,0.14);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.balance-highlight-value { font-family: var(--font-mono); font-size: 2.3rem; color: var(--text); margin-top: 10px; }
.balance-highlight-caption { font-size: 0.82rem; color: var(--gain); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.balance-highlight-caption svg { width: 14px; height: 14px; }

/* ---------------- Clickable action link card (Manage Payout Methods) ---------------- */

.action-link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.action-link-card:hover { text-decoration: none; border-color: var(--gold-dim); transform: translateY(-1px); }
.action-link-card:active { transform: scale(0.99); }
.action-link-card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.action-link-card-text { flex: 1; min-width: 0; }
.action-link-card-title { font-weight: 600; font-size: 0.92rem; }
.action-link-card-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.action-link-card-chev { color: var(--muted); flex-shrink: 0; }
/* Tap ripple */
.action-link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(199,154,70,0.25) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.action-link-card:active::after { opacity: 1; transform: scale(1); transition: none; }

/* ---------------- Withdrawal summary card ---------------- */

.withdrawal-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  display: none;
}
.withdrawal-summary.visible { display: block; }
.withdrawal-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.86rem;
}
.withdrawal-summary-row .label { color: var(--muted); }
.withdrawal-summary-row .value { font-family: var(--font-mono); color: var(--text); }
.withdrawal-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
}
.withdrawal-summary-row.total .label { color: var(--text); font-weight: 600; font-family: var(--font-body); }
.withdrawal-summary-row.total .value { color: var(--gain); font-weight: 600; font-size: 1rem; }

/* Amount input with leading USD icon */
.amount-input-wrap { position: relative; }
.amount-input-wrap .amount-leading-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
}
.amount-input-wrap input { padding-left: 42px; }

/* ---------------- Payout history transaction cards ---------------- */

.payout-txn-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}
.payout-txn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.payout-txn-main { flex: 1; min-width: 0; }
.payout-txn-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.payout-txn-date { font-size: 0.76rem; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.payout-txn-right { text-align: right; flex-shrink: 0; }
.payout-txn-amount { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; color: var(--text); }
.payout-txn-fee { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.payout-txn-right .badge { margin-top: 6px; }

/* ================================================================
   PREMIUM ACCOUNT HISTORY PAGE — filters, transaction cards
   ================================================================ */

/* ---------------- Filter bar ---------------- */

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.filter-bar .field-span-2 { grid-column: 1 / -1; }
.filter-bar label { margin: 0 0 6px; font-size: 0.76rem; }
.filter-bar input, .filter-bar select { padding: 11px 14px; font-size: 0.86rem; border-radius: 12px; }
.filter-search-wrap { position: relative; }
.filter-search-wrap .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search-wrap input { padding-left: 40px; }
.filter-bar-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 2px; }
.filter-bar-actions .btn { flex: 1; }
@media (max-width: 420px) { .filter-bar { grid-template-columns: 1fr; } }

/* ---------------- Transaction card (Account History) ---------------- */

.history-txn-list { display: flex; flex-direction: column; gap: 12px; }
.history-txn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.history-txn-card:hover { border-color: var(--gold-dim); transform: translateY(-1px); }
.history-txn-top { display: flex; align-items: flex-start; gap: 12px; }
.history-txn-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.history-txn-icon.credit { background: rgba(79,156,130,0.12); color: var(--gain); }
.history-txn-icon.debit { background: rgba(193,97,92,0.12); color: var(--loss); }
.history-txn-icon.neutral { background: rgba(199,154,70,0.12); color: var(--gold); }
.history-txn-left { flex: 1; min-width: 0; }
.history-txn-title { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.history-txn-datetime { font-size: 0.76rem; color: var(--muted); margin-top: 3px; font-family: var(--font-mono); }
.history-txn-right { text-align: right; flex-shrink: 0; }
.history-txn-amount { font-family: var(--font-mono); font-weight: 600; font-size: 0.98rem; }
.history-txn-amount.credit { color: var(--gain); }
.history-txn-amount.debit { color: var(--loss); }
.history-txn-balance { font-size: 0.74rem; color: var(--muted); margin-top: 3px; font-family: var(--font-mono); }
.history-txn-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.history-txn-notes { font-size: 0.8rem; color: var(--muted); flex: 1; min-width: 0; }

/* ---------------- Pagination ---------------- */

.pagination-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.pagination-bar .muted { font-size: 0.8rem; }

/* ================================================================
   PREMIUM SETTINGS PAGE
   ================================================================ */

.settings-card {
  transition: border-color .15s ease, transform .15s ease;
}
.settings-card:hover { border-color: var(--gold-dim); }
.settings-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.settings-card-head-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.settings-card-head h3 { margin: 0; }

/* Avatar */
.profile-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile-avatar-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(199,154,70,0.28), rgba(199,154,70,0.1));
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  flex-shrink: 0;
}
.profile-avatar-name { font-weight: 600; font-size: 1.02rem; color: var(--text); }
.profile-avatar-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* Read-only field treatment */
.field-label-row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 7px; }
.field-label-row:first-child { margin-top: 0; }
.field-label-row label { margin: 0; }
.readonly-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
}
.readonly-pill svg { width: 11px; height: 11px; }
input[disabled] { color: var(--muted); cursor: not-allowed; background: var(--surface-2); }

.field-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.field-callout svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* Password field with show/hide toggle */
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 44px; }
.password-toggle-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .15s ease;
}
.password-toggle-btn:hover { color: var(--gold); }
.password-toggle-btn .icon-hide { display: none; }
.password-toggle-btn.showing .icon-show { display: none; }
.password-toggle-btn.showing .icon-hide { display: inline-flex; }

/* Password strength meter */
.password-strength { margin-top: 10px; }
.password-strength-bars { display: flex; gap: 5px; }
.password-strength-bars span {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: var(--border);
  transition: background .2s ease;
}
.password-strength-label { font-size: 0.76rem; color: var(--muted); margin-top: 6px; }
.password-strength[data-level="1"] .password-strength-bars span:nth-child(1) { background: var(--loss); }
.password-strength[data-level="2"] .password-strength-bars span:nth-child(-n+2) { background: var(--gold); }
.password-strength[data-level="3"] .password-strength-bars span { background: var(--gain); }

/* Account status card v2 */
.status-card-v2 { display: flex; flex-direction: column; gap: 0; }
.status-row-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.status-row-v2:last-child { border-bottom: none; }
.status-row-v2-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.status-row-v2-text { flex: 1; min-width: 0; }
.status-row-v2-label { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.status-row-v2-sub { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* Security list */
.security-list { display: flex; flex-direction: column; }
.security-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.security-item:last-child { border-bottom: none; }
.security-item.is-disabled { opacity: 0.55; }
.security-item-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.security-item-text { flex: 1; min-width: 0; }
.security-item-title { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.security-item-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.badge-coming-soon { color: var(--muted); border-color: var(--border); background: var(--surface-2); }
