/**
 * CoinRush React Navbar — V2 Premium Redesign
 * Dark/Green theme with glassmorphism, micro-animations, mobile-first
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --nav-bg: rgba(12, 15, 20, 0.95);
  --nav-border: rgba(255, 255, 255, 0.06);
  --nav-accent: #4fffb0;
  --nav-accent-dim: rgba(79, 255, 176, 0.08);
  --nav-text: #c9d1d9;
  --nav-text-bright: #e6edf3;
  --nav-muted: #6e7681;
  --nav-surface: rgba(255, 255, 255, 0.03);
  --nav-surface-hover: rgba(255, 255, 255, 0.06);
  --nav-height: 64px;
  --nav-radius: 12px;
  --nav-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   NAVBAR CONTAINER
   ============================================ */
.jackpot-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Subtle accent line at top */
.jackpot-topnav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.2) 25%,
    rgba(79, 255, 176, 0.35) 50%,
    rgba(168, 85, 247, 0.2) 75%,
    transparent 100%
  );
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--nav-height);
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* ============================================
   LEFT SIDE
   ============================================ */
.topnav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   LOGO — Sleek icon + gradient text
   ============================================ */
.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--nav-transition);
}

.topnav-logo:hover {
  transform: scale(1.03);
}

.topnav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4fffb0 0%, #00d68f 50%, #00b876 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #060d08;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}

.topnav-logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: inherit;
}

.topnav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topnav-logo-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #4fffb0 0%, #7affcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topnav-logo-subtitle {
  font-size: 9px;
  color: var(--nav-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
}

/* ============================================
   LIVE BADGE — Glowing dot + status
   ============================================ */
.topnav-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--nav-muted);
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--nav-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.3px;
  transition: all var(--nav-transition);
}

.topnav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f85149;
  flex-shrink: 0;
}

.topnav-live.connected .topnav-live-dot {
  background: var(--nav-accent);
}

.topnav-live.connected {
  color: var(--nav-text);
  border-color: rgba(79, 255, 176, 0.15);
  background: rgba(79, 255, 176, 0.05);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--nav-accent); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--nav-accent), 0 0 24px rgba(79, 255, 176, 0.15); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   RIGHT SIDE
   ============================================ */
.topnav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

/* ============================================
   DAILY REWARD TRIGGER — Loss aversion CTA
   Pulses when unclaimed, shows streak fire
   ============================================ */
.topnav-daily-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--nav-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
  white-space: nowrap;
}

.topnav-daily-trigger svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.topnav-daily-trigger:hover {
  color: #d898e8;
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.15);
}

.topnav-daily-trigger:hover svg { opacity: 1; }

/* Unclaimed state — glowing green CTA, loss aversion psychology */
.topnav-daily-trigger.has-reward {
  color: #4fffb0;
  background: rgba(79, 255, 176, 0.06);
  border-color: rgba(79, 255, 176, 0.2);
  animation: dailyClaimPulse 2.5s ease-in-out infinite;
}

.topnav-daily-trigger.has-reward svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(79, 255, 176, 0.5));
}

.daily-trigger-text {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.daily-trigger-streak {
  font-size: 11px;
  font-weight: 700;
}

.daily-trigger-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fffb0;
  box-shadow: 0 0 8px rgba(79, 255, 176, 0.7);
  animation: dot-blink 1.5s ease-in-out infinite;
}

@keyframes dailyClaimPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 255, 176, 0.15); border-color: rgba(79, 255, 176, 0.2); }
  50% { box-shadow: 0 0 16px 2px rgba(79, 255, 176, 0.12); border-color: rgba(79, 255, 176, 0.35); }
}

/* ============================================
   MORE MENU — Compact overflow
   ============================================ */
.topnav-more-wrap {
  position: relative;
}

.topnav-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--nav-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.topnav-more-trigger:hover,
.topnav-more-trigger.is-active {
  color: var(--nav-text-bright);
  background: var(--nav-surface-hover);
  border-color: rgba(255, 255, 255, 0.08);
}

.topnav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px;
  z-index: 1001;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: moreMenuIn 0.15s ease;
}

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

.topnav-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.topnav-more-item:hover {
  background: var(--nav-surface-hover);
  color: #fff;
}

.topnav-more-item svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.topnav-more-item:hover svg { opacity: 1; }

.topnav-more-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 4px 8px;
}

.topnav-more-radio-slot {
  padding: 2px 0;
}

.topnav-more-radio-slot .coinrush-radio { width: 100%; }
.topnav-more-radio-slot .topnav-help-btn.radio-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 500;
}
.topnav-more-radio-slot .topnav-help-btn.radio-btn span { display: inline !important; }

/* ============================================
   NAV BUTTONS — Legacy (kept for mobile drawer + Radio)
   ============================================ */
.topnav-help-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--nav-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--nav-transition);
  font-family: inherit;
  letter-spacing: 0.2px;
  position: relative;
  white-space: nowrap;
}

.topnav-help-btn:hover {
  color: var(--nav-text-bright);
  background: var(--nav-surface-hover);
}

.topnav-help-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity var(--nav-transition);
}

.topnav-help-btn:hover svg {
  opacity: 1;
}

/* Hall of Fame — Warm gold */
.hof-btn {
  color: #d4a745 !important;
}

.hof-btn:hover {
  color: #f5c842 !important;
  background: rgba(245, 200, 66, 0.08) !important;
  border-color: rgba(245, 200, 66, 0.15) !important;
}

.hof-btn.is-active {
  color: #f5c842 !important;
  background: rgba(245, 200, 66, 0.12) !important;
  border-color: rgba(245, 200, 66, 0.25) !important;
}

.hof-btn.is-active svg {
  filter: none;
}

.hof-btn svg {
  filter: none;
}

@keyframes hof-glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(245, 200, 66, 0.2); }
  50% { box-shadow: 0 0 24px rgba(245, 200, 66, 0.35); }
}

/* Missions — Purple */
.missions-btn {
  color: #a080e0 !important;
  position: relative;
}

.missions-btn:hover {
  color: #b898f0 !important;
  background: rgba(168, 85, 247, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.15) !important;
}

.missions-btn.is-active {
  color: #c4a8ff !important;
  background: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.25) !important;
}

.missions-btn.is-active svg {
  filter: none;
}

.missions-btn svg {
  filter: none;
}

/* Mission Count Badge */
.mission-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5);
  border: 1.5px solid rgba(10, 14, 20, 0.8);
  z-index: 5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mission-badge.pulse {
  animation: mission-badge-pulse 1.2s ease-in-out infinite;
}

@keyframes mission-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 2px 12px rgba(168, 85, 247, 0.7); }
}

.missions-btn.mission-pulse {
  animation: mission-btn-glow 2s ease-in-out infinite;
}

@keyframes mission-btn-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.3); }
}

/* Lottery — Green */
.lottery-btn {
  color: #40c878 !important;
}

.lottery-btn:hover {
  color: #5cdd92 !important;
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.15) !important;
}

.lottery-btn.is-active {
  color: #5cdd92 !important;
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
}

.lottery-btn.is-active svg {
  filter: none;
}

.lottery-btn svg {
  filter: none;
}

@keyframes lottery-glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 24px rgba(34, 197, 94, 0.35); }
}

/* Social — Cyan */
.social-btn {
  color: #40b8c8 !important;
}

.social-btn:hover {
  color: #5dd4e0 !important;
  background: rgba(6, 182, 212, 0.08) !important;
  border-color: rgba(6, 182, 212, 0.15) !important;
}

.social-btn.is-active {
  color: #5dd4e0 !important;
  background: rgba(6, 182, 212, 0.12) !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
}

.social-btn.is-active svg {
  filter: none;
}

.social-btn svg {
  filter: none;
}

@keyframes social-glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 24px rgba(6, 182, 212, 0.35); }
}

/* Daily — Purple accent with unclaimed pulse */
.daily-btn {
  color: #c070d0 !important;
  position: relative;
}

.daily-btn:hover {
  color: #d898e8 !important;
  background: rgba(168, 85, 247, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.15) !important;
}

.daily-btn svg {
  filter: none;
}

/* Pulsing unclaimed state */
.daily-btn--unclaimed {
  animation: daily-pulse 2s ease-in-out infinite;
}
@keyframes daily-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
}

/* Green notification dot */
.daily-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4fffb0;
  box-shadow: 0 0 6px rgba(79, 255, 176, 0.6);
  animation: dot-blink 1.5s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Streak chip */
.daily-streak-chip {
  font-size: 9px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 1px 5px;
  line-height: 1.2;
  margin-left: 2px;
}

/* Mobile daily extras */
.mobile-daily--unclaimed {
  color: #d898e8 !important;
}
.mobile-streak-chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 12px;
  padding: 2px 8px;
}
.mobile-daily-dot {
  position: absolute;
  top: 10px; left: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4fffb0;
  box-shadow: 0 0 6px rgba(79, 255, 176, 0.5);
}

/* Rules — Blue */
.rules-btn {
  color: #6090d0 !important;
}

.rules-btn:hover {
  color: #80b0f0 !important;
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

.rules-btn svg {
  filter: none;
}

/* Shared active glow */
@keyframes navBtnGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

@keyframes missions-glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.2); }
  50% { box-shadow: 0 0 24px rgba(168, 85, 247, 0.35); }
}

/* ============================================
   COINRUSH RADIO — Inline Topbar Mini-Player
   ============================================ */
.cr-radio-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 4px 0 2px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 8px;
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.cr-radio-bar:hover {
  border-color: rgba(168, 85, 247, 0.18);
  background: rgba(168, 85, 247, 0.08);
}

.cr-radio-bar.is-playing {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.08);
}

/* Play button */
.cr-radio-play {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.cr-radio-play:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #e0c3fc;
}

.cr-radio-bar.is-playing .cr-radio-play {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0.2));
  color: #d8b4fe;
}

/* Track label area */
.cr-radio-track-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  min-width: 0;
  max-width: 120px;
  overflow: hidden;
}

.cr-radio-track-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.cr-radio-bar.is-playing .cr-radio-track-name {
  color: #c4a6f0;
}

