/* ================================================================
   KICKAJ GIVEAWAY STUDIO - Kompletni CSS
   Paleta: #53fc18 (green), #9333ea (violet), #06b6d4 (cyan), #f59e0b (amber)
   ================================================================ */

/* ── CSS Variables ── */
:root {
  --aj-bg:          #07070D;
  --aj-bg2:         #0A0A16;
  --aj-surface:     #12121E;
  --aj-surface2:    #171728;
  --aj-border:      rgba(255, 255, 255, 0.06);
  --aj-border-h:    rgba(83, 252, 24, 0.4);
  --aj-green:       #53fc18;
  --aj-violet:      #8B5CF6;
  --aj-cyan:        #06b6d4;
  --aj-amber:       #f59e0b;
  --aj-pink:        #ec4899;
  --aj-text:        #ffffff;
  --aj-muted:       #94a3b8;
  --aj-muted2:      #64748b;
  --aj-blur:        blur(18px);
  --aj-r-xl:        20px;
  --aj-r-lg:        16px;
  --aj-r-md:        12px;
  --aj-r-sm:        8px;
  --aj-r-xs:        6px;
  --aj-ease:        all 0.2s cubic-bezier(0.4,0,0.2,1);
  --sidebar-w:      240px;

  /* Kickot-identične varijable */
  --bg-base:        #07070D;
  --bg-surface:     #0D0D17;
  --bg-elevated:    #12121E;
  --bg-card:        #171728;
  --bg-sidebar:     #0A0A16;
  --bg-overlay:     rgba(7, 7, 13, 0.95);
  --border-subtle:  rgba(255, 255, 255, 0.04);
  --border-normal:  rgba(139, 92, 246, 0.15);
  --border-accent:  rgba(139, 92, 246, 0.4);
  --app-primary:    #8B5CF6;
  --app-primary-dim: rgba(139, 92, 246, 0.1);
  --app-secondary:  #6366F1;
  --app-gradient:   linear-gradient(90deg, #8B5CF6 0%, #6366F1 60%, #4F46E5 100%);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-full:    9999px;
  --color-bg-dark:  #07070D;
  --color-text:     #ffffff;
  --color-text-muted: #94a3b8;
  --text-muted:     #94a3b8;
  --color-green:    #53fc18;
  --font-heading:   'Space Grotesk', sans-serif;
  --font-body:      'Space Grotesk', 'Inter', system-ui, sans-serif;
  --transition-fast: 0.12s cubic-bezier(0.4,0,0.2,1);
  --transition-base: 0.22s cubic-bezier(0.4,0,0.2,1);
  --ease-expo:      cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

section { padding: 0; }

/* ── Skip to Content Link (WCAG 2.2 SC 2.4.1 Bypass Blocks) ── */
.skip-link {
  position: absolute;
  top: 20px;
  left: 20px;
  transform: translateY(-160%);
  z-index: 99999;
  padding: 10px 18px;
  background: var(--aj-bg2, #0A0A16);
  color: var(--aj-green, #53fc18);
  border: 2px solid var(--aj-green, #53fc18);
  border-radius: var(--aj-r-sm, 8px);
  font-weight: 700;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(83, 252, 24, 0.4);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  white-space: normal;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Body ── */
body.kickaj-body {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--aj-bg);
  background-image:
    radial-gradient(ellipse at 80% 10%, rgba(83,252,24,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(147,51,234,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.04) 0%, transparent 60%);
  color: var(--aj-text);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

body.kickaj-body.auth-loading {
  overflow: hidden !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  background: var(--bg-base, var(--aj-bg, #07070D));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease-out;
}

.auth-gate.fade-out {
  opacity: 0;
  pointer-events: none;
}

.auth-gate-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-gate-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--app-gradient, linear-gradient(135deg, #9333ea, #53fc18));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.auth-gate-logo img,
.auth-gate-logo .auth-logo-img,
.auth-logo-img {
  height: 52px !important;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.auth-gate-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-normal, rgba(255, 255, 255, 0.1));
  border-top-color: #8B5CF6 !important;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.auth-gate-msg {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
}

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

/* ── App Layout ── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

.app.fade-in {
  opacity: 1;
}

/* ══════════ WINNER REVEAL OVERLAY ══════════ */

@keyframes wrOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes wrCardIn {
  from { opacity: 0; transform: translateY(60px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wrNameReveal {
  0%   { opacity: 0; transform: scale(0.6) translateY(20px); letter-spacing: -0.05em; }
  60%  { opacity: 1; transform: scale(1.08) translateY(-4px); }
  100% { transform: scale(1) translateY(0); letter-spacing: -0.03em; }
}

@keyframes wrGlowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(83,252,24,0.4), 0 0 80px rgba(83,252,24,0.2), 0 0 120px rgba(83,252,24,0.1); }
  50%       { box-shadow: 0 0 60px rgba(83,252,24,0.7), 0 0 120px rgba(83,252,24,0.4), 0 0 180px rgba(83,252,24,0.15); }
}

@keyframes wrGlowPulseFinal {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 120px rgba(245, 158, 11, 0.6), 0 0 200px rgba(236, 72, 153, 0.4), inset 0 0 50px rgba(255, 215, 0, 0.2); }
  50%       { box-shadow: 0 0 100px rgba(255, 215, 0, 1), 0 0 180px rgba(245, 158, 11, 0.8), 0 0 300px rgba(236, 72, 153, 0.6), inset 0 0 80px rgba(255, 215, 0, 0.4); }
}

@keyframes wrChampTextRainbow {
  0%   { filter: drop-shadow(0 0 25px rgba(255,215,0,0.9)) drop-shadow(0 0 50px rgba(245,158,11,0.6)); }
  50%  { filter: drop-shadow(0 0 35px rgba(236,72,153,0.9)) drop-shadow(0 0 70px rgba(83,252,24,0.6)); }
  100% { filter: drop-shadow(0 0 25px rgba(255,215,0,0.9)) drop-shadow(0 0 50px rgba(245,158,11,0.6)); }
}

.winner-reveal-overlay.is-final-champ .winner-reveal-card {
  border-color: rgba(255, 215, 0, 0.8);
  background: rgba(16, 11, 32, 0.98);
}

.winner-reveal-overlay.is-final-champ .winner-reveal-top5-badge {
  display: flex;
  background: linear-gradient(135deg, #ffd700, #ff8c00, #ec4899);
  color: #000;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  animation: wrTop5Pulse 1s ease infinite;
}

.winner-reveal-overlay.is-final-champ .winnerTop5Badge {
  background: linear-gradient(#0c0919, #0c0919) padding-box,
              linear-gradient(135deg, #ffd700, #ec4899, #53fc18, #ffd700) border-box;
  animation: wrGlowPulseFinal 1.2s ease infinite, wrRingRotate 2.5s linear infinite;
}

.winner-reveal-overlay.is-final-champ .winner-reveal-name {
  background: linear-gradient(135deg, #ffd700 0%, #fff 40%, #ff8c00 70%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wrChampTextRainbow 2s linear infinite, wrNameReveal 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.winner-reveal-overlay.is-final-champ .winner-reveal-trophy {
  color: #ffd700;
  transform: scale(1.25);
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.9));
}

.winner-reveal-overlay.is-final-champ .winner-reveal-timer-fill {
  background: linear-gradient(90deg, #ffd700, #ec4899, #53fc18);
}

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

@keyframes wrTrophyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30%       { transform: translateY(-12px) scale(1.1); }
  60%       { transform: translateY(-4px) scale(1.04); }
}

@keyframes wrTop5Pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(245,158,11,0.6); }
  50%       { transform: scale(1.08); box-shadow: 0 0 24px rgba(245,158,11,0.9); }
}

@keyframes wrTimerShrink {
  from { width: 100%; }
  to   { width: 0%; }
}

.winner-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4,3,10,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.winner-reveal-overlay.open {
  opacity: 1;
  pointer-events: all;
  animation: wrOverlayIn 0.35s ease forwards;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.winner-reveal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(12,9,25,0.95);
  border: 1px solid rgba(83,252,24,0.3);
  border-radius: 28px;
  padding: 48px 56px 40px;
  min-width: 380px;
  max-width: 520px;
  width: 90vw;
  animation: wrCardIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.winner-reveal-overlay.is-top5 .winner-reveal-card {
  border-color: rgba(245,158,11,0.5);
}

.winner-reveal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--aj-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.winner-reveal-close:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.45);
  color: #ef4444;
  transform: none;
}

.winner-reveal-top5-badge {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #07070D;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: wrTop5Pulse 1.5s ease infinite;
}

.winner-reveal-overlay.is-top5 .winner-reveal-top5-badge {
  display: flex;
}

.winner-reveal-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  margin-bottom: 5px;
  border: 2px solid transparent;
  background: linear-gradient(#0c0919, #0c0919) padding-box,
              linear-gradient(135deg, #53fc18, transparent 50%, #53fc18) border-box;
  animation: wrGlowPulse 2.5s ease infinite, wrRingRotate 8s linear infinite;
  pointer-events: none;
}

.winner-reveal-overlay.is-top5 .winner-reveal-glow-ring {
  background: linear-gradient(#0c0919, #0c0919) padding-box,
              linear-gradient(135deg, #f59e0b, transparent 50%, #f59e0b) border-box;
  animation: wrGlowPulseTop5 1.8s ease infinite, wrRingRotate 4s linear infinite;
}

.winner-reveal-trophy {
  color: var(--aj-amber);
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.6));
  animation: wrTrophyBounce 2s ease infinite;
  z-index: 2;
}

.winner-reveal-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--aj-muted);
  text-transform: uppercase;
  z-index: 2;
}

.winner-reveal-name {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  color: var(--aj-green);
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.1;
  word-break: break-word;
  animation: wrNameReveal 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(83,252,24,0.5));
}

.winner-reveal-overlay.is-top5 .winner-reveal-name {
  color: #f59e0b;
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.6));
}

.winner-reveal-prize-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--aj-muted);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2;
}

.winner-reveal-prize-tag svg { color: var(--aj-green); flex-shrink: 0; }

.winner-reveal-timer-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  z-index: 2;
}

.winner-reveal-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--aj-green), var(--aj-cyan));
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(1);
}

