/* =====================================================
   TIPPIN — Main Stylesheet
   Dark Purple Theme · Inter Font
   ===================================================== */

:root {
  --brand: #8026D9;
  --brand-light: #a855f7;
  --brand-lighter: #c084fc;
  --brand-pale: #e9d5ff;
  --brand-bg: #8026D933;
  --brand-hover: #9333ea;

  --bg-base: #0d0d0f;
  --bg-card: #141416;
  --bg-card2: #1a1a1d;
  --bg-input: #1e1e21;
  --bg-sidebar: #111113;

  --border: #222224;
  --border-light: #2a2a2e;

  --text-primary: #FAFAFA;
  --text-secondary: #9CA3AF;
  --text-muted: #666666;

  --success: #22c55e;
  --success-bg: #22c55e22;
  --danger: #F15B5B;
  --danger-bg: #F15B5B33;
  --warning: #f59e0b;
  --warning-bg: #f59e0b22;
  --info: #3b82f6;

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

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-brand: 0 4px 24px rgba(128,38,217,0.25);

  --sidebar-width: 240px;
  --header-height: 72px;

  --transition: 0.18s ease;
}

/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ──────────────────────────────── */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── Auth / Landing ──────────────────────────── */
.bg-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #8026D940 0%, transparent 70%),
              var(--bg-base);
  min-height: 100vh;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--brand-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.bg-dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.input-dark {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
  transition: border-color var(--transition);
}
.input-dark:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(128,38,217,0.15) !important;
  outline: none !important;
}
.input-dark::placeholder { color: var(--text-muted) !important; }

.btn-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.btn-tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary-custom {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-custom:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}
.btn-primary-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-google {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.btn-google:hover { background: var(--bg-input); }

.divider-or {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.25rem 0;
  position: relative;
}
.divider-or::before, .divider-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.link-secondary { color: var(--text-secondary); font-size: 0.875rem; }
.link-secondary:hover { color: var(--brand-lighter); }
.link-secondary-login { color: var(--brand-lighter); }

.terms-text { color: var(--text-muted); font-size: 0.8rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ── Dashboard Layout ────────────────────────── */
.dashboard-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg-base);
}

.dashboard-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--brand-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* ── Sidebar Nav ─────────────────────────────── */
.dashboard-nav { list-style: none; }
.dashboard-nav-item { margin-bottom: 0.25rem; }
.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.dashboard-nav-link:hover {
  background: var(--bg-card2);
  color: var(--text-primary);
}
.dashboard-nav-link.active {
  background: var(--brand-bg);
  color: var(--brand-lighter);
}
.dashboard-nav-link img { width: 18px; height: 18px; opacity: 0.7; }
.dashboard-nav-link.active img, .dashboard-nav-link:hover img { opacity: 1; }

/* Wallet in sidebar */
.sidebar-wallet {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.sidebar-wallet-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-wallet-balance {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.2rem;
}
.sidebar-wallet-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
}
.sidebar-wallet-toggle:hover { color: var(--brand-lighter); }

/* ── Dashboard Header ────────────────────────── */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.dashboard-subtitle { color: var(--text-secondary); font-size: 0.875rem; margin-top: 0.2rem; }

.dashboard-wallet-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-bg);
  color: var(--brand-lighter);
  border: 1px solid var(--brand);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.dashboard-wallet-btn:hover { background: var(--brand); color: #fff; }

.dashboard-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-bg);
  color: var(--brand-lighter);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  border: 2px solid var(--brand);
}

/* ── Cards ───────────────────────────────────── */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-dark-sm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

