/* ============================================================
   GOLDVAULT — Luxury Private Investment Platform
   Aesthetic: Black velvet + molten gold + bone white
   Font: Playfair Display (display) + DM Mono (numbers)
   ============================================================ */

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

:root {
  /* Màu nền */
  --bg-void:      #080808;
  --bg-base:      #0e0e0e;
  --bg-card:      #131313;
  --bg-card2:     #1a1a1a;
  --bg-raised:    #202020;
  --bg-input:     #181818;

  /* Gold palette */
  --gold:         #c9a84c;
  --gold-light:   #e8c96a;
  --gold-dim:     #8a6d2a;
  --gold-glow:    rgba(201, 168, 76, 0.15);
  --gold-line:    rgba(201, 168, 76, 0.25);

  /* Neutrals */
  --white:        #f5f0e8;
  --muted:        #6b6b6b;
  --border:       rgba(255,255,255,0.06);
  --border-gold:  rgba(201,168,76,0.3);

  /* Status */
  --green:        #4ade80;
  --green-bg:     rgba(74,222,128,0.1);
  --red:          #f87171;
  --red-bg:       rgba(248,113,113,0.1);
  --amber:        #fbbf24;
  --amber-bg:     rgba(251,191,36,0.1);
  --blue:         #60a5fa;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Misc */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --shadow-card:  0 1px 0 rgba(255,255,255,0.04), 0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold:  0 0 40px rgba(201,168,76,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
}

/* ── Texture overlay ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 1;
}

/* ── Gold line accent ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }
a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}

.topbar-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-balance {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: .35rem .9rem;
}
.topbar-balance .label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.topbar-balance .amount { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; color: var(--gold-light); }

.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.topbar-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; cursor: pointer; transition: all .2s;
}
.topbar-icon-btn:hover { border-color: var(--gold-line); color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   LIVE TICKER
══════════════════════════════════════════════════════════ */
.ticker-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 34px;
  display: flex; align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--gold);
  color: #000;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 0 .8rem;
  height: 100%;
  display: flex; align-items: center;
  white-space: nowrap;
}
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-move 45s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: .72rem; color: var(--muted);
  padding: 0 2rem;
  display: flex; align-items: center; gap: .5rem;
}
.ticker-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  animation: blink 2s ease infinite;
}
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .25s;
}
.card:hover { border-color: rgba(201,168,76,0.2); transform: translateY(-1px); }

