/* app.css — CryptoVault Design System */
/* Theme: Luxe Finance — Gold & Midnight */

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

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-solid: #151d2e;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);

  --gold: #F0B90B;
  --gold-light: #FCD535;
  --gold-dim: #b8860b;
  --gold-bg: rgba(240, 185, 11, 0.1);
  --gold-bg-hover: rgba(240, 185, 11, 0.18);

  --accent-blue: #3B82F6;
  --accent-purple: #A855F7;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-cyan: #06B6D4;

  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-gold: #F0B90B;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(240, 185, 11, 0.15);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 64px;
  --topbar-height: 56px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
a { color: var(--gold); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ─── Splash Screen ─────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.splash-ambient {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
}
.splash-ambient--gold {
  width: 300px; height: 300px; top: 20%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: splashPulse 3s ease-in-out infinite;
}
.splash-ambient--blue {
  width: 200px; height: 200px; bottom: 30%; right: 10%;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation: splashPulse 3s ease-in-out 1s infinite;
}
.splash-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(240,185,11,0.03) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(240,185,11,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.splash-brand {
  position: relative; z-index: 1; text-align: center;
}
.splash-logo-wrap {
  position: relative; display: inline-block; margin-bottom: 20px;
}
.splash-logo-glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,185,11,0.2) 0%, transparent 70%);
  animation: splashPulse 2s ease-in-out infinite;
}
.splash-logo {
  width: 80px; height: 80px; position: relative;
  border-radius: 20px;
}
.splash-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.splash-subtitle {
  color: var(--text-secondary); font-size: 13px; letter-spacing: 0.5px;
}

.splash-loader-wrap {
  position: relative; z-index: 1;
  width: 240px; margin-top: 40px;
}
.splash-loader {
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.splash-loader__fill {
  display: block; height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease;
}
.splash-loader-meta {
  display: flex; justify-content: space-between;
  margin-top: 8px; font-size: 11px; color: var(--text-muted);
}

@keyframes splashPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 0.5; }
}

/* ─── App Shell ──────────────────────────────────────────────── */
#app {
  display: none; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
#app.visible { display: flex; }

/* ─── Top Bar ────────────────────────────────────────────────── */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  padding-top: calc(8px + var(--safe-top));
  height: calc(var(--topbar-height) + var(--safe-top));
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 4px; }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
}
.lang-toggle__icon {
  width: 18px; height: 18px; color: var(--text-secondary);
}
.lang-toggle__icon svg { width: 100%; height: 100%; }
.lang-btn {
  font-size: 12px; font-weight: 600; padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active { color: var(--gold); }

/* Balance button */
.tb-balance-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all 0.2s;
}
.tb-balance-btn:active { transform: scale(0.97); }
.tb-coin {
  width: 22px; height: 22px; color: var(--gold);
  display: flex; align-items: center;
}
.tb-coin svg { width: 100%; height: 100%; }
.tb-balance-info { display: flex; flex-direction: column; align-items: flex-start; }
.tb-balance-label { font-size: 10px; color: var(--text-muted); line-height: 1; }
.tb-balance-value { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.tb-arrow { width: 16px; height: 16px; color: var(--text-muted); }
.tb-arrow svg { width: 100%; height: 100%; }

/* Icon buttons */
.icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s; position: relative;
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-glass); }
.icon-btn svg { width: 20px; height: 20px; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-red); color: #fff;
  border-radius: var(--radius-full); padding: 0 4px;
  line-height: 1;
}

/* ─── Main Content ───────────────────────────────────────────── */
#main-content {
  flex: 1;
  overflow-y: auto; /* auto is generally better than scroll */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px;
  height: calc(100vh - var(--topbar-height) - var(--nav-height) - var(--safe-top) - var(--safe-bottom));
  height: calc(100dvh - var(--topbar-height) - var(--nav-height) - var(--safe-top) - var(--safe-bottom));
  touch-action: pan-y;
}