/* ── Stat Cards ──────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--brand); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-label { font-size: 0.75rem; color: var(--text-secondary); }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.stat-change { font-size: 0.75rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Badges ──────────────────────────────────── */
.badge-verified {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-unverified {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-demo {
  background: var(--bg-card2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
}
.badge-market {
  background: var(--brand-bg);
  color: var(--brand-lighter);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-won { background: var(--success-bg); color: var(--success); border-radius: var(--radius-full); padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 600; }
.badge-lost { background: var(--danger-bg); color: var(--danger); border-radius: var(--radius-full); padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 600; }
.badge-active { background: var(--info)22; color: var(--info); border-radius: var(--radius-full); padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 600; }

/* ── Verification Table ──────────────────────── */
.verification-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.vgame-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  transition: all var(--transition);
}
.vgame-cell .game-num { font-size: 0.6rem; color: var(--text-muted); margin-bottom: 2px; }
.vgame-cell .game-icon { font-size: 1.1rem; }
.vgame-cell.win { background: var(--success-bg); border-color: var(--success); }
.vgame-cell.loss { background: var(--danger-bg); border-color: var(--danger); }
.vgame-cell.pending { opacity: 0.5; }

.verification-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.vstat { text-align: center; }
.vstat-num { font-size: 1.4rem; font-weight: 700; }
.vstat-label { font-size: 0.7rem; color: var(--text-secondary); }
.wins-num { color: var(--success); }
.losses-num { color: var(--danger); }

/* ── Odds Selector ───────────────────────────── */
.odds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.odds-btn {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.odds-btn:hover { border-color: var(--brand); color: var(--brand-lighter); }
.odds-btn.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

/* ── Market Tabs ─────────────────────────────── */
.market-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.market-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.market-tab:hover { border-color: var(--brand); color: var(--brand-lighter); }
.market-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── Tip Card ────────────────────────────────── */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.tip-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.tip-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.tip-card-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.tip-card-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }
.tip-odds {
  font-size: 1.1rem; font-weight: 700; color: var(--brand-lighter);
  background: var(--brand-bg);
  border-radius: var(--radius-md);
  padding: 0.25rem 0.6rem;
}
.tip-booking-code {
  background: var(--bg-card2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--brand-lighter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
}
.tip-booking-code:hover { background: var(--bg-input); }

/* ── Tipster Card ────────────────────────────── */
.tipster-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition);
  text-align: center;
}
.tipster-card:hover { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.tipster-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-bg);
  border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--brand-lighter);
  margin: 0 auto 0.75rem;
}
.tipster-name { font-size: 0.95rem; font-weight: 700; }
.tipster-win-rate { font-size: 1.2rem; font-weight: 700; color: var(--success); }
.tipster-stats { display: flex; justify-content: center; gap: 1rem; margin: 0.5rem 0; }
.tipster-stat-item { text-align: center; }
.tipster-stat-val { font-size: 0.9rem; font-weight: 600; }
.tipster-stat-lbl { font-size: 0.65rem; color: var(--text-secondary); }

/* ── Tables ──────────────────────────────────── */
.table-dark-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-dark-custom thead th {
  background: var(--bg-card2);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.table-dark-custom tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.table-dark-custom tbody tr:hover td { background: var(--bg-card2); }
.table-dark-custom tbody tr:last-child td { border-bottom: none; }

/* ── Forms ───────────────────────────────────── */
.form-label-dark { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.4rem; display: block; }
.form-control-dark {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  width: 100%;
  transition: border-color var(--transition);
}
.form-control-dark:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(128,38,217,0.12);
  outline: none;
}
.form-select-dark {
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%239CA3AF'/%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  font-size: 0.875rem;
  width: 100%;
  cursor: pointer;
}
.form-select-dark:focus { border-color: var(--brand); outline: none; }

