/* ================================================================
   DailyEarn — Professional Investment Platform UI
   ================================================================ */

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

:root {
  --primary:      #f59e0b;
  --gold:         #f59e0b;
  --gold-dark:    #d97706;
  --gold-light:   #fef3c7;
  --navy:         #0f172a;
  --navy-mid:     #1e293b;
  --navy-light:   #334155;
  --sky:          #0ea5e9;
  --green:        #10b981;
  --red:          #ef4444;
  --orange:       #f97316;
  --purple:       #8b5cf6;
  --bg:           #f1f5f9;
  --card:         #ffffff;
  --border:       #e2e8f0;
  --muted:        #64748b;
  --text:         #0f172a;
  --radius:       18px;
  --radius-sm:    12px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
  --shadow-gold:  0 8px 32px rgba(245,158,11,.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(14,165,233,.04) 0%, transparent 50%);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.8);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.navbar .logo {
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.03em;
}
.nav-links a {
  margin-left: 20px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--muted);
  transition: color .15s;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
  transition: all .2s;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }

/* ── BOTTOM NAV ──────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 32px rgba(0,0,0,.1);
}
.bottom-nav .nav-items { display: flex; justify-content: space-around; }
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: .6rem; font-weight: 700;
  color: var(--muted); padding: 10px 8px;
  cursor: pointer; text-align: center; flex: 1;
  transition: color .15s; letter-spacing: .02em;
}
.bottom-nav .nav-item.active { color: var(--gold); }
@media (max-width: 768px) {
  .bottom-nav { display: block; }
  .navbar .nav-links { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.page-title {
  font-size: 1.5rem; font-weight: 900; color: var(--navy); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* ── SECTION LABEL ───────────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 800; color: var(--gold);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px;
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }

/* ── HERO GRADIENT CARD ──────────────────────────────────── */
.hero-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f5e 50%, #0f2044 100%);
  border: none;
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,23,42,.4);
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* ── WALLET HERO ─────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f5e 60%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,23,42,.35);
  color: #fff;
}
.wallet-hero::before {
  content:''; position:absolute; top:-80px; right:-80px;
  width:240px; height:240px;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 70%);
  border-radius:50%;
}
.wallet-hero .wh-label { color: rgba(255,255,255,.55); font-size: .78rem; font-weight: 700; margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.wallet-hero .wh-amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; color: #fff; position: relative; }
.wallet-hero .wh-amount .currency { font-size: 1.4rem; font-weight: 700; vertical-align: super; }
.wallet-hero .wh-sub { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.wallet-hero .wh-sub > div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 14px;
  flex: 1; min-width: 100px;
}
.wallet-hero .ws-label { font-size: .68rem; color: rgba(255,255,255,.5); margin-bottom: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.wallet-hero .ws-val { font-size: 1rem; font-weight: 800; color: #fff; }

/* ── STATS GRID ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .s-icon { font-size: 1.4rem; margin-bottom: 6px; }
.stat-card .s-label { font-size: .68rem; color: var(--muted); font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .s-value { font-size: 1.35rem; font-weight: 900; color: var(--navy); }

/* ── PLAN CARDS ──────────────────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .plans-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 360px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity .25s;
}
.plan-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.plan-card:hover::before { opacity: 1; }
.plan-card .plan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold-light); color: var(--gold-dark);
  padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 800; margin-bottom: 10px;
  letter-spacing: .03em;
}
.plan-card .plan-name { font-weight: 800; font-size: .95rem; margin-bottom: 4px; color: var(--navy); }
.plan-card .plan-amount { font-size: 1.7rem; font-weight: 900; color: var(--gold); letter-spacing: -.03em; margin-bottom: 12px; }
.plan-card .plan-return {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 12px; padding: 12px;
}
.plan-card .pr-row { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 5px; }
.plan-card .pr-row:last-child { margin-bottom: 0; border-top: 1px solid #bbf7d0; padding-top: 5px; margin-top: 4px; }
.plan-card .pr-key { color: var(--muted); font-weight: 600; }
.plan-card .pr-val { font-weight: 800; color: var(--green); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9rem; border: none;
  cursor: pointer; transition: all .18s; white-space: nowrap;
  font-family: inherit; letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}
.btn-primary:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); }
.btn-dark    { background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.3); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.btn-danger  { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.3); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-ghost   { background: rgba(245,158,11,.1); color: var(--gold-dark); }
.btn-sm { padding: 8px 16px; font-size: .8rem; border-radius: 10px; }
.btn-full { width: 100%; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--navy-mid); margin-bottom: 6px; letter-spacing: -.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: inherit; background: #fff;
  transition: all .2s; outline: none; -webkit-appearance: none;
  color: var(--navy);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,158,11,.1);
}

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 22px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 14px;
  box-shadow: var(--shadow-gold);
}
.auth-logo h1 { font-size: 1.6rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.auth-logo p  { color: var(--muted); font-size: .88rem; }
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

/* ── TABS ────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 18px; font-weight: 700; font-size: .85rem;
  border: none; background: none; cursor: pointer; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all .15s; flex-shrink: 0;
  font-family: inherit;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--navy); }

/* ── QUICK AMOUNTS ───────────────────────────────────────── */
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.qa-btn {
  padding: 10px 4px; border: 2px solid var(--border);
  border-radius: 10px; background: #fff;
  font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: all .15s; font-family: inherit; color: var(--navy);
}
.qa-btn.selected, .qa-btn:hover { border-color: var(--gold); background: var(--gold-light); color: var(--gold-dark); }
.qa-btn:active { transform: scale(.95); }

/* ── TRANSACTION LIST ────────────────────────────────────── */
.tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; margin-right: 12px; flex-shrink: 0;
}
.tx-info .tx-type { font-weight: 700; font-size: .88rem; text-transform: capitalize; color: var(--navy); }
.tx-info .tx-date { font-size: .71rem; color: var(--muted); margin-top: 2px; }
.tx-amount { font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.badge-pending   { background: #fff7ed; color: var(--orange); }
.badge-approved  { background: #f0fdf4; color: var(--green); }
.badge-rejected  { background: #fef2f2; color: var(--red); }
.badge-active    { background: #eff6ff; color: var(--sky); }
.badge-completed { background: #f0fdf4; color: var(--green); }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert {
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: .86rem; margin-bottom: 14px; line-height: 1.55;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.alert-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; }

/* ── COPY BOX ────────────────────────────────────────────── */
.copy-box {
  display: flex; align-items: center;
  background: #f8fafc; border: 2px dashed var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  gap: 12px; cursor: pointer; transition: all .15s;
}
.copy-box:hover { border-color: var(--gold); background: var(--gold-light); }
.copy-box .code { font-family: monospace; font-size: 1.1rem; font-weight: 800; flex: 1; }

/* ── INVESTMENT PROGRESS ─────────────────────────────────── */
.inv-progress { background: var(--border); border-radius: 100px; height: 6px; margin-top: 8px; overflow: hidden; }
.inv-progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  height: 100%; border-radius: 100px;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
}

/* ── QR PANEL ────────────────────────────────────────────── */
.qr-panel { text-align: center; padding: 10px 0; }
.qr-panel img { max-width: 190px; border: 3px solid var(--border); border-radius: 18px; padding: 8px; background: #fff; box-shadow: var(--shadow); }
.upi-copy {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; background: #f8fafc; border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0;
  cursor: pointer; font-family: monospace; font-weight: 800; font-size: 1rem;
  transition: all .15s;
}
.upi-copy:hover { border-color: var(--gold); background: var(--gold-light); }

/* ── TOAST ───────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff;
  padding: 12px 24px; border-radius: 100px;
  font-size: .85rem; font-weight: 600; z-index: 999; display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.25); white-space: nowrap;
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(10px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 480px; }
table th {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 12px 16px; text-align: left;
  font-weight: 800; color: var(--muted);
  border-bottom: 2px solid var(--border);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
}
table td { padding: 13px 16px; border-bottom: 1px solid #f8fafc; vertical-align: middle; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #fafbfc; }

/* ── APP INSTALL BANNER ──────────────────────────────────── */
#install-banner {
  display: none;
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 12px; right: 12px;
  background: linear-gradient(135deg, var(--navy), #1a2f5e);
  color: #fff; border-radius: 18px; padding: 14px 16px;
  z-index: 200; align-items: center; gap: 12px;
  box-shadow: 0 16px 48px rgba(15,23,42,.35);
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
  border: 1px solid rgba(255,255,255,.1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#install-banner .ib-icon { font-size: 1.6rem; flex-shrink: 0; }
#install-banner p { font-size: .82rem; flex: 1; line-height: 1.4; }
#install-banner strong { color: var(--gold); }

/* ── APP DOWNLOAD CARD ───────────────────────────────────── */
.app-download-card {
  background: linear-gradient(135deg, #0f172a 0%, #1a2f5e 100%);
  color: #fff; border-radius: var(--radius);
  padding: 20px 18px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 12px 40px rgba(15,23,42,.3);
  border: 1px solid rgba(255,255,255,.06);
}
.app-download-card .adc-icon { font-size: 2.5rem; flex-shrink: 0; }
.app-download-card .adc-text { flex: 1; }
.app-download-card .adc-title { font-weight: 900; font-size: .95rem; margin-bottom: 3px; }
.app-download-card .adc-sub { font-size: .76rem; color: rgba(255,255,255,.55); }
.app-download-card .adc-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; border: none; padding: 10px 16px;
  border-radius: 10px; font-weight: 800; font-size: .82rem;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,.3); font-family: inherit;
}

/* ── LOADING ─────────────────────────────────────────────── */
.loading { display: flex; justify-content: center; align-items: center; padding: 40px; color: var(--muted); gap: 10px; font-weight: 600; font-size: .9rem; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e8edf2 50%, #f1f5f9 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── REFERRAL CODE BOX ───────────────────────────────────── */
.ref-code-box {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; border-radius: var(--radius);
  padding: 26px 22px; text-align: center; margin-bottom: 16px;
  box-shadow: var(--shadow-gold); position: relative; overflow: hidden;
}
.ref-code-box::before {
  content:''; position:absolute; top:-50px; right:-50px;
  width:180px; height:180px;
  background: rgba(255,255,255,.1); border-radius:50%;
}
.ref-code-box .rc-label { font-size: .75rem; opacity: .8; margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ref-code-box .rc-code { font-size: 2.2rem; font-weight: 900; letter-spacing: .14em; font-family: monospace; position: relative; }
.ref-code-box .rc-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }

/* ── ACTION BUTTONS ROW ──────────────────────────────────── */
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 8px;
  cursor: pointer; text-decoration: none;
  font-size: .72rem; font-weight: 800; color: var(--navy);
  transition: all .2s; box-shadow: var(--shadow-sm);
  letter-spacing: .01em;
}
.action-btn .ab-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: transform .2s;
}
.action-btn:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(245,158,11,.15); transform: translateY(-2px); }
.action-btn:hover .ab-icon { transform: scale(1.1); }
.action-btn:active { transform: scale(.97); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 44px 20px; }
.empty-state .es-icon { font-size: 2.8rem; margin-bottom: 12px; opacity: .7; }
.empty-state .es-title { font-weight: 800; margin-bottom: 6px; font-size: 1rem; color: var(--navy); }
.empty-state .es-sub { color: var(--muted); font-size: .88rem; margin-bottom: 18px; line-height: 1.5; }

/* ── GLASS CARD ──────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  backdrop-filter: blur(10px);
}

/* ── GRADIENT TEXTS ──────────────────────────────────────── */
.text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── INVESTMENT CARD ─────────────────────────────────────── */
.inv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.inv-card:hover { box-shadow: var(--shadow); }
.inv-card .ic-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.inv-card .ic-name { font-weight: 800; font-size: .9rem; }
.inv-card .ic-amount { font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.inv-card .ic-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.inv-card .ic-stat { text-align: center; }
.inv-card .ic-stat-val { font-weight: 800; font-size: .88rem; }
.inv-card .ic-stat-key { font-size: .65rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* ── SECTION DIVIDER ─────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-header h2 { font-weight: 800; font-size: .95rem; color: var(--navy); }
.section-header a { color: var(--gold); font-size: .8rem; font-weight: 700; }

/* ── MAINTENANCE PAGE ────────────────────────────────────── */
.maintenance-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f5e 100%);
  padding: 24px; text-align: center; color: #fff;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── DESKTOP ENHANCEMENTS ────────────────────────────────── */
@media (min-width: 769px) {
  .container { padding: 32px 24px; }
  .plans-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .stats-grid { gap: 16px; }
  .wallet-hero { padding: 36px 32px; }
  .wallet-hero .wh-amount { font-size: 3rem; }
  .auth-wrap { padding: 40px 24px; }
  .auth-card { padding: 36px 32px; }
  .action-row { grid-template-columns: repeat(6, 1fr); }
  .action-btn { padding: 20px 8px; }
  .ref-code-box { padding: 36px 32px; }
  .ref-code-box .rc-code { font-size: 2.8rem; }
  .navbar { padding: 0 40px; height: 68px; }
  .navbar .logo { font-size: 1.5rem; }
  .nav-links a { font-size: .9rem; }
}

/* ── LARGE SCREEN ────────────────────────────────────────── */
@media (min-width: 1200px) {
  .container { max-width: 1100px; }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── MOBILE FIXES ────────────────────────────────────────── */
@media (max-width: 400px) {
  .plans-grid { grid-template-columns: 1fr; }
  .quick-amounts { grid-template-columns: repeat(2, 1fr); }
  .action-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wallet-hero .wh-amount { font-size: 2rem; }
  .plan-card .plan-amount { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PRINT HIDE ──────────────────────────────────────────── */
@media print { .bottom-nav, .navbar, #install-banner { display: none; } }