/* ─── Bottom Nav ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: space-around;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 6px 0; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.nav-icon {
  width: 22px; height: 22px; color: var(--text-muted);
  transition: all 0.25s;
}
.nav-icon svg { width: 100%; height: 100%; }
.nav-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-muted); transition: all 0.25s; text-transform: uppercase;
}
.nav-item.active .nav-icon { color: var(--gold); }
.nav-item.active .nav-label { color: var(--gold); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%;
  height: 2px; background: var(--gold); border-radius: 0 0 2px 2px;
}

/* ─── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed; top: calc(var(--topbar-height) + var(--safe-top) + 8px);
  left: 12px; right: 12px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  font-size: 13px; font-weight: 500;
  color: var(--text-primary);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
}
.toast--success { border-color: rgba(16,185,129,0.3); }
.toast--success::before { content: '✓'; color: var(--accent-green); font-weight: 700; }
.toast--error { border-color: rgba(239,68,68,0.3); }
.toast--error::before { content: '✕'; color: var(--accent-red); font-weight: 700; }
.toast--info { border-color: rgba(240,185,11,0.3); }
.toast--info::before { content: 'ℹ'; color: var(--gold); font-weight: 700; }
.toast.out { animation: toastOut 0.3s ease forwards; }

/* Language Modal */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.lang-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-item:hover { background: rgba(255, 255, 255, 0.08); }
.lang-item.active {
    background: rgba(240, 185, 11, 0.1);
    border-color: var(--primary);
}
.lang-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.lang-name { font-weight: 500; font-size: 0.95rem; }

/* Profile & Menu Styles */
.menu-card {
    background: #111522;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    margin: 16px 0;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.2s;
}
.menu-item:active { background: rgba(255,255,255,0.05); }
.menu-item:last-child { border-bottom: none; }

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255,255,255,0.03);
}

.icon-box--blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-box--gold { background: rgba(240, 185, 11, 0.1); color: var(--gold); }
.icon-box--green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.menu-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.menu-item-sub {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 2px;
}

.menu-item-arrow {
    opacity: 0.3;
    font-size: 1.2rem;
}

/* Admin Specific */
.admin-card {
    background: #111522;
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.admin-stat-box {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.admin-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}

.admin-stat-label {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table th { opacity: 0.5; font-weight: 500; }

/* RTL Support */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav-item { flex-direction: row-reverse; }
[dir="rtl"] .stat-card { text-align: right; }
[dir="rtl"] .icon-box { margin-left: 0; margin-right: 0; }

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

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(10px);
}
.card-gold {
  background: linear-gradient(135deg, rgba(240,185,11,0.08), rgba(240,185,11,0.02));
  border: 1px solid rgba(240,185,11,0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
}

/* ─── Section Headers ────────────────────────────────────────── */
.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
}
.section-subtitle {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 16px; line-height: 1.5;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s; width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0e1a;
}
.btn-gold:hover { box-shadow: var(--shadow-gold); }
.btn-outline {
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  background: var(--bg-glass);
}
.btn-outline:hover { background: var(--bg-glass-hover); }
.btn-green {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
}
.btn-red {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff;
}
.btn-sm {
  padding: 8px 14px; font-size: 12px; border-radius: var(--radius-sm);
}
.btn-disabled {
  opacity: 0.4; pointer-events: none;
}

/* ─── Inputs ─────────────────────────────────────────────────── */
.input-group { margin-bottom: 14px; }
.input-label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 6px;
}
.input-field {
  width: 100%; padding: 12px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.input-field:focus { border-color: var(--gold); }
.input-field::placeholder { color: var(--text-muted); }

/* Range Slider Customization */
.range-slider-wrap {
  padding: 10px 0 20px;
}
.range-slider {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.4);
  border: 3px solid #0a0e1a;
  transition: transform 0.2s;
}
.range-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}
.range-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px; font-size: 13px; font-weight: 700;
  color: var(--text-primary);
}
.range-val { color: var(--gold); font-size: 18px; font-family: var(--font-display); }