.winner-reveal-overlay.is-top5 .winner-reveal-timer-fill {
  background: linear-gradient(90deg, #f59e0b, #ec4899);
}

.winner-reveal-timer-label {
  font-size: 0.72rem;
  color: var(--aj-muted2);
  font-weight: 600;
  z-index: 2;
}

/* ══════════ FULLSCREEN WHEEL OVERLAY ══════════ */

.wheel-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #04030a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.wfo-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wfo-prize-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(83,252,24,0.12);
  border: 1px solid rgba(83,252,24,0.35);
  color: var(--aj-green);
  font-size: 1rem;
  font-weight: 800;
}

.wfo-channel-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--aj-muted);
}

.wfo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aj-green);
  box-shadow: 0 0 10px var(--aj-green);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px var(--aj-green); }
  50%       { box-shadow: 0 0 18px var(--aj-green), 0 0 30px rgba(83,252,24,0.3); }
}

.wfo-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--aj-muted);
  border-radius: var(--aj-r-sm);
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--aj-ease);
}

.wfo-close-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.wfo-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.wfo-wheel-pointer {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 48px;
  z-index: 10;
  filter: drop-shadow(0 4px 16px rgba(83,252,24,0.5));
}

.wfo-canvas-wrap {
  width: min(680px, 75vh);
  height: min(680px, 75vh);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wfo-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.wfo-stat {
  min-width: 80px;
}

.wfo-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--aj-muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wfo-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--aj-green);
}

.wfo-state-badge {
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--aj-muted);
}

.wfo-state-badge.is-live    { background: rgba(83,252,24,0.15); border-color: rgba(83,252,24,0.4); color: var(--aj-green); }
.wfo-state-badge.is-spinning { background: rgba(147,51,234,0.18); border-color: rgba(147,51,234,0.5); color: #c084fc; }

/* ══════════ APP SHELL ══════════ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ══════════ SIDEBAR - Identican sa Kickot ══════════ */
.sidebar {
  background: #0A0A16;
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width var(--transition-base);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

/* Header: Back + Logo + Coffee */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  flex-shrink: 0;
  gap: 8px;
  border-bottom: none;
}

.sidebar-header-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--aj-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-header-btn:hover {
  background: rgba(139,92,246,0.1);
  color: #fff;
  border-color: rgba(139,92,246,0.15);
}

.sidebar-header-btn.back-btn:hover {
  color: var(--aj-green);
  border-color: rgba(83,252,24,0.35);
  background: rgba(83,252,24,0.08);
  box-shadow: 0 0 12px rgba(83,252,24,0.15);
}

.sidebar-header-btn.coffee-btn:hover {
  color: #f59e0b;
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.08);
  box-shadow: 0 0 12px rgba(245,158,11,0.15);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
}

.sidebar-logo .logo-img {
  height: 40px;
  max-height: 42px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.sidebar-logo:hover .logo-img {
  transform: none;
}

/* Plan Badge */
.sidebar-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--aj-muted);
}

.sidebar-plan-badge.plan-free  { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.3); color: #CBD5E1; }
.sidebar-plan-badge.plan-pro   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.15)); border-color: rgba(59, 130, 246, 0.45); color: #60A5FA; }
.sidebar-plan-badge.plan-elite { background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(236, 72, 153, 0.18)); border-color: rgba(168, 85, 247, 0.5); color: #C084FC; }

/* Sidebar Title Bar - savršeno centriran tekst nezavisno od ikonice */
.sidebar-title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--aj-green);
  text-align: center;
  flex-shrink: 0;
}

.sidebar-title-bar svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

.sidebar-title-bar span {
  width: 100%;
  text-align: center;
  display: block;
}

/* Sidebar Config - scrollable */
.sidebar-config {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-config::-webkit-scrollbar { width: 4px; }
.sidebar-config::-webkit-scrollbar-track { background: transparent; }
.sidebar-config::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Collapsible Accordions in Sidebar */
.sc-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.sc-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--aj-r-xs);
  transition: var(--aj-ease);
  user-select: none;
}

.sc-accordion-head::-webkit-details-marker,
.sc-accordion-head::marker {
  display: none;
}

.sc-accordion-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sc-accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aj-muted);
}

.sc-chevron {
  color: var(--aj-muted2);
  transition: transform 0.25s var(--aj-ease);
  flex-shrink: 0;
}

.sc-accordion[open] .sc-chevron {
  transform: rotate(180deg);
  color: var(--aj-green);
}

.sc-accordion-body {
  padding: 8px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--aj-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-plan-lock-icon {
  color: var(--aj-muted2);
  display: inline-flex;
  align-items: center;
  cursor: help;
  opacity: 0.7;
}

.sc-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--aj-r-sm);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--aj-border);
  color: var(--aj-text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--aj-ease);
}

.sc-input:focus {
  border-color: var(--aj-green);
  box-shadow: 0 0 0 3px rgba(83,252,24,0.1);
}

.sc-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sc-textarea {
  resize: vertical;
  min-height: 54px;
  line-height: 1.45;
}

.sc-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.sc-select option {
  background: #0A0A16;
  color: #fff;
}

.sc-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sc-form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toggle */
.sc-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.sc-toggle-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.sc-toggle-sub {
  font-size: 0.8rem;
  color: var(--aj-muted);
  margin-top: 2px;
}

.sc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.sc-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  transition: var(--aj-ease);
}

.sc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--aj-ease);
}