/* Mini EQ bars */
.cr-radio-eq {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
  height: 10px;
  flex-shrink: 0;
}

.cr-radio-eq span {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: #a855f7;
}

.cr-radio-eq span:nth-child(1) { animation: crEq 0.5s ease-in-out infinite alternate; }
.cr-radio-eq span:nth-child(2) { animation: crEq 0.4s ease-in-out 0.1s infinite alternate; }
.cr-radio-eq span:nth-child(3) { animation: crEq 0.55s ease-in-out 0.2s infinite alternate; }

@keyframes crEq {
  0%   { height: 2px; }
  100% { height: 10px; }
}

/* Skip button */
.cr-radio-skip {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.cr-radio-skip:hover {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
}

/* Volume button */
.cr-radio-vol {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.cr-radio-vol:hover { color: #c084fc; }
.cr-radio-vol.is-muted { color: rgba(255, 255, 255, 0.2); }

/* Volume popover — drops down from the bar */
.cr-radio-vol-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 160px;
  background: rgba(10, 12, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 1200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: crVolPop 0.15s ease-out both;
}

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

/* Volume slider */
.cr-radio-vol-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.cr-radio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a855f7;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

.cr-radio-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a855f7;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

/* Mute text button */
.cr-radio-mute-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s;
}

.cr-radio-mute-btn:hover { color: #c084fc; }

/* ── RAVE button (lightning bolt on the bar) ── */
.cr-radio-rave-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}

.cr-radio-rave-btn:hover {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.15);
}

.cr-radio-rave-btn.is-on {
  color: #00ffcc;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.12), rgba(168, 85, 247, 0.1));
  border-color: rgba(0, 255, 204, 0.25);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.15);
  animation: raveBtnPulse 1.5s ease-in-out infinite;
}

@keyframes raveBtnPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 255, 204, 0.15); }
  50% { box-shadow: 0 0 12px rgba(0, 255, 204, 0.3), 0 0 4px rgba(168, 85, 247, 0.2); }
}

/* ── Hide on very small screens ── */
@media (max-width: 600px) {
  .cr-radio-track-label { display: none; }
  .cr-radio-bar { gap: 1px; padding: 0 2px; }
}

@media (max-width: 420px) {
  .cr-radio-bar { display: none; }
}


/* ============================================
   USER CARD — Premium glassmorphism
   ============================================ */
.topnav-auth {
  margin-left: 4px;
  display: flex;
  align-items: center;
  height: 100%;
}

.jackpot-player-card-container {
  position: relative;
  display: flex;
  align-items: center;
}

.jackpot-player-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 170px;
  height: 52px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.jackpot-player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 255, 176, 0.03) 0%, rgba(168, 85, 247, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.jackpot-player-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.jackpot-player-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.jackpot-player-card:hover::before {
  opacity: 1;
}

.jackpot-player-card.card-active {
  border-color: rgba(79, 255, 176, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 20px rgba(79, 255, 176, 0.04);
}

.player-core {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.player-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-avatar-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  z-index: 1;
  letter-spacing: 0.3px;
}

.avatar-status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid rgba(10, 14, 20, 0.95);
  z-index: 3;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.player-avatar-wrapper .cr-user-avatar__inner {
  width: 32px !important;
  height: 32px !important;
  font-size: 11px !important;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

.dropdown-avatar-wrapper .cr-user-avatar__inner {
  width: 42px !important;
  height: 42px !important;
  font-size: 15px !important;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

.player-avatar-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* Border glow by tier */
.player-avatar-wrapper.border-bronze .player-avatar-inner { box-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }
.player-avatar-wrapper.border-silver .player-avatar-inner { box-shadow: 0 0 10px rgba(192, 192, 192, 0.5); }
.player-avatar-wrapper.border-gold .player-avatar-inner { box-shadow: 0 0 12px rgba(255, 215, 0, 0.5); }
.player-avatar-wrapper.border-diamond .player-avatar-inner { box-shadow: 0 0 14px rgba(0, 229, 255, 0.5); }
.player-avatar-wrapper.border-ruby .player-avatar-inner { box-shadow: 0 0 16px rgba(255, 0, 100, 0.5); }
.player-avatar-wrapper.border-challenger .player-avatar-inner {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); }
  50% { box-shadow: 0 0 28px rgba(168, 85, 247, 0.8); }
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--nav-text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.level-badge-inline {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
  letter-spacing: 0.4px;
  line-height: 1.5;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.level-badge-inline.level-bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(139, 69, 19, 0.15));
  color: #d4a04a;
  text-shadow: 0 0 6px rgba(205, 127, 50, 0.3);
}
.level-badge-inline.level-silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(150, 160, 175, 0.15));
  color: #d0d5dd;
  text-shadow: 0 0 6px rgba(200, 210, 225, 0.3);
}
.level-badge-inline.level-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.15));
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
.level-badge-inline.level-diamond {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(30, 144, 255, 0.12));
  color: #58d0ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}
.level-badge-inline.level-ruby {
  background: linear-gradient(135deg, rgba(255, 0, 100, 0.18), rgba(255, 60, 60, 0.12));
  color: #ff4d6a;
  text-shadow: 0 0 8px rgba(255, 0, 100, 0.4);
}
.level-badge-inline.level-challenger {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.15));
  color: #c084fc;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.player-balance {
  display: flex;
  align-items: center;
  gap: 3px;
}

.balance-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--nav-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.coin-logo {
  height: 14px;
  width: 14px;
  opacity: 1;
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: 1px;
}

.level-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1px;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nav-accent), #3dd9a0);
  border-radius: 2px;
  transition: none;
  will-change: width;
}

.level-progress-fill.xp-bump {
  animation: xpProgressBump 0.6s ease;
}

.level-progress-bar.level-up .level-progress-fill {
  animation: levelUpPulse 2s ease;
  box-shadow: 0 0 14px rgba(79, 255, 176, 0.7);
}

@keyframes xpProgressBump {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

@keyframes levelUpPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

/* Legacy progress label (hidden in new design, shown in old breakpoints) */
.level-progress-label {
  font-size: 8px;
  color: var(--nav-muted);
  font-variant-numeric: tabular-nums;
  display: none;
}

.level-progress-label.level-up {
  color: var(--nav-accent);
  text-shadow: 0 0 12px rgba(79, 255, 176, 0.6);
}

.level-progress-label.xp-label-bump {
  animation: xpLabelBump 0.45s ease;
}

@keyframes xpLabelBump {
  0% { transform: translateY(0); }
  50% { transform: translateY(-1px); filter: brightness(1.2); }
  100% { transform: translateY(0); }
}

/* ============================
   Global CR Coin Icon Styles
   ============================ */
.cr-coin {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.45))
          drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  transition: filter 0.25s ease, transform 0.25s ease;
  animation: cr-coin-shimmer 4s ease-in-out infinite;
}
.cr-coin:hover {
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.7))
          drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transform: scale(1.12) rotate(-4deg);
}

@keyframes cr-coin-shimmer {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.45)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
  50%      { filter: drop-shadow(0 0 6px rgba(255, 210, 0, 0.6))  drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
}

/* Size variants for different contexts */
.cr-coin.cr-coin--sm { width: 12px; height: 12px; }
.cr-coin.cr-coin--md { width: 18px; height: 18px; }
.cr-coin.cr-coin--lg { width: 28px; height: 28px; }
.cr-coin.cr-coin--xl { width: 40px; height: 40px; }

.level-up-toast {
  position: fixed;
  right: 24px;
  top: 80px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid rgba(79, 255, 176, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 255, 176, 0.2);
  color: #eafff5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: levelToastIn 2.4s ease forwards;
  pointer-events: none;
  z-index: 1100;
}

.level-up-toast-title { text-transform: uppercase; color: var(--nav-accent); }
.level-up-toast-level { color: #ffffff; }

@keyframes levelToastIn {
  0% { opacity: 0; transform: translateY(6px) scale(0.98); }
  15% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

/* Legacy level badge (kept for backward compat, hidden in new card design) */
.level-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
  letter-spacing: 0.3px;
  display: none;
}

.level-badge.level-bronze { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }
.level-badge.level-silver { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.level-badge.level-gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; box-shadow: 0 0 6px rgba(255, 215, 0, 0.2); }
.level-badge.level-diamond { background: rgba(0, 229, 255, 0.15); color: #00e5ff; box-shadow: 0 0 8px rgba(0, 229, 255, 0.2); }
.level-badge.level-ruby { background: rgba(255, 0, 100, 0.15); color: #ff0064; box-shadow: 0 0 8px rgba(255, 0, 100, 0.2); }
.level-badge.level-challenger {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
  color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.5); }
}

.dropdown-arrow {
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.jackpot-player-card:hover .dropdown-arrow {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-arrow.open {
  transform: rotate(180deg);
  color: var(--nav-accent);
  background: rgba(79, 255, 176, 0.08);
}

/* ============================================
   USER DROPDOWN MENU — Premium Glassmorphism
   ============================================ */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 300px;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.user-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 255, 176, 0.12), rgba(168, 85, 247, 0.08), transparent);
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%);
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-user-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.dropdown-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-avatar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-avatar-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  z-index: 1;
}

.dropdown-avatar-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.dropdown-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--nav-text-bright);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-balance-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-coin-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.dropdown-balance {
  font-size: 15px;
  color: var(--nav-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.dropdown-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  width: fit-content;
}

.dropdown-level-badge.level-bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.18), rgba(139, 69, 19, 0.12));
  color: #d4a04a;
  text-shadow: 0 0 6px rgba(205, 127, 50, 0.25);
}
.dropdown-level-badge.level-silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.18), rgba(150, 160, 175, 0.12));
  color: #d0d5dd;
  text-shadow: 0 0 6px rgba(200, 210, 225, 0.25);
}
.dropdown-level-badge.level-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 170, 0, 0.12));
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
.dropdown-level-badge.level-diamond {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(30, 144, 255, 0.1));
  color: #58d0ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}
