/* ==========================================================
   LUCKY HOURLY SPIN - LUXURY CYBER & GOLD THEME
   ========================================================== */

:root {
  --bg-main: #05070c;
  --bg-card: rgba(12, 16, 26, 0.88);
  --bg-card-hover: rgba(20, 26, 42, 0.96);
  --bg-drawer: #0a0e17;
  
  --primary-gold: #f5b041;
  --primary-gold-bright: #ffd700;
  --primary-gold-glow: rgba(245, 176, 65, 0.5);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.45);
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(245, 176, 65, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-main: 0 16px 40px -8px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 30px var(--primary-gold-glow);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
}

/* ==========================================================
   COOL ANIMATED BACKGROUND DESIGN
   ========================================================== */
.bg-stars-layer {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 60px 170px, #ffd700, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 120px 80px, #00f0ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 240px 190px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 320px 120px, #a855f7, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: starsFloat 50s linear infinite;
}

@keyframes starsFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-400px); }
}

.bg-cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 176, 65, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  perspective: 500px;
  pointer-events: none;
  z-index: 0;
}

.bg-radial-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(15, 23, 42, 0.4) 0%, rgba(5, 7, 12, 0.95) 75%, var(--bg-main) 100%);
  pointer-events: none;
  z-index: 0;
}

.ambient-nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.nebula-gold {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #f5b041, #ea580c);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.22;
  animation: pulseNebula 8s infinite alternate ease-in-out;
}

.nebula-cyan {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #00f0ff, #3b82f6);
  bottom: -60px;
  right: -80px;
  opacity: 0.2;
}

.nebula-purple {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #a855f7, #f43f5e);
  top: 30%;
  left: -100px;
  opacity: 0.18;
}

@keyframes pulseNebula {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.18; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.26; }
}

/* Confetti Overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 680px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  cursor: pointer;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.25), rgba(0, 240, 255, 0.25));
  border: 1.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  box-shadow: 0 0 18px rgba(245, 176, 65, 0.3);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  animation: rotateSlow 20s linear infinite;
}

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

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff 30%, #ffd700 80%, #ff9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

/* Hourly Status Bar */
.hourly-status-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 0.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-main);
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.status-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.status-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-gold {
  color: var(--primary-gold-bright);
}

.timer-card {
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 0 0.5rem;
}

.countdown-digits {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* ==========================================================
   WHEEL STAGE & DESIGN BACKDROP
   ========================================================== */
.wheel-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 1.5rem 0;
  padding: 15px;
}

/* Ambient Radial Glow */
.spin-backdrop-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 176, 65, 0.25) 0%, rgba(0, 240, 255, 0.1) 45%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

/* Spoke Rays */
.spin-rays-ring {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 25deg,
    rgba(255, 215, 0, 0.06) 25deg 36deg,
    transparent 36deg 61deg,
    rgba(0, 240, 255, 0.06) 61deg 72deg,
    transparent 72deg 97deg,
    rgba(255, 215, 0, 0.06) 97deg 108deg,
    transparent 108deg 133deg,
    rgba(0, 240, 255, 0.06) 133deg 144deg,
    transparent 144deg 169deg,
    rgba(255, 215, 0, 0.06) 169deg 180deg,
    transparent 180deg 205deg,
    rgba(0, 240, 255, 0.06) 205deg 216deg,
    transparent 216deg 241deg,
    rgba(255, 215, 0, 0.06) 241deg 252deg,
    transparent 252deg 277deg,
    rgba(0, 240, 255, 0.06) 277deg 288deg,
    transparent 288deg 313deg,
    rgba(255, 215, 0, 0.06) 313deg 324deg,
    transparent 324deg 349deg,
    rgba(0, 240, 255, 0.06) 349deg 360deg
  );
  animation: rotateSlow 30s linear infinite;
  pointer-events: none;
}

