/* BitBest — 2 Themes: Cyber Neon + Vivid Tri-Color */

/* ── Cyber Neon (dark) ── */
html[data-theme="cyber"] {
  --bg-deep: #050810;
  --bg-panel: #0a0f1a;
  --bg-card: #0d1525;
  --bg-input: rgba(0, 0, 0, 0.4);
  --border: rgba(0, 212, 255, 0.15);
  --accent: #00d4ff;
  --accent-dim: #0099cc;
  --accent-secondary: #a855f7;
  --green: #00ff88;
  --gold: #fbbf24;
  --red: #ff4466;
  --blue: #3b82f6;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --btn-primary-text: #050810;
  --header-bg: rgba(5, 8, 16, 0.95);
  --sidebar-bg: #0a0f1a;
  --overlay: rgba(0, 0, 0, 0.65);
  --cyan: var(--accent);
  --purple: var(--accent-secondary);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.35);
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.35);
  --flat-theme: 0;
}

/* ── Vivid Tri-Color (white) ── */
html[data-theme="vivid"] {
  --color-1: #FF8000;
  --color-2: #FFFF00;
  --color-3: #80FF00;
  --bg-deep: #ffffff;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --border: #fde68a;
  --accent: #FF8000;
  --accent-dim: #e67300;
  --accent-secondary: #80FF00;
  --green: #5cb800;
  --gold: #e6c200;
  --red: #e63946;
  --blue: #2563eb;
  --text: #1a1408;
  --text-dim: #6b5c3e;
  --btn-primary-text: #1a1408;
  --header-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --overlay: rgba(26, 20, 8, 0.35);
  --cyan: #FF8000;
  --purple: #80FF00;
  --glow-cyan: none;
  --glow-green: none;
  --flat-theme: 1;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Plus Jakarta Sans', sans-serif;
}

/* ── Global apply ── */
body, .dashboard-body, .main-content, .content-area { background: var(--bg-deep); color: var(--text); }
.header, .mobile-topbar, .mobile-bottom-nav { background: var(--header-bg) !important; }
.sidebar { background: var(--sidebar-bg) !important; }
.main-content .sidebar-overlay { background: var(--overlay) !important; }

.auth-form input, .form-group input, .form-group select, .form-group textarea {
  background: var(--bg-input) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.dash-card, .panel-box, .auth-card, .bot-dashboard-panel, .tier-card, .step-card, .referral-widget, .admin-card {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim)) !important;
  color: var(--btn-primary-text) !important;
  border: none;
}
.btn-outline {
  color: var(--accent) !important;
  border-color: var(--border) !important;
  background: transparent !important;
}
html[data-theme="cyber"] .btn-outline:hover { background: rgba(0, 212, 255, 0.08) !important; }
html[data-theme="vivid"] .btn-outline:hover { background: rgba(255, 128, 0, 0.06) !important; }

.accent, .logo-icon { color: var(--accent) !important; }
.progress-fill { background: var(--accent) !important; }

.gradient-text {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

/* White theme — flat, no scanlines */
html[data-theme="vivid"] .btn-primary {
  background: linear-gradient(135deg, var(--color-1), #e67300) !important;
}
html[data-theme="vivid"] .btn-primary:hover {
  background: var(--accent-dim) !important;
}
html[data-theme="vivid"] .progress-fill {
  background: linear-gradient(90deg, var(--color-1), var(--color-3)) !important;
}

html[data-theme="vivid"] .scanlines,
html[data-theme="vivid"] .grid-bg { display: none !important; }

html[data-theme="vivid"] .panel-box,
html[data-theme="vivid"] .dash-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="vivid"] body {
  font-family: var(--font-mono) !important;
}
html[data-theme="vivid"] h1, html[data-theme="vivid"] h2, html[data-theme="vivid"] h3,
html[data-theme="vivid"] .page-heading, html[data-theme="vivid"] .logo-text,
html[data-theme="vivid"] .mobile-brand {
  font-family: var(--font-display) !important;
}

html[data-theme="vivid"] .sidebar-nav a:hover,
html[data-theme="vivid"] .sidebar-nav a.active {
  background: rgba(255, 255, 0, 0.12) !important;
  color: var(--color-1) !important;
  border-left: 3px solid var(--color-1);
}

html[data-theme="vivid"] .value.green, html[data-theme="vivid"] .green { color: var(--color-3) !important; }
html[data-theme="vivid"] .value.cyan, html[data-theme="vivid"] .cyan { color: var(--color-1) !important; }

/* Page accents */
.theme-page-accent {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.theme-accent-vivid {
  background:
    radial-gradient(ellipse 50% 40% at 95% 5%, rgba(255, 128, 0, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 95%, rgba(128, 255, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 30% 25% at 50% 0%, rgba(255, 255, 0, 0.06), transparent 45%);
}

/* Theme picker */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.theme-option { position: relative; cursor: pointer; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.theme-option input:checked + .theme-option-card {
  border-color: var(--accent);
}
.theme-preview { height: 72px; display: flex; }
.theme-preview span { flex: 1; }
.theme-option-info { padding: 14px; background: var(--bg-card); }
.theme-option-info strong { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.theme-option-info small { color: var(--text-dim); font-size: 0.72rem; }