.dropdown-level-badge.level-ruby {
  background: linear-gradient(135deg, rgba(255, 0, 100, 0.15), rgba(255, 60, 60, 0.1));
  color: #ff4d6a;
  text-shadow: 0 0 8px rgba(255, 0, 100, 0.3);
}
.dropdown-level-badge.level-challenger {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.12));
  color: #c084fc;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* XP Progress in dropdown */
.dropdown-xp-section {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dropdown-xp-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dropdown-xp-text {
  font-size: 10px;
  color: var(--nav-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.dropdown-xp-text.level-up {
  color: var(--nav-accent);
  text-shadow: 0 0 12px rgba(79, 255, 176, 0.5);
}

.dropdown-xp-text.xp-label-bump {
  animation: xpLabelBump 0.45s ease;
}

.dropdown-xp-pct {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dropdown-xp-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nav-accent), #3dd9a0);
  border-radius: 4px;
  transition: none;
  will-change: width;
  box-shadow: 0 0 8px rgba(79, 255, 176, 0.25);
}

.dropdown-xp-fill.xp-bump {
  animation: xpProgressBump 0.6s ease;
}

.dropdown-xp-bar.level-up .dropdown-xp-fill {
  animation: levelUpPulse 2s ease;
  box-shadow: 0 0 14px rgba(79, 255, 176, 0.7);
}

/* Quick Actions — Deposit / Withdraw */
.dropdown-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 4px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.quick-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.quick-deposit {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.15);
}

.quick-deposit:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
  transform: translateY(-1px);
}

.quick-withdraw {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.15);
}

.quick-withdraw:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: 4px 12px;
}

.dropdown-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--nav-text);
  transition: all 0.18s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  text-align: left;
  position: relative;
}

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

.dropdown-option:hover .option-icon {
  transform: scale(1.08);
}

.dropdown-option:hover .option-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.option-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.option-icon svg { width: 16px; height: 16px; }

.deposit-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.withdraw-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.history-icon { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.profile-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.settings-icon { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.logout-icon { background: rgba(239, 68, 68, 0.08); color: #ef4444; }

.option-content {
  flex: 1;
  min-width: 0;
}

.option-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.option-desc {
  font-size: 11px;
  color: var(--nav-muted);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.6;
  margin-top: 1px;
}

.option-arrow {
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  opacity: 0;
  transition: all 0.18s ease;
  transform: translateX(0);
}

.dropdown-option:hover .history-icon { background: rgba(251, 191, 36, 0.15); box-shadow: 0 0 12px rgba(251, 191, 36, 0.08); }
.dropdown-option:hover .deposit-icon { background: rgba(34, 197, 94, 0.15); box-shadow: 0 0 12px rgba(34, 197, 94, 0.1); }
.dropdown-option:hover .withdraw-icon { background: rgba(59, 130, 246, 0.15); box-shadow: 0 0 12px rgba(59, 130, 246, 0.1); }
.dropdown-option:hover .profile-icon { background: rgba(168, 85, 247, 0.15); box-shadow: 0 0 12px rgba(168, 85, 247, 0.1); }
.dropdown-option:hover .settings-icon { background: rgba(148, 163, 184, 0.15); box-shadow: 0 0 12px rgba(148, 163, 184, 0.08); }

.logout-option:hover { background: rgba(239, 68, 68, 0.06); }
.logout-option:hover .logout-icon { background: rgba(239, 68, 68, 0.12); box-shadow: 0 0 12px rgba(239, 68, 68, 0.08); }
.logout-option .option-title { color: #f85149; }

/* ============================================
   AUTH BUTTONS
   ============================================ */
.auth-buttons {
  display: flex;
  gap: 8px;
}

.auth-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--nav-transition);
  border: none;
  font-family: inherit;
  letter-spacing: 0.2px;
}

.login-btn {
  background: transparent;
  color: var(--nav-text-bright);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.register-btn {
  background: linear-gradient(135deg, #4fffb0 0%, #00d68f 100%);
  color: #060d08;
}

.register-btn:hover {
  filter: brightness(1.05);
}

/* ============================================
   BALANCE ANIMATION
   ============================================ */
.balance-value.balance-flash {
  animation: balanceGlow 2s ease-out;
}

@keyframes balanceGlow {
  0% { color: #fbbf24; text-shadow: 0 0 16px #fbbf24; transform: scale(1.12); }
  50% { color: var(--nav-accent); text-shadow: 0 0 10px var(--nav-accent); transform: scale(1.06); }
  100% { color: var(--nav-accent); text-shadow: none; transform: scale(1); }
}

/* ============================================
   ACTIVE BONUS FLAME INDICATOR
   ============================================ */
.active-bonus-indicator {
  position: absolute;
  top: 2px;
  right: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.active-bonus-indicator:hover { transform: scale(1.1); }

.bonus-flame-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonus-flame-svg {
  width: 20px;
  height: 20px;
  color: #ff6b35;
  filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.7));
  animation: flameDance 0.8s ease-in-out infinite alternate;
}

.bonus-flame-glow {
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: flameGlow 1.2s ease-in-out infinite alternate;
}

.bonus-countdown {
  font-size: 7px;
  font-weight: 700;
  color: #ff6b35;
  background: rgba(8, 12, 18, 0.95);
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  white-space: nowrap;
  margin-top: 1px;
  text-shadow: 0 0 4px rgba(255, 107, 53, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes flameDance {
  0% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(2deg); filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.9)); }
  100% { transform: scale(1.05) rotate(-2deg); }
}

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

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--nav-surface);
  border-radius: 8px;
  cursor: pointer;
  color: var(--nav-text);
  transition: all var(--nav-transition);
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: var(--nav-surface-hover);
  color: var(--nav-accent);
}

.nav-hamburger svg { width: 20px; height: 20px; }

/* Mobile slide-out drawer */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-overlay.open { opacity: 1; }

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 82vw;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.99) 0%, rgba(6, 8, 16, 0.99) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(79, 255, 176, 0.08);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.nav-mobile-drawer.open { transform: translateX(0); }

/* Scrollbar for drawer */
.nav-mobile-drawer::-webkit-scrollbar { width: 3px; }
.nav-mobile-drawer::-webkit-scrollbar-track { background: transparent; }
.nav-mobile-drawer::-webkit-scrollbar-thumb { background: rgba(79, 255, 176, 0.1); border-radius: 3px; }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 2;
}

.nav-mobile-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-close:active {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(0.92);
}

.nav-mobile-links {
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  letter-spacing: 0.2px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-mobile-link:active { 
  background: rgba(255, 255, 255, 0.06);
  transform: scale(0.98);
}
.nav-mobile-link svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.85; }

.nav-mobile-link.mobile-fame { color: #f0c050; }
.nav-mobile-link.mobile-missions { color: #b090f0; position: relative; }
.nav-mobile-link.mobile-lottery { color: #50d888; }
.nav-mobile-link.mobile-social { color: #50c8d8; }
.nav-mobile-link.mobile-daily { color: #d080e0; position: relative; }
.nav-mobile-link.mobile-rules { color: #70a0e0; }
.nav-mobile-link.mobile-radio { color: #b080e0; }

.nav-mobile-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, transparent 100%);
  margin: 8px 16px;
}

.nav-mobile-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--nav-accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 16px 16px 8px;
  opacity: 0.6;
}

.mobile-mission-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* Mobile deposit CTA in drawer */
.nav-mobile-deposit-cta {
  display: none;
  margin: 8px 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(79, 255, 176, 0.12), rgba(79, 255, 176, 0.06));
  border: 1px solid rgba(79, 255, 176, 0.15);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.nav-mobile-deposit-cta:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(79, 255, 176, 0.18), rgba(79, 255, 176, 0.1));
}

.nav-mobile-deposit-cta span {
  font-size: 14px;
  font-weight: 700;
  color: #4fffb0;
  letter-spacing: 0.5px;
}

/* Mobile Games Grid */
.nav-mobile-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px 12px;
}

.nav-mobile-game-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-game-tile:active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(79, 255, 176, 0.12);
  transform: scale(0.96);
}

.nav-mobile-game-tile .game-emoji {
  font-size: 18px;
  line-height: 1;
}

/* ============================================
   SIDEBAR — Collapsible left rail (Stake/BC.Game/Roobet style)
   ============================================ */
:root {
  --sidebar-width-expanded: 240px;
  --sidebar-width-collapsed: 64px;
  --sidebar-bg: rgba(10, 12, 18, 0.75);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-item-radius: 12px;
  --sidebar-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  --sidebar-width: var(--sidebar-width-expanded);
}

.cr-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width-collapsed);
  background: rgba(10, 12, 18, 0.97);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(255, 255, 255, 0.02);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* PERF: Shortened from 0.28s to 0.15s — halves the number of internal
     child-layout reflows during the transition. Still feels smooth. */
  transition: width 0.15s var(--sidebar-ease);
  will-change: width;
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Subtle inner glow at top */
.cr-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: radial-gradient(ellipse at 50% -20%, rgba(79, 255, 176, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cr-sidebar--expanded {
  width: var(--sidebar-width-expanded);
}

/* Hide collapsed-only dot when sidebar is pinned open */
.cr-sidebar--expanded .cr-sidebar-dot {
  display: none;
}

.cr-sidebar--collapsed {
  width: var(--sidebar-width-collapsed);
}

/* ── Sidebar header ── */
.cr-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  height: var(--nav-height);
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cr-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.cr-sidebar-logo:hover { opacity: 0.85; }

.cr-sidebar-logo-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, #4fffb0 0%, #00d68f 50%, #00b876 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #060d08;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(79, 255, 176, 0.3), inset 0 2px 0 rgba(255,255,255,0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.cr-sidebar-logo:hover .cr-sidebar-logo-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 25px rgba(79, 255, 176, 0.4), inset 0 2px 0 rgba(255,255,255,0.4);
}

.cr-sidebar-logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: inherit;
}

.cr-sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.cr-sidebar-logo-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #4fffb0 0%, #7affcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(79, 255, 176, 0.2);
}

.cr-sidebar-logo-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.cr-sidebar-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
}

/* Pin icon rotates 45° when unpinned (tilted = not stuck) */
.cr-sidebar-toggle svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(45deg);
}

