/* ═══════════════════════════════════════════════════════
   VIP DEAL JOURNAL — Ultra Premium Dark Mini App
═══════════════════════════════════════════════════════ */

:root {
  --bg:          #0a0a14;
  --surface:     rgba(255,255,255,0.035);
  --surface-2:   rgba(255,255,255,0.065);
  --glass:       rgba(255,255,255,0.05);
  --glass-b:     rgba(255,255,255,0.09);
  --glass-hover: rgba(255,255,255,0.09);

  --gold:        #f5c518;
  --gold-2:      #d4a010;
  --gold-dim:    rgba(245,197,24,0.10);
  --gold-glow:   rgba(245,197,24,0.40);

  --green:       #00d97e;
  --green-2:     #00b86a;
  --green-dim:   rgba(0,217,126,0.10);
  --green-glow:  rgba(0,217,126,0.35);

  --red:         #ff4757;
  --red-dim:     rgba(255,71,87,0.12);
  --red-glow:    rgba(255,71,87,0.30);

  --purple:      #8b5cf6;
  --purple-2:    #6d28d9;
  --indigo:      #4f46e5;
  --blue:        #3b82f6;

  --text:        #f0f0fa;
  --text-2:      rgba(240,240,250,0.55);
  --text-3:      rgba(240,240,250,0.28);

  --nav-h:       64px;
  --header-h:    52px;
  --r:           12px;
  --r-lg:        16px;
  --r-xl:        20px;
  --r-2xl:       24px;
  --r-3xl:       32px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body              { height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── App shell ───────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  background:
    radial-gradient(ellipse 100% 50% at 50% -5%, rgba(99,102,241,0.22) 0%, transparent 65%),
    var(--bg);
}

/* ── Header ──────────────────────────────────────────── */
#header {
  height: var(--header-h);
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
#header-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.live-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800;
  color: var(--red); letter-spacing: 1.5px;
  background: var(--red-dim);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,71,87,0.22);
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ── Tabs ────────────────────────────────────────────── */
#main { flex: 1; overflow: hidden; position: relative; }

.tab {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 20px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
  -webkit-overflow-scrolling: touch;
}
.tab.active { opacity: 1; pointer-events: all; }

/* ── Bottom Nav ──────────────────────────────────────── */
#bottom-nav {
  height: var(--nav-h);
  background: rgba(8,8,16,0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  position: relative; z-index: 10; flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-btn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--text-3);
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  transition: color 0.18s; padding: 0; position: relative;
}
.nav-btn .nav-icon { font-size: 21px; line-height: 1; transition: transform 0.18s; }
.nav-btn.active    { color: var(--gold); }
.nav-btn.active .nav-icon {
  filter: drop-shadow(0 0 10px var(--gold-glow));
  transform: scale(1.12);
}
.nav-btn.active::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--gold), #f97316);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTIONS
═══════════════════════════════════════════════════════ */

.tab-hero {
  position: relative; overflow: hidden;
  padding: 26px 20px 24px;
  border-radius: 0 0 32px 32px;
}

/* Animated gradient background */
.hero-purple {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a5f 100%);
  animation: heroShift 8s ease-in-out infinite alternate;
}
@keyframes heroShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-amber {
  background: linear-gradient(135deg, #431407 0%, #7c2d12 40%, #c2410c 80%, #9a3412 100%);
}

/* Grid overlay */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L0 0 0 40' fill='none' stroke='white' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
}

/* Radial glows */
.hero-glow-tr {
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  pointer-events: none;
}
.hero-glow-bl {
  position: absolute; bottom: -50px; left: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}

/* Shimmer sweep */
.hero-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255,255,255,0.07) 50%,
    transparent 65%);
  background-size: 300% 100%;
  animation: shimmerSweep 5s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.hero-inner { position: relative; }

.hero-row {
  display: flex; align-items: center; gap: 14px;
}
.hero-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.hero-text { flex: 1; }
.hero-title {
  font-size: 24px; font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -0.3px;
}
.hero-sub {
  font-size: 13px; color: rgba(255,255,255,0.68);
  margin-top: 4px;
}
.hero-live-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 6px 12px;
  font-size: 10px; font-weight: 800; color: #fff;
  letter-spacing: 1.2px; white-space: nowrap;
}
.hero-live-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4757;
  animation: blink 1.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════════ */
#ticker-wrap {
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin: 12px 16px 0;
  height: 34px;
  display: flex; align-items: center;
}
#ticker-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 32s linear infinite;
  padding: 0 20px;
}
#ticker-track span { font-size: 12px; color: var(--text-2); }
#ticker-track span b { color: var(--green); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════════ */
.section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.section-hdr-title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-2);
}
.live-dot {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; color: var(--red);
  background: var(--red-dim); border: 1px solid rgba(255,71,87,0.2);
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.8px;
}
.live-dot::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════════════════ */
.lb-list {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 16px;
}