.sc-toggle input:checked + .sc-toggle-slider { background: var(--aj-green); }
.sc-toggle input:checked + .sc-toggle-slider::before { transform: translateX(20px); background: #0A0A16; }

/* Multiplier Chips */
.sc-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sc-chip {
  padding: 9px 8px;
  border-radius: var(--aj-r-xs);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--aj-border);
  color: var(--aj-muted);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--aj-ease);
  user-select: none;
}

.sc-chip:hover, .sc-chip.active {
  background: rgba(83,252,24,0.15);
  border-color: var(--aj-green);
  color: var(--aj-green);
}

/* Spin Time Slider */
.sc-slider {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--aj-green);
  box-shadow: 0 0 8px rgba(83,252,24,0.5);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.sc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(83,252,24,0.8);
}

.sc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--aj-green);
  cursor: pointer;
}

.sc-slider-ticks {
  position: relative;
  width: 100%;
  height: 18px;
  margin-top: 6px;
}

.sc-slider-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--aj-muted2);
  cursor: pointer;
  user-select: none;
  padding: 1px 3px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.sc-slider-ticks span:nth-child(1) { left: 9px; }
.sc-slider-ticks span:nth-child(2) { left: calc(9px + 0.25 * (100% - 18px)); }
.sc-slider-ticks span:nth-child(3) { left: 50%; }
.sc-slider-ticks span:nth-child(4) { left: calc(9px + 0.75 * (100% - 18px)); }
.sc-slider-ticks span:nth-child(5) { left: calc(100% - 9px); }

.sc-slider-ticks span:hover {
  color: var(--aj-green);
  background: rgba(83, 252, 24, 0.08);
}

.sc-slider-ticks span.active {
  color: var(--aj-green);
  font-weight: 800;
}

/* Spin Time Custom Input Number */
.sc-spin-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sc-input-num {
  width: 54px;
  padding: 2px 6px;
  border-radius: var(--aj-r-xs);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--aj-border);
  color: var(--aj-green);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: var(--aj-ease);
}

.sc-input-num:focus {
  border-color: var(--aj-green);
  box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

/* Spin Time Custom Input Number Badge */
.sc-input-badge-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--aj-border);
  border-radius: var(--aj-r-xs);
  padding: 2px 8px 2px 4px;
  transition: var(--aj-ease);
}

.sc-input-badge-wrap:focus-within {
  border-color: var(--aj-green);
  box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.2);
}

.sc-input-badge-wrap .sc-input-num {
  width: 36px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--aj-green);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: right;
  outline: none;
}

.sc-input-badge-wrap .sc-badge-unit {
  color: var(--aj-green);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: 2px;
  user-select: none;
}

/* Input Suffix Wrapper (for dan/dana, mesec/meseca, sekundi/s) */
.sc-input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sc-input-suffix-wrap .sc-input {
  width: 100%;
  padding-right: 74px;
}

.sc-input-suffix {
  position: absolute;
  right: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
  pointer-events: none;
  font-family: 'Space Grotesk', sans-serif;
  user-select: none;
  transition: color 0.2s;
}

.sc-input-suffix-wrap:focus-within .sc-input-suffix {
  color: var(--aj-green);
}

/* Action Buttons - fiksirani na dnu sidebara */
.sc-section-actions {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0A0A16;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  z-index: 10;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s var(--aj-ease);
  width: 100%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  user-select: none;
}

.sc-btn-start {
  background: linear-gradient(135deg, #53fc18 0%, #3de810 100%);
  color: #04030a;
  box-shadow: 0 4px 18px rgba(83, 252, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sc-btn-start:hover {
  box-shadow: 0 6px 26px rgba(83, 252, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sc-btn-start.is-active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #07070D;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sc-btn-start.is-active:hover {
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sc-btn-stop {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 800;
  height: 44px;
  transition: 0.3s;
}

.sc-btn-stop:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-color: rgba(239, 68, 68, 0.7);
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sc-btn-stop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.sc-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sc-btn-draw {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sc-btn-draw:hover {
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

.sc-btn-reset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--aj-muted);
}

.sc-btn-reset:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.sc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.list-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--aj-r-xs);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--aj-ease);
}

.list-test-btn:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

.bulk-test-dropdown {
  backdrop-filter: blur(10px);
}

.bulk-test-item {
  display: block;
  width: 100%;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bulk-test-item:hover {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
}

.sc-btn-reset-text {
  background: none;
  border: none;
  color: var(--aj-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  transition: color 0.2s, opacity 0.2s;
  width: 100%;
}

.sc-btn-reset-text:hover {
  color: #ef4444;
}

.stage-draw-btn {
  width: auto;
  min-width: 220px;
  margin: 18px auto 0;
  padding: 0 28px;
}

/* ── Sidebar Footer + User Pill - Identican sa Kickot ── */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0A0A16;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast, all 0.2s ease);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.user-pill:hover,
.user-pill:has(.user-menu-sm.open) {
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 60%, #4F46E5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.user-display-name {
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.user-plan {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.plan-badge,
.role-badge,
.user-plan .plan-badge,
.user-plan .role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

.role-badge,
.user-plan .role-badge {
  gap: 4px;
}

.role-badge svg,
.user-plan .role-badge svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin: 0;
}

.role-badge span,
.user-plan .role-badge span {
  display: inline-block;
  line-height: 1;
}

.role-badge-managed {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.15);
}

.role-badge-owner {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.12);
}

.plan-badge-free {
  background: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.08);
}

.plan-badge-pro {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.15));
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.plan-badge-elite {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(236, 72, 153, 0.18));
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* Popup dropdown meni - skace gore */
.user-menu-sm {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0e0a20;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.user-menu-sm.open {
  display: flex;
}

.dropdown-notice-item {
  padding: 8px;
  font-size: 0.72rem;
  color:#94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.user-menu-notice {
  padding: 10px 12px;
  margin-bottom: 4px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-menu-notice-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #a78bfa;
}

.user-menu-notice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-menu-notice-btn:hover {
  background: rgba(139, 92, 246, 0.35);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.6);
}

.dropdown-divider {
  height: 1px;
  background:rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-item.danger {
  color: #ef4444;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ══════════ MAIN CONTENT ══════════ */
.main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
  background: var(--bg-base, #07070D);
}

/* Top Bar */
.main-topbar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #07070D;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  gap: 16px;
}

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

/* Channel Dropdown & Switcher */
.topbar-channel-wrap {
  position: relative;
}

.topbar-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(83,252,24,0.08);
  border: 1px solid rgba(83,252,24,0.25);
  color: var(--aj-green);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--aj-ease);
  font-family: inherit;
}

.topbar-channel-pill:hover,
.topbar-channel-pill.open {
  background: rgba(83,252,24,0.15);
  border-color: rgba(83,252,24,0.45);
  box-shadow: 0 0 16px rgba(83,252,24,0.2);
}

.channel-pill-chevron {
  transition: transform 0.22s var(--ease-expo);
  color: var(--aj-green);
  margin-left: 2px;
}

.topbar-channel-pill.open .channel-pill-chevron {
  transform: rotate(180deg);
}

.channel-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 285px;
  width: max-content;
  max-width: 330px;
  background: rgba(14, 10, 29, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(83, 252, 24, 0.3);
  border-radius: var(--aj-r-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(83, 252, 24, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.22s var(--aj-ease);
  z-index: 99999;
  overflow: hidden;
}

.channel-dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.cdm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.cdm-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--aj-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cdm-count-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(83, 252, 24, 0.15);
  color: var(--aj-green);
  font-weight: 800;
}

.cdm-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: #8B5CF6 transparent;
}

.cdm-list::-webkit-scrollbar {
  width: 6px;
}

.cdm-list::-webkit-scrollbar-track {
  background: transparent;
}

.cdm-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8B5CF6, #53FC18);
  border-radius: 20px;
}

.cdm-list::-webkit-scrollbar-thumb:hover {
  background: #53FC18;
}