/* Pinned state — filled icon, green accent, upright */
.cr-sidebar-toggle--pinned {
  color: #4fffb0;
  background: rgba(79, 255, 176, 0.1);
  border-color: rgba(79, 255, 176, 0.25);
}

.cr-sidebar-toggle--pinned svg {
  transform: rotate(0deg);
}

.cr-sidebar-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.15);
}

.cr-sidebar-toggle--pinned:hover {
  color: #7affcc;
  background: rgba(79, 255, 176, 0.15);
  border-color: rgba(79, 255, 176, 0.4);
}

.cr-sidebar-toggle:active {
  transform: scale(0.9);
}

/* ── Sidebar sections ── */
.cr-sidebar-section {
  padding: 3px 10px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Scrollable sidebar body */
.cr-sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}

.cr-sidebar-body::-webkit-scrollbar { width: 0; display: none; }

/* Pinned footer */
.cr-sidebar-footer {
  flex-shrink: 0;
  padding-bottom: 8px;
}

.cr-sidebar-bottom {
  margin-top: auto;
  padding-bottom: 6px;
}

.cr-sidebar-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 10px 12px 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cr-sidebar-label-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

/* PvP section label — red/orange tinted */
.cr-sidebar-label--pvp {
  color: rgba(255, 160, 120, 0.7);
}

/* Casino/Games section label — green tinted */
.cr-sidebar-label--casino {
  color: rgba(79, 255, 176, 0.55);
}

.cr-sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 6px 16px;
}

/* ── Sidebar nav items ── */
.cr-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cr-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: var(--sidebar-item-radius);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
  text-align: left;
  contain: layout style;
}

.cr-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.04);
}

.cr-sidebar-item:active {
  transform: translateX(4px) scale(0.98);
}

.cr-sidebar-item.is-active {
  background: linear-gradient(90deg, rgba(79, 255, 176, 0.15) 0%, rgba(79, 255, 176, 0.02) 100%);
  color: #fff;
  border-color: rgba(79, 255, 176, 0.2);
  box-shadow: inset 2px 0 0 var(--nav-accent, #4fffb0), 0 4px 15px rgba(79, 255, 176, 0.1);
}

/* Active left-edge indicator bar */
.cr-sidebar-item.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(180deg, var(--nav-accent, #4fffb0), #00d68f);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 15px rgba(79, 255, 176, 0.5);
  animation: sidebar-bar-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes sidebar-bar-in {
  from { opacity: 0; height: 0; top: 50%; bottom: 50%; }
  to   { opacity: 1; top: 10px; bottom: 10px; }
}

.cr-sidebar-item.is-active .cr-sidebar-icon {
  color: var(--nav-accent);
}

/* Nav items use their own accent color */
.cr-sidebar-item--nav:hover {
  background: color-mix(in srgb, var(--item-accent, #4fffb0) 10%, transparent);
  color: color-mix(in srgb, var(--item-accent, #4fffb0) 90%, white);
  border-color: color-mix(in srgb, var(--item-accent, #4fffb0) 15%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--item-accent, #4fffb0) 10%, transparent);
}

.cr-sidebar-item--nav.is-active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--item-accent, #4fffb0) 15%, transparent) 0%, color-mix(in srgb, var(--item-accent, #4fffb0) 2%, transparent) 100%);
  color: #fff;
  border-color: color-mix(in srgb, var(--item-accent, #4fffb0) 25%, transparent);
  box-shadow: inset 2px 0 0 var(--item-accent, #4fffb0), 0 4px 15px color-mix(in srgb, var(--item-accent, #4fffb0) 15%, transparent);
}

.cr-sidebar-item--nav.is-active::before {
  background: var(--item-accent, #4fffb0);
  box-shadow: 0 0 15px color-mix(in srgb, var(--item-accent, #4fffb0) 60%, transparent);
}

.cr-sidebar-item--nav.is-active .cr-sidebar-icon {
  color: var(--item-accent, #4fffb0);
}

/* ── Disabled sidebar items ── */
.cr-sidebar-item--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cr-sidebar-badge--soon {
  font-size: 9px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: auto;
}

/* ── Sidebar text (always in DOM, hidden via CSS when collapsed) ── */
.cr-sidebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ── Sidebar icon ── */
/* Clean Minimal Icon Styles */
.cr-sidebar-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.55;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease;
}

.cr-sidebar-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Hover: brighten + gentle lift */
.cr-sidebar-item:hover .cr-sidebar-icon {
  transform: scale(1.12);
  opacity: 0.9;
}

.cr-sidebar-item:active .cr-sidebar-icon {
  transform: scale(0.95);
  opacity: 1;
  transition-duration: 0.1s;
}

.cr-sidebar-item.is-active .cr-sidebar-icon {
  opacity: 1;
  transform: scale(1.08);
}

.cr-sidebar-item--nav.is-active .cr-sidebar-icon {
  opacity: 1;
}

/* ── Clean hover micro-interactions ── */
/* Jackpot: gentle slow spin on the whole icon */
@keyframes icon-spin-slow {
  100% { transform: rotate(360deg); }
}
.cr-sidebar-item--jackpot:hover .cr-sidebar-icon {
  animation: icon-spin-slow 6s linear infinite;
  opacity: 0.9;
}

/* Coinflip: horizontal flip */
@keyframes icon-coin-flip {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.85) rotateY(15deg); }
}
.cr-sidebar-item--coinflip:hover .cr-sidebar-icon {
  animation: icon-coin-flip 1.5s ease-in-out infinite;
  opacity: 0.9;
}

/* Premium: gentle wobble */
@keyframes icon-wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.cr-sidebar-item--premium-jackpot:hover .cr-sidebar-icon {
  animation: icon-wobble 1.2s ease-in-out infinite;
  opacity: 0.9;
}

/* Knights: quick shake */
@keyframes icon-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.cr-sidebar-item--barbarian:hover .cr-sidebar-icon {
  animation: icon-shake 0.4s ease-in-out infinite;
  opacity: 0.9;
}

/* Plinko: gentle bounce */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.cr-sidebar-item--plinko:hover .cr-sidebar-icon {
  animation: icon-bounce 0.8s ease-in-out infinite;
  opacity: 0.9;
}

/* Dice: single roll */
@keyframes icon-roll {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cr-sidebar-item--slice_dice:hover .cr-sidebar-icon {
  animation: icon-roll 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  opacity: 0.9;
}

/* Roulette: smooth spin */
@keyframes icon-roulette-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cr-sidebar-item--roulette:hover .cr-sidebar-icon {
  animation: icon-roulette-spin 3s linear infinite;
  opacity: 0.9;
}

/* Mines: pulse/glow */
@keyframes icon-mines-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}
.cr-sidebar-item--mines:hover .cr-sidebar-icon {
  animation: icon-mines-pulse 1.2s ease-in-out infinite;
}

/* Tower: rise up */
@keyframes icon-tower-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.cr-sidebar-item--tower:hover .cr-sidebar-icon {
  animation: icon-tower-rise 1s ease-in-out infinite;
  opacity: 0.9;
}

/* Crash: rocket launch */
@keyframes icon-crash-launch {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(2px, -4px) rotate(-8deg); }
}
.cr-sidebar-item--crash:hover .cr-sidebar-icon {
  animation: icon-crash-launch 0.8s ease-in-out infinite;
  opacity: 0.9;
}

/* Casino Dice: gentle tumble */
@keyframes icon-dice-tumble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}
.cr-sidebar-item--dice:hover .cr-sidebar-icon {
  animation: icon-dice-tumble 0.6s ease-in-out infinite;
  opacity: 0.9;
}

/* Limbo: float upward */
@keyframes icon-limbo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08); }
}
.cr-sidebar-item--limbo:hover .cr-sidebar-icon {
  animation: icon-limbo-float 1s ease-in-out infinite;
  opacity: 0.9;
}

/* ── Sidebar badges ── */
.cr-sidebar-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cr-sidebar-item:hover .cr-sidebar-badge {
  transform: scale(1.15) rotate(2deg);
}

/* ── HOT — actual fire effect 🔥 ── */
.cr-sidebar-badge--hot {
  background: linear-gradient(0deg, rgba(255, 60, 10, 0.45) 0%, rgba(255, 140, 0, 0.35) 40%, rgba(255, 200, 50, 0.2) 100%);
  color: #ffd6a0;
  border: 1px solid rgba(255, 100, 20, 0.5);
  text-shadow: 0 0 6px rgba(255, 100, 20, 0.8), 0 0 12px rgba(255, 60, 0, 0.4);
  position: relative;
  overflow: visible;
  animation: hotFirePulse 1.8s ease-in-out infinite;
}

.cr-sidebar-badge--hot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 20%;
  width: 4px;
  height: 6px;
  background: radial-gradient(ellipse, rgba(255, 160, 30, 0.9), transparent 70%);
  border-radius: 50% 50% 20% 20%;
  animation: hotEmber1 1.2s ease-in-out infinite;
  filter: blur(0.5px);
}

.cr-sidebar-badge--hot::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 25%;
  width: 3px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(255, 100, 20, 0.8), transparent 70%);
  border-radius: 50% 50% 20% 20%;
  animation: hotEmber2 1.5s ease-in-out infinite 0.3s;
  filter: blur(0.5px);
}

@keyframes hotFirePulse {
  0%, 100% {
    box-shadow:
      0 2px 8px rgba(255, 60, 10, 0.3),
      0 0 4px rgba(255, 140, 0, 0.15),
      inset 0 -2px 6px rgba(255, 60, 10, 0.1);
    text-shadow: 0 0 6px rgba(255, 100, 20, 0.7), 0 0 12px rgba(255, 60, 0, 0.3);
  }
  50% {
    box-shadow:
      0 2px 20px rgba(255, 60, 10, 0.55),
      0 0 12px rgba(255, 140, 0, 0.35),
      inset 0 -2px 8px rgba(255, 60, 10, 0.2);
    text-shadow: 0 0 10px rgba(255, 100, 20, 1), 0 0 20px rgba(255, 60, 0, 0.6);
  }
}

@keyframes hotEmber1 {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-3px) scale(1.3); }
}

@keyframes hotEmber2 {
  0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.8); }
  50% { opacity: 0.9; transform: translateY(-4px) scale(1.2); }
}