/* ─── Modal / Sheet ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.closing { animation: fadeOut 0.25s ease forwards; }

.modal-sheet {
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 16px;
  padding-bottom: calc(20px + var(--safe-bottom));
  animation: slideUp 0.3s ease;
}
.modal-overlay.closing .modal-sheet { animation: slideDown 0.25s ease forwards; }

.modal-handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto 16px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.modal-subtitle {
  font-size: 13px; color: var(--text-secondary); margin-bottom: 16px;
}

.modal-center {
  align-items: center;
}
.modal-center .modal-sheet {
  border-radius: var(--radius-xl);
  margin: 16px;
  max-height: 85vh;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* ─── Plan Cards (Fleet) - Reverted to Horizontal Scroll ────── */
.plans-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.plans-scroll::-webkit-scrollbar { display: none; }

.plan-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 24px;
  background: #111522;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: block; /* Dikey değil, blok yapısına dön */
  height: auto;
}

.plan-img-wrap {
  width: 100%;
  height: 160px;
}
.plan-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.plan-card--featured {
  border-color: rgba(240,185,11,0.4);
  box-shadow: 0 10px 40px -10px rgba(240,185,11,0.2);
}
.plan-img-wrap {
  width: 100%; height: 160px; position: relative;
  background: #000; overflow: hidden;
}
.plan-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.plan-card:hover .plan-img-wrap img { transform: scale(1.05); }
.plan-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-card-solid) 100%);
}
.plan-card-body { padding: 16px; }

.plan-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--gold); color: #0a0e1a; z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.plan-badge--limited { background: #fff; color: #000; }

.plan-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #999);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.plan-stat { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.plan-stat-label { font-size: 12px; color: var(--text-secondary); }
.plan-stat-value { font-size: 14px; font-weight: 700; }
.plan-stat-value--gold { color: var(--gold); }
.plan-yield {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 12px 0;
}
.plan-daily {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 16px;
}
.plan-daily span { color: var(--accent-green); font-weight: 600; }

/* ─── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.stat-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}
.stat-card-label {
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 4px; font-weight: 500;
}
.stat-card-value {
  font-size: 16px; font-weight: 700;
}
.stat-card-value--green { color: var(--accent-green); }
.stat-card-value--gold { color: var(--gold); }

/* ─── Network Selector ───────────────────────────────────────── */
.network-list { display: flex; flex-direction: column; gap: 8px; }
.network-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer; transition: all 0.2s;
}
.network-item:hover { border-color: var(--gold); background: var(--gold-bg); }
.network-item.selected { border-color: var(--gold); background: var(--gold-bg); }
.network-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-glass-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gold);
}
.network-name { font-size: 14px; font-weight: 600; }
.network-detail { font-size: 11px; color: var(--text-muted); }

