/* ═══════════════════════════════════════════════════════════
   CapatalX — Pocket Option Premium Gold Dark UI
   All accent colors: GOLD (#d4a017 / #f5c842)
   Zero green. Full dark. Real trading app feel.
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ── Gold Palette ── */
  --gold:         #d4a017;
  --gold-bright:  #f5c842;
  --gold-dark:    #a87d10;
  --gold-dim:     rgba(212,160,23,0.15);
  --gold-glow:    rgba(212,160,23,0.25);
  --gold-grad:    linear-gradient(135deg, #f5c842 0%, #d4a017 55%, #a87d10 100%);
  --gold-grad2:   linear-gradient(135deg, #fde68a 0%, #f5c842 50%, #d4a017 100%);

  /* ── Profit / Loss ── */
  --profit:       #26a69a;
  --profit-dim:   rgba(38,166,154,0.14);
  --loss:         #ef5350;
  --loss-dim:     rgba(239,83,80,0.14);

  /* ── App Surfaces ── */
  --bg:           #f4f6f9;
  --bg2:          #ffffff;
  --bg3:          #eef0f4;
  --card:         #ffffff;
  --card2:        #f9fafb;
  --card3:        #f0f2f5;

  /* ── Borders ── */
  --border:       rgba(0,0,0,0.07);
  --border2:      rgba(0,0,0,0.11);
  --border-gold:  rgba(212,160,23,0.25);

  /* ── Text ── */
  --text:         #0f1117;
  --text-sub:     #5a6278;
  --text-muted:   #9aa0b0;

  /* ── Shadows ── */
  --shadow:       0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 6px 32px rgba(0,0,0,0.14);
  --shadow-gold:  0 4px 20px rgba(212,160,23,0.35);

  /* ── Shape ── */
  --r:    16px;
  --r-sm: 10px;
  --r-xs: 7px;

  /* ── Layout ── */
  --nav-h:   64px;
  --ease:    cubic-bezier(0.4,0,0.2,1);
  --t:       all 0.22s var(--ease);
}

/* ────────────────────────────────
   RESET & BASE
──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
input, select, textarea { font-family: inherit; outline: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }

/* ────────────────────────────────
   LAYOUT
──────────────────────────────── */
.page-wrapper {
  padding-bottom: calc(var(--nav-h) + 20px);
  min-height: 100vh;
  background: var(--bg);
}
.page-wrapper.no-nav { padding-bottom: 0; }
.container { padding: 0 16px; }

/* ────────────────────────────────
   TOP HEADER
──────────────────────────────── */
.top-header {
  background: linear-gradient(160deg, #1a1c24 0%, #0f1117 100%);
  padding: 22px 20px 84px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.top-header::before {
  content: '';
  position: absolute;
  top: -50px; right: -70px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212,160,23,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.top-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1;
}

.header-user { display: flex; align-items: center; gap: 11px; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; color: #0b0e13;
  border: 2px solid var(--border-gold);
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(212,160,23,0.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.header-user-info .greeting  { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }
.header-user-info .username  { font-size: 15px; font-weight: 800; color: #ffffff; letter-spacing: -0.2px; }

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

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); font-size: 17px;
  position: relative; transition: var(--t);
}
.icon-btn:active { transform: scale(0.9); }

.badge {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--loss);
  border-radius: 50%;
  border: 1.5px solid #1a1c24;
}

.vip-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--gold-grad);
  color: #0b0e13;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 5px;
  letter-spacing: 0.2px;
}

/* ────────────────────────────────
   BALANCE CARD
──────────────────────────────── */
.balance-card {
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: var(--r);
  padding: 20px 20px 18px;
  margin: -54px 14px 0;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 10;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-grad);
}

.balance-main {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.balance-label {
  font-size: 10px; color: var(--text-sub);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; font-weight: 700;
  /* on white card — visible dark muted text */
}

.balance-amount {
  font-size: 36px; font-weight: 900;
  color: #0f1117; letter-spacing: -2px; line-height: 1;
}

.balance-amount span { color: var(--gold-bright); }

.balance-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.balance-stat  { text-align: center; }
.balance-stat .label { font-size: 10px; color: #5a6278; margin-bottom: 3px; font-weight: 600; }
.balance-stat .value { font-size: 14px; font-weight: 800; color: var(--gold-bright); }
.balance-stat .value.red { color: var(--loss); }

/* ── Action Buttons ── */
.action-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 14px 14px 0;
}

.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 800;
  transition: var(--t);
  letter-spacing: 0.2px;
}

.action-btn.primary {
  background: var(--gold-grad);
  color: #0b0e13;
  box-shadow: var(--shadow-gold);
}

.action-btn.outline {
  background: var(--card2);
  color: var(--gold-bright);
  border: 1.5px solid var(--border-gold);
}

.action-btn:active { transform: scale(0.96); opacity: 0.88; }

