/* ==========================================================================
   QQMACAN MASTER STYLESHEET - SLEEK MINIMALIST & ADVANCED TELEMETRY EDITION
   Synthesizing features from:
   1) qqmacan-ui.netlify.app (Adaptive Content Mapping, Live RTP Board, Mega Event Dashboard, Heptagon Radar, Heatmap, System Popup)
   2) qqmacangacor.netlify.app (Gamification Hub with Spin Wheel, EXP Streak, Mystery Flip)
   3) qqmacan-2.pages.dev (Dual Donut Satisfaction Charts, Top SEO Resilience Article)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;600;700;800;900&family=Orbitron:wght@500;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core Backgrounds */
  --bg-darkest: #02050b;
  --bg-core: #070b14;
  --bg-surface: #0a1120;
  --bg-surface-elevated: #0f182c;
  --bg-card: rgba(16, 24, 44, 0.75);
  --bg-card-solid: #10192e;
  --bg-glass: rgba(12, 20, 36, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.15);

  /* Primary Neon & Brand Accents */
  --accent-cyan: #00ffcc;
  --accent-cyan-glow: rgba(0, 255, 204, 0.4);
  --accent-blue: #00e5ff;
  --accent-magenta: #ff0055;
  --accent-magenta-glow: rgba(255, 0, 85, 0.4);
  --accent-purple: #9900ff;
  --accent-purple-glow: rgba(153, 0, 255, 0.4);
  --accent-gold: #ffb700;
  --accent-yellow: #ffcc00;
  --accent-orange: #ff6600;
  --accent-green: #10b981;
  --accent-green-bright: #00ff87;

  /* Typography Colors */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #f8fafc;

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-hud: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-alt: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-neon-cyan: 0 0 25px rgba(0, 255, 204, 0.35);
  --shadow-neon-gold: 0 0 25px rgba(255, 183, 0, 0.35);
  --shadow-neon-magenta: 0 0 25px rgba(255, 0, 85, 0.35);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   RESET & CORE BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Base Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  width: 100%;
}

.site-section {
  padding: 60px 0;
  position: relative;
  border-top: 1px solid var(--border-glass);
}

/* Background Atmosphere */
#cyberParticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -9;
  pointer-events: none;
}

.bg-radial-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 204, 0.08) 0%, rgba(153, 0, 255, 0.04) 45%, transparent 75%);
  z-index: -8;
  pointer-events: none;
  filter: blur(60px);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rgbGlow {
  0% { box-shadow: 0 0 15px rgba(255, 0, 85, 0.6); border-color: rgba(255, 0, 85, 0.6); }
  25% { box-shadow: 0 0 15px rgba(255, 204, 0, 0.6); border-color: rgba(255, 204, 0, 0.6); }
  50% { box-shadow: 0 0 15px rgba(0, 255, 204, 0.6); border-color: rgba(0, 255, 204, 0.6); }
  75% { box-shadow: 0 0 15px rgba(153, 0, 255, 0.6); border-color: rgba(153, 0, 255, 0.6); }
  100% { box-shadow: 0 0 15px rgba(255, 0, 85, 0.6); border-color: rgba(255, 0, 85, 0.6); }
}