/* Orbit Rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  width: 490px;
  height: 490px;
  border: 1px dashed rgba(245, 176, 65, 0.25);
  box-shadow: 0 0 35px rgba(245, 176, 65, 0.08);
  animation: rotateSlow 45s linear infinite;
}

.ring-middle {
  width: 450px;
  height: 450px;
  border: 1.5px solid rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.12);
  animation: rotateReverse 55s linear infinite;
}

.ring-inner {
  width: 415px;
  height: 415px;
  border: 1px dotted rgba(255, 255, 255, 0.2);
}

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

/* Pointer / Needle */
.pointer-wrapper {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.pointer-arrow {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #ffd700;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
  position: relative;
  transition: transform 0.05s ease-out;
}

.pointer-arrow.ticking {
  transform: rotate(-14deg) scale(1.1);
}

.pointer-gem {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffffff, #ff3d00);
  border: 2px solid #ffd700;
  border-radius: 50%;
  margin-top: -38px;
  box-shadow: 0 0 12px #ffd700;
}

/* Wheel Container & Canvas */
.wheel-container {
  position: relative;
  width: 390px;
  height: 390px;
  max-width: 88vw;
  max-height: 88vw;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle, rgba(245, 176, 65, 0.25) 0%, rgba(10, 14, 24, 0.96) 75%);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), inset 0 0 30px rgba(245, 176, 65, 0.4);
}

.wheel-outer-bezel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #1e2638;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(245, 176, 65, 0.35);
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* Luxury Center Hub (Pure Decorative Emblem) */
.wheel-center-hub {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.hub-outer-gold {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700, #b8860b 65%, #181d28 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.95), 0 0 22px rgba(255, 215, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wheel-center-hub:hover .hub-outer-gold,
.wheel-center-hub:active .hub-outer-gold {
  box-shadow: 0 0 35px rgba(255, 215, 0, 1), inset 0 0 15px rgba(255, 255, 255, 0.5);
  border-color: #ffd700;
}

.hub-inner-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #101524, #05070c);
  border: 1.5px solid rgba(255, 215, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-star-icon {
  width: 26px;
  height: 26px;
  color: #ffd700;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
  animation: pulseStar 2.2s infinite ease-in-out;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 10px #ffd700); }
}

/* Win Announcement Banner */
.win-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.24), rgba(0, 240, 255, 0.2));
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 30px var(--primary-gold-glow);
  animation: bannerPulse 1.5s infinite alternate ease-in-out;
}

@keyframes bannerPulse {
  from { transform: scale(0.99); box-shadow: 0 0 15px var(--primary-gold-glow); }
  to { transform: scale(1.01); box-shadow: 0 0 32px rgba(255, 215, 0, 0.65); }
}

.win-badge-icon {
  font-size: 2.2rem;
}

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

.win-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-gold-bright);
  letter-spacing: 1px;
}

.win-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 14px var(--primary-gold);
}

.win-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* LAST 3 RESULTS SECTION */
.last-results-section {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-main);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-gold);
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.live-dot-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 240, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: blinkDot 1.5s infinite ease-in-out;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.result-card.latest-win {
  border-color: var(--primary-gold);
  background: linear-gradient(180deg, rgba(245, 176, 65, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 18px rgba(245, 176, 65, 0.25);
}

.result-card.latest-win::before {
  content: 'LATEST';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-gold);
  color: #000;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 2px 7px;
  border-bottom-left-radius: 6px;
  letter-spacing: 0.5px;
}

.result-rank {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.result-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.result-card.latest-win .result-number {
  color: var(--primary-gold-bright);
  text-shadow: 0 0 12px var(--primary-gold-glow);
}

.result-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.empty-card .result-number {
  color: var(--text-muted);
  font-size: 1.6rem;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.footer-secret-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  flex-shrink: 0;
}

.footer-secret-btn:hover,
.footer-secret-btn:active {
  color: var(--primary-gold);
  background: rgba(245, 176, 65, 0.15);
  transform: scale(1.1);
}

.footer-secret-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   MODALS (HELP & SECRET MASTER AUTH)
   ========================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-wrapper.hidden {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: var(--bg-drawer);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.master-auth-card {
  border-color: var(--border-gold);
  box-shadow: 0 0 35px rgba(245, 176, 65, 0.3), 0 25px 50px rgba(0, 0, 0, 0.95);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-header-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary-gold);
}

.modal-header-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-info-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.help-info-block h4 {
  font-size: 0.88rem;
  color: var(--primary-gold);
  margin-bottom: 0.3rem;
}

.help-info-block p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.login-row {
  display: flex;
  gap: 0.5rem;
}

.login-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.4rem;
}

/* ==========================================================
   ADMIN CONTROL DRAWER / MODAL
   ========================================================== */
.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  visibility: visible;
  transition: visibility 0.3s;
}