/* ── VIP — luxe gold ── */
.cr-sidebar-badge--vip {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ── NEW — clean blue ── */
.cr-sidebar-badge--new {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.1));
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* ── PVP — golden brown fire ── */
.cr-sidebar-badge--pvp {
  background: linear-gradient(0deg, rgba(180, 100, 20, 0.4) 0%, rgba(220, 150, 40, 0.3) 40%, rgba(255, 200, 80, 0.15) 100%);
  color: #f0c870;
  border: 1px solid rgba(200, 130, 30, 0.45);
  text-shadow: 0 0 5px rgba(220, 150, 40, 0.6), 0 0 10px rgba(180, 100, 20, 0.3);
  position: relative;
  overflow: visible;
  animation: pvpFirePulse 2s ease-in-out infinite;
}

.cr-sidebar-badge--pvp::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 25%;
  width: 3px;
  height: 5px;
  background: radial-gradient(ellipse, rgba(255, 190, 50, 0.85), transparent 70%);
  border-radius: 50% 50% 20% 20%;
  animation: hotEmber1 1.4s ease-in-out infinite 0.2s;
  filter: blur(0.5px);
}

.cr-sidebar-badge--pvp::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 20%;
  width: 3px;
  height: 6px;
  background: radial-gradient(ellipse, rgba(220, 150, 40, 0.8), transparent 70%);
  border-radius: 50% 50% 20% 20%;
  animation: hotEmber2 1.6s ease-in-out infinite 0.5s;
  filter: blur(0.5px);
}

@keyframes pvpFirePulse {
  0%, 100% {
    box-shadow:
      0 2px 8px rgba(180, 100, 20, 0.25),
      0 0 4px rgba(220, 150, 40, 0.12),
      inset 0 -2px 5px rgba(180, 100, 20, 0.08);
  }
  50% {
    box-shadow:
      0 2px 16px rgba(180, 100, 20, 0.45),
      0 0 10px rgba(220, 150, 40, 0.3),
      inset 0 -2px 6px rgba(180, 100, 20, 0.15);
  }
}

/* ── LIVE — light green ── */
.cr-sidebar-badge--live {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.22), rgba(34, 197, 94, 0.1));
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
  animation: sidebarLivePulse 2.5s ease-in-out infinite;
}

@keyframes sidebarLivePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(74, 222, 128, 0.15); }
  50% { box-shadow: 0 2px 14px rgba(74, 222, 128, 0.35); }
}

/* ── Sidebar: Daily Reward "Claim" badge ── */
.cr-sidebar-badge--claim {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.3), rgba(251, 191, 36, 0.15));
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.5);
  animation: sidebarClaimPulse 2s ease-in-out infinite;
}

@keyframes sidebarClaimPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 2px 16px rgba(251, 191, 36, 0.5); }
}

/* ── Sidebar: Daily Reward glow when unclaimed ── */
.cr-sidebar-item--glow {
  position: relative;
}
.cr-sidebar-item--glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.2);
  pointer-events: none;
  animation: sidebarGlow 3s ease-in-out infinite;
  z-index: -1;
}
@keyframes sidebarGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Sidebar: Streak text ── */
.cr-sidebar-streak {
  font-size: 10px;
  font-weight: 700;
  color: rgba(253, 224, 71, 0.7);
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--cr-font-mono, monospace);
}

/* ── Sidebar: Unclaimed dot (collapsed mode) ── */
.cr-sidebar-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  animation: sidebarDotPulse 2s ease-in-out infinite;
}
@keyframes sidebarDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ── Sidebar: Deposit quick-action button ── */
.cr-sidebar-deposit-section {
  padding: 4px 14px 0 !important;
}
.cr-sidebar-deposit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
  color: #86efac;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.cr-sidebar-deposit-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(22, 163, 74, 0.1));
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
  transform: translateY(-1px);
}
.cr-sidebar-deposit-btn:active {
  transform: scale(0.97);
}
.cr-sidebar-deposit-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cr-sidebar-deposit-icon svg {
  width: 16px;
  height: 16px;
}
.cr-sidebar-deposit-text {
  flex: 1;
}

/* Collapsed sidebar: deposit button is icon-only */
.cr-sidebar--collapsed .cr-sidebar-deposit-section {
  padding: 4px 10px 0 !important;
}
.cr-sidebar--collapsed .cr-sidebar-deposit-btn {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

/* ── Sidebar: Daily Reward button reset ── */
.cr-sidebar-item--daily {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

/* ── Mission count badge in sidebar ── */
.cr-sidebar-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.cr-sidebar-count.pulse {
  animation: mission-badge-pulse 1.2s ease-in-out infinite;
}

/* Collapsed sidebar: count becomes a dot */
.cr-sidebar--collapsed .cr-sidebar-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
}

/* ── Collapsed sidebar polish ── */
.cr-sidebar--collapsed .cr-sidebar-section {
  padding: 8px 10px;
}

.cr-sidebar--collapsed .cr-sidebar-item {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

.cr-sidebar--collapsed .cr-sidebar-item:hover {
  transform: scale(1.15);
}

.cr-sidebar--collapsed .cr-sidebar-item:active {
  transform: scale(0.95);
}

.cr-sidebar--collapsed .cr-sidebar-item.is-active::before {
  top: 8px;
  bottom: 8px;
}

.cr-sidebar--collapsed .cr-sidebar-divider {
  margin: 6px 12px;
}

.cr-sidebar--collapsed .cr-sidebar-header {
  padding: 16px 12px;
  justify-content: center;
}

.cr-sidebar--collapsed .cr-sidebar-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.cr-sidebar--collapsed:hover .cr-sidebar-toggle {
  opacity: 1;
  pointer-events: auto;
}

/* ── CSS-only hover expand (no React re-renders) ── */
/* Hide text/labels/badges in collapsed state */
.cr-sidebar--collapsed .cr-sidebar-text,
.cr-sidebar--collapsed .cr-sidebar-logo-text,
.cr-sidebar--collapsed .cr-sidebar-label,
.cr-sidebar--collapsed .cr-sidebar-deposit-text,
.cr-sidebar--collapsed .cr-sidebar-badge,
.cr-sidebar--collapsed .cr-sidebar-streak {
  display: none;
}

/* The dot only shows when collapsed and NOT hovered */
.cr-sidebar--collapsed .cr-sidebar-dot {
  display: block;
}
.cr-sidebar--collapsed:hover .cr-sidebar-dot {
  display: none;
}

/* Expand sidebar on hover — pure CSS, zero JS */
.cr-sidebar--collapsed:hover {
  width: var(--sidebar-width-expanded);
}

/* Show text/labels/badges when collapsed sidebar is hovered */
.cr-sidebar--collapsed:hover .cr-sidebar-text,
.cr-sidebar--collapsed:hover .cr-sidebar-logo-text,
.cr-sidebar--collapsed:hover .cr-sidebar-label,
.cr-sidebar--collapsed:hover .cr-sidebar-deposit-text,
.cr-sidebar--collapsed:hover .cr-sidebar-badge,
.cr-sidebar--collapsed:hover .cr-sidebar-streak {
  display: flex;
}
.cr-sidebar--collapsed:hover .cr-sidebar-text,
.cr-sidebar--collapsed:hover .cr-sidebar-deposit-text {
  display: inline;
}

/* Restore item layout when hovered-expanded */
.cr-sidebar--collapsed:hover .cr-sidebar-item {
  justify-content: flex-start;
  padding: 7px 12px;
  gap: 12px;
}
.cr-sidebar--collapsed:hover .cr-sidebar-item:hover {
  transform: translateX(3px);
}
.cr-sidebar--collapsed:hover .cr-sidebar-item:active {
  transform: translateX(4px) scale(0.98);
}
.cr-sidebar--collapsed:hover .cr-sidebar-section {
  padding: 3px 10px;
}
.cr-sidebar--collapsed:hover .cr-sidebar-header {
  padding: 14px 14px;
  justify-content: space-between;
}
.cr-sidebar--collapsed:hover .cr-sidebar-deposit-btn {
  justify-content: flex-start;
  padding: 10px 14px;
  gap: 10px;
}
.cr-sidebar--collapsed:hover .cr-sidebar-deposit-section {
  padding: 4px 14px 0 !important;
}
.cr-sidebar--collapsed:hover .cr-sidebar-divider {
  margin: 6px 16px;
}
.cr-sidebar--collapsed:hover .cr-sidebar-item.is-active::before {
  top: 10px;
  bottom: 10px;
}
/* Collapsed count badge restores full form on hover */
.cr-sidebar--collapsed:hover .cr-sidebar-count {
  position: static;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 9px;
  border-radius: 9px;
}

/* Radio slot: expanded layout on hover */
.cr-sidebar--collapsed:hover .cr-sidebar-radio-slot--mini .topnav-help-btn.radio-btn {
  justify-content: flex-start;
  padding: 10px 12px;
}
.cr-sidebar--collapsed:hover .cr-sidebar-radio-slot--mini .topnav-help-btn.radio-btn span {
  display: inline !important;
}

/* ── Sidebar radio slot ── */
.cr-sidebar-radio-slot {
  width: 100%;
}

.cr-sidebar-radio-slot .coinrush-radio { width: 100%; }

.cr-sidebar-radio-slot .topnav-help-btn.radio-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--sidebar-item-radius);
  justify-content: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.55);
}

.cr-sidebar-radio-slot .topnav-help-btn.radio-btn span { display: inline !important; }

.cr-sidebar-radio-slot--mini .topnav-help-btn.radio-btn {
  justify-content: center;
  padding: 10px 0;
}

.cr-sidebar-radio-slot--mini .topnav-help-btn.radio-btn span { display: none !important; }

.cr-sidebar-radio-slot .coinrush-radio-dropdown {
  left: calc(100% + 8px);
  right: auto;
  top: 0;
  bottom: auto;
}