/* ────────────────────────────────
   MARKET TICKER
──────────────────────────────── */
.ticker-wrap {
  width: 100%;
  background: #f9fafb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, #f9fafb, transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left,  #f9fafb, transparent); }

.ticker-track {
  display: flex; width: max-content;
  animation: tickerScroll 40s linear infinite;
  padding: 9px 0;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.ticker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 18px;
  border-right: 1px solid var(--border);
  white-space: nowrap; cursor: default;
}

.ticker-symbol { font-size: 11px; font-weight: 700; color: #5a6278; letter-spacing: 0.3px; }
.ticker-price  { font-size: 13px; font-weight: 800; color: #0f1117; }
.ticker-change { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.ticker-change.up   { color: var(--profit); background: var(--profit-dim); }
.ticker-change.down { color: var(--loss);   background: var(--loss-dim); }
.ticker-dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--gold-glow);
}
.ticker-loading {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 12px; color: var(--text-sub);
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.35; transform:scale(0.65); }
}

/* ────────────────────────────────
   QUICK MENU GRID
──────────────────────────────── */
.section        { margin: 18px 14px 0; }
.section-title  {
  font-size: 11px; font-weight: 800;
  color: #5a6278;
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }

.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
}

.quick-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; transition: var(--t);
  background: var(--card);
  border: 1.5px solid rgba(212,160,23,0.28);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.quick-item:active .quick-icon { transform: scale(0.88); }

.quick-icon.green  { background: var(--gold-dim);                  border-color: var(--border-gold); }
.quick-icon.gold   { background: var(--gold-dim);                  border-color: var(--border-gold); }
.quick-icon.blue   { background: rgba(59,130,246,0.10);            border-color: rgba(59,130,246,0.18); }
.quick-icon.red    { background: var(--loss-dim);                  border-color: rgba(239,83,80,0.18); }
.quick-icon.purple { background: rgba(139,92,246,0.10);            border-color: rgba(139,92,246,0.18); }
.quick-icon.teal   { background: rgba(38,166,154,0.10);            border-color: rgba(38,166,154,0.18); }
.quick-icon.orange { background: rgba(249,115,22,0.10);            border-color: rgba(249,115,22,0.18); }
.quick-icon.pink   { background: rgba(236,72,153,0.10);            border-color: rgba(236,72,153,0.18); }

.quick-label { font-size: 10px; color: #3a4055; text-align: center; font-weight: 700; }

/* ────────────────────────────────
   PRODUCT CARDS
──────────────────────────────── */
.products-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 8px 12px 0; scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-right: 32px;
}
.products-scroll::-webkit-scrollbar { display: none; }

.product-card {
  min-width: calc(50% - 18px);
  width: calc(50% - 18px);
  background: var(--card);
  border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative; flex-shrink: 0;
  transition: var(--t);
  overflow: hidden;
  scroll-snap-align: start;
}

.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-grad);
  opacity: 0.6;
}

.product-card:active { transform: scale(0.97); }

.product-img {
  width: 100%; height: 74px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 10px; overflow: hidden;
  border: 1px solid var(--border-gold);
  position: relative;
}

.product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(212,160,23,0.12) 0%, transparent 60%);
}

.product-img img { width: 100%; height: 100%; object-fit: cover; }

.product-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold-grad);
  color: #0b0e13;
  font-size: 9px; font-weight: 900;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: 0.2px;
}