.admin-drawer.hidden {
  visibility: hidden;
  pointer-events: none;
}

.admin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.admin-drawer.hidden .admin-overlay {
  opacity: 0;
}

.admin-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: var(--bg-drawer);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.9);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-drawer.hidden .admin-panel {
  transform: translateX(100%);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-header-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary-gold);
}

.admin-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.control-highlight {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(245, 176, 65, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.admin-card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.admin-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.step-num {
  background: var(--primary-gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-card-title h4 {
  font-size: 0.98rem;
  font-weight: 700;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* Timer Mode Radio Selectors */
.timer-mode-row {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--primary-gold);
}

/* Custom Timer Inputs Flex */
.timer-inputs-flex {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.timer-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timer-input-box label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-timer-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preset-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 2px;
}

/* Forced Selector & Quick Test */
.forced-selector-row {
  display: flex;
  gap: 0.5rem;
}

.admin-select, .admin-input {
  flex: 1;
  background: #121722;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.admin-select:focus, .admin-input:focus {
  border-color: var(--primary-gold);
}

.active-forced-tag {
  margin-top: 0.65rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Specific Round Timing & Winner Box */
.round-winner-preset-box {
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.preset-box-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-gold-bright);
  margin-bottom: 0.25rem;
}

.timing-winner-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.6rem;
}

.grid-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.active-timing-badge {
  margin-top: 0.65rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-timing-badge strong {
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.active-forced-tag strong {
  color: var(--accent-cyan);
  font-size: 1.05rem;
}

/* Upcoming 3 Rounds Queue Box */
.upcoming-queue-box {
  margin-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.75rem;
}

.queue-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.queue-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.queue-select {
  padding: 0.35rem 0.4rem;
  font-size: 0.78rem;
}

/* Buttons */
.btn {
  padding: 0.62rem 1.05rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary-gold);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-gold-bright);
  box-shadow: 0 0 16px var(--primary-gold-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-gold {
  background: linear-gradient(135deg, #f5b041, #ff9800);
  color: #000;
}

.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px var(--primary-gold-glow);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
}

.btn-text {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* 10 Slots Editor Grid */
.slots-editor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.slot-input-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.slot-input {
  width: 100%;
  background: #121722;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 0.45rem 0.2rem;
}

.slot-input:focus {
  border-color: var(--primary-gold);
  outline: none;
}

.admin-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.save-status-msg {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
}

/* 24-Hour Schedule Table */
.schedule-table-wrap {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.schedule-table th {
  background: #121722;
  padding: 0.55rem 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}

.schedule-table td {
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.schedule-table tr.current-hour-row {
  background: rgba(245, 176, 65, 0.1);
}

.schedule-hour-badge {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  color: var(--accent-cyan);
}

.schedule-select {
  background: #121722;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
}

.master-key-change-row {
  display: flex;
  gap: 0.5rem;
}

/* Test Buttons */
.test-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .wheel-container {
    width: 315px;
    height: 315px;
  }
  
  .ring-outer {
    width: 350px;
    height: 350px;
  }

  .ring-middle {
    width: 380px;
    height: 380px;
  }
  
  .result-number {
    font-size: 1.6rem;
  }

  .hourly-status-bar {
    grid-template-columns: 1fr 1.2fr 1fr;
    padding: 0.5rem;
  }
  
  .countdown-digits {
    font-size: 1rem;
  }
}