/* stagger-in animation */
.lb-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 13px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideInUp 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lb-item:active { transform: scale(0.98); }

/* stagger delays */
.lb-item:nth-child(1) { animation-delay: 0.04s; }
.lb-item:nth-child(2) { animation-delay: 0.08s; }
.lb-item:nth-child(3) { animation-delay: 0.12s; }
.lb-item:nth-child(4) { animation-delay: 0.16s; }
.lb-item:nth-child(5) { animation-delay: 0.20s; }
.lb-item:nth-child(6) { animation-delay: 0.24s; }
.lb-item:nth-child(n+7) { animation-delay: 0.26s; }

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top-3 special styling */
.lb-item.top1 {
  background: linear-gradient(135deg, rgba(245,197,24,0.14) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(245,197,24,0.35);
  box-shadow: 0 0 24px rgba(245,197,24,0.10), inset 0 1px 0 rgba(245,197,24,0.15);
}
.lb-item.top1 .lb-profit {
  text-shadow: 0 0 20px var(--green-glow);
}
.lb-item.top2 {
  background: linear-gradient(135deg, rgba(200,200,220,0.10) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(192,192,220,0.25);
}
.lb-item.top3 {
  background: linear-gradient(135deg, rgba(249,115,22,0.12) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(249,115,22,0.28);
}
.lb-item.is-real {
  background: linear-gradient(135deg, rgba(0,217,126,0.13) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(0,217,126,0.40);
  box-shadow: 0 0 20px rgba(0,217,126,0.12);
}

/* Rank badge */
.lb-badge {
  flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  position: relative; overflow: hidden;
}
.lb-badge::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.lb-badge.r1 { background: linear-gradient(145deg, #fbbf24, #d97706); }
.lb-badge.r2 { background: linear-gradient(145deg, #d1d5db, #9ca3af); }
.lb-badge.r3 { background: linear-gradient(145deg, #fb923c, #c2410c); }
.lb-badge.rn {
  background: linear-gradient(145deg, #7c3aed, #4338ca);
  font-size: 18px; font-weight: 900; color: rgba(255,255,255,0.9);
}

.lb-info { flex: 1; min-width: 0; }
.lb-name {
  font-size: 14.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); display: flex; align-items: center; gap: 6px;
}
.lb-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }

.tag-vip {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #f5c518, #f97316);
  color: #000; padding: 2px 7px; border-radius: 20px;
}
.tag-you {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 800;
  background: var(--green); color: #000;
  padding: 2px 7px; border-radius: 20px;
}

.lb-right { text-align: right; flex-shrink: 0; }
.lb-profit {
  font-size: 16px; font-weight: 900;
  color: var(--green); font-variant-numeric: tabular-nums;
}
.lb-pos { font-size: 11px; color: var(--text-3); margin-top: 3px; font-weight: 600; }

/* Flash animations */
.lb-profit.flash-up {
  animation: flashUp 0.6s ease;
}
.lb-profit.flash-down {
  animation: flashDown 0.6s ease;
}
@keyframes flashUp {
  0%   { color: #fff; text-shadow: 0 0 16px rgba(0,217,126,0.8); transform: scale(1.08); }
  100% { color: var(--green); text-shadow: none; transform: scale(1); }
}
@keyframes flashDown {
  0%   { color: var(--red); text-shadow: 0 0 16px rgba(255,71,87,0.6); }
  100% { color: var(--green); text-shadow: none; }
}

/* ═══════════════════════════════════════════════════════
   CTA CARD
═══════════════════════════════════════════════════════ */
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 55%, #0f4c37 100%);
  border-radius: 24px; padding: 22px 18px;
  margin: 14px 16px 0;
  animation: fadeInUp 0.5s ease 0.3s both;
}
.cta-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.09); pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.cta-row { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.cta-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.18); display: flex;
  align-items: center; justify-content: center; font-size: 26px;
  flex-shrink: 0; animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.cta-text-title {
  font-size: 17px; font-weight: 900; color: #fff; margin-bottom: 5px;
}
.cta-text-sub {
  font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.5;
}
.cta-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: #fff; color: #065f46;
  border: none; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.12s, box-shadow 0.12s;
}
.cta-btn:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

/* ═══════════════════════════════════════════════════════
   PERIOD TABS
═══════════════════════════════════════════════════════ */
.period-tabs {
  display: flex; gap: 8px;
  padding: 14px 16px 0;
}
.period-tab {
  flex: 1; padding: 10px 4px;
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 12px; font-size: 12px; font-weight: 700;
  color: var(--text-2); cursor: pointer;
  transition: all 0.18s; text-align: center;
  backdrop-filter: blur(8px);
}
.period-tab.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.32), rgba(139,92,246,0.32));
  border-color: rgba(139,92,246,0.55);
  color: #fff;
  box-shadow: 0 0 16px rgba(139,92,246,0.22);
}

/* ═══════════════════════════════════════════════════════
   JOURNAL
═══════════════════════════════════════════════════════ */
.journal-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 14px 16px 0;
}
.stat-card {
  background: rgba(255,255,255,0.09);
  border-radius: 16px; padding: 14px 12px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.4s ease both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }
.stat-val {
  font-size: 20px; font-weight: 900; line-height: 1;
  margin-bottom: 5px; font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 10px; color: rgba(255,255,255,0.60);
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
}
.stat-val.green { color: var(--green); }
.stat-val.red   { color: var(--red); }
.stat-val.gold  { color: var(--gold); }
.stat-val.purple { color: var(--purple); }

/* Add button */
.add-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 32px); margin: 14px 16px 0;
  padding: 15px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--indigo) 100%);
  color: #fff; border: none; border-radius: 16px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 24px rgba(99,102,241,0.40);
  transition: transform 0.12s, box-shadow 0.12s;
}
.add-btn:active { transform: scale(0.97); }

