:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-hover: #1a1a22;
  --bg-section: #0d0d12;
  --gold: #ffd700;
  --gold-light: #ffec8b;
  --gold-dark: #b8860b;
  --red: #dc143c;
  --red-light: #ff6b6b;
  --text: #ffffff;
  --text-muted: #a0a0b0;
  --border: #2a2a3a;
  --border-gold: #3a3a2a;
  --success: #4ade80;
  --warning: #f59e0b;
  --shadow: rgba(0,0,0,0.5);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ffec8b, #b8860b);
  --gradient-red: linear-gradient(135deg, #dc143c, #ff6b6b);
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; line-height: 1.6; }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(17, 17, 24, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px; height: 32px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== NAV ===== */
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gradient-gold);
  color: var(--bg) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  font-weight: 600;
}
.nav-cta::after { display: none !important; }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 999;
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .main-nav a { width: 100%; text-align: center; }
}

/* ===== 18+ BADGE ===== */
.badge-18 {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
}

/* ===== DISCLAIMER ===== */
.compliance-banner {
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.compliance-banner a { color: var(--gold-light); text-decoration: underline; }

.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.disclaimer-box strong { color: var(--red-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-small { padding: 0.5rem 1rem; font-size: 0.75rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== PARTICLES (CSS) ===== */
.particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 8s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-100px) translateX(50px); opacity: 0.6; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-title p { color: var(--text-muted); }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px;
  background: var(--bg-hover);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.card h3 { color: var(--gold); margin-bottom: 0.5rem; }

/* ===== SLOT MACHINE ===== */
.slot-machine {
  background: var(--bg-card);
  border: 2px solid var(--gold-dark);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  overflow: hidden;
  position: relative;
}

.reel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  position: relative;
  height: 180px;
}

.reel-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 30px 20px var(--bg), inset 0 -30px 20px var(--bg);
}

.symbol {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 0.25rem;
  background: var(--bg-hover);
  transition: all 0.3s;
}

.symbol.win {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid var(--gold);
  animation: pulse 0.5s ease-in-out 3;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.slot-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.slot-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.slot-info span { color: var(--gold); font-weight: 600; }

.bet-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.bet-controls button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bet-controls button:hover {
  background: var(--gold);
  color: var(--bg);
}

.bet-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bet-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 60px;
  text-align: center;
}

.spin-btn {
  padding: 1rem 3rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
  background: var(--gradient-red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.spin-btn:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

/* ===== GAME HISTORY ===== */
.game-history {
  margin-top: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.game-history h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.history-row:last-child { border-bottom: none; }

.history-row .win { color: var(--success); }
.history-row .loss { color: var(--red-light); }

/* ===== DAILY BONUS ===== */
.daily-bonus {
  background: var(--gradient-gold);
  color: var(--bg);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.daily-bonus.claimed {
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: var(--bg-hover);
  color: var(--gold);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tr:hover td { background: var(--bg-hover); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== ACCORDION ===== */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover { background: var(--bg-hover); }

.accordion-header::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== LEADERBOARD ===== */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.leaderboard-rank {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.leaderboard-rank.top3 {
  background: var(--gradient-gold);
  color: var(--bg);
  border: none;
}

.leaderboard-info { flex: 1; }
.leaderboard-info h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.leaderboard-info span { font-size: 0.75rem; color: var(--text-muted); }

.leaderboard-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom .badge-18 { margin-bottom: 0.5rem; }

/* ===== UTILITY ===== */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 50vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  
  .slot-reels { grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
  .reel { height: 150px; }
  .symbol { height: 50px; font-size: 1.5rem; }
  .slot-controls { grid-template-columns: 1fr; gap: 0.75rem; }
  .spin-btn { width: 100%; padding: 1rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { text-align: center; }
}

@media (min-width: 769px) {
  .hero { min-height: 70vh; }
  .slot-reels { gap: 0.75rem; }
  .reel { height: 200px; }
  .symbol { height: 66px; font-size: 2.5rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.6s ease-out forwards; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ===== PAGE: HOME PREVIEW ===== */
.game-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 769px) {
  .game-preview { grid-template-columns: 1fr 1fr; }
}

.game-preview-img {
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 250px;
}

.game-preview-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-preview-info h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.game-preview-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