.cdm-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--aj-muted2);
}

.cdm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--aj-r-xs);
  background: transparent;
  border: 1px solid transparent;
  color: var(--aj-text);
  cursor: pointer;
  transition: var(--aj-ease);
  text-align: left;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
  user-select: none;
}

.cdm-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.cdm-item.active {
  background: rgba(83, 252, 24, 0.12);
  border-color: rgba(83, 252, 24, 0.35);
  color: var(--aj-green);
}

.cdm-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

.cdm-remove-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--aj-muted, #94a3b8);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
  opacity: 0.65;
  flex-shrink: 0;
}

.cdm-remove-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
  transform: none;
}

.cdm-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cdm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1838, #2a2050);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.cdm-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cdm-name {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cdm-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.cdm-role-owner {
  background: rgba(83, 252, 24, 0.12);
  color: var(--aj-green);
  border: 1px solid rgba(83, 252, 24, 0.3);
}

.cdm-role-managed {
  background: rgba(6, 182, 212, 0.12);
  color: var(--aj-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.cdm-role-custom {
  background: rgba(147, 51, 234, 0.12);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.cdm-active-check {
  color: var(--aj-green);
  flex-shrink: 0;
}

.cdm-footer {
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.cdm-custom-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--aj-r-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--aj-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--aj-ease);
  font-family: inherit;
}

.cdm-custom-btn:hover {
  background: rgba(83, 252, 24, 0.08);
  border-color: rgba(83, 252, 24, 0.4);
  color: var(--aj-green);
}

.channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aj-muted2);
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.winner-timer.is-expired {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.timer-bar-fill.is-expired {
  background: #ef4444 !important;
  width: 0% !important;
}

.winner-name-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.winner-remove-btn {
  background: transparent;
  border: none;
  color: var(--aj-muted2);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--aj-ease);
}

.winner-remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.winner-confirm-btn {
  background: transparent;
  border: none;
  color: var(--aj-muted2);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--aj-ease);
}

.winner-confirm-btn:hover {
  color: #53fc18;
  background: rgba(83, 252, 24, 0.15);
}

.topbar-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.topbar-sidebar-toggle {
  display: none;
}

.topbar-btn:hover { 
  background: rgba(255, 255, 255, 0.09); 
  color: #ffffff; 
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topbar-mute-btn.is-muted { 
  color: #ef4444; 
  border-color: rgba(239, 68, 68, 0.4); 
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.topbar-refresh-btn:hover {
  color: #53fc18;
  border-color: rgba(83, 252, 24, 0.4);
  background: rgba(83, 252, 24, 0.08);
}

.topbar-refresh-btn.is-success {
  border-color: rgba(83, 252, 24, 0.5);
  background: rgba(83, 252, 24, 0.15);
  color: #53fc18;
  box-shadow: 0 0 14px rgba(83, 252, 24, 0.35);
}

.topbar-refresh-btn:hover .refresh-icon {
  transform: none;
  transition: none;
}

.topbar-notif-wrap {
  position: relative;
  display: inline-flex;
}

.test-btn-group {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.channel-pill-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notif-badge {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #EF4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid #0D091A;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

/* Notifications Popover */
.notif-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  background: rgba(13, 9, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 1010;
  overflow: hidden;
  font-family: inherit;
}

.notif-popover.open {
  display: block;
}

.notif-popover-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(139, 92, 246, 0.06);
}

.notif-popover-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
}

.notif-popover-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #8B5CF6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-mark-read {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notif-mark-read:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

.notif-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px;
  gap: 6px;
}

.notif-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--aj-muted, #94A3B8);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
}

.notif-tab:hover {
  color: #fff;
}

.notif-tab.active,
.notif-tab.notif-tab-active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.notif-content-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #8B5CF6 transparent;
}

.notif-content-list::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar {
  width: 4px;
}

.notif-content-list::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.notif-content-list::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb {
  background: #8B5CF6;
  border-radius: 10px;
}

.notif-content-list::-webkit-scrollbar-thumb:hover,
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #A78BFA;
}

.notif-empty {
  color: var(--aj-muted, #94a3b8);
  text-align: center;
  padding: 32px 16px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Main Scroll area */
.main-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #8B5CF6 transparent;
}

.main-scroll::-webkit-scrollbar { width: 6px; }
.main-scroll::-webkit-scrollbar-track { background: transparent; }
.main-scroll::-webkit-scrollbar-thumb { background: #8B5CF6; border-radius: 4px; }
.main-scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8B5CF6, #6366F1); }

/* ══════════ PANEL HEADER & STATS ══════════ */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 1rem;
  flex-shrink: 0;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.26) 0%, rgba(168, 85, 247, 0.12) 55%, rgba(236, 72, 153, 0.08) 100%);
  color: #D8B4FE;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease, color 0.22s ease;
}

.panel-icon-box:hover {
  transform: none;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border-color: rgba(168, 85, 247, 0.65);
  color: #FFFFFF;
}

.panel-heading-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  line-height: 1;
}

.panel-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 30%, #E2E8F0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255, 255, 255, 0.1));
}

/* Hero Plan Badges */
.hero-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-indent: 0.6px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  top: 1px;
  flex-shrink: 0;
}

.hero-plan-badge.plan-free {
  background: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.08);
}

.hero-plan-badge.plan-pro {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(99, 102, 241, 0.16));
  color: #93C5FD;
  border: 1px solid rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.hero-plan-badge.plan-elite {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.2));
  color: #F0ABFC;
  border: 1px solid rgba(216, 180, 254, 0.6);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 0 10px rgba(216, 180, 254, 0.6);
}

.panel-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-top: 0.35rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

/* ── Stats Grid (5 kartica u nizu kao na Kickot) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-elevated, #12121E);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  border-radius: var(--radius-lg, 16px);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  box-sizing: border-box;
  transition: var(--transition-base, all 0.22s ease);
}

.stat-card:hover {
  border-color: var(--border-normal, rgba(139, 92, 246, 0.2));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: none;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.stat-green {
  background: rgba(83, 252, 24, 0.12);
  color: #53FC18;
  border: 1px solid rgba(83, 252, 24, 0.25);
}

.stat-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.stat-pink {
  background: rgba(236, 72, 153, 0.12);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.stat-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.stat-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted, #94A3B8);
  margin-top: 3px;
  font-weight: 600;
  white-space: nowrap;
}

/* ══════════ STAGE & BOTTOM 2-COLUMN GRID ══════════ */
.stage-card {
  width: 100%;
  background: var(--bg-elevated, #12121E);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  border-radius: var(--radius-lg, 16px);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  transition: var(--transition-base, all 0.22s ease);
}

.stage-card:hover {
  border-color: var(--border-normal, rgba(139, 92, 246, 0.2));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.giveaway-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 992px) {
  .giveaway-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.giveaway-bottom-grid .list-card {
  height: 440px;
}

@media (max-width: 992px) {
  .giveaway-bottom-grid .list-card {
    height: 390px;
  }
}

.stage-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.stage-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md, 12px);
  background: rgba(83, 252, 24, 0.12);
  color: #53FC18;
  border: 1px solid rgba(83, 252, 24, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0;
}

.stage-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.stage-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #D1D1EB);
}

.stage-meta-badge strong {
  color: #FFFFFF;
  font-weight: 800;
}

.stage-meta-badge.badge-prize {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #F59E0B;
}

.stage-meta-badge.badge-keyword {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60A5FA;
}

.stage-meta-badge.badge-animation {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: #A78BFA;
}

.stage-meta-badge.badge-eligibility {
  background: rgba(83, 252, 24, 0.08);
  border-color: rgba(83, 252, 24, 0.25);
  color: #53FC18;
}

.stage-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #94A3B8);
  white-space: nowrap;
}