.card-gold {
  background: linear-gradient(135deg, #1a1506, #141200);
  border-color: var(--border-gold);
}

.card-header {
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  display: flex; align-items: center; gap: .5rem;
}
.card-header::before {
  content: '';
  width: 3px; height: 12px; border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.card-body { padding: 1.2rem; }

/* ══════════════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════════════ */
.hero {
  margin: .75rem;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(201,168,76,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(201,168,76,.07) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute; right: -20px; top: -20px;
  width: 180px; height: 180px; opacity: .06;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0, var(--gold) 1px,
    transparent 0, transparent 50%
  );
  background-size: 12px 12px;
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: .3rem;
}
.hero-sub { font-size: .78rem; color: var(--muted); }
.hero-badge {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 1;
  background: rgba(201,168,76,.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: .3rem .8rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ══════════════════════════════════════════════════════════
   STAT GRID
══════════════════════════════════════════════════════════ */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: 0 .75rem .75rem;
}
@media (min-width: 600px) { .stat-row { grid-template-columns: repeat(4,1fr); } }

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  transition: border-color .25s;
}
.stat-box:hover { border-color: var(--border-gold); }
.stat-box .lbl {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.stat-box .val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-box .val.neutral { color: var(--white); }
.stat-box .val.green   { color: var(--green); }
.stat-box .ico {
  font-size: 1.1rem;
  float: right;
  opacity: .2;
  margin-top: .1rem;
}

/* ══════════════════════════════════════════════════════════
   PACKAGE CARDS
══════════════════════════════════════════════════════════ */
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: 0 .75rem .75rem;
}
@media (min-width: 768px) { .pkg-grid { grid-template-columns: repeat(4,1fr); } }

.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem .9rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .2s, box-shadow .25s;
  text-align: center;
}
.pkg-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pkg-gold, var(--gold)), transparent);
  opacity: 0; transition: opacity .3s;
}
.pkg-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 30px rgba(201,168,76,.12);
}
.pkg-card:hover::after { opacity: 1; }
.pkg-card .tier {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.pkg-card .pkg-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.pkg-card .pkg-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: .3rem;
}
.pkg-card .pkg-reward {
  font-size: .7rem;
  color: var(--green);
  font-family: var(--font-mono);
  margin-bottom: .25rem;
}
.pkg-card .pkg-days {
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.pkg-card .running-badge {
  position: absolute; top: .6rem; right: .6rem;
  background: rgba(74,222,128,.15);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: var(--radius-pill);
  padding: .15rem .45rem;
  font-size: .58rem;
  font-weight: 700;
  color: var(--green);
}
.pkg-card .buy-btn {
  display: block; width: 100%;
  margin-top: .8rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #080808;
  border: none; border-radius: var(--radius-sm);
  padding: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.pkg-card .buy-btn:hover { opacity: .85; transform: scale(1.02); }

/* ══════════════════════════════════════════════════════════
   TRANSACTION LIST
══════════════════════════════════════════════════════════ */
.tx-list { }
.tx-item {
  display: flex;
  align-items: center;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  gap: .9rem;
  transition: background .15s;
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: rgba(255,255,255,.02); }

.tx-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.tx-icon.reward    { background: rgba(74,222,128,.1);   color: var(--green); }
.tx-icon.purchase  { background: rgba(201,168,76,.1);   color: var(--gold); }
.tx-icon.deposit   { background: rgba(96,165,250,.1);   color: var(--blue); }
.tx-icon.withdraw  { background: rgba(248,113,113,.1);  color: var(--red); }
.tx-icon.referral  { background: rgba(251,191,36,.1);   color: var(--amber); }

.tx-info { flex: 1; min-width: 0; }
.tx-desc {
  font-size: .82rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tx-time { font-size: .68rem; color: var(--muted); margin-top: .1rem; }
.tx-amount {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--red); }

/* ══════════════════════════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(13,13,13,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  height: 66px;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .25rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer; transition: color .2s;
  text-decoration: none;
}
.nav-item i { font-size: 1.15rem; transition: transform .2s; }
.nav-item.active { color: var(--gold-light); }
.nav-item.active i { transform: translateY(-1px); }
.nav-item:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  color: #080808;
  border: none; border-radius: var(--radius-sm);
  padding: .75rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: .85rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(201,168,76,.25);
  text-decoration: none;
}
.btn-gold:hover {
  opacity: .9; transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201,168,76,.35);
  color: #080808;
}
.btn-gold:active { transform: translateY(0); }
.btn-gold.w-full { width: 100%; }
.btn-gold:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: .72rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--gold-glow); color: var(--gold-light); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--bg-raised);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .72rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 500; font-size: .85rem;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--border-gold); color: var(--gold-light); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(248,113,113,.3);
  border-radius: var(--radius-sm);
  padding: .72rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-danger:hover { background: rgba(248,113,113,.2); }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.field-label {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .45rem;
}
.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.field-input::placeholder { color: var(--muted); }
select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6L0 0h10z' fill='%236b6b6b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════ */
.auth-bg {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,168,76,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(201,168,76,.04) 0%, transparent 50%),
    var(--bg-void);
}
.auth-box {
  width: 100%; max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.4rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(201,168,76,.05);
}
.auth-logo-wrap { text-align: center; margin-bottom: 2rem; }
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.auth-tagline { font-size: .72rem; color: var(--muted); margin-top: .3rem; letter-spacing: .05em; }

/* ══════════════════════════════════════════════════════════
   SECTION TITLE
══════════════════════════════════════════════════════════ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .75rem .4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.section-link { font-size: .72rem; color: var(--gold); opacity: .8; }
.section-link:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   BADGES / PILLS
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-green   { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(74,222,128,.2); }
.badge-gold    { background: var(--gold-glow);  color: var(--gold);   border: 1px solid var(--border-gold); }
.badge-amber   { background: var(--amber-bg);   color: var(--amber);  border: 1px solid rgba(251,191,36,.2); }
.badge-red     { background: var(--red-bg);     color: var(--red);    border: 1px solid rgba(248,113,113,.2); }
.badge-muted   { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════
   REFERRAL BOX
══════════════════════════════════════════════════════════ */
.ref-card {
  margin: 0 .75rem .6rem;
  background: linear-gradient(135deg, #1a1506, #0f0e05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.ref-link-text {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--gold-light);
  word-break: break-all;
  line-height: 1.6;
  background: rgba(0,0,0,.3);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  margin: .5rem 0;
}

/* ══════════════════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════════════════ */
.progress-track {
  background: var(--bg-raised);
  border-radius: var(--radius-pill);
  height: 3px;
  overflow: hidden;
  margin-top: .5rem;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  transition: width .6s ease;
}

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  margin: 0 .75rem .6rem;
  display: flex; align-items: flex-start; gap: .6rem;
}
.alert i { flex-shrink: 0; margin-top: .05rem; }
.alert-success { background: var(--green-bg); border: 1px solid rgba(74,222,128,.2); color: var(--green); }
.alert-error   { background: var(--red-bg);   border: 1px solid rgba(248,113,113,.2); color: var(--red); }
.alert-amber   { background: var(--amber-bg);  border: 1px solid rgba(251,191,36,.2); color: var(--amber); }
.alert-gold    { background: var(--gold-glow); border: 1px solid var(--border-gold);  color: var(--gold-light); }

/* ══════════════════════════════════════════════════════════
   MODAL OVERRIDES
══════════════════════════════════════════════════════════ */
.modal-content {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.8) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border) !important;
  padding: 1rem 1.2rem !important;
}
.modal-header .modal-title {
  font-family: var(--font-display) !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  color: var(--gold-light) !important;
}
.modal-body { padding: 1.2rem !important; }
.modal-footer {
  border-top: 1px solid var(--border) !important;
  padding: 1rem 1.2rem !important;
  gap: .6rem !important;
}

