/* ==========================================================================
   SpinMaster — Premium Design System & Themes
   ========================================================================== */

:root {
  /* Default Cyberpunk Theme */
  --bg-dark: #0a0c14;
  --bg-surface: rgba(18, 22, 34, 0.75);
  --bg-surface-hover: rgba(28, 34, 52, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(120, 119, 198, 0.4);

  --accent-primary: #7928ca;
  --accent-secondary: #ff0080;
  --accent-gradient: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  --accent-glow: rgba(255, 0, 128, 0.35);

  --gold-glow: rgba(255, 184, 0, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --wheel-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(121, 40, 202, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* Theme: Royal Gold */
[data-theme="royal"] {
  --bg-dark: #0b0c10;
  --bg-surface: rgba(22, 22, 28, 0.8);
  --border-active: rgba(234, 179, 8, 0.4);
  --accent-primary: #eab308;
  --accent-secondary: #f97316;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --accent-glow: rgba(245, 158, 11, 0.4);
  --wheel-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(234, 179, 8, 0.25);
}

/* Theme: Deep Emerald */
[data-theme="emerald"] {
  --bg-dark: #061412;
  --bg-surface: rgba(12, 30, 26, 0.8);
  --border-active: rgba(16, 185, 129, 0.4);
  --accent-primary: #10b981;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-glow: rgba(16, 185, 129, 0.35);
  --wheel-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(16, 185, 129, 0.25);
}

/* Theme: Sunset Bliss */
[data-theme="sunset"] {
  --bg-dark: #120a14;
  --bg-surface: rgba(30, 18, 32, 0.8);
  --border-active: rgba(244, 63, 94, 0.4);
  --accent-primary: #f43f5e;
  --accent-secondary: #fb923c;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  --accent-glow: rgba(244, 63, 94, 0.35);
  --wheel-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(244, 63, 94, 0.25);
}

/* Theme: Clean Minimal */
[data-theme="minimal"] {
  --bg-dark: #0f1117;
  --bg-surface: rgba(20, 24, 33, 0.85);
  --border-active: rgba(148, 163, 184, 0.3);
  --accent-primary: #6366f1;
  --accent-secondary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --wheel-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(99, 102, 241, 0.2);
}

/* RTL Layout Support */
html[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .dropdown-arrow {
  margin-left: 0;
  margin-right: 6px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Animated Lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: all 0.6s ease;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 10%;
  background: var(--accent-primary);
}

.glow-2 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: 5%;
  background: var(--accent-secondary);
}

/* ==========================================================================
   App Header
   ========================================================================== */
.app-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.logo-icon.small {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  animation: slowSpin 16s linear infinite;
}

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

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pro {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Streamer Verification Badge */
.streamer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ff6b6b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  cursor: help;
  white-space: nowrap;
}

.streamer-badge svg {
  width: 14px;
  height: 14px;
  color: #ff4757;
}

/* Quick Presets Bar */
.presets-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.presets-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.presets-label svg {
  width: 13px;
  height: 13px;
  color: #ffd700;
}

.preset-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preset-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.preset-pill.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

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

.dropdown-arrow {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.6;
}

.header-btn.icon-only {
  padding: 8px;
  border-radius: 50%;
}

/* Speed Selector */
.speed-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.speed-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-btn:hover {
  color: var(--text-primary);
}

.speed-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Dropdown Menu */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #141722;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-cyber { background: linear-gradient(135deg, #7928ca, #ff0080); }
.dot-royal { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dot-emerald { background: linear-gradient(135deg, #10b981, #06b6d4); }
.dot-sunset { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.dot-minimal { background: linear-gradient(135deg, #6366f1, #3b82f6); }

/* ==========================================================================
   AdSense Placement Slots
   ========================================================================== */
.ad-container {
  max-width: 1200px;
  margin: 12px auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ad-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ad-placeholder-box {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mid-ad-slot {
  margin: 30px auto;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.main-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 420px;
  padding: 16px 32px 32px;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Wheel Section
   ========================================================================== */
.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wheel-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
}

.wheel-pointer-container {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  justify-content: center;
}

.pointer-glow {
  position: absolute;
  top: 5px;
  width: 30px;
  height: 30px;
  background: #ff8800;
  filter: blur(12px);
  opacity: 0.8;
}

.wheel-pointer {
  transform-origin: 20px 6px;
  transition: transform 0.08s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

.wheel-pointer.tick {
  transform: rotate(-16deg);
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: var(--wheel-shadow);
  cursor: pointer;
  transition: filter 0.3s ease;
}

#wheelCanvas:hover {
  filter: brightness(1.03);
}

.center-spin-btn {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #111420;
  border: 4px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  user-select: none;
}

.center-spin-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 35px var(--accent-glow);
}

.center-spin-btn:active {
  transform: scale(0.95);
}

.spin-btn-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spin-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spin-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.wheel-footer-hint {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.wheel-footer-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 0.75rem;
}

/* ==========================================================================
   Sidebar Section
   ========================================================================== */
.sidebar-section {
  display: flex;
  flex-direction: column;
}

.sidebar-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 620px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.tab-header {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-glass);
  color: #fff;
  border: 1px solid var(--border-active);
}

.badge-count {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
}

.tab-content.active {
  display: flex;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn svg {
  width: 15px;
  height: 15px;
}

.tool-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
}

.tool-btn.danger:hover {
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.4);
  background: rgba(255, 77, 79, 0.1);
}

.textarea-container {
  flex: 1;
  position: relative;
  display: flex;
}

#entriesInput {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#entriesInput:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.entries-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tip-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tip-text svg {
  width: 14px;
  height: 14px;
}

.results-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  animation: slideIn 0.3s ease;
}

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

.result-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.06);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.result-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  gap: 8px;
}

.empty-state svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
}

/* ==========================================================================
   SEO & Content Section (AdSense Value)
   ========================================================================== */
.content-section {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 24px;
  width: 100%;
}

.content-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.info-card.highlight-card {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(145deg, rgba(30, 20, 28, 0.7), rgba(18, 22, 34, 0.8));
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.info-icon.text-gold {
  color: #ff4757;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.info-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Guide Box */
.guide-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.guide-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.step-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-container {
  max-width: 860px;
  margin: 0 auto 50px;
}

.faq-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-active);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

html[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 20px 16px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Winner Celebration Modal
   ========================================================================== */
.winner-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.winner-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.winner-modal-card {
  background: linear-gradient(145deg, rgba(30, 35, 55, 0.95), rgba(15, 18, 28, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px 30px;
  width: 90%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.2);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.winner-modal-backdrop.show .winner-modal-card {
  transform: scale(1) translateY(0);
}

.winner-crown-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.crown-glow {
  position: absolute;
  inset: -10px;
  background: #ffb800;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
}

.crown-icon {
  font-size: 3.2rem;
  position: relative;
  animation: bounceCrown 2s ease infinite;
}

@keyframes bounceCrown {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
}

.winner-headline {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #ffc400;
  margin-bottom: 12px;
}

.winner-name-banner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.08);
}

.winner-name-banner h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  word-break: break-word;
  text-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
}

.winner-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.winner-actions {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.modal-btn svg {
  width: 18px;
  height: 18px;
}

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

.remove-btn:hover {
  background: rgba(255, 77, 79, 0.18);
  border-color: rgba(255, 77, 79, 0.5);
  color: #ff6b6b;
}

.primary-btn {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--accent-glow);
}

/* ==========================================================================
   Legal & Support Us Modals
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.legal-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.legal-modal-card {
  background: #121624;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-backdrop.show .legal-modal-card {
  transform: scale(1);
}

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

.legal-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-legal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-legal-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-modal-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 18px 0 8px;
}

.legal-modal-body p {
  margin-bottom: 12px;
}

.legal-modal-body ul {
  margin: 8px 0 16px 20px;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  position: relative;
  z-index: 5;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px 24px;
  margin-top: 40px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}

.footer-brand .footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 12px 0 14px;
  max-width: 380px;
  line-height: 1.5;
}

.streamer-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
}

.streamer-guarantee svg {
  width: 16px;
  height: 16px;
}

.footer-links-group h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-link-btn {
  display: block;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: left;
}

html[dir="rtl"] .footer-link-btn {
  text-align: right;
}

.footer-link-btn:hover {
  color: var(--text-primary);
}

.footer-link-btn.highlight-link {
  color: #f43f5e;
  font-weight: 700;
}

.footer-link-btn.highlight-link:hover {
  color: #ff758f;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.copyright-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .sidebar-card {
    height: 480px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .presets-bar {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .header-actions {
    gap: 5px;
  }
  .btn-text {
    display: none;
  }
  .streamer-badge {
    display: none;
  }
}


/* ==========================================================================
   VIP Coming Soon & Power Tools Roadmap Section
   ========================================================================== */
.vip-roadmap-section {
  max-width: 1200px;
  margin: 50px auto 30px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
  width: 100%;
}

.vip-roadmap-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.vip-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.35);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.vip-pill-badge svg {
  width: 15px;
  height: 15px;
}

.vip-section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, #ffd700 80%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.vip-section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Spotlight Hero Card */
.vip-hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(22, 26, 42, 0.9), rgba(12, 14, 24, 0.95));
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 184, 0, 0.15);
  overflow: hidden;
  margin-bottom: 36px;
}

.vip-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.vip-hero-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.vip-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #0b0c14;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.12);
  border: 1px solid rgba(56, 239, 125, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.vip-hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 992px) {
  .vip-hero-content {
    grid-template-columns: 1fr;
  }
}

.platform-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.plat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.plat-pill svg { width: 14px; height: 14px; }
.plat-pill.yt { background: rgba(255, 0, 0, 0.12); color: #ff4d4d; border-color: rgba(255, 0, 0, 0.3); }
.plat-pill.ig { background: rgba(225, 48, 108, 0.12); color: #f43f5e; border-color: rgba(225, 48, 108, 0.3); }
.plat-pill.tt { background: rgba(0, 242, 234, 0.12); color: #00f2ea; border-color: rgba(0, 242, 234, 0.3); }
.plat-pill.fb { background: rgba(24, 119, 242, 0.12); color: #60a5fa; border-color: rgba(24, 119, 242, 0.3); }

.vip-hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.vip-hero-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.vip-feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #f1f5f9;
}

.chk-item svg {
  width: 16px;
  height: 16px;
  color: #ffd700;
  flex-shrink: 0;
}

/* Mock Showcase UI */
.vip-mock-ui {
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.mock-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mock-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mock-body {
  padding: 20px;
}

.mock-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mock-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-family: monospace;
  outline: none;
}

.mock-btn-load {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  cursor: not-allowed;
}

.mock-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mock-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-badge.active {
  background: rgba(121, 40, 202, 0.18);
  border-color: rgba(121, 40, 202, 0.4);
  color: #d8b4fe;
}

.mock-action-box {
  background: rgba(255, 184, 0, 0.05);
  border: 1px dashed rgba(255, 184, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.mock-status-text {
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-spin {
  animation: spin 2s linear infinite;
  width: 14px;
  height: 14px;
}

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

.mock-btn-action {
  width: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: not-allowed;
  opacity: 0.9;
}

/* Secondary Coming Soon Grid */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.future-tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.future-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.future-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.future-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.future-icon svg { width: 22px; height: 22px; }
.future-icon.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.future-icon.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.future-icon.icon-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.future-icon.icon-rose { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

.future-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.future-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.future-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.future-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.future-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.future-meta svg { width: 13px; height: 13px; }

.meta-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
}

/* VIP Early Access Notification Banner */
.vip-notify-box {
  background: linear-gradient(135deg, rgba(30, 35, 55, 0.95), rgba(18, 22, 34, 0.95));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.notify-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--accent-glow);
  flex-shrink: 0;
}

.notify-icon-box svg { width: 26px; height: 26px; }

.notify-text-box {
  flex: 1;
  min-width: 260px;
}

.notify-text-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.notify-text-box p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
}

.notify-form {
  display: flex;
  gap: 8px;
  min-width: 320px;
}

@media (max-width: 600px) {
  .notify-form {
    width: 100%;
    flex-direction: column;
  }
}

.notify-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
}

.notify-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.notify-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px var(--accent-glow);
  transition: all 0.2s ease;
}

.notify-btn:hover {
  transform: translateY(-1px);
}


/* ==========================================================================
   VIP Live Real-Time Analytics & Spin Tracker
   ========================================================================== */
.live-metrics-section {
  max-width: 1200px;
  margin: 10px auto 30px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
  width: 100%;
}

.metrics-container {
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.85), rgba(12, 14, 24, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.metrics-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: radarPulse 1.8s ease-in-out infinite;
}

@keyframes radarPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.live-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #34d399;
}

.live-ticker-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.live-ticker-text svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

/* Stats Counter Grid */
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-counter-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.stat-counter-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.04);
}

.stat-counter-card.highlight-glow {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.02));
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stat-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.icon-today { background: rgba(239, 68, 68, 0.15); color: #ff6b6b; }
.icon-week { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-month { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-alltime { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.stat-number-wrapper {
  position: relative;
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.stat-counter-card.bump .stat-number {
  color: #ffd700;
}

.stat-pop-badge {
  position: absolute;
  right: 0;
  top: -8px;
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #0b0c14;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
}

.stat-pop-badge.float-up {
  animation: floatUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-22px) scale(1.15); opacity: 0; }
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stat-trend svg {
  width: 13px;
  height: 13px;
  color: #10b981;
}