.stage-state-badge.is-live {
  background: rgba(83, 252, 24, 0.14);
  border-color: rgba(83, 252, 24, 0.4);
  color: var(--aj-green);
  box-shadow: 0 0 12px rgba(83, 252, 24, 0.25);
}

.stage-state-badge.is-paused {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--aj-amber);
}

.stage-state-badge.is-spinning {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.5);
  color: #C084FC;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.badge-dot.dot-live {
  background: #53fc18;
  box-shadow: 0 0 8px #53fc18;
  animation: livePulseDot 1.6s infinite ease-in-out;
}

.badge-dot.dot-paused {
  background: #f59e0b;
}

.badge-dot.dot-spinning {
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
  animation: livePulseDot 0.8s infinite ease-in-out;
}

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

.stage-reset-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
  border-radius: var(--radius-sm, 8px);
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  transition: var(--transition-fast, all 0.15s ease);
}

.stage-reset-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  color: #FFFFFF;
}

.stage-reset-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.stage-fullscreen-btn {
  background: rgba(83, 252, 24, 0.08);
  border: 1px solid rgba(83, 252, 24, 0.25);
  color: var(--aj-green);
  border-radius: var(--radius-sm, 8px);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition-fast, all 0.15s ease);
}

.stage-fullscreen-btn:hover {
  background: rgba(83, 252, 24, 0.18);
  border-color: rgba(83, 252, 24, 0.45);
  box-shadow: 0 0 12px rgba(83, 252, 24, 0.25);
  color: #FFFFFF;
}

/* ── Wheel Stage ── */
.wheel-stage-frame {
  width: 100%;
  min-height: 480px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, rgba(13, 13, 23, 0.85) 70%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg, 16px);
  padding: 14px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  contain: layout paint;
}

.wheel-canvas-container {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout paint;
}

.wheel-pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 38px;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.9));
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 20px rgba(83,252,24,0.2);
}

@media (max-width: 480px) {
  .wheel-stage-frame {
    min-height: 320px;
    padding: 10px 4px;
    overflow: hidden;
  }
  .wheel-canvas-container {
    width: min(100%, 310px);
    max-width: calc(100vw - 28px);
  }
  .wheel-pointer {
    width: 26px;
    height: 30px;
    top: 4px;
  }
}

/* ── Luxury Arcade Slot Machine ── */
.slot-stage-frame {
  width: 100%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  contain: layout paint;
}

.slot-machine-box {
  background: linear-gradient(180deg, #171728 0%, #0D0D17 100%);
  border: 2px solid rgba(83, 252, 24, 0.4);
  border-radius: 24px;
  padding: 20px 24px 22px;
  box-shadow: 0 0 35px rgba(83, 252, 24, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.slot-machine-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #53fc18, #3b82f6, transparent);
}

.slot-machine-box.is-jackpot-win {
  border-color: #53fc18;
  box-shadow: 0 0 50px rgba(83, 252, 24, 0.45), 0 20px 40px rgba(0, 0, 0, 0.7);
}

.slot-header-marquee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px;
  background: rgba(7, 7, 13, 0.85);
  border: 1px solid rgba(83, 252, 24, 0.3);
  border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(83, 252, 24, 0.1);
}

.slot-marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 8px #53fc18;
  animation: slotDotPulse 1.2s infinite alternate;
}

@keyframes slotDotPulse {
  0%   { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1;   transform: scale(1.2); }
}

.slot-marquee-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #53fc18;
  text-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
}

.slot-reels-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 16px;
  background: #06040d;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.95);
  padding: 6px;
}

.slot-reels-container {
  --slot-item-h: 52px;
  display: flex;
  width: 100%;
  height: calc(var(--slot-item-h) * 3);
  position: relative;
  z-index: 2;
  gap: 6px;
  contain: layout paint;
}

.slot-reel {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, #0b071a 0%, #130c2b 50%, #0b071a 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.slot-reel-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.slot-reel-track.is-animating,
.roulette-strip.is-animating {
  will-change: transform;
}

.slot-reel.reel-locked {
  border-color: rgba(83, 252, 24, 0.6);
  box-shadow: 0 0 16px rgba(83, 252, 24, 0.25), inset 0 0 12px rgba(83, 252, 24, 0.15);
}

.slot-reel-divider {
  width: 3px;
  height: 75%;
  align-self: center;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  border-radius: 2px;
}

/* Authentic 3D Cylindrical Reel Shadow overlay: 3 visible rows */
.slot-cylinder-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: 10px;
  background: linear-gradient(180deg, 
    rgba(6, 4, 13, 0.92) 0%, 
    rgba(6, 4, 13, 0.5) 20%, 
    transparent 34%, 
    transparent 66%, 
    rgba(6, 4, 13, 0.5) 80%, 
    rgba(6, 4, 13, 0.92) 100%
  );
}

/* Payline glowing beam & pointer guides */
.slot-payline-beam {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(83, 252, 24, 0.5), transparent);
  pointer-events: none;
  z-index: 4;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(83, 252, 24, 0.4);
}

.slot-payline-guide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #53fc18;
  z-index: 6;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 6px #53fc18);
  pointer-events: none;
}
.slot-payline-left { left: 8px; }
.slot-payline-right { right: 8px; }

.slot-symbol {
  height: var(--slot-item-h);
  min-height: var(--slot-item-h);
  max-height: var(--slot-item-h);
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
  box-sizing: border-box;
  user-select: none;
  transition: color 0.15s, transform 0.15s;
  z-index: 3;
}

.slot-symbol.payline-active {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
}

.slot-symbol.spinning {
  color: #38bdf8;
  filter: blur(0.5px);
}

.slot-symbol.win-reel {
  color: #53fc18 !important;
  font-weight: 900;
  font-size: 1.12rem;
  text-shadow: 0 0 16px rgba(83, 252, 24, 0.9);
  transform: scale(1.06);
}

.slot-win-display {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--aj-green);
  background: rgba(83, 252, 24, 0.08);
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(83, 252, 24, 0.3);
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 0 15px rgba(83, 252, 24, 0.1);
  transition: all 0.3s;
}

.slot-win-display.is-jackpot {
  color: #07070D;
  background: linear-gradient(135deg, #53fc18, #3de810);
  border-color: #53fc18;
  box-shadow: 0 0 25px rgba(83, 252, 24, 0.6);
  animation: jackpotBounce 0.6s infinite alternate;
}

@keyframes jackpotBounce {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* ── CS:GO Case-Opening Style Neon Roulette ── */
.roulette-stage-frame {
  width: 100%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  contain: layout paint;
}

.roulette-viewport {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 124px;
  background: linear-gradient(180deg, #171728 0%, #0D0D17 100%);
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.18), 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  contain: layout paint;
}

/* Neon arrow tickers at top and bottom */
.roulette-ticker-top,
.roulette-ticker-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 0 8px #53fc18);
}
.roulette-ticker-top { top: 2px; }
.roulette-ticker-bottom { bottom: 2px; }

/* Subtle laser hairline connecting the tickers */
.roulette-pointer-line {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 2px;
  background: rgba(83, 252, 24, 0.35);
  z-index: 12;
  box-shadow: 0 0 8px rgba(83, 252, 24, 0.6);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Vignette shadow masks on left and right */
.roulette-fade-left,
.roulette-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
.roulette-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(13, 13, 23, 0.98) 0%, rgba(13, 13, 23, 0.75) 45%, transparent 100%);
}
.roulette-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(13, 13, 23, 0.98) 0%, rgba(13, 13, 23, 0.75) 45%, transparent 100%);
}

.roulette-strip {
  display: flex;
  gap: 12px;
  padding: 0;
  align-items: center;
  width: max-content;
  user-select: none;
}

.roulette-ticker-top.tick-bounce {
  animation: tickerTopBounce 0.09s ease-out;
}
.roulette-ticker-bottom.tick-bounce {
  animation: tickerBottomBounce 0.09s ease-out;
}

