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

:root {
  --bg: #07080c;
  --bg2: #0d0f16;
  --bg3: #141821;
  --card: #11141e;
  --border: rgba(255,255,255,0.06);
  --accent: #53f3c3;
  --gold: #b3ffe6;
  --green: #4ade80;
  --red: #ef4444;
  --text: #e8e8e8;
  --muted: #6b7280;
  --dark-green: #00503c;
  --radius: 12px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,8,12,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo picture {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-badge {
  background: rgba(83, 243, 195,0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--accent); background: rgba(83, 243, 195,0.1); }

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

.nav-balance {
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-balance-cur { color: var(--muted); font-weight: 500; font-size: 11px; }

.nav-balance-refresh {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s, transform 0.3s;
}
.nav-balance-refresh:hover { color: var(--accent); }
.nav-balance-refresh.spinning { animation: spin 0.6s linear infinite; color: var(--accent); }

.wallet-addr {
  font-family: monospace;
  font-size: 12px;
  color: var(--green);
  display: none;
}

.wallet-addr.show { display: inline; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== PAGES ===== */
.page { display: none; padding-top: 64px; }
.page.active { display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-wallet {
  background: linear-gradient(135deg, var(--accent), #3dcba0);
  color: #fff;
}

.btn-wallet:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(83, 243, 195,0.3); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3dcba0);
  color: #fff;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(83, 243, 195,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-xl { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

.btn-large { padding: 14px 32px; font-size: 16px; border-radius: 14px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(83, 243, 195,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(83, 243, 195,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(83, 243, 195,0.1);
  border: 1px solid rgba(83, 243, 195,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-desc strong { color: #aaa; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.hero-stat:nth-child(1) .hero-stat-value { color: var(--gold); }
.hero-stat:nth-child(2) .hero-stat-value { color: var(--green); }
.hero-stat:nth-child(3) .hero-stat-value { color: var(--accent); }
.hero-stat:nth-child(4) .hero-stat-value { color: var(--gold); }

.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: monospace;
}

.hero-ca-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: Inter, system-ui, sans-serif;
  margin-right: 4px;
}

.hero-ca-address {
  color: var(--text);
  word-break: break-all;
}

.hero-ca-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}

.hero-ca-copy:hover {
  background: rgba(255,255,255,0.08);
}

.hero-ca-copy.copied {
  color: var(--green);
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-dark {
  max-width: 100%;
  background: var(--bg2);
  padding-left: calc((100vw - 1100px) / 2 + 24px);
  padding-right: calc((100vw - 1100px) / 2 + 24px);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(83, 243, 195,0.08);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: rgba(83, 243, 195,0.25);
  line-height: 1;
  margin-bottom: -8px;
}

.step-icon { font-size: 40px; margin-bottom: 12px; }

.step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 28px;
  color: var(--accent);
  padding-top: 80px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 243, 195,0.2);
}

.feature-icon { font-size: 36px; margin-bottom: 12px; display: block; }

.feature-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== TOKEN CARD ===== */
.token-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.token-header {
  text-align: center;
  margin-bottom: 24px;
}

.token-ticker {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.token-name {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.token-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.token-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.token-detail-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.token-detail-value {
  font-size: 16px;
  font-weight: 700;
}

.token-detail-ca {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.token-detail-ca .token-detail-label {
  flex-shrink: 0;
}

.token-ca-value {
  font-size: 12px;
  font-family: monospace;
  word-break: break-all;
  flex: 1;
}

.token-ca-copy {
  flex-shrink: 0;
  font-size: 16px;
  padding: 4px 8px;
}

.token-alloc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alloc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alloc-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  flex: 1;
}

.alloc-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { flex: 1; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo picture {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 12px;
  color: #333;
}

/* ===== PLAY PAGE ===== */
.play-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.game-card {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border: 1px solid rgba(83, 243, 195, 0.1);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83, 243, 195,0.3), transparent);
}

.game-header {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
}

.stat-icon { font-size: 14px; }
.stat-label { color: var(--muted); font-weight: 500; }
.stat-value { font-weight: 700; color: #fff; }

.status-badge {
  margin-left: auto;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-badge.running {
  background: rgba(74,222,128,0.12);
  color: var(--green);
  box-shadow: 0 0 20px rgba(74,222,128,0.08);
}

.status-badge.ended, .status-badge.cooldown {
  background: rgba(83, 243, 195,0.12);
  color: var(--accent);
}

.timer-section { display: flex; justify-content: center; margin: 4px 0 20px; }

.timer-ring {
  position: relative;
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 30px rgba(83, 243, 195,0.1));
}

.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.timer-track {
  fill: none;
  stroke: rgba(255,255,255,0.04);
  stroke-width: 6;
}

.timer-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 628.3;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(83, 243, 195,0.4));
}

.timer-progress.warning { stroke: #f59e0b; filter: drop-shadow(0 0 12px rgba(245,158,11,0.5)); }
.timer-progress.danger { stroke: var(--red); filter: drop-shadow(0 0 16px rgba(239,68,68,0.5)); }

.timer-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.timer-value {
  display: block;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.timer-value.warning { color: #f59e0b; }
.timer-value.danger { color: var(--red); animation: pulse 0.5s ease infinite; }

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

.timer-unit { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.pot-section { text-align: center; padding: 16px 0; margin-bottom: 12px; position: relative; }

.pot-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83, 243, 195,0.15), transparent);
}

.pot-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pot-value {
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  transition: transform 0.2s;
}

.pot-value.pulse { animation: potPulse 0.4s ease; }

@keyframes potPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.pot-currency { font-size: 14px; color: #aaa; margin-top: 2px; font-weight: 700; }

.pot-win-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.last-bet-info {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  min-height: 30px;
}

.bet-section { margin-top: 16px; }
.bet-section.hidden { display: none; }

.bet-input-group { position: relative; display: flex; align-items: center; }

.bet-input {
  width: 100%;
  padding: 16px 90px 16px 18px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bet-input:focus { border-color: var(--accent); box-shadow: 0 0 24px rgba(83, 243, 195,0.08); }
.bet-input::placeholder { color: #333; font-weight: 500; font-size: 16px; }

.bet-currency {
  position: absolute;
  right: 18px;
  font-weight: 800;
  color: #888;
  font-size: 15px;
}

.bet-presets { display: flex; gap: 8px; margin-top: 10px; }

.preset-btn {
  flex: 1;
  padding: 10px 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.preset-btn:hover {
  background: rgba(83, 243, 195,0.1);
  border-color: rgba(83, 243, 195,0.3);
  color: var(--accent);
}

.btn-bet {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #3dcba0);
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 14px;
  margin-top: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bet:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(83, 243, 195,0.35); }
.btn-bet:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn-text { display: block; font-size: 18px; font-weight: 800; }

.btn-sub { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; margin-top: 2px; }

.bet-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
}

.bet-stats strong { color: #aaa; }

.wallet-required { text-align: center; padding: 48px 20px; }
.wallet-required.hidden { display: none; }
.wallet-icon { font-size: 48px; margin-bottom: 12px; }
.wallet-required h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.wallet-required p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ===== PLAY SIDEBAR ===== */
.play-sidebar { display: flex; flex-direction: column; gap: 14px; }

.panel-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.panel-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.panel-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.htp-content { display: none; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.htp-content p { margin-bottom: 8px; }
.htp-content strong { color: var(--text); }
.htp-content em { color: var(--accent); font-style: normal; }
.panel-section.htp-open .htp-content { display: block; }

.panel-count { font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,0.04); padding: 2px 10px; border-radius: 10px; }

.bets-feed { max-height: 220px; overflow-y: auto; }
.bets-feed::-webkit-scrollbar { width: 3px; }
.bets-feed::-webkit-scrollbar-track { background: transparent; }
.bets-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.empty-feed { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #333; font-size: 13px; padding: 24px 0; }
.empty-icon { font-size: 24px; }

.bet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
  animation: slideIn 0.3s ease;
}

.bet-item:last-child { border-bottom: none; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.bet-wallet { color: #999; font-family: monospace; font-size: 11px; }
.bet-amount { color: var(--accent); font-weight: 700; }

.previous-winner { text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.no-winner { color: #444; font-size: 13px; }
.winner-display { animation: slideIn 0.5s ease; }
.winner-address { font-family: monospace; font-size: 12px; color: var(--accent); word-break: break-all; margin-bottom: 4px; }
.winner-amount { font-size: 18px; font-weight: 800; color: var(--gold); }
.winner-label { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-item { display: flex; flex-direction: column; gap: 2px; }
.stats-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stats-value { font-size: 15px; font-weight: 700; }

/* ===== STATS PAGE ===== */
.stats-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.overview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.overview-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.overview-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.history-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.history-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.history-table { width: 100%; border-collapse: collapse; }

.history-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.history-table td {
  padding: 12px 18px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.history-table tr:last-child td { border-bottom: none; }

.history-empty {
  text-align: center;
  color: #333 !important;
  padding: 32px !important;
  font-size: 14px !important;
}

/* ===== TOASTS ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: toastIn 0.3s ease;
  max-width: 400px;
  backdrop-filter: blur(12px);
}

.toast.success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.25); color: var(--green); }
.toast.error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: var(--red); }
.toast.info { background: rgba(83, 243, 195,0.12); border: 1px solid rgba(83, 243, 195,0.25); color: var(--accent); }
.toast.win { background: linear-gradient(135deg, rgba(83, 243, 195,0.15), rgba(83, 243, 195,0.1)); border: 1px solid rgba(83, 243, 195,0.3); color: var(--gold); font-size: 16px; }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ===== CELEBRATION ===== */
.celebration {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.celebration.hidden { display: none; }

.celebration-content { text-align: center; animation: bounceIn 0.6s ease; }
.celebration-icon { font-size: 80px; display: block; margin-bottom: 16px; }
.celebration-text { font-size: 28px; font-weight: 900; background: linear-gradient(135deg, var(--gold), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 3px; margin-bottom: 8px; }
.celebration-amount { font-size: 64px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.celebration-sub { font-size: 18px; color: var(--muted); font-weight: 600; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.95); } 100% { transform: scale(1); opacity: 1; } }

/* ===== BUY MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: bounceIn 0.35s ease;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-icon { font-size: 48px; margin-bottom: 12px; }

.modal-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal .btn { width: 100%; margin-bottom: 10px; }

.modal .btn:last-child { margin-bottom: 0; }

.modal .btn-ghost {
  font-size: 12px;
  padding: 10px;
  color: var(--muted);
  border-color: transparent;
}

.modal .btn-ghost:hover { color: var(--accent); border-color: rgba(255,255,255,0.08); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }

/* ===== SHOP ===== */
.shop-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

.shop-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 243, 195,0.2);
}

.shop-coming {
  position: absolute;
  top: 12px; right: -28px;
  background: linear-gradient(135deg, var(--accent), #3dcba0);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 32px;
  transform: rotate(45deg);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-icon { font-size: 48px; margin-bottom: 16px; display: block; }

.shop-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.shop-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.shop-partners {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== SHOP TIERS ===== */
.shop-tier-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-card-active { border-color: var(--accent) !important; box-shadow: 0 0 20px rgba(83, 243, 195, 0.08); }

.tier-grid { padding-top: 8px; }

.tier-grid-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: left;
}

.tier-grid .shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ===== SHOP GRID ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.shop-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.8,.4,1), box-shadow 0.25s ease;
}
.shop-item:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

.prod-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.prod-img-src {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-emoji { font-size: 48px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); z-index: 1; }

.prod-body { padding: 12px 14px 14px; text-align: left; }

.prod-partner { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.prod-name { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.prod-badge {
  font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-low { background: rgba(83, 243, 195,0.2); color: var(--accent); }
.badge-sold { background: rgba(239,68,68,0.2); color: #ef4444; }

.prod-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.prod-price-last { font-size: 16px; font-weight: 900; color: var(--accent); }
.prod-price-last small { font-size: 10px; font-weight: 600; color: var(--muted); }
.prod-price-usd { font-size: 11px; color: var(--muted); }

.prod-stock { font-size: 10px; margin-bottom: 10px; }
.prod-body .btn { width: 100%; }

/* ===== SHOP TOOLBAR ===== */
.shop-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.shop-search-wrap {
  flex: 1;
  position: relative;
}
.shop-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.shop-search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.shop-search:focus { border-color: var(--accent); }
.shop-sort {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
.shop-sort:focus { border-color: var(--accent); }

/* ===== SKELETON ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.skeleton-img { height: 120px; background: var(--bg3); animation: shimmer 1.5s infinite; }
.skeleton-line { height: 12px; background: var(--bg3); margin: 10px 14px 0; border-radius: 4px; animation: shimmer 1.5s infinite; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; margin-bottom: 14px; }

@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ===== TICKER ===== */
.shop-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(83, 243, 195,0.1), rgba(83, 243, 195,0.05));
  border: 1px solid rgba(83, 243, 195,0.15);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.ticker-icon { font-size: 14px; flex-shrink: 0; }
.ticker-text {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: tickerFade 0.5s ease;
}
@keyframes tickerFade { 0% { opacity: 0; transform: translateX(10px); } 100% { opacity: 1; transform: translateX(0); } }

/* ===== QTY ===== */
.shop-qty-wrap { text-align: left; margin-top: 14px; }
.shop-qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 6px;
}
.shop-qty-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.shop-qty-btn:first-child { border-radius: 10px 0 0 10px; }
.shop-qty-btn:last-child { border-radius: 0 10px 10px 0; }
.shop-qty-btn:hover { background: var(--accent); }
.shop-qty-input {
  width: 52px; height: 36px;
  border: 1px solid var(--border);
  border-left: none; border-right: none;
  background: var(--card);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}

/* ===== RECEIPT ===== */
.receipt { text-align: center; }
.receipt-header { margin-bottom: 16px; }
.receipt-check {
  display: inline-flex; width: 48px; height: 48px;
  background: var(--green); color: #fff;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  margin-bottom: 8px;
}
.receipt-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.receipt-id { font-size: 12px; color: var(--muted); font-family: monospace; }
.receipt-items { background: var(--bg3); border-radius: 10px; padding: 12px; margin-bottom: 10px; text-align: left; }
.receipt-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.receipt-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; border-top: 1px solid var(--border); padding-top: 10px; margin-bottom: 10px; }
.receipt-ship { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.receipt-footer { font-size: 10px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }

.shop-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg3);
  border-radius: 12px;
  padding: 4px;
}

.shop-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.shop-tab.active { background: var(--accent); color: #fff; }
.shop-tab:hover:not(.active) { color: #fff; }

.shop-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  margin-top: 10px;
}

.shop-label:first-child { margin-top: 0; }

.shop-input, .shop-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.shop-input:focus, .shop-select:focus { border-color: var(--accent); }

.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 8px; }

/* ===== PAGE TRANSITIONS ===== */
.page { animation: pageIn 0.35s cubic-bezier(.2,.8,.4,1); }
@keyframes pageIn { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }

/* ===== MICRO-INTERACTIONS ===== */
.btn { transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; }
.btn:active { transform: scale(0.96); }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(83, 243, 195,0.3); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: all 0.25s; transform: translateX(-50%); border-radius: 2px; }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

/* ===== GLOW EFFECTS ===== */
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 8px rgba(83, 243, 195, 0.2); } 50% { box-shadow: 0 0 24px rgba(83, 243, 195, 0.5); } }
.status-badge.running { animation: glowPulse 2s infinite; }
.game-card { position: relative; }
.game-card::before { content: ''; position: absolute; inset: -1px; border-radius: 24px; background: linear-gradient(135deg, rgba(83, 243, 195, 0.25), transparent, rgba(83, 243, 195, 0.1)); z-index: -1; opacity: 0; transition: opacity 0.5s; }
.game-card.active-round::before { opacity: 1; }

/* ===== COUNT-UP ===== */
.count-up { display: inline-block; transition: all 0.3s cubic-bezier(.2,.8,.4,1); }

/* ===== HISTORY PAGER ===== */
.history-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; }
.pager-btn { padding: 6px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg3); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pager-info { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ===== LEADERBOARD ===== */
.leaderboard-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-top: 20px; }
.leaderboard-list { list-style: none; padding: 0; margin: 0; }
.leaderboard-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.leaderboard-item:last-child { border-bottom: none; }
.lb-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--bg3); color: var(--muted); flex-shrink: 0; }
.lb-rank.gold { background: linear-gradient(135deg, #53f3c3, #3dcba0); color: #fff; }
.lb-rank.silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6); color: #fff; }
.lb-rank.bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.lb-wallet { flex: 0 0 auto; font-size: 13px; font-weight: 600; min-width: 80px; }
.lb-achievements { flex: 1; font-size: 14px; text-align: center; letter-spacing: 2px; }
.lb-stats { text-align: right; flex-shrink: 0; }
.lb-won { font-size: 14px; font-weight: 800; color: var(--accent); }
.lb-wins { font-size: 11px; color: var(--muted); }

/* ===== ACHIEVEMENTS ===== */
.achievements-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.achievement { display: flex; align-items: center; gap: 6px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px 4px 6px; font-size: 11px; font-weight: 600; opacity: 0.4; transition: opacity 0.3s; }
.achievement.unlocked { opacity: 1; border-color: var(--accent); }
.achievement .ach-icon { font-size: 16px; }

/* ===== FAQ ===== */
.faq-grid { display: flex; flex-direction: column; gap: 10px; max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(83, 243, 195,0.2); }
.faq-q { padding: 14px 18px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q .faq-arrow { font-size: 12px; transition: transform 0.25s; color: var(--muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { padding: 0 18px 14px; font-size: 13px; color: var(--muted); line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== SHARE ===== */
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg3); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 10px; transition: all 0.15s; }
.share-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ===== SOLSCAN ===== */
.sollink { color: var(--accent); text-decoration: none; font-size: 11px; font-family: monospace; }
.sollink:hover { text-decoration: underline; }

/* ===== TERMS PAGE ===== */
.terms-container { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.terms-content { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; text-align: left; }
.terms-content h3 { font-size: 16px; font-weight: 800; margin: 24px 0 8px; color: var(--accent); }
.terms-content h3:first-child { margin-top: 0; }
.terms-content p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 4px; }

/* ===== WALLET PICKER MODAL ===== */
.wallet-picker-modal { max-width: 420px; text-align: center; }
.wallet-picker-header { margin-bottom: 20px; }
.wallet-picker-header h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.wallet-picker-header p { font-size: 13px; color: var(--muted); margin: 0; }
.wallet-picker-grid { display: flex; flex-direction: column; gap: 8px; }
.wallet-picker-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 18px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #fff;
  font-family: inherit; text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.wallet-picker-opt:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
.wallet-picker-opt:active { transform: scale(0.98); }
.wallet-picker-opt-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.wallet-picker-opt-name { flex: 1; }
.wallet-picker-opt-arrow { font-size: 12px; color: var(--muted); }
.wallet-picker-mobile-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.wallet-picker-mobile-note p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Connecting modal */
.wallet-connecting-modal { text-align: center; padding: 40px 32px; }
.wallet-connecting-modal h2 { font-size: 20px; font-weight: 800; margin: 16px 0 8px; }
.wallet-connecting-modal p { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.wallet-connecting-spinner {
  width: 48px; height: 48px; margin: 0 auto;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.wallet-picker-dl-row { display: flex; gap: 8px; margin-top: 8px; }
.wallet-picker-dl-btn {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg3);
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-align: center;
  text-decoration: none; transition: background 0.15s;
}
.wallet-picker-dl-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
.wallet-picker-dl-btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.wallet-picker-dl-btn.primary:hover { opacity: 0.9; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-title { font-size: 40px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 28px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 12px 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats-overview { grid-template-columns: 1fr 1fr; }
  .play-container { grid-template-columns: 1fr; }
  .play-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat-value { font-size: 24px; }
  .features { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .pot-value { font-size: 40px; }
  .timer-value { font-size: 48px; }
  .timer-ring { width: 180px; height: 180px; }
  .nav-balance { display: none; }
  .play-sidebar { grid-template-columns: 1fr; }
  .stats-overview { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .btn-wallet { padding: 10px 14px; font-size: 12px; }
}

/* ===== CONTACT PAGE ===== */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.contact-row {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}
.contact-row:last-of-type { margin-bottom: 0; }
.contact-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-input, .contact-textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.contact-input:focus, .contact-textarea:focus { border-color: var(--accent); }
.contact-textarea { resize: vertical; min-height: 100px; }
.contact-char-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}
.contact-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--red);
  margin-top: 12px;
}
.contact-success {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: var(--green);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-success-icon {
  width: 24px; height: 24px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .contact-row { flex-direction: column; }
  .contact-card { padding: 20px; }
}

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FAIRNESS FEED ===== */
.fairness-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}
.fairness-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.fairness-select {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.fairness-select:focus { border-color: var(--accent); }
.fairness-table-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.fairness-table { width: 100%; border-collapse: collapse; }
.fairness-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.fairness-table td {
  padding: 8px 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-variant-numeric: tabular-nums;
}
.fairness-table tr:last-child td { border-bottom: none; }

/* ===== ADMIN DASHBOARD (admin.html inline styles are primary) ===== */
.admin-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
