/* ============================================================
   TurboFrames.info – Main Stylesheet
   ============================================================ */

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg-dark: #0f0a1e;
  --bg-card: #1a1035;
  --bg-card2: #231545;
  --text-light: #f3f0ff;
  --text-muted: #a78bfa;
  --border: #3b1d8a;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(124,58,237,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

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

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1035ee;
  border-top: 2px solid var(--primary);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  z-index: 9000;
  backdrop-filter: blur(8px);
}
#cookie-banner p { flex: 1; font-size: .9rem; color: var(--text-muted); }
#cookie-banner a { color: var(--accent); }
#cookie-accept {
  background: var(--primary); color: #fff;
  border: none; padding: 10px 24px; border-radius: 8px;
  cursor: pointer; font-size: .9rem; font-weight: 600;
  transition: background .2s;
}
#cookie-accept:hover { background: var(--primary-dark); }

/* ---- 18+ POPUP ---- */
#age-gate {
  position: fixed; inset: 0;
  background: rgba(10,5,30,0.97);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.age-gate-box {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px; width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(124,58,237,0.5);
}
.age-gate-box .badge-18 {
  font-size: 4rem; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 16px;
}
.age-gate-box h2 { font-size: 1.6rem; margin-bottom: 12px; }
.age-gate-box p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.age-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-yes {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; padding: 14px 36px;
  border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(124,58,237,0.6); }
.btn-no {
  background: transparent; color: var(--text-muted);
  border: 2px solid var(--border); padding: 14px 36px;
  border-radius: 10px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-no:hover { border-color: var(--danger); color: var(--danger); }

/* ---- HEADER / NAV ---- */
header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(15,10,30,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex; align-items: center; gap: 8px;
}
.logo img { width: 32px; height: 32px; border-radius: 6px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; transition: background .2s, color .2s;
}
nav a:hover, nav a.active { background: var(--bg-card2); color: var(--text-light); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important; font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-light); margin: 5px 0; border-radius: 2px;
  transition: .3s;
}

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.35);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--accent), #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 14px 36px; border-radius: 12px; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(245,158,11,0.6); color: #fff; }
.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--text-light);
  border: 2px solid var(--border); font-weight: 600; font-size: 1rem;
  padding: 12px 32px; border-radius: 12px; cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-card); color: var(--text-light); }

/* ---- SECTIONS ---- */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1rem; }

/* ---- CARDS GRID ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(124,58,237,0.2); color: var(--text-muted);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

/* ---- GAMES SECTION ---- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.game-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

/* ---- SLOT MACHINE ---- */
.slot-machine {
  background: linear-gradient(180deg, #1a0a3a, #0d0620);
  border: 3px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 340px;
  box-shadow: 0 0 30px rgba(245,158,11,0.3);
}
.slot-reels {
  display: flex; gap: 8px; justify-content: center;
  background: #0a0518; border-radius: 10px; padding: 12px;
  border: 2px solid #3b1d8a; margin-bottom: 16px;
}
.reel {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
}
.reel.spinning {
  animation: spinReel .1s linear infinite;
}
@keyframes spinReel {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.slot-result {
  min-height: 28px; font-size: .95rem; font-weight: 700;
  color: var(--accent); margin-bottom: 12px; text-align: center;
}
.slot-tokens { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; }
.slot-tokens span { color: var(--accent); font-weight: 700; }

/* ---- FORTUNE WHEEL ---- */
.wheel-container {
  position: relative; width: 260px; height: 260px;
  margin: 0 auto 20px;
}
#fortuneCanvas { border-radius: 50%; display: block; }
.wheel-pointer {
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(245,158,11,0.6));
}
.wheel-result {
  min-height: 28px; font-size: .95rem; font-weight: 700;
  color: var(--accent); margin-bottom: 12px; text-align: center;
}

/* ---- COIN FLIP ---- */
.coin-wrap {
  perspective: 600px;
  width: 120px; height: 120px;
  margin: 0 auto 20px;
}
.coin {
  width: 120px; height: 120px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s ease;
  cursor: pointer;
}
.coin-face, .coin-back {
  position: absolute; inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border: 4px solid var(--accent);
}
.coin-face { background: radial-gradient(circle at 35% 35%, #ffd700, #b8860b); }
.coin-back {
  background: radial-gradient(circle at 35% 35%, #e0c060, #8b6914);
  transform: rotateY(180deg);
}
.coin.flipping { animation: coinFlip 1.2s ease forwards; }
@keyframes coinFlip {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(720deg); }
}
.coin-result {
  min-height: 28px; font-size: .95rem; font-weight: 700;
  color: var(--accent); margin-bottom: 12px; text-align: center;
}
.coin-tokens { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; }
.coin-tokens span { color: var(--accent); font-weight: 700; }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
}
.feature-icon { font-size: 2.5rem; margin-bottom: 14px; }
.feature-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { color: var(--text-muted); font-size: .88rem; }

/* ---- LOCATIONS ---- */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.location-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.location-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--accent); }
.location-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ---- NEWSLETTER / CONTACT ---- */
.contact-section { background: var(--bg-card); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 20px; }
.contact-info ul { list-style: none; }
.contact-info ul li { color: var(--text-muted); padding: 6px 0; font-size: .9rem; }
.contact-info ul li strong { color: var(--text-light); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-light); font-size: .95rem;
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none; background: rgba(16,185,129,0.15);
  border: 1px solid var(--success); border-radius: 10px;
  padding: 16px; color: var(--success); font-weight: 600; text-align: center;
  margin-top: 12px;
}
.newsletter-inline {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.newsletter-inline input {
  flex: 1; min-width: 200px; padding: 12px 16px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-light); font-size: .95rem;
}
.newsletter-inline input:focus { outline: none; border-color: var(--primary); }
.newsletter-inline button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; padding: 12px 24px;
  border-radius: 10px; font-weight: 700; cursor: pointer;
  transition: opacity .2s;
}
.newsletter-inline button:hover { opacity: .85; }