@keyframes tickerTopBounce {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  50%  { transform: translateX(-50%) translateY(3px) scale(1.22); filter: drop-shadow(0 0 14px #53fc18); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes tickerBottomBounce {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  50%  { transform: translateX(-50%) translateY(-3px) scale(1.22); filter: drop-shadow(0 0 14px #53fc18); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

/* Premium Card Design */
.roulette-card {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 94px;
  background: linear-gradient(180deg, #1A1A2E 0%, #12121E 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}

.roulette-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.roulette-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.roulette-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

.roulette-card.winner-card-active {
  border-color: #53fc18 !important;
  background: linear-gradient(180deg, rgba(83, 252, 24, 0.22) 0%, rgba(13, 9, 28, 0.96) 100%) !important;
  box-shadow: 0 0 28px rgba(83, 252, 24, 0.55), inset 0 0 15px rgba(83, 252, 24, 0.2) !important;
  transform: scale(1.08);
  z-index: 5;
}

.roulette-card.winner-card-active .roulette-card-name {
  color: #53fc18;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(83, 252, 24, 0.8);
}

.roulette-card.roulette-card-placeholder {
  opacity: 0.65;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
}

.roulette-card.roulette-card-placeholder .roulette-card-name {
  font-size: 0.74rem;
  letter-spacing: -0.15px;
  color: var(--aj-muted);
}

/* ── Lists Grid ── */
.lists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.list-card {
  background: var(--bg-elevated, #12121E);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  border-radius: var(--radius-lg, 16px);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 310px;
  box-sizing: border-box;
  transition: var(--transition-base, all 0.22s ease);
}

.list-card:hover {
  border-color: var(--border-normal, rgba(139, 92, 246, 0.2));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  flex-shrink: 0;
}

.list-head-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-count-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(83,252,24,0.12);
  border: 1px solid rgba(83,252,24,0.3);
  color: var(--aj-green);
  font-size: 0.85rem;
  font-weight: 800;
}

.list-count-amber {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.4);
  color: var(--aj-amber);
}

.list-action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--aj-muted);
  border-radius: var(--aj-r-xs);
  padding: 5px 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--aj-ease);
}

.list-action-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }
#btnClearParticipants:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.4); color: #ef4444; }

.list-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #07070D;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--aj-r-sm);
  padding: 7px 10px;
  flex-shrink: 0;
  color: var(--aj-muted2);
  transition: var(--aj-ease);
}

.list-search:focus-within {
  border-color: var(--aj-green);
  box-shadow: 0 0 0 3px rgba(83,252,24,0.08);
}

.list-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--aj-text);
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
}

.list-search-input::placeholder { color: var(--aj-muted2); }

.list-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.list-items::-webkit-scrollbar { width: 3px; }
.list-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.list-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--aj-muted2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Participant Row */
.participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--aj-r-xs);
  padding: 9px 12px;
  gap: 8px;
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.participant-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
}

.participant-user span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sub-badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(147,51,234,0.2);
  border: 1px solid rgba(147,51,234,0.4);
  color: #c084fc;
  font-size: 0.73rem;
  font-weight: 800;
}

.mult-badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(83,252,24,0.15);
  color: var(--aj-green);
  font-size: 0.73rem;
  font-weight: 800;
}

.participant-remove-btn {
  background: transparent;
  border: none;
  color: var(--aj-muted2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 3px;
  transition: var(--aj-ease);
  flex-shrink: 0;
  opacity: 0;
}

.participant-row:hover .participant-remove-btn { opacity: 1; }
.participant-remove-btn:hover { color: #ef4444; background: rgba(239,68,68,0.15); }

/* Winner Card */
.winner-card-item {
  background: linear-gradient(135deg, rgba(83,252,24,0.08), rgba(147,51,234,0.08));
  border: 1px solid rgba(83,252,24,0.35);
  border-radius: var(--aj-r-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeSlideIn 0.3s ease;
}

.winner-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.winner-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aj-green);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.winner-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-timer {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--aj-green);
  flex-shrink: 0;
}

.winner-prize-tag {
  font-size: 0.85rem;
  color: var(--aj-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-prize-tag strong { color: #fff; }

.timer-bar-wrap {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.timer-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--aj-green);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(1);
}

.timer-bar-fill.is-expired { background: rgba(239, 68, 68, 0.6); }
.timer-bar-fill.is-confirmed { background: linear-gradient(90deg, #53fc18, #3de810); }

.winner-timer {
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  color: var(--aj-muted);
}
.winner-timer .status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.winner-timer.is-confirmed {
  color: #53fc18;
  background: rgba(83, 252, 24, 0.12);
  border: 1px solid rgba(83, 252, 24, 0.35);
  font-weight: 800;
}
.winner-timer.is-waiting {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.winner-timer.is-expired {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 800;
}

.winner-card-item.is-winner-confirmed {
  border-color: rgba(83, 252, 24, 0.6);
  background: linear-gradient(135deg, rgba(83,252,24,0.12), rgba(147,51,234,0.08));
}
.winner-card-item.is-winner-expired {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.09), rgba(147, 51, 234, 0.04));
}

.winner-name-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.winner-remove-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.winner-remove-btn:hover { color: #ef4444; background: rgba(239,68,68,0.15); }

.spinner-svg {
  animation: spinSvg 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spinSvg {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Toast Notifications (Identical to Kickot) ── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 18, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: calc(100vw - 32px);
  width: max-content;
  white-space: nowrap;
  pointer-events: all;
  position: relative;
  
  /* Initial hidden collapsed state */
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  max-height: 0;
  padding: 0 18px;
  margin: 0;
  overflow: hidden;
  
  /* Smooth exit transitions */
  transition: 
    opacity 0.2s ease-in, 
    transform 0.2s ease-in, 
    max-height 0.25s ease, 
    padding 0.25s ease, 
    margin 0.25s ease,
    border-width 0.25s ease;
}

.toast.show,
.toast.toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 160px;
  padding: 10px 18px;
  margin: 4px 0;
  border-width: 1px;
  
  /* Physics spring entry transitions */
  transition: 
    opacity 0.35s ease-out, 
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
    max-height 0.3s ease-out, 
    padding 0.3s ease-out, 
    margin 0.3s ease-out,
    border-width 0.3s ease-out;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.toast.success, .toast.toast-success {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
}

.toast.error, .toast.toast-error {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
}

.toast.warning, .toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  color: #F59E0B;
}

.toast.info, .toast.toast-info {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: #3B82F6;
}

.toast-icon, .toast-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg, .toast-icon-wrap svg {
  display: block;
  width: 18px;
  height: 18px;
}

.toast-message, .toast-msg {
  font-size: 0.875rem;
  color: #ffffff;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.5rem;
  padding: 0;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.toast-close:hover {
  color: #ffffff;
}

.toast.hide {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.85) !important;
  max-height: 0 !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border-width: 0 !important;
  pointer-events: none !important;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
  animation: toast-progress linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 290px; }
  .hero-summary-cards { grid-template-columns: repeat(2, 130px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }

  .topbar-sidebar-toggle { display: flex; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  }

  .sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.7); }

  .main { height: 100vh; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 100%; }
  .main-scroll { padding: 14px 14px 22px; gap: 14px; }
  .lists-grid { grid-template-columns: 1fr; }
  .hero-summary-cards { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stage-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .main-hero { padding: 20px 18px; }
}

/* ══════════ FULLSCREEN OVERLAY ══════════ */
.wfo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 20% 50%, rgba(83, 252, 24, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(147, 51, 234, 0.08) 0%, transparent 60%),
              radial-gradient(circle at center, rgba(18, 18, 30, 0.98) 0%, rgba(7, 7, 13, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

/* Animated ambient glow orbs - float subtly for a premium alive feel */
.wfo-overlay::before,
.wfo-overlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: wfoOrbFloat 8s ease-in-out infinite alternate;
}
.wfo-overlay::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(83, 252, 24, 0.07) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.wfo-overlay::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.09) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: -4s;
}

@keyframes wfoOrbFloat {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to   { transform: translate(40px, 30px) scale(1.12); opacity: 1; }
}

.wfo-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Subtle top border when native browser fullscreen is active */
.wfo-overlay.native-fs {
  border-top: 2px solid rgba(83, 252, 24, 0.25);
}

.wfo-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  padding: 20px 28px 12px;
}

.wfo-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wfo-prize-pill-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 12;
}

.wfo-prize-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(83, 252, 24, 0.12);
  border: 1px solid rgba(83, 252, 24, 0.4);
  color: var(--aj-green);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(83, 252, 24, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  pointer-events: auto;
  white-space: nowrap;
}

.wfo-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wfo-control-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 22, 0.85);
  padding: 6px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wfo-btn {
  height: 40px !important;
  padding: 0 18px !important;
  font-size: 0.85rem !important;
  width: auto !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  letter-spacing: 0.04em !important;
}

