/* ===========================================================
   MTX MOTORS — Crypto Casino UI System
   =========================================================== */

:root {
  --bg-0: #050811;
  --bg-1: #0a0e1a;
  --bg-2: #131829;
  --bg-3: #1c2238;
  --line: #232a44;
  --text: #e6ebff;
  --muted: #8b94b8;
  --dim: #5a6388;

  --accent: #ff3d00;        /* race red */
  --accent-2: #ff7a00;      /* fuel orange */
  --cyan: #00e5ff;          /* electric */
  --green: #00e676;
  --gold: #ffd700;
  --pink: #ff2e6b;
  --purple: #8b5cf6;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 24px rgba(255, 61, 0, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);

  --font-display: 'Russo One', 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 800px 600px at 80% -10%, rgba(255, 61, 0, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 30%, rgba(0, 229, 255, 0.10), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.5px; }

/* ============== Layout ============== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 24px 0 80px;
}

/* ============== Top Bar ============== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: #fff;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 6px,
      rgba(0, 0, 0, 0.18) 6px 12px);
  mix-blend-mode: overlay;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.15s;
}

.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a.active { color: var(--text); background: var(--bg-2); }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.balance-pill .amount { color: var(--gold); font-variant-numeric: tabular-nums; }
.balance-pill .currency-chip {
  background: var(--bg-3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-deposit {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-glow);
  transition: 0.15s;
}

.btn-deposit:hover { transform: translateY(-1px); }

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #050811;
  cursor: pointer;
}

.btn-ghost {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { background: var(--bg-2); }

/* ============== Hero ============== */

.hero {
  position: relative;
  margin: 16px 0 32px;
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 61, 0, 0.14), rgba(0, 229, 255, 0.08) 60%, transparent),
    var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 100px,
      rgba(255, 255, 255, 0.02) 100px 101px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 61, 0, 0.25), transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 61, 0, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 61, 0, 0.5); }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--cyan); }

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #0099ff);
  color: #001020;
}

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============== Crypto strip ============== */

.crypto-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow: hidden;
}

