:root {
  --primary-gold: #ffd54f;
  --accent-orange: #ff9800;
  --accent-cyan: #00e5ff;
  --accent-pink: #e040fb;
  --accent-green: #00e676;
  --bg-dark: #0d0824;
  --card-bg: rgba(25, 17, 56, 0.75);
  --card-border: rgba(255, 255, 255, 0.12);
  --text-white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: var(--font-family);
  background-color: #05030e;
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Central Mobile App Viewport Container */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease;
}

@media (min-width: 600px) {
  .app-container {
    height: 90vh;
    border-radius: 28px;
  }
}

/* ==========================================
   DYNAMIC BACKGROUND THEMES (Exact Android match)
   ========================================== */
.theme-neon-night {
  background: linear-gradient(180deg, #0d0824 0%, #160e36 50%, #090417 100%);
}
.theme-sunset-bliss {
  background: linear-gradient(180deg, #3e1b00 0%, #bf360c 50%, #1a0800 100%);
}
.theme-emerald-garden {
  background: linear-gradient(180deg, #0a2612 0%, #1b5e20 50%, #041408 100%);
}
.theme-cyber-grid {
  background: linear-gradient(180deg, #031e24 0%, #004d40 50%, #020f12 100%);
}
.theme-golden-luxury {
  background: linear-gradient(180deg, #2b1f00 0%, #ff8f00 50%, #171000 100%);
}
.theme-ocean-breeze {
  background: linear-gradient(180deg, #021a30 0%, #01579b 50%, #010d1a 100%);
}
.theme-twilight-orchard {
  background: linear-gradient(180deg, #29082f 0%, #6a1b9a 50%, #150319 100%);
}
.theme-volcano-glow {
  background: linear-gradient(180deg, #2a0b0b 0%, #b71c1c 50%, #130404 100%);
}

/* TOP STATUS / CURRENCY BAR */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(13, 8, 36, 0.4);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 13px;
}

.coins-pill {
  border-color: rgba(255, 213, 79, 0.4);
  color: #ffd54f;
}

.gems-pill {
  border-color: rgba(0, 229, 255, 0.4);
  color: #80d8ff;
}

/* SCREENS */
.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}

.screen.active {
  display: flex;
}

/* HOME SCREEN HERO */
.home-hero {
  text-align: center;
  margin: 16px 0 20px;
  position: relative;
}

.hero-logo-box {
  position: relative;
  display: inline-block;
}

.logo-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, #ffd54f 50%, #ff9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
}

.logo-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff9800, #f50057);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 4px;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.floating-fruit {
  position: absolute;
  font-size: 24px;
  animation: floatFruit 3s ease-in-out infinite alternate;
}

.f1 { top: -10px; left: -25px; animation-delay: 0s; }
.f2 { top: -14px; right: -25px; animation-delay: 1s; }
.f3 { bottom: -10px; right: -15px; animation-delay: 1.8s; }

@keyframes floatFruit {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(12deg); }
}

/* PROGRESS BAR */
.home-progress-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* HOME PLAY & MENU ACTIONS */
.home-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-primary-play {
  background: linear-gradient(135deg, #ffb300, #ff6f00);
  border: none;
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 111, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary-play:active {
  transform: scale(0.97);
}

.play-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.play-text {
  text-align: left;
}

.play-text .main-label {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.play-text .sub-label {
  font-size: 12px;
  opacity: 0.9;
}

.grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-tile:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.tile-icon {
  font-size: 28px;
}

.tile-title {
  font-size: 14px;
  font-weight: 700;
}

.ad-sponsor-banner {
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--primary-gold);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ad-info {
  display: flex;
  flex-direction: column;
}

.ad-info strong {
  color: var(--primary-gold);
  font-size: 14px;
}

.ad-info span {
  font-size: 11px;
  color: var(--text-dim);
}

.btn-watch-ad {
  background: linear-gradient(135deg, #00e676, #1b5e20);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

/* ==========================================
   GAMEPLAY SCREEN & HUD
   ========================================== */
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 12px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.hud-val {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.hud-timer .hud-val {
  color: var(--primary-gold);
}

.hud-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* MAIN BOARD & 3D TUBES */
.tubes-board {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 16px 14px;
  padding: 8px 4px;
  min-height: 380px;
}

/* CONTAINER TUBE STRUCTURE */
.tube-wrapper {
  position: relative;
  width: 68px;
  height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tube-wrapper:active {
  transform: scale(0.97);
}

.tube-wrapper.selected {
  transform: translateY(-8px);
}

.tube-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 18px 18px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 6px 12px;
  gap: 4px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15), 0 8px 16px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(4px);
  overflow: visible;
}

/* Selected glow outline */
.tube-wrapper.selected .tube-container {
  border-color: #ffd54f;
  box-shadow: 0 0 18px rgba(255, 213, 79, 0.6), inset 0 0 14px rgba(255, 213, 79, 0.3);
}

/* STYLE VARIANTS */
.style-glass-jar {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.style-gold-flute {
  border-color: rgba(255, 215, 0, 0.6);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
}

.style-neon-tube {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.style-bamboo-jar {
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.2);
  border-radius: 12px;
}

.style-potion-flask {
  border-color: #e040fb;
  background: rgba(124, 77, 255, 0.2);
}

.style-diamond-vase {
  border-color: #80deea;
  box-shadow: 0 0 15px rgba(128, 222, 234, 0.4);
}

/* FRUIT SPHERE 3D */
.fruit-item {
  width: 52px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 65% 70%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%),
              var(--fruit-color, #ff5252);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Floating Selected Fruit */
.fruit-item.floating-top {
  transform: translateY(-24px) scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 213, 79, 0.6);
  z-index: 10;
}

/* Special Fruit Overlays */
.fruit-item.frozen::after {
  content: '❄️';
  position: absolute;
  font-size: 14px;
  top: -4px;
  right: -2px;
}

.fruit-item.golden::after {
  content: '⭐';
  position: absolute;
  font-size: 13px;
  top: -4px;
  right: -2px;
  animation: spinStar 2s linear infinite;
}

@keyframes spinStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* TUBE COMPLETED CORK BADGE */
.tube-cork {
  position: absolute;
  top: -12px;
  background: linear-gradient(180deg, #d7ccc8, #8d6e63);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  animation: popCork 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popCork {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* LOCKED TUBE OVERLAY */
.tube-lock-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* BOTTOM POWERUPS DOCK */
.powerups-dock {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  background: rgba(13, 8, 36, 0.6);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
}

.pu-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  color: #fff;
  cursor: pointer;
  min-width: 58px;
  transition: all 0.15s;
}

.pu-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
}

.pu-icon {
  font-size: 18px;
}

.pu-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

.pu-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 10px;
  padding: 1px 6px;
  border: 1px solid #fff;
}

/* ==========================================
   MODALS & OVERLAYS
   ========================================== */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #191238;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-gold);
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

/* 1000 SAGA CHAPTERS ROW & GRID */
.chapter-chips-row {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-chip {
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.chapter-chip.active {
  background: var(--primary-gold);
  color: #1b1002;
  border-color: #ffb300;
}

.levels-grid-container {
  overflow-y: auto;
  padding: 16px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.level-tile {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s;
}

.level-tile:active {
  transform: scale(0.92);
}

.level-tile.unlocked {
  background: #251c50;
  border-color: #5c4ba5;
}

.level-tile.current {
  background: var(--accent-orange);
  border-color: #fff;
  color: #000;
}

.level-tile.boss {
  border-color: var(--accent-pink);
  background: #4a154b;
}

.level-tile .tile-num {
  font-size: 16px;
  font-weight: 900;
}

.level-tile .tile-stars {
  font-size: 10px;
  margin-top: 2px;
}

/* SHOP TABS & CARDS */
.shop-tabs-row {
  display: flex;
  padding: 10px 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-tab {
  flex: 1;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.shop-tab.active {
  background: var(--primary-gold);
  color: #1a0f02;
  border-color: #ffa000;
}

.shop-tab-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
}

.shop-tab-pane.active {
  display: flex;
}

.shop-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.shop-item-card.equipped {
  border-color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
}

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

.shop-item-icon {
  font-size: 26px;
}

.shop-item-name {
  font-size: 14px;
  font-weight: 800;
}

.shop-item-desc {
  font-size: 11px;
  color: var(--text-dim);
}

.btn-shop-action {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.btn-buy {
  background: linear-gradient(135deg, #ffd54f, #ff9800);
  color: #1a0f02;
}

.btn-equip {
  background: linear-gradient(135deg, #00e5ff, #0288d1);
  color: #fff;
}

.tag-active {
  background: #1b5e20;
  color: #00e676;
  border: 1px solid #00e676;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

/* LUCKY WHEEL */
.modal-wheel-content {
  align-items: center;
  padding-bottom: 24px;
}

.wheel-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.wheel-wrapper {
  position: relative;
  margin: 20px 0;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: #ffd54f;
  z-index: 10;
}

#wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 213, 79, 0.3);
  border: 4px solid var(--primary-gold);
}

/* WIN & LOSE MODALS */
.modal-win-content, .modal-lose-content {
  align-items: center;
  text-align: center;
  padding: 28px 20px;
}

.win-crown, .lose-icon {
  font-size: 54px;
  margin-bottom: 8px;
}

.win-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-gold);
}

.lose-title {
  font-size: 24px;
  font-weight: 900;
  color: #ff5252;
}

.stars-earned-row {
  display: flex;
  gap: 8px;
  font-size: 34px;
  margin: 14px 0;
}

.win-rewards-box {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.win-reward-pill {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 800;
  font-size: 14px;
}

.win-buttons-row, .lose-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-primary-action {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #ffb300, #ff6f00);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.btn-revive {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #00e676, #1b5e20);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

/* SETTINGS */
.settings-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00e676;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.settings-danger {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d32f2f;
  background: rgba(211, 47, 47, 0.2);
  color: #ff5252;
  font-weight: 800;
  cursor: pointer;
}

/* TOAST MESSAGE */
.toast-box {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--primary-gold);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.toast-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* AD VIDEO SIMULATOR OVERLAY */
.ad-video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.ad-video-overlay.active {
  display: flex;
}

.ad-player-box {
  width: 90%;
  max-width: 400px;
  background: #111;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ad-top-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
}

.ad-timer {
  color: #ffd54f;
  font-weight: 800;
}

.ad-body-creative {
  text-align: center;
  margin: 30px 0;
}

.ad-logo {
  font-size: 24px;
  font-weight: 900;
  color: #00e5ff;
  margin-bottom: 8px;
}

.ad-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-close-ad {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #333;
  color: #888;
  font-weight: 800;
  font-size: 14px;
}

.btn-close-ad:not(:disabled) {
  background: #00e676;
  color: #000;
  cursor: pointer;
}
