:root {
  --bg: #060d18;
  --bg-2: #0a1424;
  --surface: #0f1b2e;
  --surface-2: #16233a;
  --border: #1e3050;
  --text: #e8eef7;
  --muted: #8ea3bf;
  --primary: #05c985;
  --primary-2: #0ea5e9;
  --primary-grad: linear-gradient(135deg, #05c985, #0ea5e9);
  --gold: #f5b301;
  --red: #f43f5e;
  --kz: #22c55e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --bot-kappa: #22c55e;
  --bot-star: #f5b301;
  --bot-delfanio: #22d3ee;
  --bot-bravo: #f97316;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 320px at 15% -5%, rgba(5, 201, 133, 0.16), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(5, 201, 133, 0.08), transparent 60%);
}

#app { position: relative; z-index: 1; min-height: calc(100vh - 220px); }

.container { width: min(1240px, 94vw); margin: 0 auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: #7ef0cd; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 13, 24, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
  color: var(--text);
  white-space: nowrap;
}
.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-grad);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #04120c;
  box-shadow: 0 4px 14px rgba(5, 201, 133, 0.4);
}
.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.main-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: #0b1f16; background: var(--primary); }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.balance-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 5px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  line-height: 1.15;
}
.balance-pill small { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.balance-pill strong { font-size: 0.92rem; color: var(--primary); }
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: #04120c;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
}
.user-pill span { font-size: 0.82rem; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.16s;
  color: var(--text);
  background: var(--surface-2);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary-grad); color: #04120c; box-shadow: 0 6px 18px rgba(5, 201, 133, 0.3); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: rgba(244, 63, 94, 0.14); color: var(--red); border-color: rgba(244, 63, 94, 0.4); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 9px; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Cards & sections ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.section { padding: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--muted); font-size: 0.92rem; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
