/* nexus-dashboard.css — Supplementary styles for NEXUS dashboard pages */
/* Theme: Cyberpunk Dark | Max ~3.5KB | Pairs with app.css */

:root {
  --bg: #0F0F23;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --primary: #7C3AED;
  --primary-glow: rgba(124,58,237,.4);
  --accent: #00E5FF;
  --cyan: #00E5FF;
  --cyan-glow: rgba(0,229,255,.35);
  --pink: #F472B6;
  --success: #00DC82;
  --success-glow: rgba(0,220,130,.35);
  --danger: #F43F5E;
  --gold: #FFD700;
  --gold-glow: rgba(255,215,0,.35);
  --muted: #64748B;
  --panel-bg: rgba(30,30,60,.65);
  --panel-border: rgba(124,58,237,.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-xl: 20px;
  --font: 'Inter', -apple-system, sans-serif;
  --font-display: 'Orbitron', var(--font);
  --font-mono: 'JetBrains Mono', monospace;
  --page-pad: 16px;
  --nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max-width: 480px;
}

/* === TELEGRAM WEBVIEW SCROLL FIX === */
html, body { display: block !important; overflow: auto !important; height: auto !important; min-height: 100vh; }
body { background: var(--bg); color: var(--text); font-family: var(--font); margin: 0; padding: 0; -webkit-overflow-scrolling: touch; }
.main-content { overflow: visible !important; display: block !important; min-height: auto !important; padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px); }

/* === APP HEADER === */
.app-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(15,15,35,.85); border-bottom: 1px solid var(--panel-border); }
.app-header-inner { max-width: var(--max-width); margin: 0 auto; padding: 10px var(--page-pad); display: flex; align-items: center; justify-content: space-between; }
.app-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.app-logo-icon { width: 28px; height: 28px; }
.app-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent); }

/* === PANELS === */
.panel { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; }
.panel-sm { padding: 10px 14px; }
.glass { background: rgba(30,30,60,.45); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-md); }

/* === BUTTONS === */
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 600; cursor: pointer; transition: box-shadow .2s; }
.btn-primary:active { box-shadow: 0 0 16px var(--primary-glow); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; cursor: pointer; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #FFA500); color: #1a1a2e; border: none; border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 700; cursor: pointer; }

/* === BALANCE & LABELS === */
.balance-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2); border-radius: 20px; padding: 5px 12px; font-weight: 600; font-size: .85rem; color: var(--accent); }
.section-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }

/* === GAMES GRID === */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-md); padding: 14px 8px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .15s; cursor: pointer; position: relative; }
.game-card:active { transform: scale(.96); border-color: var(--primary); }
.game-card-icon { font-size: 1.7rem; }
.game-card-name { font-size: .72rem; font-weight: 500; text-align: center; color: var(--text-secondary); }
.game-badge { position: absolute; top: 6px; right: 6px; font-size: .55rem; font-weight: 700; background: var(--danger); color: #fff; border-radius: 8px; padding: 2px 5px; text-transform: uppercase; }

/* === BOTTOM NAV === */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: rgba(15,15,35,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--panel-border); padding-bottom: var(--safe-bottom); }
.bottom-nav-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-around; padding: 8px 0; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .65rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-item.active, .nav-item:active { color: var(--accent); }

/* === LOADING & SKELETON === */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 12px; }
.loading-dots { display: flex; gap: 6px; }
.loading-dots span { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse .8s infinite alternate; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
.loading-text { font-size: .8rem; color: var(--text-muted); }
.skeleton { background: linear-gradient(90deg, rgba(124,58,237,.08) 25%, rgba(124,58,237,.15) 50%, rgba(124,58,237,.08) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
.skeleton-card { height: 80px; border-radius: var(--radius-md); }

/* === WINS FEED === */
.wins-feed { display: flex; flex-direction: column; gap: 6px; }
.win-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: rgba(0,220,130,.04); border-radius: var(--radius-sm); font-size: .8rem; }

/* === LIVE TICKER === */
.live-ticker { overflow: hidden; border-radius: var(--radius-sm); background: rgba(0,229,255,.04); padding: 6px 0; }
.marquee-container { overflow: hidden; }
.marquee-content { display: flex; gap: 24px; animation: marquee 20s linear infinite; white-space: nowrap; font-size: .75rem; color: var(--text-secondary); }

/* === MISC === */
.error-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; z-index: 9999; animation: fadeSlide .3s; }
.online-counter { font-size: .7rem; color: var(--success); display: flex; align-items: center; gap: 4px; }
.online-counter::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite; }
.gradient-text-animate { background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% auto; animation: gradientShift 3s linear infinite; }
.animate-in { animation: fadeSlide .4s ease both; }

/* === KEYFRAMES === */
@keyframes pulse { 0%{opacity:.4;transform:scale(.9)} 100%{opacity:1;transform:scale(1)} }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes fadeSlide { 0%{opacity:0;transform:translateY(-8px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes gradientShift { 0%{background-position:0% center} 100%{background-position:200% center} }