/* ── Topbar adjustments when sidebar is present ── */
.topnav-with-sidebar {
  left: var(--sidebar-width-expanded) !important;
  right: var(--chatpanel-width-closed, 0px) !important;
  width: auto !important;
  transition: left 0.15s var(--sidebar-ease),
              right 0.15s var(--sidebar-ease);
  will-change: left, right;
  transform: translateZ(0);
  contain: layout style;
  backface-visibility: hidden;
}

body.cr-sidebar-collapsed .topnav-with-sidebar {
  left: var(--sidebar-width-collapsed) !important;
}

body.cr-chat-open .topnav-with-sidebar {
  right: var(--chatpanel-width-open) !important;
}

/* When chat is open, gracefully shrink/hide navbar elements to fit
   (mirrors the @media (max-width:1200px) rules since we lose ~320px) */
body.cr-chat-open .topnav-inner {
  gap: 8px;
  padding: 0 12px;
}
body.cr-chat-open .topnav-left {
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
body.cr-chat-open .topnav-search-hint {
  display: none;
}
body.cr-chat-open .topnav-deposit-btn span {
  display: none;
}
body.cr-chat-open .topnav-deposit-btn {
  padding: 8px;
  min-width: 36px;
  justify-content: center;
}
body.cr-chat-open .cr-radio-track-label {
  max-width: 60px;
}
body.cr-chat-open .daily-trigger-text,
body.cr-chat-open .daily-trigger-streak {
  display: none;
}
body.cr-chat-open .topnav-daily-trigger {
  padding: 7px;
  min-width: 34px;
  justify-content: center;
}
body.cr-chat-open .topnav-right {
  gap: 2px;
}

body.cr-chat-hidden .topnav-with-sidebar {
  right: var(--chatpanel-width-closed) !important;
}

/* Hide the old logo in the topbar (it's now in the sidebar) */
.topnav-with-sidebar .topnav-logo { display: none; }

/* Hide the topbar brand logo when sidebar is pinned open (avoids double logo) */
body.cr-sidebar-expanded .topnav-center-logo {
  display: none;
}

/* Give right side breathing room so auth/user buttons don't overlap the chat toggle */
.topnav-right {
  padding-right: 4px;
}

/* Spacer pushes right items */
.topnav-spacer {
  flex: 1;
}

/* Status cluster — Live + Online grouped */
.topnav-status-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Center Logo — CR Brand Mark */
.topnav-center-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.topnav-center-logo:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

.cr-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #4fffb0 0%, #00d68f 50%, #00b876 100%);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  color: #060d08;
  letter-spacing: -0.5px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.cr-logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: inherit;
}

.cr-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}

.cr-logo-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #4fffb0 0%, #7affcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cr-logo-subtitle {
  font-size: 8px;
  font-weight: 500;
  color: var(--nav-muted);
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Search */
.topnav-search {
  position: relative;
}

.topnav-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--nav-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  color: var(--nav-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.topnav-search-trigger:hover {
  background: var(--nav-surface-hover);
  color: var(--nav-text);
  border-color: rgba(255, 255, 255, 0.1);
}

.topnav-search-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
}

.topnav-search-hint kbd {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  line-height: 1.4;
}

.topnav-search.is-open .topnav-search-trigger {
  background: rgba(79, 255, 176, 0.06);
  border-color: rgba(79, 255, 176, 0.15);
  color: var(--nav-accent);
}

.topnav-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: rgba(10, 14, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  overflow: hidden;
  z-index: 9000;
  animation: topnav-search-in 0.15s ease-out;
}

@keyframes topnav-search-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.topnav-search-input {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.topnav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.topnav-search-results {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.topnav-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.12s ease;
}

.topnav-search-result:hover {
  background: rgba(79, 255, 176, 0.06);
  color: #fff;
}

.topnav-search-result-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-muted);
}

.topnav-search-result-icon svg {
  width: 18px;
  height: 18px;
}

.topnav-search-result:hover .topnav-search-result-icon {
  color: var(--nav-accent);
}

.topnav-search-result-name {
  flex: 1;
}