/* Trade items */
.trades-wrap { padding: 0 16px; }
.trade-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 18px; padding: 13px 14px; margin-bottom: 8px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.trade-item:nth-child(1) { animation-delay: 0.04s; }
.trade-item:nth-child(2) { animation-delay: 0.08s; }
.trade-item:nth-child(3) { animation-delay: 0.12s; }
.trade-icon-wrap {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.trade-icon-wrap.win  { background: rgba(0,217,126,0.15); }
.trade-icon-wrap.loss { background: rgba(255,71,87,0.15); }
.trade-info { flex: 1; min-width: 0; }
.trade-result { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.trade-result.win  { color: var(--green); }
.trade-result.loss { color: var(--red); }
.trade-meta    { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.trade-comment { font-size: 11px; color: var(--text-2); margin-top: 4px; font-style: italic; }

/* Empty state */
.empty-state {
  text-align: center; padding: 52px 24px;
  animation: fadeInUp 0.4s ease;
}
.empty-icon { font-size: 52px; margin-bottom: 16px; }
.empty-state p { font-size: 14px; line-height: 1.7; color: var(--text-3); }
.empty-state strong { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════
   VIP TAB
═══════════════════════════════════════════════════════ */

/* VIP Hero — amber/fire */
.vip-hero-wrap {
  position: relative; overflow: hidden;
  padding: 28px 20px 26px;
  background: linear-gradient(135deg, #431407 0%, #7c2d12 35%, #b45309 70%, #9a3412 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 40px rgba(180,83,9,0.35);
}
.vip-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L0 0 0 40' fill='none' stroke='white' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
}
.vip-hero-blob1 {
  position: absolute; top: -70px; right: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  pointer-events: none;
}
.vip-hero-blob2 {
  position: absolute; bottom: -50px; left: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.15), transparent 70%);
  pointer-events: none;
}
.vip-hero-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  background-size: 300% 100%;
  animation: shimmerSweep 6s ease-in-out infinite;
}
.vip-hero-inner { position: relative; display: flex; align-items: center; gap: 16px; }
.vip-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; flex-shrink: 0;
  box-shadow: 0 0 28px rgba(245,197,24,0.45), 0 4px 20px rgba(0,0,0,0.3);
  animation: avatarPulse 2.5s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,100% { box-shadow: 0 0 28px rgba(245,197,24,0.45), 0 4px 20px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 0 44px rgba(245,197,24,0.70), 0 4px 20px rgba(0,0,0,0.3); }
}
.vip-name { font-size: 22px; font-weight: 900; color: #fff; }
.vip-rank-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 5px;
  background: linear-gradient(90deg, #f5c518, #f97316);
  color: #000; font-size: 10px; font-weight: 900;
  padding: 4px 12px; border-radius: 20px; letter-spacing: 1px;
}
.vip-online {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.vip-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: onlinePulse 1.6s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%,100% { box-shadow: 0 0 6px var(--green); transform: scale(1); }
  50%      { box-shadow: 0 0 14px var(--green); transform: scale(1.2); }
}

/* VIP body */
.vip-body { padding: 16px 16px 0; }

.big-profit-card {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px; padding: 22px 18px; text-align: center;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.5s ease 0.1s both;
}
.big-profit-card::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 200px; height: 100px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,217,126,0.08), transparent 70%);
  pointer-events: none;
}
.big-profit-label {
  font-size: 10px; font-weight: 800; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.big-profit-value {
  font-size: 44px; font-weight: 900;
  color: var(--green); font-variant-numeric: tabular-nums;
  line-height: 1; letter-spacing: -1px;
  text-shadow: 0 0 32px var(--green-glow);
  animation: countInScale 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}
@keyframes countInScale {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.big-profit-sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* VIP stats grid */
.vip-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.vip-stat {
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 16px; padding: 14px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.4s ease both;
}
.vip-stat:nth-child(1) { animation-delay: 0.10s; }
.vip-stat:nth-child(2) { animation-delay: 0.14s; }
.vip-stat:nth-child(3) { animation-delay: 0.18s; }
.vip-stat:nth-child(4) { animation-delay: 0.22s; }
.vip-stat:nth-child(5) { animation-delay: 0.26s; }
.vip-stat:nth-child(6) { animation-delay: 0.30s; }
.vip-stat-icon { font-size: 18px; margin-bottom: 7px; }
.vip-stat-val  { font-size: 18px; font-weight: 900; line-height: 1; }
.vip-stat-lbl  { font-size: 10px; color: var(--text-3); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.8px; }

/* Sessions */
.session-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 18px; margin-bottom: 8px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.session-item:nth-child(1) { animation-delay: 0.05s; }
.session-item:nth-child(2) { animation-delay: 0.10s; }
.session-item:nth-child(3) { animation-delay: 0.15s; }
.session-item:nth-child(4) { animation-delay: 0.19s; }
.session-icon-wrap {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.session-icon-wrap.win  { background: rgba(0,217,126,0.16); }
.session-icon-wrap.loss { background: rgba(255,71,87,0.16); }
.session-info { flex: 1; }
.session-game { font-size: 13px; font-weight: 700; }
.session-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.session-profit { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.session-profit.win  { color: var(--green); }
.session-profit.loss { color: var(--red); }

/* VIP buttons */
.vip-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.vip-reveal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #f5c518, #d4a010);
  color: #000; border: none; border-radius: 16px;
  font-size: 14px; font-weight: 900; cursor: pointer;
  box-shadow: 0 6px 24px rgba(245,197,24,0.40);
  transition: transform 0.12s;
  letter-spacing: 0.3px;
}
.vip-reveal-btn:active { transform: scale(0.97); }
.vip-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px;
  background: transparent; color: var(--gold);
  border: 1px solid rgba(245,197,24,0.40); border-radius: 16px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.vip-join-btn:active { background: var(--gold-dim); }

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

.modal-sheet {
  width: 100%;
  background: #0f0f22;
  border-top-left-radius: 30px; border-top-right-radius: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 18px calc(env(safe-area-inset-bottom,0px) + 28px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  max-height: 92dvh; overflow-y: auto;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px; margin: 0 auto 22px;
}
.modal-title { font-size: 18px; font-weight: 900; margin-bottom: 22px; }

.form-group { margin-bottom: 14px; }
.form-label {
  font-size: 10px; font-weight: 800; color: var(--text-3);
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; display: block;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 13px; padding: 14px 15px;
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
}
.form-input::placeholder { color: var(--text-3); }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.modal-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #000; border: none; border-radius: 16px;
  font-size: 15px; font-weight: 900; cursor: pointer; margin-top: 8px;
  box-shadow: 0 6px 24px rgba(0,217,126,0.35);
  transition: transform 0.12s;
}
.modal-submit-btn:active { transform: scale(0.97); }

/* Reveal modal */
.reveal-modal .modal-sheet { text-align: center; }

.reveal-locked {
  display: flex; align-items: center; justify-content: center;
  height: 90px; margin: 16px 0 4px; position: relative;
}
.reveal-blur-num {
  font-size: 44px; font-weight: 900; color: var(--green);
  filter: blur(14px); opacity: 0.45; user-select: none;
  letter-spacing: -1px;
}
.reveal-lock-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 7px; font-size: 14px; font-weight: 700; color: var(--text-2);
}

.reveal-unlocked { display: none; }
.reveal-big {
  font-size: 46px; font-weight: 900; color: var(--green);
  text-shadow: 0 0 36px var(--green-glow);
  margin: 16px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -1px;
  animation: countInScale 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
.reveal-period { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }

.reveal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.reveal-cell {
  background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 13px; padding: 13px 8px; backdrop-filter: blur(8px);
}
.reveal-cell-val { font-size: 15px; font-weight: 900; color: var(--green); margin-bottom: 4px; }
.reveal-cell-lbl { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; }

/* ═══════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════ */
#toast {
  position: fixed;
  top: calc(var(--header-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(-14px);
  background: rgba(15,15,30,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  border-radius: 30px; padding: 11px 22px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap; pointer-events: none;
  opacity: 0; z-index: 200;
  transition: opacity 0.22s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 85vw; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════
   SKELETON
═══════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmerBg 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmerBg {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════
   RANK PILLS
═══════════════════════════════════════════════════════ */
.rank-pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; padding: 2px 8px; border-radius: 20px; border: 1px solid;
}
.rank-Legend      { color: #f5c518; border-color: rgba(245,197,24,0.4); background: rgba(245,197,24,0.08); }
.rank-VIP-Shark   { color: #8b5cf6; border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.08); }
.rank-High-Roller { color: #f97316; border-color: rgba(249,115,22,0.4); background: rgba(249,115,22,0.08); }
.rank-Grinder     { color: #38bdf8; border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.08); }
.rank-Rookie      { color: #94a3b8; border-color: rgba(148,163,184,0.3); background: rgba(148,163,184,0.06); }

/* ═══════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-hdr-inside { padding: 14px 0 10px; }
.mt-8  { margin-top:  8px; }
.mt-12 { margin-top: 12px; }
.mb-8  { margin-bottom:  8px; }

::-webkit-scrollbar { width: 0; }

/* ─── Lucide Icon System ─────────────────────────── */
/* All SVGs injected by lucide.createIcons() */

/* Nav icons */
.nav-btn .nav-icon {
  display: flex; align-items: center; justify-content: center;
}
.nav-btn .nav-icon svg {
  width: 22px; height: 22px; stroke-width: 1.8; display: block;
}

/* Hero circle icon */
.hero-icon svg { width: 30px; height: 30px; stroke-width: 1.75; }

/* VIP avatar crown */
.vip-avatar svg { width: 38px; height: 38px; stroke-width: 1.5; }

/* Floating CTA icon */
.cta-icon svg { width: 26px; height: 26px; stroke-width: 2; }

/* VIP stats grid icons */
.vip-stat-icon svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* Win/loss circle icons in trade & session items */
.trade-icon-wrap svg   { width: 22px; height: 22px; stroke-width: 2.5; }
.session-icon-wrap svg { width: 20px; height: 20px; stroke-width: 2.5; }
.trade-icon-wrap.win svg,   .session-icon-wrap.win svg   { stroke: var(--green); }
.trade-icon-wrap.loss svg,  .session-icon-wrap.loss svg  { stroke: var(--red);   }

/* Empty state */
.empty-icon svg { width: 52px; height: 52px; stroke-width: 1.2; stroke: var(--text-3); }

/* Button icons */
.vip-reveal-btn svg, .vip-join-btn svg,
.modal-submit-btn svg, .add-btn svg {
  width: 18px; height: 18px; stroke-width: 2.2; flex-shrink: 0;
}
#add-trade-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.cta-btn svg       { width: 16px; height: 16px; stroke-width: 2; }

/* Modal title icon */
.modal-title svg {
  width: 20px; height: 20px; stroke-width: 2;
  vertical-align: -4px; margin-right: 2px;
}

/* Header title icon */
#header-title svg {
  width: 14px; height: 14px; stroke-width: 2.5;
  vertical-align: -2px; margin-right: 3px;
}

/* Section header icons */
.section-hdr-title svg {
  width: 14px; height: 14px; stroke-width: 2.5;
  vertical-align: -2px; margin-right: 3px;
}

/* Reveal lock icon */
.reveal-lock-layer svg { width: 18px; height: 18px; stroke-width: 2; }

/* Rank icon in LB meta row */
.rank-icon {
  display: inline-flex; align-items: center;
  vertical-align: middle; margin-right: 2px;
}
.rank-icon svg { width: 11px; height: 11px; stroke-width: 2.5; }

/* Tiny inline icons */
.ico-xs {
  display: inline-flex; align-items: center;
  vertical-align: middle;
}
.ico-xs svg { width: 12px; height: 12px; stroke-width: 2.5; }

/* General inline SVG baseline fix */
.lb-meta svg { vertical-align: middle; }

/* Rank badges — show number text prominently now that medals are gone */
.lb-badge.r1, .lb-badge.r2, .lb-badge.r3 {
  font-size: 20px; font-weight: 900; color: rgba(255,255,255,0.95);
  letter-spacing: -0.5px;
}