.product-name  { font-size: 13px; font-weight: 800; margin-bottom: 5px; color: #0f1117; }
.product-cycle { font-size: 11px; color: #9aa0b0; margin-bottom: 10px; }

.product-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.product-label { font-size: 11px; color: #5a6278; }
.product-value { font-size: 12px; font-weight: 800; color: #0f1117; }
.product-value.green { color: var(--gold-bright); }

.buy-btn {
  width: 100%;
  background: linear-gradient(135deg, #f5c842 0%, #d4a017 55%, #a87d10 100%);
  color: #0b0e13;
  font-size: 12px; font-weight: 900;
  padding: 10px; border-radius: var(--r-sm);
  margin-top: 10px; transition: var(--t);
  letter-spacing: 0.3px;
  text-align: center; display: block;
  box-shadow: 0 3px 12px rgba(212,160,23,0.40);
}
.buy-btn:active { transform: scale(0.96); opacity: 0.88; }

/* ── Full-width product list ── */
.product-list { display: flex; flex-direction: column; gap: 10px; }

.product-list-card {
  background: var(--card);
  border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r);
  padding: 14px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center;
}

.product-list-img {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  border: 1px solid var(--border-gold);
}

.product-list-info { flex: 1; }
.product-list-name  { font-size: 15px; font-weight: 800; margin-bottom: 2px; color: #0f1117; }
.product-list-cycle { font-size: 11px; color: #9aa0b0; margin-bottom: 8px; }

.product-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.product-stat  { font-size: 11px; color: #5a6278; }
.product-stat span { color: var(--gold-bright); font-weight: 800; }

/* ────────────────────────────────
   TRANSACTIONS LIST
──────────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: 2px; }

.tx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border-bottom: 1px solid rgba(212,160,23,0.18);
  transition: var(--t);
}

.tx-item:first-child { border-radius: var(--r) var(--r) 0 0; }
.tx-item:last-child  { border-radius: 0 0 var(--r) var(--r); border-bottom: none; }
.tx-item:only-child  { border-radius: var(--r); border-bottom: none; }

.tx-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.tx-icon.deposit    { background: var(--profit-dim); }
.tx-icon.withdrawal { background: var(--loss-dim); }
.tx-icon.commission { background: var(--gold-dim); }
.tx-icon.earning    { background: var(--gold-dim); }

.tx-info  { flex: 1; }
.tx-title { font-size: 14px; font-weight: 700; color: #0f1117; }
.tx-date  { font-size: 11px; color: #9aa0b0; margin-top: 2px; }

.tx-amount { font-size: 15px; font-weight: 800; }
.tx-amount.positive { color: var(--profit); }
.tx-amount.negative { color: var(--loss); }

/* ────────────────────────────────
   BOTTOM NAVIGATION
──────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: #ffffff;
  border-top: 2px solid rgba(212,160,23,0.40);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 12px;
  cursor: pointer; flex: 1;
  transition: var(--t);
  color: #9aa0b0;
  text-decoration: none;
}

.nav-item.active { color: var(--gold); }
.nav-item.active .nav-label { color: var(--gold); font-weight: 900; }
.nav-icon  { font-size: 21px; line-height: 1; transition: var(--t); }
.nav-svg-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.nav-svg-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; transition: var(--t); }
.nav-item.active .nav-svg-icon svg { stroke-width: 2.8; }
.nav-label { font-size: 10px; font-weight: 700; }
.nav-item:active { transform: scale(0.9); }

.nav-add {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #0b0e13;
  box-shadow: var(--shadow-gold);
  margin-bottom: 12px; flex-shrink: 0; transition: var(--t);
}
.nav-add .nav-svg-icon svg { stroke: #0b0e13; width: 24px; height: 24px; stroke-width: 2.5; }
.nav-add:active { transform: scale(0.9); }

/* ────────────────────────────────
   AUTH PAGES
──────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
}

.auth-header {
  background: linear-gradient(160deg, #1a1c24 0%, #0f1117 100%);
  padding: 64px 24px 84px;
  position: relative; overflow: hidden; text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-header::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,160,23,0.16) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}

.auth-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

.auth-logo {
  position: relative; z-index: 1;
  font-size: 36px; color: #ffffff; font-weight: 900; letter-spacing: -1.5px;
}
.auth-logo span { color: var(--gold-bright); }

.auth-tagline { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 6px; position: relative; z-index: 1; }

.auth-body {
  background: var(--card);
  border: 1.5px solid rgba(212,160,23,0.35);
  border-top: 2px solid var(--gold);
  border-radius: var(--r) var(--r) 0 0;
  margin-top: -32px;
  position: relative; z-index: 2;
  padding: 28px 24px 44px; flex: 1;
}

.auth-title    { font-size: 22px; font-weight: 900; margin-bottom: 5px; color: #0f1117; letter-spacing: -0.5px; }
.auth-subtitle { font-size: 13px; color: #5a6278; margin-bottom: 22px; }

/* ── Forms ── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block; font-size: 11px; font-weight: 800;
  color: #3a4055; margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.8px;
}

.form-control, .form-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--text);
  background: #ffffff;
  transition: var(--t);
  font-family: inherit;
}

.form-control:focus, .form-input:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212,160,23,0.12);
  outline: none;
}

.form-control.error { border-color: var(--loss); }
.form-control::placeholder, .form-input::placeholder { color: var(--text-muted); }
.form-input[readonly] { opacity: 0.55; cursor: default; }

.input-group { position: relative; }
.input-group .form-control { padding-right: 48px; }
.input-group .input-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 17px; cursor: pointer;
}

.form-error { font-size: 12px; color: var(--loss); margin-top: 5px; }
.form-hint  { font-size: 12px; color: #9aa0b0; margin-top: 5px; }

.btn {
  display: block; width: 100%; padding: 14px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 900;
  text-align: center; transition: var(--t);
  letter-spacing: 0.3px; cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold-grad);
  color: #0b0e13;
  box-shadow: var(--shadow-gold);
  border: none;
}
.btn-primary:active { transform: scale(0.98); opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border: 1.5px solid var(--border-gold);
}

.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: #5a6278; }
.auth-link a { color: var(--gold-bright); font-weight: 800; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--text-muted); font-size: 12px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border2); }

/* ────────────────────────────────
   INNER PAGE HEADER
──────────────────────────────── */
.inner-header {
  background: #ffffff;
  border-bottom: 2px solid rgba(212,160,23,0.35);
  padding: 22px 18px 18px;
  display: flex; align-items: center; gap: 14px; color: #0f1117;
}

.back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; color: var(--text);
  transition: var(--t);
}
.back-btn:active { transform: scale(0.9); }

.inner-title    { font-size: 17px; font-weight: 800; color: #0f1117; letter-spacing: -0.3px; }
.inner-subtitle { font-size: 12px; color: #5a6278; margin-top: 2px; }

/* ────────────────────────────────
   STATUS BADGES
──────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2px;
}

.status-badge.pending    { background: var(--gold-dim);   color: var(--gold-bright); }
.status-badge.approved,
.status-badge.running,
.status-badge.completed  { background: var(--profit-dim); color: var(--profit); }
.status-badge.rejected   { background: var(--loss-dim);   color: var(--loss); }
.status-badge.processing { background: rgba(59,130,246,0.12); color: #60a5fa; }

/* ────────────────────────────────
   REFERRAL / TEAM
──────────────────────────────── */
.referral-banner {
  background: linear-gradient(135deg, #1a1c22 0%, #1e1a0e 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--r); padding: 18px; color: var(--text);
  position: relative; overflow: hidden; margin-bottom: 16px;
}

.referral-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--gold-grad);
}

.referral-banner::after {
  content: '💰';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 55px; opacity: 0.10;
}

.referral-title { font-size: 17px; font-weight: 900; margin-bottom: 4px; color: #ffffff; }
.referral-sub   { font-size: 12px; color: rgba(255,255,255,0.60); margin-bottom: 14px; }

.referral-code-box {
  background: rgba(255,255,255,0.04);
  border: 1.5px dashed var(--border-gold);
  border-radius: var(--r-sm); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}

.referral-code {
  font-size: 19px; font-weight: 900; letter-spacing: 3px;
  color: var(--gold-bright);
}

.copy-btn {
  background: var(--gold-grad); color: #0b0e13;
  padding: 7px 14px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 900; cursor: pointer;
  transition: var(--t);
}
.copy-btn:active { transform: scale(0.94); }

.referral-link-box {
  background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-top: 12px;
}

.referral-link-text {
  flex: 1; font-size: 12px; color: var(--text-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.team-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.team-stat-card {
  background: var(--card); border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r-sm); padding: 16px; box-shadow: var(--shadow); text-align: center;
}
.team-stat-card .icon  { font-size: 24px; margin-bottom: 8px; }
.team-stat-card .value { font-size: 20px; font-weight: 900; color: var(--gold); }
.team-stat-card .label { font-size: 11px; color: #5a6278; margin-top: 2px; font-weight: 600; }

.level-card {
  background: var(--card); border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r-sm); padding: 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}

.level-badge {
  width: 44px; height: 44px; border-radius: var(--r-xs);
  background: var(--gold-grad); color: #0b0e13;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
}

/* ────────────────────────────────
   PROFILE
──────────────────────────────── */
.profile-hero {
  background: linear-gradient(160deg, #1a1c24 0%, #0f1117 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px 28px; text-align: center; color: #eaecf0;
  position: relative; overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,160,23,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gold-grad);
  border: 3px solid var(--border-gold);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: #0b0e13; overflow: hidden;
  box-shadow: 0 0 0 5px rgba(212,160,23,0.10), var(--shadow-gold);
  position: relative;
}

.profile-name { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; color: #ffffff; }
.profile-id   { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }

.profile-card {
  background: var(--card); border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r); margin: 14px 8px; box-shadow: var(--shadow); overflow: hidden;
}

.profile-menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--t);
  text-decoration: none; color: var(--text);
}

.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: var(--card2); }

.profile-menu-icon {
  width: 38px; height: 38px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--border);
}

.profile-menu-text  { flex: 1; }
.profile-menu-title { font-size: 14px; font-weight: 700; color: #0f1117; }
.profile-menu-sub   { font-size: 12px; color: #9aa0b0; margin-top: 2px; }
.profile-menu-arrow { color: #9aa0b0; font-size: 16px; }

/* ────────────────────────────────
   PAYMENT / RECHARGE
──────────────────────────────── */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }

.payment-method {
  border: 1.5px solid var(--border2);
  background: var(--card2);
  border-radius: var(--r-sm); padding: 14px 8px; text-align: center; cursor: pointer; transition: var(--t);
}
.payment-method.active { border-color: var(--gold); background: var(--gold-dim); }
.payment-method .icon  { font-size: 24px; margin-bottom: 6px; }
.payment-method .label { font-size: 11px; font-weight: 700; color: var(--text-sub); }
.payment-method.active .label { color: var(--gold-bright); }

.amount-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }

.amount-preset {
  border: 1.5px solid var(--border2);
  background: var(--card2);
  border-radius: var(--r-xs); padding: 10px; text-align: center;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--t); color: var(--text);
}
.amount-preset.active { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-dim); }

/* ── Deposit Type Buttons ── */
.deposit-type-btn {
  border: 1.5px solid rgba(212,160,23,0.30);
  border-radius: var(--r-sm);
  padding: 18px; text-align: center;
  cursor: pointer; transition: var(--t);
  background: var(--card); user-select: none;
}
.deposit-type-btn:hover  { border-color: var(--gold); background: var(--gold-dim); }
.deposit-type-btn.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.12);
}

/* ── Network Pills ── */
.network-pill {
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 8px; text-align: center;
  cursor: pointer; display: block; transition: var(--t);
  background: var(--card);
}
.network-pill:hover  { border-color: var(--gold); background: var(--gold-dim); }
.network-pill.active { border-color: var(--gold); background: var(--gold-dim); }
.network-pill input[type="radio"] { display: none; }

/* ── Local Preset Buttons ── */
.local-preset {
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 10px 8px; text-align: center;
  cursor: pointer; font-size: 13px; font-weight: 700;
  background: var(--card); color: var(--text);
  transition: var(--t); user-select: none;
}
.local-preset:hover  { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-dim); }
.local-preset.active { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-dim); }