.topnav-search-result-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.topnav-search-empty {
  padding: 16px 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* Online Players Chip */
.topnav-online-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  background: rgba(79, 255, 176, 0.04);
  border: 1px solid rgba(79, 255, 176, 0.08);
  border-radius: 20px;
  color: var(--nav-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  transition: all 0.2s ease;
}

.topnav-online-chip:hover {
  background: rgba(79, 255, 176, 0.07);
  border-color: rgba(79, 255, 176, 0.14);
}

.topnav-online-dot {
  width: 7px;
  height: 7px;
  background: #4fffb0;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(79, 255, 176, 0.5);
  animation: online-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes online-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.topnav-online-count {
  color: #4fffb0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.topnav-online-label {
  color: var(--nav-muted);
  font-weight: 500;
  font-size: 11px;
  opacity: 0.7;
}

/* ── Global chat hidden state ── */
/* Hide per-game right sidebars — the global chatpanel replaces them */
body.cr-chat-open .jp-sidebar--right,
body.cr-chat-open .sd-sidebar--right,
body.cr-chat-open .pj-sidebar--right,
body.cr-chat-open .cf-sidebar--right,
body.cr-chat-open .sidebar--right,
body.cr-chat-open .plinko-chat,
body.cr-chat-open .cr-floating-chat-panel,
body.cr-chat-open .cr-floating-chat-btn {
  display: none !important;
}

body.cr-chat-hidden .jp-sidebar--right,
body.cr-chat-hidden .sd-sidebar--right,
body.cr-chat-hidden .pj-sidebar--right,
body.cr-chat-hidden .cf-sidebar--right,
body.cr-chat-hidden .sidebar--right,
body.cr-chat-hidden .plinko-chat,
body.cr-chat-hidden .cr-floating-chat-panel,
body.cr-chat-hidden .cr-floating-chat-btn {
  display: none !important;
}

/* When chat is hidden, expand game grids to fill the space */
body.cr-chat-hidden .jp-grid {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-hidden .sd-content-grid {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-hidden .pj-grid {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-hidden .cf-layout {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-hidden .barbarian-layout {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-hidden .plinko-container {
  grid-template-columns: 320px minmax(0, 1fr);
}

/* When chat IS open (global panel), also collapse per-game grids since chat is outside */
body.cr-chat-open .jp-grid {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-open .sd-content-grid {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-open .pj-grid {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-open .cf-layout {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-open .barbarian-layout {
  grid-template-columns: 320px 1fr;
}

body.cr-chat-open .plinko-container {
  grid-template-columns: 320px minmax(0, 1fr);
}

/* ══════════════════════════════════════════════
   RIGHT CHAT PANEL — Docked rail (mirrors sidebar)
   ══════════════════════════════════════════════ */
:root {
  --chatpanel-width-open: 320px;
  --chatpanel-width-closed: 48px;
  --chatpanel-bg: rgba(6, 9, 14, 0.98);
  --chatpanel-border: rgba(255, 255, 255, 0.06);
}

.cr-chatpanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--chatpanel-width-closed);
  background: var(--chatpanel-bg);
  border-left: 1px solid var(--chatpanel-border);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  will-change: width;
  contain: layout style;
  backface-visibility: hidden;
}

.cr-chatpanel--open {
  width: var(--chatpanel-width-open);
}

.cr-chatpanel--closed {
  width: var(--chatpanel-width-closed);
}

/* ── Chat panel header ── */
.cr-chatpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  height: var(--nav-height, 64px);
  border-bottom: 1px solid var(--chatpanel-border);
  flex-shrink: 0;
}

.cr-chatpanel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-accent, #4fffb0);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
}

.cr-chatpanel-title svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.cr-chatpanel-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  color: var(--nav-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.cr-chatpanel-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-text-bright);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Chat panel body ── */
.cr-chatpanel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Override chat container styles when inside the docked panel */
.cr-chatpanel-body .cr-chat-container {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.cr-chatpanel-body .cr-chat-header {
  padding: 10px 12px;
}

.cr-chatpanel-body .cr-chat-messages {
  flex: 1 1 0 !important;
  min-height: 0 !important;
}

/* ── Collapsed state icon ── */
.cr-chatpanel-collapsed-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  color: var(--nav-muted);
  transition: color 0.2s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.cr-chatpanel-collapsed-icon:hover {
  color: var(--nav-accent, #4fffb0);
}

/* ── Placeholder ── */
.cr-chatpanel-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

/* ── Body content shift for chat panel ── */
body.cr-chat-open {
  margin-right: var(--chatpanel-width-open);
}

body.cr-chat-hidden {
  margin-right: var(--chatpanel-width-closed);
}

/* ── Chat panel theme overrides ── */
.cr-chatpanel.theme-neon-pink {
  --chatpanel-border: rgba(255, 45, 146, 0.1);
  border-left-color: rgba(255, 45, 146, 0.1);
}

.cr-chatpanel.theme-neon-pink .cr-chatpanel-title {
  color: #ff2d92;
}

.cr-chatpanel.theme-emerald-fame {
  --chatpanel-border: rgba(91, 255, 178, 0.1);
  border-left-color: rgba(91, 255, 178, 0.1);
}

/* Mobile sidebar toggle — hidden on desktop */
.cr-sidebar-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--nav-surface);
  border-radius: 8px;
  cursor: pointer;
  color: var(--nav-text);
  transition: all var(--nav-transition);
  padding: 0;
  flex-shrink: 0;
}

.cr-sidebar-mobile-toggle:hover {
  background: var(--nav-surface-hover);
  color: var(--nav-accent);
}

/* Hide old hamburger (replaced by sidebar mobile toggle) */
.topnav-with-sidebar .nav-hamburger { display: none !important; }

/* Hide old center nav (it's now in the sidebar) */
.topnav-with-sidebar .topnav-center { display: none; }

/* ── Deposit button ── */
.topnav-deposit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #4fffb0 0%, #00d68f 100%);
  color: #060d08;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(79, 255, 176, 0.2);
}

.topnav-deposit-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(79, 255, 176, 0.3);
  transform: translateY(-1px);
}

.topnav-deposit-btn svg {
  flex-shrink: 0;
}

/* ── Body content shift ── */
/* PERF: NO transition on body margin-left. Animated margin-left on <body> causes
   a full layout reflow every animation frame for ALL descendants — catastrophic
   on heavy pages (jackpot: 3-col grid + reel 70+ DOM nodes + chat).
   The sidebar already has its own smooth width transition (0.28s) which provides
   the visual motion. Body content snaps instantly — imperceptible to users
   because the sidebar's expanding edge IS the animation they see. */
body.cr-sidebar-expanded {
  margin-left: var(--sidebar-width-expanded);
}

body.cr-sidebar-collapsed {
  margin-left: var(--sidebar-width-collapsed);
}

/* ── Sidebar theme overrides ── */
.cr-sidebar.theme-neon-pink {
  --sidebar-border: rgba(255, 45, 146, 0.1);
  border-right-color: rgba(255, 45, 146, 0.1);
}

.cr-sidebar.theme-neon-pink .cr-sidebar-item.is-active {
  background: rgba(255, 45, 146, 0.08);
  border-color: rgba(255, 45, 146, 0.15);
}

.cr-sidebar.theme-neon-pink .cr-sidebar-item.is-active .cr-sidebar-icon {
  color: #ff2d92;
}

.cr-sidebar.theme-neon-pink .cr-sidebar-logo-icon {
  background: linear-gradient(135deg, #ff2d92 0%, #b44aff 100%);
}

.cr-sidebar.theme-neon-pink .cr-sidebar-logo-title {
  background: linear-gradient(135deg, #ff2d92 0%, #ff6eb4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.cr-sidebar.theme-emerald-fame {
  --sidebar-border: rgba(91, 255, 178, 0.1);
  border-right-color: rgba(91, 255, 178, 0.1);
}

.cr-sidebar.theme-emerald-fame .cr-sidebar-item.is-active {
  background: rgba(91, 255, 178, 0.08);
  border-color: rgba(91, 255, 178, 0.15);
}

.cr-sidebar.theme-emerald-fame .cr-sidebar-item.is-active .cr-sidebar-icon {
  color: #5bffb2;
}

/* Deposit button theme overrides */
.jackpot-topnav.theme-neon-pink .topnav-deposit-btn {
  background: linear-gradient(135deg, #ff2d92 0%, #b44aff 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 45, 146, 0.3);
}

.jackpot-topnav.theme-emerald-fame .topnav-deposit-btn {
  background: linear-gradient(135deg, #5bffb2 0%, #4de69c 100%);
  box-shadow: 0 2px 12px rgba(91, 255, 178, 0.3);
}

/* ============================================
   NAVBAR STANDARD SPACING
   ============================================ */
.jackpot-topnav.topnav-standard .topnav-inner { height: var(--nav-height) !important; padding: 0 20px !important; }
.jackpot-topnav.topnav-standard .topnav-left { gap: 1rem !important; }
.jackpot-topnav.topnav-standard .topnav-right { gap: 4px !important; flex-wrap: nowrap !important; }
.jackpot-topnav.topnav-standard .topnav-logo-icon { width: 38px !important; height: 38px !important; border-radius: 10px !important; font-size: 13px !important; }
.jackpot-topnav.topnav-standard .topnav-nav-pill { padding: 6px 12px !important; font-size: 12px !important; border-radius: 8px !important; }
.jackpot-topnav.topnav-standard .topnav-help-btn { padding: 6px 12px !important; font-size: 12px !important; border-radius: 8px !important; }
.jackpot-topnav.topnav-standard .nav-dropdown-trigger { padding: 7px 12px !important; font-size: 0.85rem !important; }
.jackpot-topnav.topnav-standard .jackpot-player-card { height: 52px !important; padding: 4px 12px 4px 4px !important; }
.jackpot-topnav.topnav-standard .player-avatar-wrapper { width: 46px !important; height: 46px !important; }
.jackpot-topnav.topnav-standard .player-avatar-border { width: 46px !important; height: 46px !important; }

/* ============================================
   RESPONSIVE — Phone-first
   ============================================ */

/* Tight desktop: hide text labels in daily trigger */
@media (max-width: 1200px) {
  .daily-trigger-text, .daily-trigger-streak { display: none; }
  .topnav-daily-trigger { padding: 7px; min-width: 34px; justify-content: center; }
  .topnav-deposit-btn span { display: none; }
  .topnav-deposit-btn { padding: 8px; min-width: 36px; justify-content: center; }
  .topnav-search-hint { display: none; }
  .topnav-online-label { display: none; }
  .cr-logo-text { display: none; }
  .topnav-status-cluster { padding-left: 8px; gap: 6px; }
}

@media (max-width: 900px) {
  .topnav-inner { padding: 0 12px; }
  .topnav-live-label { display: none; }
  .topnav-live { padding: 5px 8px; }
  .jackpot-player-card { min-width: auto; }
  .player-info .level-progress-label,
  .player-info .level-progress-bar { display: none; }
  .level-up-toast { right: 12px; top: 72px; }
}

@media (max-width: 720px) {
  /* ── Hide desktop sidebar on mobile ── */
  .cr-sidebar { display: none !important; }
  
  /* ── Hide desktop chat panel on mobile ── */
  .cr-chatpanel { display: none !important; }
  
  /* ── Reset topbar to full width ── */
  .topnav-with-sidebar {
    left: 0 !important;
    right: 0 !important;
  }
  
  /* ── Reset body margin/padding ── */
  body.cr-sidebar-expanded,
  body.cr-sidebar-collapsed {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  body.cr-chat-open,
  body.cr-chat-hidden {
    padding-right: 0 !important;
    margin-right: 0 !important;
  }
  
  /* ── Show mobile sidebar toggle ── */
  .cr-sidebar-mobile-toggle { display: flex; }
  
  /* ── Show mobile drawer ── */
  .nav-mobile-overlay { display: block; }
  .nav-mobile-deposit-cta { display: block; }
  
  /* ── Safe area insets for notched phones ── */
  .topnav-inner {
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)) !important;
    height: 56px !important;
    gap: 6px;
  }
  .nav-mobile-drawer {
    padding-left: env(safe-area-inset-left, 0px);
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  
  /* ── Topbar — compact and clean ── */
  .jackpot-topnav {
    -webkit-user-select: none;
    user-select: none;
  }
  .topnav-left { gap: 8px !important; }
  
  /* ── Hide engagement triggers (they're in the drawer) ── */
  .topnav-daily-trigger { display: none; }
  .topnav-more-wrap { display: none; }
  .topnav-deposit-btn { display: none; }
  .topnav-status-cluster { display: none; }
  .topnav-search { display: none; }
  .topnav-live { display: none; }
  
  /* ── Right side — tight gaps ── */
  .topnav-right { gap: 6px; }
  
  /* ── Logo — icon only on small screens ── */
  .cr-logo-text { display: none; }
  .topnav-center-logo { display: flex !important; }
  .cr-logo-mark {
    width: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
  }
  
  /* ── Hamburger toggle ── */
  .cr-sidebar-mobile-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* ── Player card — compact ── */
  .jackpot-player-card {
    min-width: auto;
    padding: 3px 8px 3px 3px !important;
    height: 44px !important;
    gap: 6px;
    border-radius: 12px !important;
  }
  .player-name { max-width: 55px; font-size: 11px; }
  .player-name-row .level-badge-inline { display: none; }
  .player-actions .level-badge { display: none; }
  
  .player-avatar-wrapper { width: 38px !important; height: 38px !important; }
  .player-avatar-border { width: 38px !important; height: 38px !important; }
  .player-avatar-inner,
  .player-avatar-wrapper .cr-user-avatar__inner {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
  }
  .avatar-status-dot { width: 6px; height: 6px; bottom: 4px; right: 4px; border-width: 1.5px; }
  
  .balance-value { font-size: 12px; letter-spacing: 0; }
  .coin-logo { height: 12px; width: 12px; }
  .level-progress-bar { display: none; }
  
  /* Dropdown on mobile */
  .user-dropdown-menu { min-width: 260px; right: -10px; }
  
  /* ── Bonus indicator on mobile ── */
  .active-bonus-indicator { top: 0; right: -8px; }
  .bonus-flame-wrapper { width: 18px; height: 18px; }
  .bonus-flame-svg { width: 14px; height: 14px; }
  .bonus-countdown { font-size: 6px; padding: 1px 3px; }
  
  /* ── Login/Register on mobile ── */
  .login-btn, .register-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
  .login-btn { display: none; } /* Only show register on mobile */

  /* ── Level-up toast on mobile ── */
  .level-up-toast { right: 12px; top: 64px; max-width: calc(100vw - 24px); }

  /* ── Nav height variable for body padding ── */
  :root { --nav-height: 56px; }
}

@media (max-width: 400px) {
  .topnav-inner { padding: 0 8px !important; }
  .jackpot-player-card { height: 40px !important; gap: 4px; padding: 2px 6px 2px 2px !important; }
  .player-avatar-wrapper { width: 34px !important; height: 34px !important; }
  .player-avatar-border { width: 34px !important; height: 34px !important; }
  .player-avatar-inner,
  .player-avatar-wrapper .cr-user-avatar__inner { width: 22px !important; height: 22px !important; font-size: 9px !important; }
  .avatar-status-dot { width: 5px; height: 5px; bottom: 3px; right: 3px; }
  .player-name { font-size: 10px; max-width: 45px; }
  .balance-value { font-size: 11px; }
  .coin-logo { height: 10px; width: 10px; }
  .cr-logo-mark { width: 30px !important; height: 30px !important; font-size: 10px !important; }
  .cr-sidebar-mobile-toggle { width: 34px; height: 34px; }
  .topnav-left { gap: 6px !important; }
  .user-dropdown-menu { min-width: 240px; }
}

/* ============================================
   NEON PINK THEME (Slice n' Dice)
   ============================================ */
.jackpot-topnav.theme-neon-pink {
  --nav-accent: #ff2d92;
  --nav-accent-dim: rgba(255, 45, 146, 0.08);
  --nav-border: rgba(255, 45, 146, 0.15);
  background: rgba(12, 8, 16, 0.94);
  border-bottom-color: rgba(255, 45, 146, 0.2);
}

.jackpot-topnav.theme-neon-pink::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 45, 146, 0.6) 20%, rgba(255, 45, 146, 0.9) 50%, rgba(255, 45, 146, 0.6) 80%, transparent 100%);
}

.jackpot-topnav.theme-neon-pink .topnav-logo-icon {
  background: linear-gradient(135deg, #ff2d92 0%, #b44aff 100%);
  box-shadow: 0 0 14px rgba(255, 45, 146, 0.4);
}

.jackpot-topnav.theme-neon-pink .topnav-logo-title {
  background: linear-gradient(135deg, #ff2d92 0%, #ff6eb4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.jackpot-topnav.theme-neon-pink .topnav-live.connected .topnav-live-dot {
  background: #ff2d92;
  box-shadow: 0 0 8px rgba(255, 45, 146, 0.7);
}

.jackpot-topnav.theme-neon-pink .topnav-live.connected {
  border-color: rgba(255, 45, 146, 0.15);
  background: rgba(255, 45, 146, 0.05);
}

.jackpot-topnav.theme-neon-pink .nav-dropdown-trigger.is-active,
.jackpot-topnav.theme-neon-pink .nav-dropdown-trigger:hover { color: #ff2d92; }

.jackpot-topnav.theme-neon-pink .nav-dropdown-menu {
  border-color: rgba(255, 45, 146, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 45, 146, 0.08);
}

.jackpot-topnav.theme-neon-pink .gdd-divider { background: rgba(255, 45, 146, 0.06); }
.jackpot-topnav.theme-neon-pink .gdd-row:hover { background: rgba(255, 45, 146, 0.06); }
.jackpot-topnav.theme-neon-pink .topnav-nav-pill.is-active { border-color: rgba(255, 45, 146, 0.25); }
.jackpot-topnav.theme-neon-pink .topnav-daily-trigger.has-reward { color: #ff2d92; border-color: rgba(255, 45, 146, 0.2); background: rgba(255, 45, 146, 0.06); }
.jackpot-topnav.theme-neon-pink .jackpot-player-card { border-color: rgba(255, 45, 146, 0.1); }
.jackpot-topnav.theme-neon-pink .jackpot-player-card:hover { border-color: rgba(255, 45, 146, 0.2); box-shadow: 0 0 16px rgba(255, 45, 146, 0.08); }
.jackpot-topnav.theme-neon-pink .balance-value { color: #00f5ff; }
.jackpot-topnav.theme-neon-pink .register-btn { background: linear-gradient(135deg, #ff2d92 0%, #b44aff 100%); box-shadow: 0 0 14px rgba(255, 45, 146, 0.3); }
.jackpot-topnav.theme-neon-pink .user-dropdown-menu { border-color: rgba(255, 45, 146, 0.12); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 45, 146, 0.06); }
.jackpot-topnav.theme-neon-pink .dropdown-divider { background: linear-gradient(90deg, transparent, rgba(255, 45, 146, 0.1), transparent); }

/* ============================================
   GOLDEN LOTTERY THEME
   ============================================ */
.jackpot-topnav.theme-golden-lottery {
  --nav-accent: #ffd700;
  --nav-accent-dim: rgba(255, 215, 0, 0.08);
  --nav-border: rgba(255, 215, 0, 0.15);
  background: rgba(14, 12, 8, 0.94);
  border-bottom-color: rgba(255, 215, 0, 0.2);
}

.jackpot-topnav.theme-golden-lottery::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.6) 20%, rgba(255, 215, 0, 0.9) 50%, rgba(255, 215, 0, 0.6) 80%, transparent 100%);
}

.jackpot-topnav.theme-golden-lottery .topnav-logo-icon {
  background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
  color: #0a0806;
}

.jackpot-topnav.theme-golden-lottery .topnav-logo-title {
  background: linear-gradient(135deg, #ffd700 0%, #ffe566 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.jackpot-topnav.theme-golden-lottery .topnav-live.connected .topnav-live-dot {
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.jackpot-topnav.theme-golden-lottery .topnav-live.connected {
  border-color: rgba(255, 215, 0, 0.15);
  background: rgba(255, 215, 0, 0.05);
}

.jackpot-topnav.theme-golden-lottery .nav-dropdown-trigger.is-active,
.jackpot-topnav.theme-golden-lottery .nav-dropdown-trigger:hover { color: #ffd700; }

.jackpot-topnav.theme-golden-lottery .nav-dropdown-menu {
  border-color: rgba(255, 215, 0, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.08);
}

.jackpot-topnav.theme-golden-lottery .gdd-divider { background: rgba(255, 215, 0, 0.06); }
.jackpot-topnav.theme-golden-lottery .gdd-row:hover { background: rgba(255, 215, 0, 0.06); }
.jackpot-topnav.theme-golden-lottery .topnav-nav-pill.is-active { border-color: rgba(255, 215, 0, 0.25); }
.jackpot-topnav.theme-golden-lottery .topnav-daily-trigger.has-reward { color: #ffd700; border-color: rgba(255, 215, 0, 0.2); background: rgba(255, 215, 0, 0.06); }
.jackpot-topnav.theme-golden-lottery .jackpot-player-card { border-color: rgba(255, 215, 0, 0.1); }
.jackpot-topnav.theme-golden-lottery .jackpot-player-card:hover { border-color: rgba(255, 215, 0, 0.2); box-shadow: 0 0 16px rgba(255, 215, 0, 0.08); }
.jackpot-topnav.theme-golden-lottery .balance-value { color: #ffd700; }
.jackpot-topnav.theme-golden-lottery .register-btn { background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%); color: #000; box-shadow: 0 0 14px rgba(255, 215, 0, 0.3); }
.jackpot-topnav.theme-golden-lottery .user-dropdown-menu { border-color: rgba(255, 215, 0, 0.12); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.06); }
.jackpot-topnav.theme-golden-lottery .dropdown-divider { background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent); }

/* ============================================
   EMERALD FAME THEME
   ============================================ */
.jackpot-topnav.theme-emerald-fame {
  --nav-accent: #5bffb2;
  --nav-accent-dim: rgba(91, 255, 178, 0.08);
  --nav-border: rgba(91, 255, 178, 0.15);
  background: rgba(6, 12, 10, 0.94);
  border-bottom-color: rgba(91, 255, 178, 0.2);
}

.jackpot-topnav.theme-emerald-fame::before {
  background: linear-gradient(90deg, transparent 0%, rgba(91, 255, 178, 0.6) 20%, rgba(91, 255, 178, 0.9) 50%, rgba(91, 255, 178, 0.6) 80%, transparent 100%);
}

.jackpot-topnav.theme-emerald-fame .topnav-logo-icon {
  background: linear-gradient(135deg, #5bffb2 0%, #4de69c 100%);
  box-shadow: 0 0 14px rgba(91, 255, 178, 0.4);
  color: #060d08;
}

.jackpot-topnav.theme-emerald-fame .topnav-logo-title {
  background: linear-gradient(135deg, #5bffb2 0%, #7fffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.jackpot-topnav.theme-emerald-fame .topnav-live.connected .topnav-live-dot {
  background: #5bffb2;
  box-shadow: 0 0 8px rgba(91, 255, 178, 0.7);
}

.jackpot-topnav.theme-emerald-fame .topnav-live.connected {
  border-color: rgba(91, 255, 178, 0.15);
  background: rgba(91, 255, 178, 0.05);
}

.jackpot-topnav.theme-emerald-fame .nav-dropdown-trigger.is-active,
.jackpot-topnav.theme-emerald-fame .nav-dropdown-trigger:hover { color: #5bffb2; }

.jackpot-topnav.theme-emerald-fame .nav-dropdown-menu {
  border-color: rgba(91, 255, 178, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(91, 255, 178, 0.08);
}

.jackpot-topnav.theme-emerald-fame .gdd-divider { background: rgba(91, 255, 178, 0.06); }
.jackpot-topnav.theme-emerald-fame .gdd-row:hover { background: rgba(91, 255, 178, 0.06); }
.jackpot-topnav.theme-emerald-fame .topnav-nav-pill.is-active { border-color: rgba(91, 255, 178, 0.25); }
.jackpot-topnav.theme-emerald-fame .topnav-daily-trigger.has-reward { color: #5bffb2; border-color: rgba(91, 255, 178, 0.2); background: rgba(91, 255, 178, 0.06); }
.jackpot-topnav.theme-emerald-fame .jackpot-player-card { border-color: rgba(91, 255, 178, 0.1); }
.jackpot-topnav.theme-emerald-fame .jackpot-player-card:hover { border-color: rgba(91, 255, 178, 0.2); box-shadow: 0 0 16px rgba(91, 255, 178, 0.08); }
.jackpot-topnav.theme-emerald-fame .balance-value { color: #5bffb2; }
.jackpot-topnav.theme-emerald-fame .register-btn { background: linear-gradient(135deg, #5bffb2 0%, #4de69c 100%); box-shadow: 0 0 14px rgba(91, 255, 178, 0.3); }
.jackpot-topnav.theme-emerald-fame .user-dropdown-menu { border-color: rgba(91, 255, 178, 0.12); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(91, 255, 178, 0.06); }
.jackpot-topnav.theme-emerald-fame .dropdown-divider { background: linear-gradient(90deg, transparent, rgba(91, 255, 178, 0.1), transparent); }

/* ============================================
   BALANCE FLOATING ANIMATION
   ============================================ */
.balance-floater {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: none;
  transform: translateX(-50%);
  animation: balanceFloat 1.5s ease-out forwards;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.balance-floater.positive {
  color: #00e6a0;
  background: rgba(0, 230, 160, 0.12);
  border: 1px solid rgba(0, 230, 160, 0.25);
  box-shadow: 0 4px 16px rgba(0, 230, 160, 0.25);
}

.balance-floater.negative {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.25);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.25);
}

@keyframes balanceFloat {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  20% { opacity: 1; transform: translateX(-50%) translateY(-10px) scale(1.08); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-45px) scale(0.9); }
}