strong { font-weight: 700; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.7rem;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 12px 0 16px;
}
.hero h1 .grad {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--primary); }
.hero-stat span { font-size: 0.8rem; color: var(--muted); }
.hero-visual {
  background: linear-gradient(160deg, rgba(5,201,133,0.12), rgba(14,165,233,0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.live-strip { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }

/* ---------- Bot cards ---------- */
.bot-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: 0.18s;
  overflow: hidden;
}
.bot-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--primary)); }
.bot-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--primary));
}
.bot-card .bot-top { display: flex; align-items: center; gap: 12px; }
.bot-avatar {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #04120c;
  background: var(--accent, var(--primary));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent, var(--primary)) 45%, transparent);
}
.bot-card h3 { font-size: 1.12rem; }
.bot-card .tag { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.bot-range {
  display: flex;
  justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
}
.bot-range span b { display: block; font-size: 0.94rem; color: var(--text); }
.bot-range span small { color: var(--muted); font-size: 0.7rem; }
.bot-status { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; }
.bot-status .pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.pill-active { background: rgba(34,197,94,0.16); color: var(--kz); border: 1px solid rgba(34,197,94,0.4); }
.pill-off { background: rgba(142,163,191,0.12); color: var(--muted); border: 1px solid var(--border); }
.pill-live { background: rgba(244,63,94,0.16); color: var(--red); border: 1px solid rgba(244,63,94,0.4); }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding: 50px 0; }
.auth-form-card { max-width: 460px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: 0.15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,201,133,0.15); }
.form-error { color: var(--red); font-size: 0.82rem; margin-top: 6px; }
.auth-switch { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-side h2 { font-size: 2rem; margin-bottom: 10px; }
.auth-side ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li .check { color: var(--primary); font-weight: 900; }

/* ---------- Dashboard ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat-card small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.68rem; }
.stat-card strong { font-size: 1.35rem; display: block; margin-top: 6px; }
.stat-card .delta { font-size: 0.78rem; font-weight: 700; margin-top: 4px; display: inline-flex; gap: 4px; }
.delta-up { color: var(--kz); }
.delta-down { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; margin-top: 24px; }
.ops-feed { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.op-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}
.op-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  background: var(--surface-2);
}
.op-item .op-body { flex: 1; }
.op-item .op-text { font-size: 0.87rem; }
.op-item .op-time { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.op-amount { font-weight: 800; font-size: 0.88rem; white-space: nowrap; }
.amount-up { color: var(--kz); }
.amount-down { color: var(--red); }

/* ---------- Sportsbook ---------- */
.league-block { margin-bottom: 24px; }
.league-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.league-title .flag {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 0.6rem;
}
.match-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}
.match-teams { display: flex; flex-direction: column; gap: 2px; }
.match-teams .m { display: flex; align-items: center; gap: 8px; }
.match-teams .score { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.match-time {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 20px;
}
.match-odds { display: flex; gap: 8px; }
.odd-btn {
  min-width: 62px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  transition: 0.14s;
}
.odd-btn:hover { border-color: var(--primary); background: rgba(5,201,133,0.1); }
.odd-btn small { display: block; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; }
.odd-btn b { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.odds-drift-up { color: var(--kz); }
.odds-drift-down { color: var(--red); }

.match-stats { display: flex; gap: 14px; font-size: 0.75rem; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }

/* ---------- Casino ---------- */
.casino-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.16s;
}
.game-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.game-card .game-art {
  height: 110px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(135deg, #14532d, #0c4a6e);
}
.game-card h4 { font-size: 1rem; }
.game-card .game-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }

/* ---------- Aviator ---------- */
.aviator-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.aviator-canvas-box {
  background: linear-gradient(180deg, #0a1a30, #071120);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
}
#aviatorCanvas { width: 100%; height: 460px; display: block; border-radius: 10px; background: #060d18; }
.aviator-multiplier {
  position: absolute;
  top: 18px; left: 0; right: 0;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 24px rgba(5,201,133,0.5);
}
.aviator-multiplier.crashed { color: var(--red); }
.aviator-phase {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.aviator-side { display: flex; flex-direction: column; gap: 14px; }
.aviator-betbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

/* ---------- Bots page ---------- */
.bot-page-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 22px; align-items: start; }
.bot-hero {
  border-radius: var(--radius);
  padding: 28px;
  background:
    radial-gradient(400px 200px at 10% 0%, color-mix(in srgb, var(--accent, var(--primary)) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.bot-hero h1 { font-size: 2rem; display: flex; align-items: center; gap: 12px; }
.bot-hero .limits { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.bot-hero .limits div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 9px 14px; }
.bot-hero .limits small { display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
.bot-hero .limits b { font-size: 1rem; }
.bot-hero p.desc { color: var(--muted); margin-top: 14px; max-width: 560px; }
.bot-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signal-bar { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border); }
.signal-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.bot-log {
  max-height: 430px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 6px;
}
.log-line {
  display: flex;
  gap: 10px;
  font-size: 0.83rem;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, var(--primary));
  border-radius: 9px;
}
.log-line .lt { color: var(--muted); font-size: 0.7rem; white-space: nowrap; padding-top: 2px; }
.log-line.win { border-left-color: var(--kz); }
.log-line.loss { border-left-color: var(--red); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.kpi small { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.6px; display: block; }
.kpi b { font-size: 1.05rem; display: block; margin-top: 4px; }

/* ---------- Chat ---------- */
.chat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.chat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.chat-head .avatar { width: 38px; height: 38px; font-size: 0.95rem; }
.chat-head h4 { font-size: 0.98rem; }
.chat-head .sub { font-size: 0.74rem; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.bubble {
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--border);
}
.msg.bot .bubble { background: var(--bg-2); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--primary-grad); color: #04120c; border-top-right-radius: 4px; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 12px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.chat-input-row .input { flex: 1; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chip {
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  cursor: pointer;
  transition: 0.14s;
}
.chat-chip:hover { color: var(--primary); border-color: var(--primary); }
.ceo-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(5,201,133,0.08);
  border: 1px solid rgba(5,201,133,0.3);
  border-radius: 12px;
  font-size: 0.84rem;
}

/* ---------- Payments ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.86rem;
  font-weight: 600;
}
.pay-method:hover { border-color: var(--primary); }
.pay-method.sel { border-color: var(--primary); background: rgba(5,201,133,0.1); }
.pay-method .pm-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
}
.trans-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 8px;
  font-size: 0.86rem;
}
.status-badge { margin-left: auto; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.st-pending { background: rgba(245,179,1,0.15); color: var(--gold); }
.st-complete { background: rgba(34,197,94,0.15); color: var(--kz); }
.st-failed { background: rgba(244,63,94,0.15); color: var(--red); }

/* ---------- History / tables ---------- */
.history-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 9px;
}
.history-item .hi-main { flex: 1; }
.history-item .hi-title { font-size: 0.9rem; font-weight: 700; }
.history-item .hi-sub { font-size: 0.76rem; color: var(--muted); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.tab.active { background: var(--primary); color: #04120c; border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(6, 13, 24, 0.9);
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
.footer-grid h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 14px; }
.footer-grid a, .footer-grid li { display: block; color: var(--muted); font-size: 0.86rem; margin-bottom: 9px; }
.footer-grid li { list-style: none; }
.footer-grid a:hover { color: var(--primary); }
.disclaimer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
}
.copyright { text-align: center; padding: 16px 0 26px; color: var(--muted); font-size: 0.78rem; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 80px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 13px 16px;
  min-width: 260px;
  max-width: 360px;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
}
.toast.error { border-left-color: var(--red); }
.toast.gold { border-left-color: var(--gold); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Empty states ---------- */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty .big { font-size: 2rem; margin-bottom: 8px; font-weight: 900; color: var(--surface-2); }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 10px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-sm { gap: 8px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4, .stat-cards, .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .casino-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .dashboard-grid, .bot-page-grid, .chat-wrap, .pay-grid, .aviator-wrap, .auth-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { order: 3; width: 100%; flex-basis: 100%; margin-left: 0; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .stat-cards, .casino-grid, .pay-methods, .kpi-row { grid-template-columns: 1fr; }
  .hero { padding: 44px 0; }
  .match-row { grid-template-columns: 1fr; }
  .match-odds { flex-wrap: wrap; }
}