/* File Upload */
.file-upload {
  border: 2px dashed var(--border2); border-radius: var(--r-sm);
  padding: 28px 20px; text-align: center; cursor: pointer; transition: var(--t);
  background: var(--bg2);
}
.file-upload.has-file { border-color: var(--gold); background: var(--gold-dim); }
.file-upload-icon { font-size: 34px; margin-bottom: 8px; }
.file-upload-text { font-size: 13px; color: var(--text-sub); }
.file-upload input { display: none; }

/* ── Method Cards (withdraw) ── */
.method-card {
  border: 1.5px solid rgba(212,160,23,0.30);
  border-radius: var(--r-sm);
  padding: 18px; cursor: pointer; transition: var(--t);
  background: var(--card);
  display: flex; align-items: center; gap: 14px; user-select: none;
}
.method-card:hover  { border-color: var(--gold); background: var(--gold-dim); }
.method-card.active { border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,160,23,0.12); }
.method-locked { opacity: 0.40; cursor: not-allowed; pointer-events: none; filter: grayscale(0.5); }
.method-card .method-icon  { font-size: 28px; flex-shrink: 0; }
.method-card .method-info  { flex: 1; }
.method-card .method-name  { font-size: 14px; font-weight: 800; color: #0f1117; }
.method-card .method-desc  { font-size: 12px; color: #5a6278; margin-top: 2px; }
.method-card .method-badge {
  font-size: 11px; font-weight: 800;
  background: var(--gold-dim); color: var(--gold-bright);
  padding: 3px 8px; border-radius: 20px;
}
.method-locked .method-badge { background: var(--bg3); color: var(--text-muted); }

/* ────────────────────────────────
   INFO CARD
──────────────────────────────── */
.info-card {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 16px;
}
.info-card .info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.info-card .info-row:last-child { margin-bottom: 0; }
.info-card .info-key { color: #5a6278; }
.info-card .info-val { font-weight: 800; color: #0f1117; }

/* ────────────────────────────────
   CRYPTO ADDRESS
──────────────────────────────── */
.crypto-address {
  background: var(--bg2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-xs);
  padding: 12px 14px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text);
  word-break: break-all;
  letter-spacing: 0.3px;
}

/* ────────────────────────────────
   TOAST NOTIFICATIONS
──────────────────────────────── */
.toast-container {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  width: calc(100% - 28px); max-width: 440px; pointer-events: none;
}

.toast {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: toastIn 0.3s var(--ease); pointer-events: all;
  border-left: 4px solid var(--gold);
}
.toast.error   { border-left-color: var(--loss); }
.toast.warning { border-left-color: var(--gold-bright); }
.toast.info    { border-left-color: #60a5fa; }
.toast-icon  { font-size: 20px; flex-shrink: 0; }
.toast-body  { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; color: var(--text); }
.toast-msg   { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.toast-close { color: var(--text-muted); font-size: 16px; cursor: pointer; }

@keyframes toastIn  { from { opacity:0; transform:translateY(-14px); } to { opacity:1; transform:translateY(0); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0);      } to { opacity:0; transform:translateY(-14px); } }

/* ────────────────────────────────
   LOADERS
──────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; backdrop-filter: blur(5px);
}

.loading-box {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px; text-align: center; box-shadow: var(--shadow-lg);
}
.loading-box .spinner { margin: 0 auto 14px; }
.loading-box p { font-size: 14px; color: var(--text-sub); }

/* ────────────────────────────────
   PROGRESS BAR
──────────────────────────────── */
.progress-bar  { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.progress-fill { height: 100%; background: var(--gold-grad); border-radius: 3px; transition: width 0.6s var(--ease); }

/* ────────────────────────────────
   EMPTY STATE
──────────────────────────────── */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-sub); }
.empty-state .icon { font-size: 52px; margin-bottom: 14px; opacity: 0.45; }
.empty-state h3    { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.empty-state p     { font-size: 13px; }

/* ────────────────────────────────
   GENERIC CARD
──────────────────────────────── */
.card {
  background: var(--card); border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px;
}

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title  { font-size: 14px; font-weight: 800; color: var(--text); }
.card-link   { font-size: 12px; color: var(--gold-bright); font-weight: 800; }

/* ────────────────────────────────
   COUNTDOWN
──────────────────────────────── */
.countdown { display: flex; gap: 6px; justify-content: center; }
.countdown-unit {
  background: #ffffff; border: 1.5px solid rgba(212,160,23,0.35);
  border-radius: var(--r-xs); padding: 6px 10px; text-align: center; min-width: 50px;
}
.countdown-num { font-size: 20px; font-weight: 900; color: var(--gold-bright); line-height: 1; }
.countdown-lbl { font-size: 9px; color: #5a6278; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }

/* ────────────────────────────────
   MODALS
──────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  backdrop-filter: blur(5px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #ffffff; border-top: 1px solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
  padding: 24px; width: 100%; max-height: 85vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: rgba(0,0,0,0.15); border-radius: 2px; margin: 0 auto 22px; }

/* ────────────────────────────────
   TABS
──────────────────────────────── */
.tab-bar {
  display: flex; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 3px; margin-bottom: 16px; gap: 3px;
}

.tab-btn {
  flex: 1; padding: 9px; border-radius: var(--r-xs);
  font-size: 13px; font-weight: 800; color: #5a6278;
  background: transparent; transition: var(--t); text-align: center;
  cursor: pointer;
}
.tab-btn.active { background: var(--card); color: var(--gold-bright); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.tab-panel { display: block; }
.tab-panel.hidden { display: none !important; }

/* ────────────────────────────────
   STAT ROW
──────────────────────────────── */
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label { font-size: 13px; color: #5a6278; }
.stat-row .value { font-size: 14px; font-weight: 800; color: #0f1117; }

/* ────────────────────────────────
   PROFILE STATS
──────────────────────────────── */
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 16px 0;
}
.profile-stat-box {
  background: var(--card); border-radius: var(--r-sm);
  padding: 12px 10px; text-align: center; border: 1.5px solid rgba(212,160,23,0.35);
}
.profile-stat-box .stat-val { font-size: 16px; font-weight: 900; color: #0f1117; }
.profile-stat-box .stat-lbl { font-size: 10px; color: #5a6278; margin-top: 3px; font-weight: 600; }

/* ────────────────────────────────
   NETWORK OPTION
──────────────────────────────── */
.network-option {
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 8px; text-align: center;
  cursor: pointer; display: block; transition: var(--t);
  background: var(--card);
  font-size: 12px; font-weight: 700; color: var(--text-sub);
}
.network-option:hover { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-dim); }
.network-option input[type="radio"] { display: none; }
input[type="radio"]:checked + .network-option,
input[type="radio"]:checked ~ .network-option {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

/* ────────────────────────────────
   LIVE STRIP
──────────────────────────────── */
.live-strip {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--profit);
  box-shadow: 0 0 8px rgba(38,166,154,0.6);
  animation: pulse 1.5s ease-in-out infinite; flex-shrink: 0;
}
.live-label { font-size: 11px; color: #5a6278; font-weight: 700; margin-left: 6px; flex: 1; }
.live-value { font-size: 13px; font-weight: 900; color: var(--gold-bright); }

/* ────────────────────────────────
   ANIMATIONS
──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s var(--ease) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }

/* ────────────────────────────────
   SELECT / INPUTS
──────────────────────────────── */
select.form-control { color: var(--text); }
select.form-control option { background: var(--bg2); color: var(--text); }

/* ────────────────────────────────
   ADMIN — dark sidebar (IMPROVED)
──────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; max-width: 100%; background: #f0f2f7; }

/* ── Sidebar ── */
.admin-sidebar {
  width: 256px; background: #080c14; min-height: 100vh;
  padding: 0; flex-shrink: 0; position: fixed; top: 0; left: 0;
  z-index: 200; transition: var(--t);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
}

.admin-logo {
  padding: 22px 24px 20px; font-size: 20px; font-weight: 900; color: white;
  border-bottom: 1px solid rgba(255,255,255,0.06); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  flex-shrink: 0; position: relative; justify-content: space-between;
}
.admin-logo span { color: var(--gold-bright); }

/* ── Sidebar close button (mobile) ── */
.admin-sidebar-close {
  display: none; background: rgba(255,255,255,0.06); border: none;
  color: rgba(255,255,255,0.7); width: 30px; height: 30px; border-radius: 8px;
  font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0;
  align-items: center; justify-content: center;
}
@media (max-width: 768px) { .admin-sidebar-close { display: flex; } }

.admin-nav-section {
  padding: 20px 24px 6px; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.22); text-transform: uppercase; letter-spacing: 1.2px;
}

.admin-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 24px;
  color: rgba(255,255,255,0.45); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: var(--t); border-left: 3px solid transparent;
  white-space: nowrap; margin: 1px 0;
}
.admin-nav-link:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); border-left-color: rgba(240,180,22,0.4); }
.admin-nav-link.active { color: white; background: rgba(240,180,22,0.08); border-left-color: var(--gold); }
.admin-nav-link .icon { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; }

/* ── Main content area ── */
.admin-content {
  flex: 1; margin-left: 256px; min-height: 100vh;
  background: #f0f2f7; overflow-x: hidden;
  display: flex; flex-direction: column;
}

/* ── Top bar ── */
.admin-topbar {
  background: #ffffff; padding: 0 32px;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e5e8ef;
  position: sticky; top: 0; z-index: 100; gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-topbar-title { font-size: 17px; font-weight: 800; color: var(--text); white-space: nowrap; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-topbar-right > span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* ── Body / page content ── */
.admin-body { padding: 28px 32px; flex: 1; }

/* ── Stat cards ── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.admin-stat-card {
  background: #ffffff; border: 1px solid #e5e8ef;
  border-radius: 14px; padding: 20px 18px; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 14px; min-width: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.admin-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); transform: translateY(-1px); }
.admin-stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.admin-stat-info { min-width: 0; flex: 1; }
.admin-stat-info .label {
  font-size: 11.5px; color: var(--text-sub); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
}
.admin-stat-info .value {
  font-size: 18px; font-weight: 900; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.3px;
}

/* ── Table cards ── */
.admin-table-card {
  background: #ffffff; border: 1px solid #e5e8ef;
  border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  overflow: hidden; margin-bottom: 24px;
}
.admin-table-header {
  padding: 16px 24px; font-size: 14px; font-weight: 800;
  border-bottom: 1px solid #e5e8ef;
  display: flex; align-items: center; justify-content: space-between; color: var(--text);
}
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 400px; }
.admin-table th {
  background: #f8f9fc; padding: 11px 20px; text-align: left;
  font-size: 11px; font-weight: 800; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.7px;
  border-bottom: 1px solid #e5e8ef; white-space: nowrap;
}
.admin-table td {
  padding: 14px 20px; border-bottom: 1px solid #f0f2f7; color: var(--text);
  white-space: nowrap; vertical-align: middle;
}
.admin-table td.wrap { white-space: normal; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8f9fc; }

/* ── Filters / search bars ── */
.admin-filters {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-filters input[type="text"],
.admin-filters input[type="search"],
.admin-filters select {
  padding: 9px 14px; border: 1.5px solid #dde1ea; border-radius: 10px;
  font-size: 13.5px; background: #fff; color: var(--text);
  transition: border-color 0.15s;
}
.admin-filters input:focus, .admin-filters select:focus { border-color: var(--gold); outline: none; }

/* ── Action buttons ── */
.admin-btn { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; transition: var(--t); white-space: nowrap; line-height: 1.5; }
.admin-btn.approve { background: rgba(34,197,94,0.1); color: #16a34a; }
.admin-btn.approve:hover { background: rgba(34,197,94,0.18); }
.admin-btn.reject  { background: rgba(239,68,68,0.1); color: #dc2626; }
.admin-btn.reject:hover  { background: rgba(239,68,68,0.18); }
.admin-btn.view    { background: rgba(59,130,246,0.1); color: #2563eb; }
.admin-btn.view:hover    { background: rgba(59,130,246,0.18); }
.admin-btn.edit    { background: rgba(240,180,22,0.12); color: #b45309; }
.admin-btn.edit:hover    { background: rgba(240,180,22,0.2); }
.admin-btn.delete  { background: rgba(239,68,68,0.1); color: #dc2626; }
.admin-btn.delete:hover  { background: rgba(239,68,68,0.18); }

/* ── Settings cards ── */
.admin-settings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.admin-settings-card {
  background: #ffffff; border: 1px solid #e5e8ef;
  border-radius: 14px; padding: 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.admin-settings-card h3 {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin: 0 0 18px; display: flex; align-items: center; gap: 8px;
}

/* ── Page header row (title + action button) ── */
.admin-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.admin-page-header h1 {
  font-size: 20px; font-weight: 900; color: var(--text); margin: 0; letter-spacing: -0.3px;
}

/* ── Sidebar toggle (mobile) ── */
.sidebar-toggle {
  display: none; background: #f0f2f7; border: 1px solid #dde1ea;
  border-radius: 8px; padding: 7px 10px; font-size: 16px;
  cursor: pointer; color: var(--text); line-height: 1;
}
@media (max-width: 768px) { .sidebar-toggle { display: inline-flex; align-items: center; } }

/* ── Two-column dashboard grid ── */
.admin-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 20px; }
.pagination a {
  padding: 6px 13px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: 1.5px solid #dde1ea; color: var(--text); text-decoration: none; transition: 0.15s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-bright); }
.pagination a.current { background: var(--gold); border-color: var(--gold); color: #0b0e13; }

/* ── Status / filter tab pills ── */
.admin-tab-pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.admin-tab-pills a {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1.5px solid #dde1ea; color: #6b7280; text-decoration: none; transition: 0.15s;
  background: #fff;
}
.admin-tab-pills a:hover { border-color: var(--gold); color: var(--gold-bright); }
.admin-tab-pills a.active { background: var(--gold); border-color: var(--gold); color: #0b0e13; }

/* ─── Responsive breakpoints ─── */
@media (max-width: 1200px) {
  .admin-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .admin-dash-grid { grid-template-columns: 1fr; }
  .admin-body { padding: 22px 24px; }
  .admin-topbar { padding: 0 24px; }
}
@media (max-width: 900px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); width: 256px; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
  .admin-content { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-body { padding: 16px 16px; }
  .admin-topbar { padding: 0 16px; height: 56px; }
  .admin-topbar-right > span { display: none; }
  .admin-table td, .admin-table th { padding: 11px 14px; }
  .admin-dual-table-grid { grid-template-columns: 1fr !important; }
  .maint-schedule-form { grid-template-columns: 1fr !important; }
  .dur-tier-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────
   UTILITIES
──────────────────────────────── */
.mt-0 { margin-top: 0; }  .mt-8 { margin-top: 8px; }  .mt-12 { margin-top: 12px; }  .mt-16 { margin-top: 16px; }  .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }  .mb-12 { margin-bottom: 12px; }  .mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-green { color: var(--gold-bright); }
.text-red   { color: var(--loss); }
.text-gold  { color: var(--gold-bright); }
.text-sm { font-size: 13px; }  .text-xs { font-size: 11px; }  .font-bold { font-weight: 800; }
.d-flex { display: flex; }  .align-center { align-items: center; }  .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }  .gap-12 { gap: 12px; }  .w-full { width: 100%; }  .hidden { display: none !important; }

.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; accent-color: var(--gold); }
.form-check label { font-size: 13px; color: #5a6278; cursor: pointer; }

.chip       { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.chip-gold  { background: var(--gold-dim); color: var(--gold-bright); }
.chip-gray  { background: var(--bg2); color: var(--text-sub); }

/* ────────────────────────────────
   LANGUAGE SWITCHER
──────────────────────────────── */
.lang-switcher { position: relative; display: inline-block; z-index: 200; }

.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.30);
  border-radius: 20px; padding: 6px 12px; color: #ffffff;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--t); white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lang-btn:hover { background: rgba(255,255,255,0.25); }
.lang-code  { font-size: 11px; letter-spacing: 0.5px; }
.lang-arrow { font-size: 10px; opacity: 0.6; transition: transform 0.2s; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--r-sm); box-shadow: 0 8px 36px rgba(0,0,0,0.15);
  min-width: 160px; overflow: hidden; display: none; z-index: 999;
  animation: fadeInUp 0.2s var(--ease);
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown.open { display: block; }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 600; transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--bg2); }
.lang-option-active { background: var(--gold-dim); color: var(--gold-bright); font-weight: 800; }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-name { flex: 1; }

.lang-btn-light, .lang-btn-dark {
  background: var(--bg2); border: 1px solid var(--border2); color: var(--text);
  border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}

/* ────────────────────────────────
   CAPATALX BRAND LOGO
──────────────────────────────── */
.capatalx-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 900; font-size: 20px; letter-spacing: -0.5px;
}
.capatalx-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gold-grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #0b0e13;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 14px rgba(212,160,23,0.4);
}
.capatalx-logo .logo-text { color: var(--text); }
.capatalx-logo .logo-text span { color: var(--gold-bright); }

/* On the dark auth splash header, the logo text needs to be white
   instead of the default near-black, or it disappears against the
   dark background. Scoped narrowly so it doesn't affect other
   places .capatalx-logo is used (e.g. the light-background modal
   on profile.php). */
.auth-logo .capatalx-logo .logo-text { color: #ffffff; }

/* ────────────────────────────────
   RTL SUPPORT
──────────────────────────────── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .lang-dropdown     { right: auto; left: 0; }
[dir="rtl"] .back-btn          { transform: scaleX(-1); }
[dir="rtl"] .bottom-nav        { direction: ltr; }
[dir="rtl"] .ticker-track      { animation-direction: reverse; }
[dir="rtl"] .tx-item           { flex-direction: row-reverse; }
[dir="rtl"] .profile-menu-item { flex-direction: row-reverse; }
[dir="rtl"] .profile-menu-arrow { transform: scaleX(-1); }
[dir="rtl"] .inner-header      { flex-direction: row-reverse; }
[dir="rtl"] .header-row        { flex-direction: row-reverse; }
[dir="rtl"] .stat-row          { flex-direction: row-reverse; }

/* ── Live chart animations ── */
@keyframes livePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.6); }
}
.chart-change { display:inline-block; font-variant-numeric: tabular-nums; }
.chart-change.up   { background:rgba(38,166,154,0.15); color:#26a69a; }
.chart-change.down { background:rgba(239,83,80,0.15);  color:#ef5350; }