.crypto-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.crypto-list {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.crypto-coin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.crypto-coin .coin-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

/* ============== Section ============== */

.section { margin-bottom: 40px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-head .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
}

.section-head .icon svg { width: 18px; height: 18px; }

.section-head .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.section-head .more:hover { color: var(--accent); }

/* ============== Game tiles ============== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.game-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.game-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent);
}

.game-card .art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
  padding: 20px;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.game-card .art-bg { position: absolute; inset: 0; opacity: 0.85; }
.game-card .art-glyph {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.game-card .art-glyph .symbol {
  font-size: 42px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.game-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-card .badge.hot { background: linear-gradient(135deg, var(--accent), var(--pink)); }
.game-card .badge.new { background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.game-card .badge.exclusive { background: linear-gradient(135deg, var(--gold), var(--accent-2)); color: #1a1300; }

.game-card .meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 60%);
  z-index: 2;
}

.game-card .meta .name {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .meta .provider {
  font-size: 11px;
  color: var(--muted);
}

/* Provider tile palettes — vivid varied gradients for fictional studios */
.art-1  { background: linear-gradient(135deg, #ff3d00, #ff007a); }
.art-2  { background: linear-gradient(135deg, #00e5ff, #0066ff); }
.art-3  { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.art-4  { background: linear-gradient(135deg, #00e676, #00b4ff); }
.art-5  { background: linear-gradient(135deg, #ffd700, #ff7a00); }
.art-6  { background: linear-gradient(135deg, #ff2e6b, #ff7a00); }
.art-7  { background: linear-gradient(135deg, #1d4ed8, #0e7490); }
.art-8  { background: linear-gradient(135deg, #16a34a, #facc15); }
.art-9  { background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.art-10 { background: linear-gradient(135deg, #dc2626, #1d4ed8); }
.art-11 { background: linear-gradient(135deg, #fb7185, #c026d3); }
.art-12 { background: linear-gradient(135deg, #0d9488, #f59e0b); }

/* ============== Category tabs ============== */

.tab-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s;
}

.tab:hover { color: var(--text); }
.tab.active {
  background: var(--bg-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.tab .tab-icon { font-size: 15px; }

/* ============== Provider chips ============== */

.providers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.provider-chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
  transition: 0.15s;
  cursor: pointer;
}

.provider-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.provider-chip.active {
  border-color: var(--accent);
  background: rgba(255, 61, 0, 0.08);
  color: var(--text);
}

/* ============== Footer ============== */

.footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  color: var(--text);
  text-transform: uppercase;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 13px; color: var(--muted); }
.footer ul a:hover { color: var(--accent); }

.footer-brand p { color: var(--muted); font-size: 13px; max-width: 320px; margin: 12px 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 16px;
}

.responsible-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.responsible-icons span {
  padding: 4px 10px;
  background: var(--bg-3);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ============== Forms / Cards ============== */

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card-lg { padding: 32px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: 0.15s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); background: var(--bg-3); }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-info { background: rgba(0, 229, 255, 0.06); border-color: rgba(0, 229, 255, 0.3); color: var(--cyan); }
.alert-warn { background: rgba(255, 215, 0, 0.06); border-color: rgba(255, 215, 0, 0.3); color: var(--gold); }
.alert-error { background: rgba(255, 46, 107, 0.08); border-color: rgba(255, 46, 107, 0.4); color: var(--pink); }

/* ============== Auth pages ============== */

.auth-wrap {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 61, 0, 0.18), transparent 70%);
  pointer-events: none;
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 6px;
  letter-spacing: 1px;
  position: relative;
}
.auth-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; position: relative; }
.auth-card form { position: relative; }

.auth-card .alt {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.auth-card .alt a { color: var(--accent); font-weight: 600; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 2px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.crypto-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.crypto-options button {
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.crypto-options button:hover { border-color: var(--accent); color: var(--text); }

/* ============== Wallet ============== */

.wallet-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.wallet-side .currency-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.currency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.currency-row:hover { background: var(--bg-2); }
.currency-row.active { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--accent); }

.currency-row .coin-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.currency-row .meta { flex: 1; min-width: 0; }
.currency-row .name { font-weight: 700; font-size: 14px; }
.currency-row .symbol { font-size: 11px; color: var(--muted); }
.currency-row .bal { font-weight: 700; font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }

.wallet-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.wallet-tabs button {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wallet-tabs button.active { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }

.deposit-address {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.qr-box {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qr-box svg { width: 100%; height: 100%; }

.address-info { flex: 1; }
.address-info label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.address-row {
  display: flex;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 16px;
  align-items: center;
}
.address-row code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--cyan);
}
.copy-btn {
  background: var(--bg-2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.copy-btn:hover { color: var(--accent); }

/* ============== Promo / VIP ============== */

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s;
}

.promo-card:hover { transform: translateY(-3px); }

.promo-card.p1 { background: linear-gradient(135deg, #ff3d00 0%, #c2185b 100%); }
.promo-card.p2 { background: linear-gradient(135deg, #00e5ff 0%, #1d4ed8 100%); }
.promo-card.p3 { background: linear-gradient(135deg, #ffd700 0%, #ff7a00 100%); }
.promo-card.p4 { background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%); }
.promo-card.p5 { background: linear-gradient(135deg, #00e676 0%, #1d4ed8 100%); }
.promo-card.p6 { background: linear-gradient(135deg, #ff2e6b 0%, #8b5cf6 100%); }

.promo-card h3 {
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 6px;
}
.promo-card p { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin-bottom: 14px; }
.promo-card .promo-cta {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0e1a;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ============== Toast ============== */

.toast-host {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  min-width: 240px;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.25s ease, fadeOut 0.4s 2.6s ease forwards;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--pink); }
.toast.win { border-left-color: var(--gold); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(40%); }
}

/* ============== Responsive ============== */

@media (max-width: 980px) {
  .nav { display: none; }
  .topbar-inner { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
  .deposit-address { flex-direction: column; align-items: stretch; }
  .qr-box { margin: 0 auto; }
  .hero { padding: 36px 28px; }
}

@media (max-width: 580px) {
  .container { padding: 0 14px; }
  .balance-pill .currency-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .hero { padding: 28px 20px; min-height: auto; }
}

/* ============== Utility ============== */

.flex { display: flex; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-pink { color: var(--pink); }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }
.tabnum { font-variant-numeric: tabular-nums; }
.hide-mobile { }
@media (max-width: 580px) { .hide-mobile { display: none !important; } }
