/* ==========================================================================
   ALEXA GAME: PULSE MATRIX — MASTER STYLESHEET (v8.0 ENTERPRISE EDITION)
   Theme: Cyberpunk Matrix Arcadium / Glassmorphism Dark OLED
   Compatibility: Mobile First, Tablet Responsive, Desktop Side-Rail Skyscraper
   AdMob SOP Guidelines: Strict Ad Attribution, No Accidental Clicks, Clear Margins
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-core: #07090E;
  --bg-gradient: radial-gradient(circle at 50% -20%, rgba(0, 245, 155, 0.12), transparent 55%), #07090E;
  --panel-bg: rgba(14, 18, 26, 0.85);
  --panel-bg-elevated: #151D28;
  --panel-bg-subtle: rgba(10, 14, 22, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 245, 155, 0.4);
  --border-gold: rgba(255, 202, 40, 0.3);
  --border-danger: rgba(255, 71, 87, 0.4);

  /* Brand Accents */
  --primary: #00F59B;
  --primary-glow: rgba(0, 245, 155, 0.35);
  --primary-deep: #00C878;
  --gold: #FFCA28;
  --gold-glow: rgba(255, 202, 40, 0.35);
  --gold-deep: #FFA000;
  --danger: #FF4757;
  --danger-glow: rgba(255, 71, 87, 0.35);
  --cyan: #00D2FF;
  --cyan-glow: rgba(0, 210, 255, 0.35);
  --purple: #9D4EDD;

  /* Typography Colors */
  --text-main: #F1F5F9;
  --text-heading: #FFFFFF;
  --text-muted: #8E9BAE;
  --text-dim: #556275;

  /* Elevation & Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-Index Hierarchy */
  --z-base: 1;
  --z-canvas: 10;
  --z-sticky-banner: 1000;
  --z-toast: 2000000;
  --z-modal: 50000;
  --z-ad-fullscreen: 999999;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLING
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-core);
}
::-webkit-scrollbar-thumb {
  background: var(--panel-bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background: var(--primary);
  color: #000;
}

/* --------------------------------------------------------------------------
   3. AESTHETIC FLOATING TOAST SYSTEM (BEBAS POPUP ABU-ABU BROWSER)
   -------------------------------------------------------------------------- */
#game-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: rgba(15, 22, 34, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--primary);
  color: var(--text-heading);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
  z-index: var(--z-toast);
  transition: transform var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
  letter-spacing: 0.3px;
}
#game-toast.show {
  transform: translateX(-50%) translateY(0);
}
#game-toast.danger {
  border-color: var(--danger);
  box-shadow: var(--shadow-lg), 0 0 20px var(--danger-glow);
}
#game-toast.gold {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 20px var(--gold-glow);
}
#game-toast.info {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg), 0 0 20px var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   4. ADBLOCK WARNING NOTIFICATION
   -------------------------------------------------------------------------- */
#adblock-alert-bar {
  display: none;
  background: rgba(255, 71, 87, 0.16);
  border: 1px solid var(--danger);
  color: #FFA4AD;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.15);
}

/* --------------------------------------------------------------------------
   5. DESKTOP & TABLET LAYOUT WRAPPER (DENGAN SKYSCRAPER SIDE-RAILS)
   -------------------------------------------------------------------------- */
.layout-master-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
}

