/* ============================================================
   SURFTOEARN — GLOBAL DESIGN SYSTEM
   Mobile-first | Dark Gaming | Glassmorphism
   ============================================================ */

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

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --bg-deep:       #07091a;
  --bg-dark:       #0d1128;
  --bg-card:       rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border:        rgba(255, 255, 255, 0.08);
  --border-glow:   rgba(245, 166, 35, 0.35);

  --gold:          #F5A623;
  --gold-light:    #FFD700;
  --gold-dim:      rgba(245, 166, 35, 0.15);
  --teal:          #00D4AA;
  --teal-dim:      rgba(0, 212, 170, 0.15);
  --purple:        #9B59F5;
  --red:           #FF6B6B;
  --green:         #2ECC71;

  --text-primary:  #F0F2FF;
  --text-secondary:#9BA3C5;
  --text-muted:    #5A6080;

  /* Gradients */
  --grad-gold:    linear-gradient(135deg, #F5A623, #FFD700);
  --grad-teal:    linear-gradient(135deg, #00D4AA, #0097A7);
  --grad-purple:  linear-gradient(135deg, #9B59F5, #6C3CE4);
  --grad-bg:      linear-gradient(160deg, #07091a 0%, #0d1128 50%, #0a0e20 100%);
  --grad-card:    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;

  /* Typography */
  --font:      'Outfit', sans-serif;
  --text-xs:   clamp(10px, 2.5vw, 12px);
  --text-sm:   clamp(12px, 3vw, 14px);
  --text-base: clamp(14px, 3.5vw, 16px);
  --text-lg:   clamp(16px, 4vw, 20px);
  --text-xl:   clamp(20px, 5vw, 28px);
  --text-2xl:  clamp(26px, 6vw, 40px);
  --text-3xl:  clamp(32px, 8vw, 56px);

  /* Layout */
  --nav-h-mobile:  60px;
  --nav-w-desktop: 240px;
  --content-max:   1200px;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold:   0 0 24px rgba(245,166,35,0.25);
  --shadow-teal:   0 0 24px rgba(0,212,170,0.25);
  --shadow-btn:    0 4px 20px rgba(245,166,35,0.4);

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(245,166,35,0.4); border-radius: var(--radius-full); }

/* ── Utility Classes ───────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.text-gold  { color: var(--gold); }
.text-teal  { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.text-center{ text-align: center; }
.w-full  { width: 100%; }
.truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Glass Card ────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}
.card-sm { padding: var(--space-md); border-radius: var(--radius-md); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  min-height: 48px;
}
.btn-gold {
  background: var(--grad-gold);
  color: #0d1128;
  box-shadow: var(--shadow-btn);
}
.btn-gold:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,166,35,0.55); }
.btn-gold:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); }
.btn-teal {
  background: var(--grad-teal);
  color: #0d1128;
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,170,0.45); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--gold); }
.btn-sm  { padding: 10px 18px; font-size: var(--text-sm); min-height: 40px; }
.btn-lg  { padding: 18px 32px; font-size: var(--text-lg); }
.btn-icon{ width: 48px; height: 48px; border-radius: var(--radius-full); padding: 0; font-size: 20px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── Form Elements ─────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.input-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.input-field {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: var(--text-base);
  width: 100%;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 52px;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-field { padding-left: 48px; }
.input-icon-wrap .input-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none;
}

/* ── Badge / Chip ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold   { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,166,35,0.3); }
.badge-teal   { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,212,170,0.3); }
.badge-purple { background: rgba(155,89,245,0.15); color: var(--purple); border: 1px solid rgba(155,89,245,0.3); }
.badge-red    { background: rgba(255,107,107,0.15); color: var(--red); border: 1px solid rgba(255,107,107,0.3); }
.badge-green  { background: rgba(46,204,113,0.15); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }

/* ── Progress Bar ──────────────────────────────────────────── */
.progress {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute; top: 0; left: -60px; width: 40px; height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-20deg);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { left: -60px; } 100% { left: 120%; } }

.progress-lg { height: 12px; }
.progress-xl { height: 16px; }

/* ── Coin Counter ──────────────────────────────────────────── */
.coin-display {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,166,35,0.5);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.coin-icon { display: inline-block; font-size: 0.85em; animation: spin 4s linear infinite; }
@keyframes spin { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }

/* ── Navigation (Mobile Bottom Bar) ───────────────────────── */
.nav-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h-mobile);
  background: rgba(13, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 var(--space-sm);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  min-width: 56px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
}
.nav-item.active { color: var(--gold); }
.nav-item:hover  { color: var(--text-primary); background: var(--bg-card); }
.nav-item .nav-ico { font-size: 22px; line-height: 1; }
.nav-item .nav-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-dot {
  position: relative;
}
.nav-dot::after {
  content: '';
  position: absolute; top: 0; right: -2px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* ── Nav Sidebar (Tablet+) ─────────────────────────────────── */
@media (min-width: 768px) {
  .nav-bottom { display: none; }
  .layout-with-nav { display: flex; min-height: 100vh; }
  .sidebar {
    width: var(--nav-w-desktop);
    min-height: 100vh;
    background: rgba(7, 9, 26, 0.95);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column;
    padding: var(--space-lg) 0;
    z-index: 100;
    overflow-y: auto;
  }
  .sidebar-logo {
    padding: 0 var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
  }
  .sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: var(--space-xs); padding: 0 var(--space-sm); }
  .sidebar-nav-item {
    display: flex; align-items: center; gap: var(--space-md);
    padding: 14px var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
    font-size: var(--text-base); font-weight: 500;
    cursor: pointer;
  }
  .sidebar-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
  .sidebar-nav-item.active { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,166,35,0.2); }
  .sidebar-nav-item .ico { font-size: 20px; width: 24px; text-align: center; }
  .main-content { margin-left: var(--nav-w-desktop); flex: 1; }
}