.wfo-btn.sc-btn-start {
  background: linear-gradient(135deg, #53fc18 0%, #3de810 100%) !important;
  color: #04030a !important;
  box-shadow: 0 4px 18px rgba(83, 252, 24, 0.4) !important;
}

.wfo-btn.sc-btn-start.is-active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #07070D !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5) !important;
}

.wfo-btn.sc-btn-draw {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4) !important;
}

/* Button: Stop / Reset */
.wfo-btn.sc-btn-stop,
.wfo-btn.sc-btn-reset {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4) !important;
  transition: 0.3s;
}
.wfo-btn.sc-btn-stop:hover,
.wfo-btn.sc-btn-reset:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6) !important;
}

.wfo-channel-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 10;
}

.wfo-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--aj-ease);
}

.wfo-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.wfo-stage-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.wfo-wheel-pointer {
  width: 38px;
  height: 38px;
  margin-bottom: -18px;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(83, 252, 24, 0.6));
}

.wfo-canvas-wrap {
  width: min(680px, 75vh);
  height: min(680px, 75vh);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fullscreen: sva 3 tipa dele isti centrirani prostor */
.wfo-wheel-frame,
.wfo-slot-frame,
.wfo-roulette-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wfo-slot-frame .slot-machine-box {
  max-width: 720px;
  padding: 36px;
  gap: 26px;
  transform: scale(1.15);
}

.wfo-slot-frame .slot-reels-container {
  --slot-item-h: 62px;
}
.wfo-slot-frame .slot-symbol { font-size: 1.15rem; }
.wfo-slot-frame .slot-win-display { font-size: 1.2rem; }

.wfo-roulette-frame .roulette-viewport { max-width: 900px; width: 100%; height: 136px; }
.wfo-roulette-frame .roulette-card { height: 100px; }

.wfo-canvas-wrap canvas,
#wheelCanvasFullscreen {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Ensure canvas pixel grid stays sharp on Retina / 4K - no browser upscale blur */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  box-shadow: 0 0 30px rgba(83, 252, 24, 0.35), 0 0 60px rgba(83, 252, 24, 0.12);
}

/* Bottom-Left Live Participant Feed */
.wfo-live-feed {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 340px;
  pointer-events: none;
}

.wfo-participant-popin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(10, 10, 22, 0.92);
  border: 1px solid rgba(83, 252, 24, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(83, 252, 24, 0.2);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  animation: wfoPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wfoPopIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ══ Fullscreen responsive: short screens (laptops / OBS 768px height) ══ */
@media (max-height: 768px) {
  .wfo-header { padding: 12px 24px 8px; }
  .wfo-canvas-wrap { width: min(520px, 68vh); height: min(520px, 68vh); }
  .wfo-wheel-pointer { width: 30px; height: 30px; margin-bottom: -14px; }
  .wfo-slot-frame .slot-machine-box { transform: scale(0.95); padding: 24px; gap: 18px; }
  .wfo-slot-frame .slot-reels-container { --slot-item-h: 52px; }
  .wfo-roulette-frame .roulette-viewport { height: 110px; }
  .wfo-roulette-frame .roulette-card { height: 80px; }
  .wfo-footer { padding: 10px 24px; }
  .wfo-stat strong { font-size: 1.3rem; }
  .wfo-btn { height: 36px !important; padding: 0 14px !important; font-size: 0.8rem !important; }
  .wfo-live-feed { bottom: 16px; left: 16px; max-width: 280px; }
}

/* ══ Fullscreen responsive: very short / compact (600px and below) ══ */
@media (max-height: 600px) {
  .wfo-header { padding: 8px 20px 6px; }
  .wfo-canvas-wrap { width: min(380px, 60vh); height: min(380px, 60vh); }
  .wfo-footer { padding: 6px 20px; border-top: none; }
  .wfo-stat-label { display: none; }
  .wfo-btn span { display: none; }
  .wfo-btn { padding: 0 12px !important; }
}

/* ══════════ WINNER CELEBRATION OVERLAY ══════════ */
.winner-reveal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  background: rgba(4, 3, 10, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: none !important;
}

.winner-reveal-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.particle-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.winner-reveal-card {
  position: relative !important;
  z-index: 10 !important;
  background: linear-gradient(135deg, rgba(22, 16, 42, 0.98), rgba(10, 7, 24, 0.98)) !important;
  border: 2px solid var(--aj-green) !important;
  border-radius: 28px !important;
  padding: 38px 48px !important;
  width: min(520px, 92vw) !important;
  text-align: center !important;
  box-shadow: 0 0 70px rgba(83, 252, 24, 0.4), 0 30px 70px rgba(0, 0, 0, 0.95) !important;
  transform: scale(0.92) translateY(0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.winner-reveal-overlay.open .winner-reveal-card,
.winner-reveal-overlay.is-top5 .winner-reveal-card,
.winner-reveal-overlay.is-final-champ .winner-reveal-card {
  transform: scale(1) translateY(0) rotate(0deg) !important;
}

.winner-reveal-card.is-final-champ {
  border-color: #ffd700 !important;
  box-shadow: 0 0 90px rgba(255, 215, 0, 0.5), 0 30px 70px rgba(0, 0, 0, 0.95) !important;
}

.winner-close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--aj-ease) !important;
  z-index: 20 !important;
}

.winner-close-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
}

.winner-trophy-glow {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 18px !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3) !important;
  animation: trophyPulse 2s infinite ease-in-out !important;
}

@keyframes trophyPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(245, 158, 11, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(245, 158, 11, 0.5); }
}

.winner-top-label {
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  color: var(--aj-green) !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
}

.winner-name-display {
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 18px !important;
  word-break: break-word !important;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 0 10px var(--aj-green) !important;
  line-height: 1.15 !important;
}

.winner-prize-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(83, 252, 24, 0.08) !important;
  border: 1px solid rgba(83, 252, 24, 0.3) !important;
  color: var(--aj-green) !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  margin-bottom: 24px !important;
}

.winner-timer-bar-wrap {
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

.winner-timer-fill {
  height: 100% !important;
  width: 100% !important;
  background: linear-gradient(90deg, var(--aj-green), #38bdf8) !important;
  border-radius: 999px !important;
  transform-origin: left center !important;
  transform: scaleX(1);
}

.winner-timer-text {
  font-size: 0.8rem !important;
  color: var(--aj-muted) !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}

.winner-reveal-ok-btn {
  width: 100% !important;
  padding: 13px 20px !important;
  background: #2b2d35 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-bottom: 12px !important;
}

.winner-reveal-ok-btn:hover {
  background: #383b46 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: none !important;
}

.winner-reveal-ok-btn:active {
  transform: none !important;
}

.winner-reveal-chatlog-box {
  width: 100% !important;
  min-height: 48px;
  background: #111216 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transition: min-height 0.2s ease, border-color 0.2s ease;
}

.winner-reveal-chatlog-box.has-messages {
  min-height: 60px;
  max-height: 120px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 8px 12px !important;
  cursor: default;
}

.winner-chatlog-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.winner-chatlog-dots span {
  width: 6px !important;
  height: 6px !important;
  background-color: #a0aec0 !important;
  border-radius: 50% !important;
  animation: winnerDotPulse 1.4s infinite ease-in-out both !important;
}

.winner-chatlog-dots span:nth-child(1) {
  animation-delay: -0.32s !important;
}

.winner-chatlog-dots span:nth-child(2) {
  animation-delay: -0.16s !important;
}

@keyframes winnerDotPulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
    background-color: #ffffff;
  }
}