@keyframes rgbText {
  0% { color: #ff0055; text-shadow: 0 0 8px rgba(255, 0, 85, 0.5); }
  33% { color: #00ffcc; text-shadow: 0 0 8px rgba(0, 255, 204, 0.5); }
  66% { color: #ffb700; text-shadow: 0 0 8px rgba(255, 183, 0, 0.5); }
  100% { color: #ff0055; text-shadow: 0 0 8px rgba(255, 0, 85, 0.5); }
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

@keyframes scanlineAnim {
  0% { top: 0; }
  100% { top: 100%; }
}

@keyframes marqueeAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Helper RGB Classes */
.rgb-btn-glow {
  background: linear-gradient(270deg, #ff0055, #00ffcc, #ffb700, #9900ff, #ff0055);
  background-size: 600% 600%;
  animation: gradientMove 6s ease infinite;
  color: #000 !important;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
  transition: all 0.3s ease;
}
.rgb-btn-glow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.7);
}

.rgb-text {
  animation: rgbText 6s infinite;
}

/* Common Section Headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.25);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
}
.section-title span {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px var(--accent-cyan-glow);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 650px;
  margin-bottom: 30px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-hot {
  background: rgba(255, 0, 85, 0.15);
  border: 1px solid rgba(255, 0, 85, 0.35);
  color: var(--accent-magenta);
}
.badge-new {
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid rgba(0, 255, 204, 0.35);
  color: var(--accent-cyan);
}
.badge-rtp {
  background: rgba(255, 183, 0, 0.15);
  border: 1px solid rgba(255, 183, 0, 0.35);
  color: var(--accent-gold);
}
.badge-top {
  background: rgba(153, 0, 255, 0.15);
  border: 1px solid rgba(153, 0, 255, 0.35);
  color: var(--accent-purple);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
  color: #030a16;
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 255, 204, 0.55);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-glass-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 183, 0, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 183, 0, 0.55);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
  border-radius: 8px;
}

/* ==========================================================================
   2) SITE HEADER (MINIMALIST & CLEAN REFERENSI)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #090c15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}

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

.header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 44px;
  max-width: 175px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.25));
  transition: transform 0.3s ease;
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.04);
}

.header-auth-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn-daftar {
  background: linear-gradient(180deg, #00ffcc, #00b4d8);
  color: #030a16 !important;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 9px 24px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.7), 0 0 35px rgba(0, 255, 204, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.header-btn-daftar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.95), 0 0 45px rgba(0, 255, 204, 0.5);
  background: linear-gradient(180deg, #33ffd6, #00c8f0);
}

.header-btn-masuk {
  background: transparent;
  color: #00ffcc !important;
  border: 1.5px solid #00ffcc;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-btn-masuk:hover {
  background: rgba(0, 255, 204, 0.12);
  border-color: #33ffd6;
  color: #33ffd6 !important;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO ARENA (ESPORTS & ANALYTICS SHOWCASE)
   ========================================================================== */
.hero-section {
  padding: 48px 0 60px 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 35px;
  align-items: center;
}

/* Hero Left */
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.highlight-purple {
  color: #c084fc;
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}
.highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px var(--accent-cyan-glow);
}
.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 620px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

/* Mini Stats */
.hero-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 24px;
}
.mini-stat-item h4 {
  font-family: var(--font-hud);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
}
.mini-stat-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Progressive Jackpot Pool HUD */
.hero-jackpot-box {
  background: linear-gradient(135deg, rgba(16, 24, 48, 0.9), rgba(8, 14, 28, 0.95));
  border: 1px solid rgba(255, 183, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 183, 0, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
}
.jackpot-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.jackpot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
}
.jackpot-main-ticker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.jackpot-currency {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-gold);
  font-family: var(--font-hud);
}
.jackpot-amount {
  font-family: var(--font-hud);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 183, 0, 0.6);
}
.jackpot-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.jackpot-level-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  border-left: 3px solid;
}
.jackpot-level-card.grand { border-color: #ff0055; }
.jackpot-level-card.major { border-color: #00ffcc; }
.jackpot-level-card.mini { border-color: #ffb700; }
.level-name {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
}
.level-amount {
  display: block;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

/* Hero Right Visual Column */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.banner-3d-card {
  position: relative;
  border-radius: 20px;
  background: #020712;
  border: 1px solid var(--border-glass-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 204, 0.15);
  overflow: hidden;
  padding: 10px;
}
.banner-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}
.corner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-cyan);
  z-index: 10;
  pointer-events: none;
}
.corner-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.corner-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.corner-br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.hud-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: scanlineAnim 3.5s linear infinite;
  z-index: 5;
  pointer-events: none;
}