/* ── Page Layout ───────────────────────────────────────────── */
.page {
  min-height: 100vh;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: calc(var(--nav-h-mobile) + var(--space-xl));
}
@media (min-width: 768px) {
  .page { padding: var(--space-xl) var(--space-xl); padding-bottom: var(--space-xl); }
}
.page-header {
  display: flex; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.page-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
}
.page-sub { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 2px; }

/* ── Top Bar ───────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md);
  background: rgba(13,17,40,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-left  { display: flex; align-items: center; gap: var(--space-sm); }
.topbar-right { display: flex; align-items: center; gap: var(--space-sm); }
.logo-text {
  font-size: var(--text-lg);
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo-emoji { font-size: 24px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #0d1128;
  cursor: pointer;
  border: 2px solid var(--gold);
}
.balance-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
}

/* ── Character Cards ───────────────────────────────────────── */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: var(--space-md);
}
@media (max-width: 380px) { .char-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 600px) { .char-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .char-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px){ .char-grid { grid-template-columns: repeat(6, 1fr); } }

.char-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  cursor: pointer;
}
.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); border-color: var(--border-glow); }
.char-art {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  background: radial-gradient(circle at center, rgba(245,166,35,0.12) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}
.char-art::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, var(--char-color, rgba(245,166,35,0.2)) 0%, transparent 60%);
}
.char-art-emoji { position: relative; z-index: 1; filter: drop-shadow(0 0 12px var(--char-color, rgba(245,166,35,0.6))); }
.char-art-img   { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 15px var(--char-color, rgba(245,166,35,0.4))); }
.char-body { padding: 12px; }
.char-name { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.char-income { font-size: var(--text-xs); color: var(--teal); font-weight: 600; }
.char-price  { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.char-count  {
  font-size: var(--text-xs); font-weight: 800;
  background: var(--gold-dim); color: var(--gold);
  padding: 3px 8px; border-radius: var(--radius-full);
  display: inline-block; margin-top: 8px;
}
.char-card.owned { border-color: rgba(245,166,35,0.3); }
.char-card .char-buy-btn { margin-top: 10px; width: 100%; }

/* ── Mine Tabs ─────────────────────────────────────────────── */
.mine-tabs {
  display: flex; gap: var(--space-sm);
  overflow-x: auto; padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.mine-tabs::-webkit-scrollbar { display: none; }
.mine-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-width: 80px;
}
.mine-tab.active { border-color: var(--gold); background: var(--gold-dim); }
.mine-tab.locked { opacity: 0.45; cursor: not-allowed; }
.mine-tab-ico { font-size: 24px; }
img.mine-tab-img { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; object-fit: contain; border-radius: var(--radius-sm); display: block; }
img.mine-hero-img { width: 120px !important; height: 120px !important; max-width: 120px !important; max-height: 120px !important; object-fit: contain; margin: 0 auto; display: block; filter: drop-shadow(0 0 20px rgba(245,166,35,0.4)); }
.mine-tab-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.mine-tab.active .mine-tab-lbl { color: var(--gold); }

/* ── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--duration) var(--ease);
}
.stat-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.stat-ico   { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-size: var(--text-lg); font-weight: 800; color: var(--gold); }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Claim Card ────────────────────────────────────────────── */
.claim-hero {
  background: radial-gradient(ellipse at center top, rgba(245,166,35,0.18) 0%, transparent 60%),
              var(--grad-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}
.claim-btn-wrap { margin: var(--space-xl) 0; }
.claim-big-btn {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--grad-gold);
  border: 4px solid rgba(255,215,0,0.4);
  box-shadow: 0 0 40px rgba(245,166,35,0.5), 0 0 80px rgba(245,166,35,0.2);
  font-size: 48px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex; align-items: center; justify-content: center;
  animation: claim-pulse 3s ease-in-out infinite;
}
.claim-big-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(245,166,35,0.7), 0 0 100px rgba(245,166,35,0.35);
}
.claim-big-btn:disabled {
  animation: none;
  filter: grayscale(0.7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: not-allowed;
}
@keyframes claim-pulse {
  0%,100% { box-shadow: 0 0 40px rgba(245,166,35,0.5), 0 0 80px rgba(245,166,35,0.2); }
  50%      { box-shadow: 0 0 60px rgba(245,166,35,0.7), 0 0 120px rgba(245,166,35,0.3); }
}
.claim-timer { font-size: var(--text-xl); font-weight: 800; color: var(--text-secondary); letter-spacing: 2px; }

/* ── VIP Cards ─────────────────────────────────────────────── */
.vip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 600px) { .vip-grid { grid-template-columns: repeat(3, 1fr); } }
.vip-card {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease);
  text-align: center;
}
.vip-card:hover { transform: translateY(-6px); }
.vip-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--vip-grad);
  opacity: 0.08;
}
.vip-card-basic  { --vip-grad: linear-gradient(135deg, #cd7f32, #a0522d); border: 2px solid rgba(205,127,50,0.4); }
.vip-card-plus   { --vip-grad: linear-gradient(135deg, #C0C0C0, #808080); border: 2px solid rgba(192,192,192,0.4); }
.vip-card-elite  { --vip-grad: linear-gradient(135deg, #FFD700, #FFA500); border: 2px solid rgba(255,215,0,0.5); box-shadow: 0 0 40px rgba(255,215,0,0.2); }
.vip-popular     { position: absolute; top: 12px; right: 12px; }
.vip-ico   { font-size: 52px; margin-bottom: var(--space-md); }
.vip-title { font-size: var(--text-lg); font-weight: 800; margin-bottom: 4px; }
.vip-price { font-size: var(--text-2xl); font-weight: 900; color: var(--gold); margin-bottom: var(--space-md); }
.vip-price span { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 400; }
.vip-features { text-align: left; margin-bottom: var(--space-xl); }
.vip-feat {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-sm); color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.vip-feat:last-child { border-bottom: none; }
.vip-feat-ico { color: var(--green); font-size: 14px; flex-shrink: 0; }
.vip-feat-ico.no { color: var(--text-muted); }

/* ── Referral ──────────────────────────────────────────────── */
.ref-link-wrap {
  display: flex; gap: var(--space-sm);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 16px;
  align-items: center;
}
.ref-link-text { flex: 1; font-size: var(--text-sm); color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); padding: 10px var(--space-md); text-align: left; border-bottom: 1px solid var(--border); }
.ref-table td { font-size: var(--text-sm); padding: 12px var(--space-md); border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); }
.ref-table tr:last-child td { border-bottom: none; }
.share-btns { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  background: var(--bg-card);
}
.share-btn:hover { transform: translateY(-2px); }
.share-wa  { border-color: rgba(37,211,102,0.4); }  .share-wa:hover  { background: rgba(37,211,102,0.15); color: #25D366; }
.share-tg  { border-color: rgba(41,182,246,0.4); }  .share-tg:hover  { background: rgba(41,182,246,0.15); color: #29B6F6; }
.share-tw  { border-color: rgba(29,161,242,0.4); }  .share-tw:hover  { background: rgba(29,161,242,0.15); color: #1DA1F2; }

/* ── Withdrawal ────────────────────────────────────────────── */
.with-summary {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-md); margin-bottom: var(--space-lg);
}
.with-sum-item { text-align: center; padding: var(--space-md); background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); }
.with-sum-val { font-size: var(--text-xl); font-weight: 800; color: var(--gold); }
.with-sum-lbl { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.coin-select {
  display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md);
}
.coin-opt {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--duration) var(--ease);
}
.coin-opt.selected { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.coin-opt:hover { border-color: var(--gold); color: var(--gold); }
.kyc-status {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ── Auth Page ─────────────────────────────────────────────── */
.auth-bg {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.auth-bg-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: var(--gold); top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--teal); bottom: -80px; left: -80px; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: var(--purple); top: 50%; left: 30%; animation-delay: -6s; }
@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}
.auth-card {
  width: 100%; max-width: 420px;
  background: rgba(13, 17, 40, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  padding: var(--space-2xl) var(--space-xl);
  position: relative; z-index: 1;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}
.auth-logo { text-align: center; margin-bottom: var(--space-xl); }
.auth-logo-icon { font-size: 52px; display: block; margin-bottom: var(--space-sm); filter: drop-shadow(0 0 20px rgba(245,166,35,0.6)); }
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--space-xl);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  color: var(--text-muted);
}
.auth-tab.active { background: var(--grad-gold); color: #0d1128; }

/* ── Notification Toast ────────────────────────────────────── */
.toast-container { position: fixed; top: var(--space-lg); right: var(--space-md); z-index: 999; display: flex; flex-direction: column; gap: var(--space-sm); pointer-events: none; }
.toast {
  background: rgba(13,17,40,0.95);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: var(--text-sm); font-weight: 600;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  animation: toast-in 0.3s var(--ease);
  display: flex; align-items: center; gap: 10px;
  max-width: 300px;
  pointer-events: all;
}
.toast-success { border-color: rgba(46,204,113,0.4); }
.toast-error   { border-color: rgba(255,107,107,0.4); }
.toast-info    { border-color: rgba(245,166,35,0.4); }
@keyframes toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* ── Divider ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: var(--space-lg) 0; }
.divider-text {
  display: flex; align-items: center; gap: var(--space-md);
  color: var(--text-muted); font-size: var(--text-sm);
  margin: var(--space-lg) 0;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Data Tables ────────────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}
.data-table th {
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.data-table tr:hover td {
  background: rgba(255,255,255,0.015);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Activity Items ────────────────────────────────────────── */
.activity-list { display:flex; flex-direction:column; gap:var(--space-sm); }
.activity-item {
  display:flex; align-items:center; gap:var(--space-md);
  padding:12px var(--space-md);
  background:var(--bg-card);
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  transition: all var(--duration) var(--ease);
}
.activity-ico  { font-size:22px; flex-shrink:0; }
.activity-text { flex:1; font-size:var(--text-sm); color:var(--text-secondary); }
.activity-val  { font-size:var(--text-sm); font-weight:700; color:var(--gold); }
.activity-time { font-size:var(--text-xs); color:var(--text-muted); }

/* ── Micro animation ───────────────────────────────────────── */
.pulse  { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.float  { animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bounce-in { animation: bounce-in 0.4s var(--ease) both; }
@keyframes bounce-in { from { transform: scale(0.8); opacity: 0; } 60% { transform: scale(1.05); } to { transform: scale(1); opacity: 1; } }

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(245,166,35,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin-r 0.7s linear infinite;
}
@keyframes spin-r { to { transform: rotate(360deg); } }

/* ── Responsive Helpers ────────────────────────────────────── */
@media (min-width: 768px) {
  .hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .auth-card { padding: var(--space-xl) var(--space-md); }
}
@media (min-width: 1200px) {
  .page { max-width: calc(var(--content-max) + var(--nav-w-desktop)); margin: 0 auto; }
}