/* ══════════════════════════════════════════════════════════
   /* ── Admin Layout ────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand {
  padding: 0 1.5rem 1.5rem;
  font-size: 1rem; font-weight: 800;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.5rem; color: var(--text-muted);
  font-size: .84rem; font-weight: 600; transition: all .2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active { color: var(--accent); background: var(--accent-glow); }
.admin-sidebar a i { font-size: 1.05rem; }
.admin-main { flex: 1; padding: 1.5rem; overflow: auto; }

/* ══════════════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: .65rem 1rem;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); border-bottom: 1px solid var(--border);
  font-weight: 600; white-space: nowrap;
}
.data-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .83rem; color: var(--white);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(201,168,76,.03); }

/* ══════════════════════════════════════════════════════════
   ACTIVE PACKAGE CARD
══════════════════════════════════════════════════════════ */
.pkg-active-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: .5rem;
  transition: border-color .25s;
}
.pkg-active-card:hover { border-color: var(--border-gold); }
.pkg-active-card .top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .5rem;
}
.pkg-active-card .pkg-name-text {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700;
}
.pkg-active-card .daily-reward {
  font-family: var(--font-mono);
  font-size: .85rem; color: var(--green); font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeUp .4s ease both; }
.delay-1   { animation-delay: .07s; }
.delay-2   { animation-delay: .14s; }
.delay-3   { animation-delay: .21s; }
.delay-4   { animation-delay: .28s; }

/* ══════════════════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════════════════ */
.mx-card   { margin-left: .75rem; margin-right: .75rem; }
.mb-card   { margin-bottom: .6rem; }
.gold      { color: var(--gold-light) !important; }
.muted     { color: var(--muted) !important; }
.green     { color: var(--green) !important; }
.red       { color: var(--red) !important; }
.w-full    { width: 100%; }
.text-center { text-align: center; }
.separator { height: 1px; background: var(--border); margin: .4rem 0; }

/* Desktop: hide bottom nav */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
}

@media (max-width: 576px) {
  .auth-card { padding: 2rem 1.2rem; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 1rem; }
  .pkg-grid { grid-template-columns: 1fr 1fr; gap: .6rem; padding: 0 .75rem 1rem; }
  .stat-grid { margin: 0 .75rem 1rem; gap: .6rem; }
  .hero-banner { margin: .75rem; }
}
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;

  display: flex !important;
  z-index: 999999 !important;

  opacity: 1 !important;
  visibility: visible !important;
}

body {
  padding-bottom: 100px !important;
}