/* Slot HUD Mini Showcase */
.hud-panel {
  background: rgba(11, 19, 36, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.slot-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.game-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}
.slot-machine-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #020611;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}
.reel-symbol {
  font-size: 2.2rem;
  display: block;
  transition: transform 0.2s ease;
}
.slot-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.multiplier-tag {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* ==========================================================================
   GAMIFICATION HUB (SUB A: SPIN WHEEL, SUB B: EXP, SUB C: MYSTERY)
   ========================================================================== */
.gamification-hub {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-light);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}
.hub-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
  margin-bottom: 25px;
}
.hub-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.hub-tab-btn.active, .hub-tab-btn:hover {
  background: rgba(255, 0, 85, 0.1);
  color: var(--accent-magenta);
  border-color: rgba(255, 0, 85, 0.3);
}
.hub-tab-content {
  display: none;
}
.hub-tab-content.active {
  display: block;
}

/* Sub A: Spin Wheel */
.spin-wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}
.wheel-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 10px 0;
}
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--accent-yellow);
  z-index: 20;
  filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.8));
}
#spinCanvas {
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(0, 255, 204, 0.25), 0 0 0 4px var(--border-glass-light);
}

/* Sub B: Engagement Progress */
.user-level-bar {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 25px;
}
.level-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.exp-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.exp-fill {
  height: 100%;
  width: 62.5%;
  background: linear-gradient(90deg, var(--accent-cyan), #0077b6);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.checkin-day-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s ease;
}
.checkin-day-card.claimed {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}
.checkin-day-title {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 800;
}
.checkin-reward-pts {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin: 6px 0;
}

/* Sub C: Mystery Cards 3D Flip */
.mystery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mystery-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}
.mystery-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.mystery-card.flipped .mystery-inner {
  transform: rotateY(180deg);
}
.mystery-front, .mystery-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mystery-front {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 2px dashed rgba(168, 85, 247, 0.4);
  color: #a855f7;
}
.mystery-back {
  background: linear-gradient(135deg, #064e3b, #022c22);
  border: 2px solid var(--accent-green-bright);
  color: #fff;
  transform: rotateY(180deg);
}

/* ==========================================================================
   8) MEGA EVENT DASHBOARD & COUNTDOWN (DOMAIN 1)
   ========================================================================== */
.mega-event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-light);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
}
.event-countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.digit-box {
  background: #020611;
  border: 1px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-hud);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}
.digit-sep {
  font-family: var(--font-hud);
  font-size: 1.8rem;
  color: var(--accent-cyan);
}
.claims-feed-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}
.claim-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* ==========================================================================
   9) LIVE RTP BOARD & REAL-TIME SPLINE WAVE (DOMAIN 1 & WORKSPACE)
   ========================================================================== */
.rtp-board-container {
  background: rgba(10, 16, 31, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 204, 0.25);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 0 35px rgba(0, 255, 204, 0.15);
}
.rtp-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.rtp-item-card {
  background: #0d1527;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
}
.rtp-item-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}
.rtp-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rtp-game-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}
.rtp-pct-value {
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}
.rtp-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.rtp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), #0077b6);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SVG Chart Box */
.svg-chart-box {
  background: #040915;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}
.chart-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.chart-line {
  transition: d 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}
.chart-area {
  transition: d 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   10) GACOR RADAR CARDS (DOMAIN 1)
   ========================================================================== */
.gacor-radar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gacor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 18px;
  transition: all 0.3s ease;
}
.gacor-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 255, 204, 0.15);
}
.gacor-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gacor-countdown-box {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}
.gacor-pattern-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}
.pattern-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.pattern-row.active-row {
  border-color: var(--accent-green-bright);
  background: rgba(0, 255, 135, 0.1);
  color: var(--accent-green-bright);
  font-weight: 700;
}

/* ==========================================================================
   11) HEATMAP RADAR & HEPTAGONAL CHART (DOMAIN 1)
   ========================================================================== */