/* ── Wallet UI ───────────────────────────────── */
.wallet-balance-card {
  background: linear-gradient(135deg, #8026D9 0%, #6d28d9 50%, #4f46e5 100%);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.wallet-balance-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.wallet-balance-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }
.wallet-balance-amount { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0.5rem 0; }
.wallet-balance-hidden { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.5); letter-spacing: 0.3em; }
.wallet-btn { padding: 0.6rem 1.25rem; border-radius: var(--radius-md); font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); }
.wallet-btn-add { background: rgba(255,255,255,0.2); color: #fff; }
.wallet-btn-add:hover { background: rgba(255,255,255,0.3); }
.wallet-btn-withdraw { background: #fff; color: var(--brand); }
.wallet-btn-withdraw:hover { background: var(--brand-pale); }

/* ── Account Settings ────────────────────────── */
.account-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.account-tab {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
}
.account-tab:hover { color: var(--text-primary); }
.account-tab.active { color: var(--brand-lighter); border-bottom-color: var(--brand); }

/* ── Notifications ───────────────────────────── */
.notif-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.notif-item:hover { background: var(--bg-card2); }
.notif-item.unread { background: var(--brand-bg); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 6px; }
.notif-title { font-size: 0.875rem; font-weight: 600; }
.notif-msg { font-size: 0.8rem; color: var(--text-secondary); }
.notif-time { font-size: 0.7rem; color: var(--text-muted); }

/* ── Level & Badges ──────────────────────────── */
.level-bar-bg { background: var(--border); border-radius: var(--radius-full); height: 6px; overflow: hidden; max-width: 100%; }
.level-bar-fill { background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: var(--radius-full); height: 6px; transition: width 0.5s ease; max-width: 100%; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.25rem 0.6rem;
  font-size: 0.7rem; font-weight: 500;
}
.badge-chip.earned { border-color: var(--brand); color: var(--brand-lighter); background: var(--brand-bg); }

/* ── Video Slot ──────────────────────────────── */
.video-slot {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color var(--transition);
  overflow: hidden;
  position: relative;
}
.video-slot:hover { border-color: var(--brand); }
.video-slot video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.video-play-icon { font-size: 2.5rem; color: var(--brand-lighter); }
.video-label { font-size: 0.8rem; color: var(--text-secondary); }

/* ── AI Chat Bot ─────────────────────────────── */
.chat-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  z-index: 1000;
  transition: transform var(--transition), background var(--transition);
}
.chat-fab:hover { transform: scale(1.1); background: var(--brand-hover); }

.chat-window {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 999;
  display: none;
  flex-direction: column;
  max-height: 420px;
}
.chat-window.open { display: flex; }
.chat-header { background: var(--brand); padding: 0.875rem 1rem; color: #fff; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chat-msg { max-width: 85%; padding: 0.5rem 0.75rem; border-radius: var(--radius-md); font-size: 0.8rem; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-card2); color: var(--text-primary); align-self: flex-start; border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md); }
.chat-msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-radius: var(--radius-md) 4px var(--radius-md) var(--radius-md); }
.chat-input-row { display: flex; border-top: 1px solid var(--border); }
.chat-input { flex: 1; background: var(--bg-card); border: none; color: var(--text-primary); padding: 0.75rem 1rem; font-size: 0.8rem; outline: none; }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send { background: var(--brand); border: none; color: #fff; padding: 0 1rem; cursor: pointer; font-size: 1rem; }
.chat-send:hover { background: var(--brand-hover); }

/* ── Language Switcher ───────────────────────── */
.lang-switcher {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.lang-switcher:hover { border-color: var(--brand); color: var(--brand-lighter); }

/* ── Recent Winners Ticker ───────────────────── */
.winners-ticker {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.winners-ticker-inner { display: inline-flex; gap: 2rem; animation: ticker 20s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.winner-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.winner-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ── Free Tip Banner ─────────────────────────── */
.free-tip-banner {
  background: linear-gradient(135deg, var(--brand-bg), rgba(168,85,247,0.1));
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.free-tip-count { font-size: 1.5rem; font-weight: 700; color: var(--brand-lighter); }

/* ── Mobile Header ───────────────────────────── */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.menu-toggle {
  background: none; border: none;
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Global Loader ───────────────────────────── */
.global-loader {
  position: fixed; inset: 0;
  background: rgba(13,13,15,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.global-loader.active { opacity: 1; pointer-events: all; }
.loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.75rem; }

/* ── Toast ───────────────────────────────────── */
.toast-container {
  position: fixed; top: 1.25rem; right: 1.25rem;
  z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  min-width: 240px;
  display: flex; align-items: center; gap: 0.75rem;
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--brand); }

/* ── Transparency Page ───────────────────────── */
.allocation-bar { display: flex; height: 12px; border-radius: var(--radius-full); overflow: hidden; margin: 1rem 0; }
.allocation-segment { height: 100%; transition: width 0.5s ease; }
.allocation-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Pagination ──────────────────────────────── */
.pagination-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-secondary); }
.page-btn { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-primary); font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1199px) {
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; padding: 0; }
  .mobile-header { display: flex; }
  .dashboard-header { padding: 1.25rem; flex-wrap: wrap; gap: 1rem; }
  .card-dark, .card-dark-sm { border-radius: var(--radius-md); }
}

@media (max-width: 767px) {
  .verification-grid { grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
  .stat-card { padding: 1rem; }
  .tipster-stats { gap: 0.5rem; }
  .chat-window { width: calc(100vw - 2rem); right: 1rem; }
}


/* ═══════════════════════════════════════════════════════════════
   TIPSTER THEME — Deep purple/dark, bold, professional signals
   ═══════════════════════════════════════════════════════════════ */
.theme-tipster {
  --brand:         #8026D9;
  --brand-light:   #a855f7;
  --brand-lighter: #c084fc;
  --brand-bg:      #8026D933;
  --brand-hover:   #9333ea;
  --bg-base:       #0b0b0d;
  --bg-card:       #111113;
  --bg-card2:      #161618;
  --bg-sidebar:    #0d0d0f;
  --border:        #1e1e21;
  --border-light:  #252528;
}

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIBER THEME — Teal/emerald, lighter, fresh, discovery
   ═══════════════════════════════════════════════════════════════ */
.theme-subscriber {
  --brand:         #0ea5e9;
  --brand-light:   #38bdf8;
  --brand-lighter: #7dd3fc;
  --brand-pale:    #e0f2fe;
  --brand-bg:      #0ea5e920;
  --brand-hover:   #0284c7;
  --bg-base:       #0c1117;
  --bg-card:       #131922;
  --bg-card2:      #1a2333;
  --bg-input:      #1e2a3d;
  --bg-sidebar:    #0f1620;
  --border:        #1e2d42;
  --border-light:  #243550;
  --shadow-brand:  0 4px 24px rgba(14,165,233,0.2);
}

/* ── Role badge in sidebar ────────────────────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.role-badge-tipster {
  background: var(--brand-bg);
  color: var(--brand-lighter);
  border: 1px solid var(--brand);
}
.role-badge-subscriber {
  background: var(--brand-bg);
  color: var(--brand-lighter);
  border: 1px solid var(--brand);
}

/* ── Subscriber sidebar accent line ──────────────────────────── */
.theme-subscriber .dashboard-sidebar {
  border-right-color: #1e2d42;
}
.theme-subscriber .dashboard-nav-link.active {
  background: rgba(14,165,233,0.12);
  color: #7dd3fc;
}
.theme-subscriber .dashboard-nav-link:hover {
  background: rgba(14,165,233,0.07);
}
.theme-subscriber .dashboard-logo {
  background: linear-gradient(135deg, #fff 30%, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.theme-subscriber .sidebar-wallet {
  border-color: #1e2d42;
  background: #1a2333;
}
.theme-subscriber .stat-card:hover { border-color: var(--brand); }
.theme-subscriber .tip-card:hover  { border-color: var(--brand); }
.theme-subscriber .btn-primary-custom {
  background: var(--brand);
}
.theme-subscriber .btn-primary-custom:hover {
  background: var(--brand-hover);
}
.theme-subscriber .dashboard-wallet-btn {
  background: rgba(14,165,233,0.12);
  color: #7dd3fc;
  border-color: var(--brand);
}
.theme-subscriber .dashboard-wallet-btn:hover {
  background: var(--brand);
  color: #fff;
}
.theme-subscriber .market-tab.active {
  background: var(--brand);
  border-color: var(--brand);
}
.theme-subscriber .wallet-balance-card {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #0284c7 100%);
}
.theme-subscriber .bg-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #0ea5e930 0%, transparent 70%),
              var(--bg-base);
}
.theme-subscriber .dashboard-header {
  border-bottom-color: #1e2d42;
}

/* ── Tipster sidebar top accent bar ──────────────────────────── */
.theme-tipster .dashboard-sidebar::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  margin: -1.5rem -1rem 1.25rem;
}