/* ---- NEWSLETTER STRIP ---- */
.newsletter-strip {
  background: linear-gradient(135deg, var(--primary-dark), #1a0a3a);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}
.newsletter-strip h3 { font-size: 1.6rem; margin-bottom: 10px; }
.newsletter-strip p { color: var(--text-muted); margin-bottom: 24px; }
.newsletter-strip form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 500px; margin: 0 auto; }
.newsletter-strip input {
  flex: 1; min-width: 220px; padding: 13px 18px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  border-radius: 10px; color: #fff; font-size: .95rem;
}
.newsletter-strip input::placeholder { color: var(--text-muted); }
.newsletter-strip input:focus { outline: none; border-color: var(--accent); }
.newsletter-strip button {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff; border: none; padding: 13px 28px;
  border-radius: 10px; font-weight: 700; cursor: pointer; font-size: .95rem;
  transition: opacity .2s;
}
.newsletter-strip button:hover { opacity: .85; }
.newsletter-msg { margin-top: 12px; min-height: 20px; font-size: .9rem; color: var(--success); }

/* ---- ABOUT PAGE ---- */
.about-hero { padding: 80px 24px 40px; text-align: center; }
.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 16px; }
.about-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.about-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 20px; margin: 32px 0; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.about-text h3 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--accent); }

/* ---- POLICY PAGES ---- */
.policy-page { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.policy-page h1 { font-size: 2rem; margin-bottom: 8px; }
.policy-page .updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 36px; }
.policy-page h2 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--accent); }
.policy-page p, .policy-page li { color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.policy-page ul { padding-left: 20px; margin-bottom: 16px; }
.policy-page a { color: var(--accent); }

/* ---- FOOTER ---- */
footer {
  background: #080514;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; display: inline-flex; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: .9rem; font-weight: 700; color: var(--text-light); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: gap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: .82rem; }
.footer-bottom .disclaimer {
  font-size: .78rem; color: #6b5fa0;
  max-width: 600px; line-height: 1.5;
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-weight: 900; font-size: .85rem;
  flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 12px; }
  nav.open { display: flex; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .age-btns { flex-direction: column; }
  .btn-yes, .btn-no { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 22px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; font-size: .9rem; font-weight: 600; transition: .2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- STATS ---- */
.stats-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin: 40px 0; }
.stat-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 32px; text-align: center; flex: 1; min-width: 140px;
}
.stat-box .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-box .lbl { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ---- RESPONSIBLE GAMING ---- */
.rg-box {
  background: rgba(124,58,237,0.1); border: 1px solid var(--primary);
  border-radius: var(--radius); padding: 24px; margin-top: 40px;
}
.rg-box h4 { color: var(--accent); margin-bottom: 10px; }
.rg-box p { color: var(--text-muted); font-size: .9rem; }
.rg-box a { color: var(--accent); }