.heatmap-bars-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  height: 180px;
  align-items: flex-end;
  background: #030814;
  border-radius: 12px;
  padding: 16px 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 20px;
}
.heatmap-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.heatmap-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), #0077b6);
  border-radius: 6px 6px 0 0;
  transition: height 0.8s ease;
}
.heatmap-bar-fill.peak {
  background: linear-gradient(180deg, #ff0055, #ff5500);
}
.heatmap-hour-label {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ==========================================================================
   12) 4-CHART PERFORMANCE & ANALYTICS SUITE (DOMAIN 3)
   ========================================================================== */
.analytics-charts-bare {
  margin-top: 20px;
}
.charts-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.charts-main-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

/* ==========================================================================
   13) DUAL DONUT SATISFACTION CHARTS (DOMAIN 3)
   ========================================================================== */
.satisfaction-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.satisfaction-card {
  background: #090e1c;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border-glass);
}
.donut-svg-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut-center-text {
  position: absolute;
  text-align: center;
}
.donut-number {
  font-family: var(--font-hud);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}
.donut-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   14) TOP SEO ARTICLE (RESILIENCE ENGINEERING - DOMAIN 3)
   ========================================================================== */
.article-seo-top-card-v2-bare {
  padding: 40px 0;
}
.article-single-content {
  max-width: 960px;
  margin: 0 auto;
}
.article-ref-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.article-ref-paragraph {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-ref-paragraph strong {
  color: #fff;
}
.article-ref-paragraph a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ==========================================================================
   17) TESTIMONIAL GRID (KOMUNITAS MEMBER QQMACAN)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto 0 auto;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.15);
}
.testimonial-card:hover::before {
  opacity: 1;
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 180, 216, 0.3));
  border: 1.5px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 800;
}
.testimonial-meta h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}
.testimonial-meta span {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.testimonial-rating {
  color: #ffb700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  gap: 3px;
}
.testimonial-quote {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

/* ==========================================================================
   18) FAQ ACCORDION (DOMAIN 1)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(0, 255, 204, 0.4);
}
.faq-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}
.faq-header i {
  transition: transform 0.3s ease;
  color: var(--accent-cyan);
}
.faq-item.active .faq-header i {
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.active .faq-body {
  padding: 0 20px 16px 20px;
  max-height: 250px;
}

/* ==========================================================================
   19) FOOTER & FLOATING WIDGETS
   ========================================================================== */
.site-footer {
  background: #03060e;
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 100px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Floating Actions */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 990;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Sticky Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(4, 8, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  z-index: 999;
  padding: 8px 12px;
}
.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.bottom-nav-item {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}
.bottom-nav-item i {
  font-size: 1.15rem;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--accent-cyan);
}
.bottom-nav-item.highlight-daftar {
  color: var(--accent-cyan);
}

/* ==========================================================================
   20) INTERACTIVE MODAL POPUPS (SYSTEM POPUP & PRIZE MODAL)
   ========================================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-container {
  position: relative;
  width: 90%;
  max-width: 410px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #0b1122, #050811);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 204, 0.25);
  border: 1px solid rgba(0, 255, 204, 0.3);
  text-align: center;
}
.popup-banner-wrap {
  width: 100%;
  box-sizing: border-box;
}
.popup-banner-img {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.popup-banner-img:hover {
  transform: scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.35);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.close-btn:hover {
  background: var(--accent-magenta);
  transform: rotate(90deg);
}
.info-table {
  width: 90%;
  margin: 16px auto;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}
.info-table th {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid var(--border-glass);
}
.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}
.info-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   21) RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .rtp-grid-6, .gacor-radar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-ref-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 38px;
    max-width: 140px;
  }
  .header-btn-daftar {
    padding: 7px 18px;
    font-size: 0.78rem;
  }
  .header-btn-masuk {
    padding: 6px 16px;
    font-size: 0.78rem;
  }
  .satisfaction-grid-2 {
    grid-template-columns: 1fr;
  }
  .rtp-grid-6, .gacor-radar-grid {
    grid-template-columns: 1fr;
  }
  .mystery-grid {
    grid-template-columns: 1fr;
  }
  .checkin-calendar {
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-bottom-nav {
    display: block;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .jackpot-amount {
    font-size: 1.4rem;
  }
}