/* Desktop Side Rail Skyscrapers */
.side-rail-ad-slot {
  display: none;
  width: 160px;
  min-height: 600px;
  background: var(--panel-bg);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 70px;
}
.side-rail-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}
.side-rail-creative {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.side-rail-icon {
  font-size: 42px;
}
.side-rail-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}
.side-rail-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}
.side-rail-btn {
  background: var(--panel-bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.side-rail-btn:hover {
  background: var(--primary);
  color: #000;
}

@media (min-width: 960px) {
  .side-rail-ad-slot {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   6. STICKY HEADER & FOOTER ANCHOR BANNER ADS (ADMOB SOP COMPLIANT)
   -------------------------------------------------------------------------- */
.ad-anchor-sticky {
  width: 100%;
  max-width: 440px;
  background: rgba(12, 16, 24, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 6px 0;
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: max-height var(--transition-normal);
  overflow: hidden;
}
.ad-anchor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}
.ad-official-badge {
  background: rgba(255, 202, 40, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 202, 40, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.ad-collapse-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 0 4px;
}
.ad-anchor-body {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ad-anchor-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.ad-anchor-icon {
  font-size: 24px;
}
.ad-anchor-text {
  font-size: 11px;
  color: #CBD5E1;
  line-height: 1.25;
}
.ad-anchor-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #04120B;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   7. CORE MAIN CONTAINER (CYBER-GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 440px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg), var(--shadow-inner);
  position: relative;
  z-index: var(--z-base);
}

/* Telemetri Status */
.telemetry-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: var(--panel-bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.telemetry-node {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Brand Header */
.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.brand-title {
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navigation Tabs */
.tab-nav {
  display: flex;
  gap: 4px;
  background: rgba(8, 11, 16, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.tab-btn {
  flex: 1;
  padding: 9px 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.tab-btn:hover {
  color: var(--text-main);
}
.tab-btn.active {
  background: var(--panel-bg-elevated);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tab-badge {
  background: var(--danger);
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: var(--radius-full);
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   8. HUD STATISTIK GAME
   -------------------------------------------------------------------------- */
.hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.hud-card {
  background: var(--panel-bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 4px;
  text-align: center;
  transition: transform var(--transition-fast);
}
.hud-card:hover {
  transform: translateY(-1px);
}
.hud-label {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.hud-value {
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   9. KANVAS MATRIX RADAR RESPONSIF
   -------------------------------------------------------------------------- */
.canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  background: radial-gradient(circle at center, #0B111A 0%, #05070A 100%);
  border: 1.5px solid rgba(0, 245, 155, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.4);
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.canvas-shake {
  animation: screenRattle 0.3s ease;
}
@keyframes screenRattle {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 4px); }
  50% { transform: translate(6px, -4px); }
  75% { transform: translate(-4px, 2px); }
}

/* --------------------------------------------------------------------------
   10. NATIVE ADVANCED IN-FEED ADS (ADMOB COMPLIANT)
   -------------------------------------------------------------------------- */
.native-ad-card {
  background: rgba(15, 21, 31, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}
.native-ad-card:hover {
  border-color: var(--gold);
}
.native-ad-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.native-ad-badge {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1A1300;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}
.native-ad-sponsor-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.native-ad-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.native-ad-thumb {
  font-size: 32px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.native-ad-details {
  flex: 1;
}
.native-ad-title {
  font-size: 12px;
  font-weight: 800;
  color: #E2E8F0;
  line-height: 1.3;
  margin-bottom: 2px;
}
.native-ad-snippet {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.35;
}
.native-ad-cta-btn {
  background: var(--panel-bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-end;
  transition: all var(--transition-fast);
}
.native-ad-cta-btn:hover {
  background: var(--gold);
  color: #000;
}

/* --------------------------------------------------------------------------
   11. ACTION BUTTONS & GRID
   -------------------------------------------------------------------------- */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.btn {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #04120B;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1A1300;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #7B2CBF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(157, 78, 221, 0.4);
}
.btn-dark {
  background: var(--panel-bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-dark:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #D63031 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--danger-glow);
}

/* --------------------------------------------------------------------------
   12. MULTI-VIDEO MARATHON SELECTOR DIALOG
   -------------------------------------------------------------------------- */
.marathon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.marathon-card {
  background: rgba(8, 11, 16, 0.8);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.marathon-card:hover, .marathon-card.selected {
  border-color: var(--gold);
  background: rgba(255, 202, 40, 0.08);
  transform: translateY(-2px);
}
.marathon-count {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-heading);
}
.marathon-reward {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-top: 2px;
}
.marathon-dur {
  font-size: 9px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. MASTER MODAL IKLAN VIDEO KETAT (NON-SKIPPABLE & MULTI-BATCH QUEUE)
   (ANTI-RUGI OWNER: TIDAK TAYANG = TIDAK DAPAT KOIN!)
   -------------------------------------------------------------------------- */
#ad-engine-modal {
  position: fixed;
  inset: 0;
  background: #05070B;
  z-index: var(--z-ad-fullscreen);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
}

/* Header Bar Modal Iklan */
.ad-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ad-pill-badge {
  background: rgba(0, 245, 155, 0.15);
  border: 1px solid rgba(0, 245, 155, 0.3);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 1s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ad-timer-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#ad-dismiss-btn {
  background: #1C232E;
  color: #64748B;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  cursor: not-allowed;
  transition: all var(--transition-fast);
}
#ad-dismiss-btn.active {
  background: var(--primary);
  color: #04120B;
  border-color: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Multi-Video Step Progress Tracker */
.ad-step-tracker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
  overflow-x: auto;
  padding: 4px 0;
}
.ad-step-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-step-node.completed {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
.ad-step-node.active {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  transform: scale(1.15);
}

/* Video Stage Area */
.ad-video-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 8px 0;
  max-height: 480px;
}
#ad-canvas-player {
  width: 100%;
  height: 100%;
  max-width: 420px;
  max-height: 380px;
  display: block;
  object-fit: contain;
}

/* Status Overlay (Loading / Verification Error) */
.ad-video-status-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 10;
}
.ad-loading-spinner {
  width: 42px;
  height: 42px;
  border: 3.5px solid rgba(0, 245, 155, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinnerAd 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spinnerAd {
  to { transform: rotate(360deg); }
}

.ad-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}
.ad-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
  transition: width 0.2s linear;
}

/* --------------------------------------------------------------------------
   14. MODAL OVERLAYS (STANDARD DIALOGS)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  background: #0E131C;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 245, 155, 0.1);
}

/* --------------------------------------------------------------------------
   15. SEO CONTENT & SEMANTIC FAQ SECTION (GOOGLE INDEX COMPLIANT)
   -------------------------------------------------------------------------- */
.seo-content-section {
  width: 100%;
  max-width: 440px;
  margin-top: 20px;
  background: var(--panel-bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 12px;
  line-height: 1.65;
  color: #94A3B8;
}
.seo-content-section h1 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.35;
}
.seo-content-section h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 6px 0;
}
.seo-content-section p {
  margin-bottom: 10px;
}
.seo-content-section ul, .seo-content-section ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
.seo-faq-item {
  background: rgba(8, 11, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.seo-faq-item summary {
  padding: 11px 14px;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.seo-faq-item summary::-webkit-details-marker {
  display: none;
}
.seo-faq-item summary::after {
  content: '+';
  font-size: 16px;
  color: var(--primary);
}
.seo-faq-item[open] summary::after {
  content: '−';
}
.seo-faq-desc {
  padding: 0 14px 12px 14px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

footer {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 20px 0;
  font-size: 11px;
  color: var(--text-dim);
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS (ALL DEVICES OPTIMIZED)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .brand-title { font-size: 18px; }
  .hud-value { font-size: 11px; }
  .btn { font-size: 11px; padding: 10px; }
}

@media (min-width: 768px) {
  .container {
    max-width: 480px;
    padding: 20px;
  }
}


/* --------------------------------------------------------------------------
   17. ACCESSIBILITY, HIGH CONTRAST & REDUCED MOTION (WCAG 2.1 COMPLIANT)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .canvas-shake { animation: none !important; }
  .ad-pulse-dot { animation: none !important; }
  .ad-loading-spinner { animation: none !important; }
}

@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(255, 255, 255, 0.4);
    --border-focus: #00F59B;
    --text-muted: #CBD5E1;
  }
  .hud-card, .native-ad-card, .marathon-card, .container {
    border-width: 2px !important;
  }
}

/* --------------------------------------------------------------------------
   18. ULTRA-WIDE DESKTOP LAYOUT (1440PX+ 4K SCREENS)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .layout-master-wrapper {
    max-width: 1400px;
    gap: 32px;
  }
  .side-rail-ad-slot {
    width: 250px;
  }
  .side-rail-title {
    font-size: 15px;
  }
  .side-rail-desc {
    font-size: 12px;
  }
  .container {
    max-width: 500px;
  }
}

/* --------------------------------------------------------------------------
   19. PRINT STYLESHEET (OFFLINE GUIDE PRINTING)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .side-rail-ad-slot, .ad-anchor-sticky, #ad-engine-modal, .tab-nav, .action-grid, #audio-toggle-btn {
    display: none !important;
  }
  .container, .seo-content-section {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  h1, h2, h3 {
    color: #000000 !important;
  }
}

/* --------------------------------------------------------------------------
   20. ADDITIONAL THEME MODES & EXTENDED UTILITIES (CYBERPUNK MATRIX ARCADIUM)
   -------------------------------------------------------------------------- */
.theme-cyber-amber {
  --primary: #FFCA28;
  --primary-glow: rgba(255, 202, 40, 0.4);
  --border-focus: #FFA000;
}

.theme-neon-cyan {
  --primary: #00D2FF;
  --primary-glow: rgba(0, 210, 255, 0.4);
  --border-focus: #00A2FF;
}

.theme-matrix-violet {
  --primary: #B5179E;
  --primary-glow: rgba(181, 23, 158, 0.4);
  --border-focus: #7209B7;
}

/* Micro-animations and Keyframe Effects */
@keyframes neonPulseGlow {
  0% { box-shadow: 0 0 5px var(--primary-glow); }
  50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 10px var(--primary); }
  100% { box-shadow: 0 0 5px var(--primary-glow); }
}

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

.shimmer-badge {
  background: linear-gradient(90deg, rgba(255,202,40,0.1) 0%, rgba(255,202,40,0.4) 50%, rgba(255,202,40,0.1) 100%);
  background-size: 200% 100%;
  animation: goldShimmerSweep 3s infinite linear;
}

.radar-sweep-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.radar-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: neonPulseGlow 1.2s infinite ease-in-out;
}

/* Card Glow Hover Effects */
.hud-card, .native-ad-card, .marathon-card {
  position: relative;
  overflow: hidden;
}

.hud-card::after, .native-ad-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.hud-card:hover::after, .native-ad-card:hover::after {
  border-color: var(--border-focus);
}

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay[style*="display: flex"] {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-card {
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay[style*="display: flex"] .modal-card {
  transform: translateY(0) scale(1);
}

/* Tab Content Fade In Animation */
.tab-content {
  animation: fadeInTab 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ad Unit Containers Responsive Constraints */
.ad-slot-leaderboard-banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: var(--panel-bg-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 12px auto;
}

@media (min-width: 768px) {
  .ad-slot-leaderboard-banner {
    display: flex;
  }
}

/* Ad Attribution Label Standard */
.ad-disclosure-text {
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  text-align: right;
  width: 100%;
}


/* ==========================================================================
   TAMBAHAN ATURAN CSS v9.0: ADMOB SOP ADS, MREC, INTERSTITIAL & MARATHON 1-10
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. MEDIUM RECTANGLE (MREC / 300x250) BANNER CONTAINER
   -------------------------------------------------------------------------- */
.mrec-ad-box {
  width: 300px;
  height: 250px;
  margin: 0 auto;
  background: #0B0F17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.mrec-ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
}

.mrec-ad-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mrec-ad-network {
  color: #38BDF8;
  font-size: 9px;
  font-weight: 600;
}

.mrec-ad-body {
  text-align: center;
  margin: auto 0;
}

.mrec-ad-icon {
  font-size: 38px;
  margin-bottom: 6px;
}

.mrec-ad-title {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mrec-ad-tag {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.mrec-ad-cta {
  border: none;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.mrec-ad-cta:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   B. IKLAN INTERSTITIAL POPUP (SOP ADMOB 5s COUNTDOWN)
   -------------------------------------------------------------------------- */
.interstitial-card {
  max-width: 380px !important;
  text-align: center;
  border: 1px solid rgba(0, 245, 155, 0.3) !important;
  background: #0B0E14 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9) !important;
}

.interstitial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.interstitial-ad-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 245, 155, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.interstitial-timer-box {
  background: rgba(255, 202, 40, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}

.interstitial-body {
  padding: 10px 0 16px 0;
}

.interstitial-logo {
  font-size: 46px;
  margin-bottom: 8px;
}

.interstitial-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.interstitial-tag {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.interstitial-cta {
  width: 100%;
  margin-bottom: 12px;
}

.interstitial-close-btn {
  width: 100%;
  transition: opacity 0.3s;
}

/* --------------------------------------------------------------------------
   C. DEDICATED MARATHON VIDEO PORTAL (1-10 CARDS & SLIDER)
   -------------------------------------------------------------------------- */
.marathon-slider-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0 20px 0;
  text-align: center;
}

.marathon-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.marathon-slider-val {
  color: var(--gold);
  font-size: 14px;
}

.marathon-range-input {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  margin: 8px 0;
}

.marathon-reward-preview {
  font-size: 13px;
  color: var(--text-main);
  margin: 10px 0 14px 0;
}

.btn-launch-marathon {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

.marathon-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .marathon-cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.marathon-card {
  background: #0E1420;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}

.marathon-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: #131B2B;
}

.marathon-card.featured {
  border-color: var(--gold);
  background: rgba(255, 202, 40, 0.05);
}

.marathon-card.grand-jackpot {
  border: 1px solid #FFCA28;
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.15), rgba(157, 78, 221, 0.15));
  box-shadow: 0 0 12px rgba(255, 202, 40, 0.2);
}

.m-card-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.featured .m-card-badge {
  color: var(--gold);
}

.grand-jackpot .m-card-badge {
  color: #FFA000;
  font-weight: 900;
}

.m-card-num {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.m-card-reward {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 2px;
}

.m-card-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.admob-policy-callout {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.admob-policy-callout ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

/* --------------------------------------------------------------------------
   D. LUCKY WHEEL STAGE & CONTROLS
   -------------------------------------------------------------------------- */
.wheel-stage-container {
  position: relative;
  display: inline-block;
  margin: 16px auto;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--danger);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

#lucky-wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0, 245, 155, 0.25);
  background: #05070B;
}

.spin-action-controls {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   E. ENERGI & PRE-MATCH WIDGETS
   -------------------------------------------------------------------------- */
.status-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.energy-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.energy-label {
  font-size: 11px;
  color: var(--text-muted);
}

.energy-bar-track {
  width: 90px;
  height: 8px;
  background: #0B0E14;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.energy-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00C878, #00F59B);
  transition: width 0.3s;
}

.btn-refuel-energy {
  background: rgba(0, 245, 155, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-refuel-energy:hover {
  background: var(--primary);
  color: #000;
}

.btn-quick-video-boost {
  background: linear-gradient(135deg, #FFB300, #FF6F00);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.4);
  transition: transform 0.2s;
}

.btn-quick-video-boost:hover {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   F. FLOATING CORNER SPONSOR BADGE
   -------------------------------------------------------------------------- */
.floating-corner-badge {
  position: fixed;
  bottom: 60px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  transition: transform 0.2s;
}

.floating-corner-badge:hover {
  transform: scale(1.1);
}

.floating-badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: pulse-dot 1.5s infinite;
}

.floating-badge-icon {
  font-size: 20px;
}

.floating-sponsor-card {
  position: absolute;
  bottom: 52px;
  right: 0;
  width: 200px;
  background: #111827;
  border: 1px solid rgba(255, 202, 40, 0.4);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  text-align: center;
  cursor: default;
}

.floating-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}

.floating-card-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   G. TAB BADGES & QUICK AD BUTTONS
   -------------------------------------------------------------------------- */
.tab-badge-gold {
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 3px;
}

.quick-ad-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.btn-video-bonus {
  flex: 1;
  background: rgba(255, 202, 40, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-video-bonus:hover {
  background: var(--gold);
  color: #000;
}

.btn-video-marathon {
  flex: 1;
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid var(--purple);
  color: #C77DFF;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-video-marathon:hover {
  background: var(--purple);
  color: #fff;
}

.btn-shield-ad {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-shield-ad:hover {
  background: var(--cyan);
  color: #000;
}

/* --------------------------------------------------------------------------
   H. DOMPET & PENARIKAN PROGRESS
   -------------------------------------------------------------------------- */
.wallet-balance-card {
  background: rgba(255, 202, 40, 0.04);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.wb-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wb-amount {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
}

.wb-rupiah {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin: 4px 0 12px 0;
}

.wb-progress-track {
  width: 100%;
  height: 8px;
  background: #080A0E;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.wb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  transition: width 0.3s;
}

.wb-progress-label {
  font-size: 10px;
  color: var(--text-dim);
}

.payout-actions-row {
  display: flex;
  gap: 8px;
}

.payout-actions-row .btn {
  flex: 1;
}

.ledger-history-box {
  background: #080A0E;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}