/* ─── Referral ───────────────────────────────────────────────── */
.ref-link-box {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  margin-bottom: 12px;
}
.ref-link-text {
  flex: 1; font-size: 12px; color: var(--text-secondary);
  word-break: break-all; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ref-copy-btn, .ref-share-btn {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.ref-copy-btn {
  background: var(--gold); color: #0a0e1a;
}
.ref-share-btn {
  background: var(--accent-blue); color: #fff;
}

.level-tabs {
  display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px;
  padding-bottom: 4px;
}
.level-tab {
  flex-shrink: 0; padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.level-tab.active {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Task Item ──────────────────────────────────────────────── */
.task-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px; transition: all 0.2s;
}
.task-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--gold-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.task-icon svg { width: 20px; height: 20px; }
.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.task-desc { font-size: 11px; color: var(--text-muted); }
.task-reward {
  font-size: 13px; font-weight: 700; color: var(--gold);
  white-space: nowrap; margin-left: 8px;
}
.task-action-btn {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700;
}
.task-action-btn--verify { background: var(--accent-blue); color: #fff; }
.task-action-btn--claim { background: var(--accent-green); color: #fff; }
.task-action-btn--done { background: var(--bg-glass); color: var(--text-muted); pointer-events: none; }

/* ─── History Item ───────────────────────────────────────────── */
.history-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
}
.history-item:last-child { border-bottom: none; }
.history-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.history-dot--green { background: var(--accent-green); }
.history-dot--gold { background: var(--gold); }
.history-dot--red { background: var(--accent-red); }
.history-dot--blue { background: var(--accent-blue); }
.history-info { flex: 1; }
.history-type { font-size: 13px; font-weight: 600; }
.history-date { font-size: 11px; color: var(--text-muted); }
.history-amount { font-size: 14px; font-weight: 700; text-align: right; }
.history-amount--plus { color: var(--accent-green); }
.history-amount--minus { color: var(--accent-red); }
.history-status {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius-full); text-align: right;
}
.history-status--confirmed { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.history-status--processing { background: rgba(240,185,11,0.15); color: var(--gold); }

/* ─── FAQ / Accordion ────────────────────────────────────────── */
.faq-group { margin-bottom: 20px; }
.faq-group-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gold); margin-bottom: 8px;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
  padding: 14px 0; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-primary); transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-arrow {
  width: 16px; height: 16px; color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-arrow svg { width: 100%; height: 100%; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding-bottom: 14px; }

/* ─── Notification Item ──────────────────────────────────────── */
.notif-item {
  padding: 12px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}
.notif-item--unread { border-left: 3px solid var(--gold); }
.notif-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.notif-text { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.notif-time { font-size: 10px; color: var(--text-muted); }

/* ─── Onboarding ─────────────────────────────────────────────── */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
}
.onboarding-slides {
  flex: 1; position: relative; overflow: hidden;
}
.onboarding-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
  opacity: 0; transform: translateX(50px);
  transition: all 0.4s ease;
}
.onboarding-slide.active {
  opacity: 1; transform: translateX(0);
}
.onboarding-slide.prev {
  opacity: 0; transform: translateX(-50px);
}
.onboarding-icon {
  width: 80px; height: 80px; margin-bottom: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.onboarding-icon--gold { background: var(--gold-bg); color: var(--gold); }
.onboarding-icon--green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.onboarding-icon--purple { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.onboarding-icon--blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.onboarding-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; margin-bottom: 12px;
}
.onboarding-text {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; max-width: 300px;
}
.onboarding-controls {
  padding: 20px 24px;
  padding-bottom: calc(20px + var(--safe-bottom));
  display: flex; align-items: center; justify-content: space-between;
}
.onboarding-dots {
  display: flex; gap: 6px;
}
.onboarding-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.onboarding-dot.active {
  width: 24px; border-radius: 4px;
  background: var(--gold);
}
.onboarding-skip {
  font-size: 13px; color: var(--text-muted);
  font-weight: 500; padding: 8px;
}
.onboarding-next-btn {
  padding: 10px 24px; border-radius: var(--radius-md);
  background: var(--gold); color: #0a0e1a;
  font-weight: 700; font-size: 14px;
}

/* ─── Language Modal ─────────────────────────────────────────── */
.lang-list { display: flex; flex-direction: column; gap: 4px; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer; transition: all 0.2s;
}
.lang-option:hover { border-color: var(--border-glass); }
.lang-option.active { border-color: var(--gold); background: var(--gold-bg); }
.lang-option-left { display: flex; align-items: center; gap: 10px; }
.lang-option-code { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.lang-option-name { font-size: 14px; font-weight: 600; }
.lang-option-native { font-size: 12px; color: var(--text-secondary); }
.lang-check { color: var(--gold); font-size: 18px; }

/* ─── Deposit Address ────────────────────────────────────────── */
.deposit-address-box {
  padding: 16px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  text-align: center; margin: 16px 0;
}
.deposit-amount {
  font-size: 28px; font-weight: 800;
  font-family: var(--font-display);
  color: var(--gold); margin-bottom: 8px;
}
.deposit-address {
  font-size: 12px; color: var(--text-secondary);
  word-break: break-all; margin: 12px 0;
  padding: 10px; background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm); font-family: monospace;
}
.deposit-timer {
  font-size: 12px; color: var(--text-muted); margin-top: 8px;
}
.deposit-status {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 12px;
}
.deposit-spinner {
  width: 16px; height: 16px; border: 2px solid var(--border-glass);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Daily Bonus ────────────────────────────────────────────── */
.bonus-days {
  display: flex; gap: 6px; justify-content: center;
  margin: 16px 0; flex-wrap: wrap;
}
.bonus-day {
  width: 40px; height: 50px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 10px; gap: 2px;
}
.bonus-day-num { font-weight: 700; color: var(--text-secondary); }
.bonus-day-amount { font-weight: 800; color: var(--text-muted); font-size: 9px; }
.bonus-day.active { border-color: var(--gold); background: var(--gold-bg); }
.bonus-day.active .bonus-day-num { color: var(--gold); }
.bonus-day.active .bonus-day-amount { color: var(--gold); }
.bonus-day.claimed { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
.bonus-day.claimed .bonus-day-num { color: var(--accent-green); }

/* ─── Support / Ticket ───────────────────────────────────────── */
.ticket-item {
  padding: 14px; border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px; cursor: pointer;
  transition: all 0.2s;
}
.ticket-item:hover { border-color: var(--border-glass); }
.ticket-subject { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ticket-status {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-full); display: inline-block;
}
.ticket-status--open { background: rgba(240,185,11,0.15); color: var(--gold); }
.ticket-status--closed { background: rgba(107,114,128,0.2); color: var(--text-muted); }
.ticket-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.chat-messages {
  display: flex; flex-direction: column; gap: 8px;
  margin: 16px 0; max-height: 300px; overflow-y: auto;
}
.chat-msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: var(--radius-md); font-size: 13px; line-height: 1.5;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--gold-bg);
  border: 1px solid rgba(240,185,11,0.15);
  color: var(--text-primary);
}
.chat-msg--support {
  align-self: flex-start;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}
.chat-msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* ─── Balance Hero Card ──────────────────────────────────────── */
.balance-hero {
  text-align: center; padding: 24px 16px;
  background: linear-gradient(180deg, rgba(240,185,11,0.06), transparent);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(240,185,11,0.1);
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.balance-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(240,185,11,0.08), transparent 60%);
}
.balance-hero-label {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 4px; position: relative;
}
.balance-hero-value {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative; margin-bottom: 4px;
}
.balance-hero-yield {
  font-size: 13px; color: var(--accent-green);
  font-weight: 600; position: relative;
}

/* ─── Quick Actions ──────────────────────────────────────────── */
.quick-actions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.quick-action {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 14px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer; transition: all 0.2s;
}
.quick-action:hover { border-color: var(--border-glass); }
.quick-action:active { transform: scale(0.96); }
.quick-action-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.quick-action-icon svg { width: 18px; height: 18px; }
.quick-action-icon--gold { background: var(--gold-bg); color: var(--gold); }
.quick-action-icon--green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.quick-action-icon--blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.quick-action-label {
  font-size: 10px; font-weight: 600; color: var(--text-secondary);
  text-align: center;
}

/* ─── Comparison Table ───────────────────────────────────────── */
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; margin-top: 16px;
}
.compare-table th {
  text-align: left; padding: 8px 10px;
  font-weight: 700; color: var(--text-muted);
  font-size: 10px; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}
.compare-table td {
  padding: 10px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); }
.compare-table tr:last-child td { border-bottom: none; }

/* ─── Empty States ───────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px;
}
.empty-state-icon {
  font-size: 48px; margin-bottom: 12px; opacity: 0.3;
}
.empty-state-title {
  font-size: 16px; font-weight: 600; margin-bottom: 8px;
  color: var(--text-secondary);
}
.empty-state-text {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.5; max-width: 260px;
  margin: 0 auto 16px;
}

/* ─── Pulse animation ────────────────────────────────────────── */
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 500px) {
  .plans-scroll { justify-content: center; }
  .plan-card { flex: 0 0 240px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}