.winner-chatlog-content {
  width: 100%;
  max-height: 104px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.85rem !important;
  color: #e2e8f0 !important;
  padding-right: 4px;
}

.winner-chat-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.4;
  word-break: break-word;
}

.winner-chat-user {
  color: var(--aj-green, #53fc18) !important;
  font-weight: 700 !important;
  flex-shrink: 0;
}

.winner-chat-text {
  color: #ffffff !important;
  font-weight: 500;
}

.winner-chatlog-content::-webkit-scrollbar {
  width: 4px;
}

.winner-chatlog-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.winner-chatlog-content::-webkit-scrollbar-thumb {
  background: rgba(83, 252, 24, 0.4);
  border-radius: 4px;
}

.winner-chatlog-content::-webkit-scrollbar-thumb:hover {
  background: rgba(83, 252, 24, 0.7);
}

.wfo-participant-popin .popin-icon {
  color: var(--aj-green);
  flex-shrink: 0;
}

.wfo-participant-popin .popin-sub-badge {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(147, 51, 234, 0.5);
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ══════════ KICKOT MATCHING MODALS ══════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 3, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop.closing {
  opacity: 0;
  pointer-events: none;
}

.modal-box {
  background: #12121E;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 28px 32px;
  width: min(520px, 92vw);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-head h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn, .pm-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--aj-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--aj-ease);
}

.modal-close-btn:hover, .pm-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.pm-referral-header {
  margin: -28px -32px 20px -32px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(12, 9, 28, 0.9) 100%);
  border-bottom: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 24px 24px 0 0;
  position: relative;
}

.pm-referral-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pm-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.pm-modal-subtitle {
  font-size: 0.85rem;
  color: var(--aj-muted);
}

.pm-ref-pct {
  color: #eab308;
  font-weight: 800;
}

.pm-ref-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.pm-ref-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pm-ref-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.pm-ref-stat-lbl {
  font-size: 0.72rem;
  color: var(--aj-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.pm-ref-stat-green .pm-ref-stat-val { color: var(--aj-green); }
.pm-ref-stat-gold .pm-ref-stat-val { color: #eab308; }
.pm-ref-stat-purple .pm-ref-stat-val { color: #c084fc; }

.pm-ref-link-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.pm-ref-link-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pm-ref-code-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--aj-green);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 8px 12px;
  border-radius: 10px;
}

/* ── Post-draw Follow Check Verification ── */
.winner-follow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.winner-follow-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.winner-follow-badge.checking {
  background: rgba(255, 255, 255, 0.06);
  color: var(--aj-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-follow-badge.passed {
  background: rgba(83, 252, 24, 0.1);
  color: #53fc18;
  border: 1px solid rgba(83, 252, 24, 0.3);
}

.winner-follow-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.winner-follow-badge.error {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.winner-redraw-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.winner-redraw-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.winner-card-item.is-follow-failed {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(147,51,234,0.06));
}

.winner-reveal-follow-box {
  width: 100%;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  animation: fadeSlideIn 0.3s ease;
}

.winner-reveal-follow-box.is-checking {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--aj-muted);
  justify-content: center;
}

.winner-reveal-follow-box.is-passed {
  background: rgba(83, 252, 24, 0.1);
  border: 1px solid rgba(83, 252, 24, 0.3);
  color: #53fc18;
  justify-content: center;
  font-weight: 600;
}

.winner-reveal-follow-box.is-failed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.winner-reveal-follow-box.is-error {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffffff;
}

.winner-reveal-follow-box.is-error strong {
  color: #fbbf24;
}

.follow-box-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.follow-box-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.follow-box-text strong {
  color: #f87171;
  font-size: 0.88rem;
}

.follow-box-text span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.winner-overlay-redraw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
  transition: all 0.2s;
  flex-shrink: 0;
}

.winner-overlay-redraw-btn:hover {
  transform: none;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.6);
}

/* ══════════ CUSTOM CONFIRMATION MODAL ══════════ */
.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.confirm-modal-box {
  background: #12121E;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  width: min(440px, calc(100vw - 32px));
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(139, 92, 246, 0.25);
  animation: confirmModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes confirmModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-modal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.confirm-modal-icon-wrap.is-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

.confirm-modal-icon-wrap.is-info {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #8B5CF6;
}

.confirm-modal-body {
  margin-bottom: 1.5rem;
  width: 100%;
}

.confirm-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.confirm-modal-desc {
  font-size: 0.875rem;
  color: #9393B5;
  margin: 0;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.confirm-modal-actions .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.confirm-cancel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D1EB;
}

.confirm-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

.confirm-accept-btn.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
  transition: 0.3s;
}

.confirm-accept-btn.btn-danger:hover {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.confirm-accept-btn.btn-primary {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.confirm-accept-btn.btn-primary:hover {
  background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  transform: none;
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL HOVER & INTERACTION UX STABILITY (NO JUMPING / NO SHIFTING)
   Buttons, cards, badges, chips, options, and interactive controls
   never jump, shift, or change position on hover or active click.
   ══════════════════════════════════════════════════════════════════ */
button:hover,
button:active,
.btn:hover,
.btn:active,
.btn-primary:hover,
.btn-primary:active,
.btn-secondary:hover,
.btn-secondary:active,
.btn-outline:hover,
.btn-outline:active,
.sc-btn:hover,
.sc-btn:active,
.sc-btn-start:hover,
.sc-btn-start:active,
.sc-btn-stop:hover,
.sc-btn-stop:active,
.sc-btn-reset:hover,
.sc-btn-reset:active,
.wfo-btn:hover,
.wfo-btn:active,
.sidebar-logo:hover,
.sidebar-logo:hover .logo-img,
.card:hover,
.card:active,
.stat-card:hover,
.stat-card:active,
.stage-card:hover,
.stage-card:active,
.panel-icon-box:hover,
.panel-icon-box:active,
.dropdown-item:hover,
.dropdown-item:active,
.channel-option:hover,
.channel-option:active,
.winner-reveal-ok-btn:hover,
.winner-reveal-ok-btn:active,
.winner-overlay-redraw-btn:hover,
.winner-overlay-redraw-btn:active,
.winner-reveal-close:hover,
.winner-reveal-close:active,
.modal-close-btn:hover,
.modal-close-btn:active,
.confirm-accept-btn:hover,
.confirm-accept-btn:active,
.confirm-cancel-btn:hover,
.confirm-cancel-btn:active,
.cdm-remove-btn:hover,
.cdm-remove-btn:active,
.topbar-refresh-btn:hover,
.topbar-refresh-btn:hover .refresh-icon {
  transform: none !important;
}

/* ── Accessibility: Prefers Reduced Motion ── */
@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;
  }
}

/* ── Mobile Touch Target & Interaction Optimizations ── */
@media (hover: none) and (pointer: coarse) {
  .sc-btn,
  .stage-action-btn,
  .winner-reveal-ok-btn,
  .btn,
  .topbar-refresh-btn {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .winner-confirm-btn,
  .winner-remove-btn,
  .winner-redraw-btn,
  .winner-close-btn,
  .wfo-close-btn {
    min-width: 36px;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

