
:root,
html[data-theme="default"],
html:not([data-theme]) {
  --bg-base: #0A0A0A !important;
  --bg-sidebar: #000000 !important;
  --bg-card: rgba(255, 255, 255, 0.03) !important;
  --bg-card-hover: rgba(255, 255, 255, 0.06) !important;
  --bg-hover: rgba(255, 255, 255, 0.05) !important;
  --bg-active: rgba(255, 255, 255, 0.12) !important;
  --bg-input: #000000 !important;
  --bg-modal: #0A0A0A !important;
  --server-bar: #000000 !important;

  --text-primary: #FFFFFF !important;
  --text-muted: rgba(255, 255, 255, 0.65) !important;
  --text-dimmed: rgba(255, 255, 255, 0.40) !important;

  --accent: #FFFFFF !important;
  --accent-secondary: rgba(255, 255, 255, 0.85) !important;
  --accent-hover: #FFFFFF !important;
  --accent-dim: rgba(255, 255, 255, 0.08) !important;
  --accent-glow: rgba(255, 255, 255, 0.14) !important;

  --border: rgba(255, 255, 255, 0.10) !important;
  --border-active: rgba(255, 255, 255, 0.35) !important;
  --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="default"] body,
html:not([data-theme]) body {
  background-color: #0A0A0A !important;
  background-image: none !important;
}

html[data-theme="default"] .night-sky,
html:not([data-theme]) .night-sky {
  background: #0A0A0A !important;
  background-image: none !important;
}

html[data-theme="default"] .night-sky::before,
html[data-theme="default"] .night-sky::after,
html:not([data-theme]) .night-sky::before,
html:not([data-theme]) .night-sky::after {
  display: none !important;
}

html[data-theme="default"] .ambient-glow,
html:not([data-theme]) .ambient-glow,
html[data-theme="default"] .admin-ambient-glow,
html:not([data-theme]) .admin-ambient-glow {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

html[data-theme="default"] .nav-sidebar,
html[data-theme="default"] .server-sidebar,
html[data-theme="default"] .far-left-rail,
html[data-theme="default"] .user-profile-sidebar,
html[data-theme="default"] .admin-sidebar,
html[data-theme="default"] .server-list-container {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="default"] .command-card,
html[data-theme="default"] .cmd-item,
html[data-theme="default"] .cmd-row,
html[data-theme="default"] .server-select-card,
html[data-theme="default"] .server-card-box,
html[data-theme="default"] .dash-stat-card,
html[data-theme="default"] .hero-highlight-card,
html[data-theme="default"] .module-card,
html[data-theme="default"] .security-module-card,
html[data-theme="default"] .panel,
html[data-theme="default"] .card,
html[data-theme="default"] .stat-card,
html[data-theme="default"] .login-card,
html[data-theme="default"] .docs-header,
html[data-theme="default"] .docs-panel,
html[data-theme="default"] .daily-hero-card {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #FFFFFF !important;
}

/* ═══════════════════════════════════════════════════════════════════
   2. LIGHT THEME (TRANSLUCENT WHITE SIDEBARS & CLEAR GLASS)
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg-base: #f5f5f7 !important;
  --bg-sidebar: rgba(255, 255, 255, 0.78) !important;
  --bg-card: rgba(255, 255, 255, 0.85) !important;
  --bg-card-hover: rgba(255, 255, 255, 0.95) !important;
  --bg-hover: rgba(0, 0, 0, 0.05) !important;
  --bg-active: rgba(0, 0, 0, 0.10) !important;
  --bg-input: #ffffff !important;
  --bg-modal: #ffffff !important;
  --server-bar: rgba(255, 255, 255, 0.82) !important;

  --text-primary: #111827 !important;
  --text-muted: #4b5563 !important;
  --text-dimmed: #6b7280 !important;

  --accent: #111827 !important;
  --accent-secondary: #374151 !important;
  --accent-hover: #000000 !important;
  --accent-dim: rgba(0, 0, 0, 0.06) !important;
  --accent-glow: rgba(0, 0, 0, 0.10) !important;

  --border: rgba(0, 0, 0, 0.10) !important;
  --border-active: rgba(0, 0, 0, 0.25) !important;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] body {
  background-color: #f5f5f7 !important;
  color: #111827 !important;
}

html[data-theme="light"] .night-sky {
  background: #f5f5f7 !important;
}

/* Light Theme: Translucent White Sidebar with blur and frosted depth */
html[data-theme="light"] .nav-sidebar,
html[data-theme="light"] .server-sidebar,
html[data-theme="light"] .far-left-rail,
html[data-theme="light"] .user-profile-sidebar,
html[data-theme="light"] .admin-sidebar,
html[data-theme="light"] .server-list-container {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .top-navbar,
html[data-theme="light"] .mobile-dash-header,
html[data-theme="light"] .admin-topbar,
html[data-theme="light"] .daily-nav-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
}

html[data-theme="light"] .command-card,
html[data-theme="light"] .cmd-item,
html[data-theme="light"] .cmd-row,
html[data-theme="light"] .server-select-card,
html[data-theme="light"] .server-card-box,
html[data-theme="light"] .dash-stat-card,
html[data-theme="light"] .hero-highlight-card,
html[data-theme="light"] .module-card,
html[data-theme="light"] .security-module-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .login-card,
html[data-theme="light"] .docs-header,
html[data-theme="light"] .docs-panel,
html[data-theme="light"] .daily-hero-card,
html[data-theme="light"] .hub-stat-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  color: #111827 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .nav-item-link,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .admin-nav-item {
  color: #4b5563 !important;
}

html[data-theme="light"] .nav-item-link.active,
html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .admin-nav-item.active {
  background: #111827 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .nav-item-link.active i,
html[data-theme="light"] .nav-link.active i,
html[data-theme="light"] .admin-nav-item.active i {
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════
   3. HALLOWEEN THEME
   - Transparent Orange Sidebars with Subtle Shade
   - Animated Crawling Spiders across the Screen Background
   - Spiders & Pumpkin Visual Badges
   - All Cards Harmonized in Transparent Pumpkin Glass
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="halloween"] {
  --bg-base: #140700 !important;
  --bg-sidebar: rgba(255, 117, 24, 0.14) !important;
  --bg-card: rgba(255, 117, 24, 0.08) !important;
  --bg-card-hover: rgba(255, 117, 24, 0.16) !important;
  --bg-hover: rgba(255, 117, 24, 0.12) !important;
  --bg-active: rgba(255, 117, 24, 0.22) !important;
  --bg-input: rgba(20, 7, 0, 0.85) !important;
  --bg-modal: #140700 !important;
  --server-bar: rgba(255, 117, 24, 0.10) !important;

  --text-primary: #FFFFFF !important;
  --text-muted: rgba(255, 230, 205, 0.78) !important;
  --text-dimmed: rgba(255, 200, 160, 0.52) !important;

  --accent: #ff8c1a !important;
  --accent-secondary: #ffa94d !important;
  --accent-hover: #ff9f38 !important;
  --accent-dim: rgba(255, 117, 24, 0.16) !important;
  --accent-glow: rgba(255, 117, 24, 0.45) !important;

  --border: rgba(255, 140, 26, 0.28) !important;
  --border-active: rgba(255, 140, 26, 0.65) !important;
  --card-shadow: 0 16px 48px rgba(0, 0, 0, 0.95) !important;
}

html[data-theme="halloween"] body {
  background-color: #140700 !important;
  background-image: radial-gradient(ellipse at 50% 12%, rgba(255, 117, 24, 0.28) 0%, transparent 65%) !important;
}

html[data-theme="halloween"] .night-sky {
  background: radial-gradient(ellipse at 50% 15%, #301000 0%, #170700 50%, #0a0300 100%) !important;
}

/* Halloween: Transparent Orange Sidebar with subtle dark glass shading */
html[data-theme="halloween"] .nav-sidebar,
html[data-theme="halloween"] .server-sidebar,
html[data-theme="halloween"] .far-left-rail,
html[data-theme="halloween"] .user-profile-sidebar,
html[data-theme="halloween"] .admin-sidebar,
html[data-theme="halloween"] .server-list-container {
  background: linear-gradient(180deg, rgba(255, 117, 24, 0.18) 0%, rgba(20, 7, 0, 0.75) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-color: rgba(255, 140, 26, 0.35) !important;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.85), inset -1px 0 0 rgba(255, 140, 26, 0.2) !important;
}

html[data-theme="halloween"] .top-navbar,
html[data-theme="halloween"] .mobile-dash-header,
html[data-theme="halloween"] .admin-topbar,
html[data-theme="halloween"] .daily-nav-header {
  background: linear-gradient(90deg, rgba(255, 117, 24, 0.16) 0%, rgba(14, 4, 0, 0.85) 100%) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-color: rgba(255, 140, 26, 0.32) !important;
}

/* Halloween Navigation Links */
html[data-theme="halloween"] .nav-item-link,
html[data-theme="halloween"] .nav-link,
html[data-theme="halloween"] .admin-nav-item {
  color: rgba(255, 230, 205, 0.78) !important;
}

html[data-theme="halloween"] .nav-item-link:hover,
html[data-theme="halloween"] .nav-link:hover,
html[data-theme="halloween"] .admin-nav-item:hover {
  background: rgba(255, 117, 24, 0.16) !important;
  color: #ff9f38 !important;
  border-color: rgba(255, 140, 26, 0.45) !important;
}

html[data-theme="halloween"] .nav-item-link.active,
html[data-theme="halloween"] .nav-link.active,
html[data-theme="halloween"] .admin-nav-item.active {
  background: linear-gradient(90deg, rgba(255, 117, 24, 0.28) 0%, rgba(255, 117, 24, 0.08) 100%) !important;
  border-color: rgba(255, 140, 26, 0.55) !important;
  color: #ff8c1a !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #ff8c1a !important;
}

html[data-theme="halloween"] .nav-item-link.active i,
html[data-theme="halloween"] .nav-link.active i,
html[data-theme="halloween"] .admin-nav-item.active i {
  color: #ff8c1a !important;
}

/* Pumpkin Icon on active navigation item */
/* Removed halloween ::after badge */

/* ══ ALL CARDS IN HALLOWEEN: TRANSPARENT PUMPKIN GLASS (fixes the pitch black cards) ══ */
html[data-theme="halloween"] .command-card,
html[data-theme="halloween"] .cmd-item,
html[data-theme="halloween"] .cmd-row,
html[data-theme="halloween"] .server-select-card,
html[data-theme="halloween"] .server-card-box,
html[data-theme="halloween"] .dash-stat-card,
html[data-theme="halloween"] .hero-highlight-card,
html[data-theme="halloween"] .module-card,
html[data-theme="halloween"] .security-module-card,
html[data-theme="halloween"] .panel,
html[data-theme="halloween"] .card,
html[data-theme="halloween"] .stat-card,
html[data-theme="halloween"] .login-card,
html[data-theme="halloween"] .docs-header,
html[data-theme="halloween"] .docs-panel,
html[data-theme="halloween"] .docs-toc,
html[data-theme="halloween"] .daily-hero-card,
html[data-theme="halloween"] .rule-card,
html[data-theme="halloween"] .lb-row,
html[data-theme="halloween"] .podium-card,
html[data-theme="halloween"] .counter-card,
html[data-theme="halloween"] .my-standing-bar,
html[data-theme="halloween"] .daily-modal-panel,
html[data-theme="halloween"] .hub-stat-card {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.12) 0%, rgba(20, 7, 0, 0.75) 100%) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  border-radius: 18px !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 140, 26, 0.22) !important;
}

html[data-theme="halloween"] .command-card:hover,
html[data-theme="halloween"] .cmd-item:hover,
html[data-theme="halloween"] .server-select-card:hover,
html[data-theme="halloween"] .server-card-box:hover,
html[data-theme="halloween"] .dash-stat-card:hover,
html[data-theme="halloween"] .hero-highlight-card:hover,
html[data-theme="halloween"] .security-module-card:hover,
html[data-theme="halloween"] .stat-card:hover,
html[data-theme="halloween"] .lb-row:hover {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.20) 0%, rgba(28, 9, 0, 0.85) 100%) !important;
  border-color: rgba(255, 140, 26, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 117, 24, 0.25) !important;
}

/* Card Icons & Badges in Halloween */
html[data-theme="halloween"] .highlight-icon,
html[data-theme="halloween"] .stat-icon-wrap,
html[data-theme="halloween"] .module-icon-wrap {
  background: rgba(255, 117, 24, 0.22) !important;
  border: 1px solid rgba(255, 140, 26, 0.5) !important;
  color: #ff9f38 !important;
}

html[data-theme="halloween"] .stat-trend,
html[data-theme="halloween"] .server-access-level,
html[data-theme="halloween"] .tag-bot-active,
html[data-theme="halloween"] .tag-id-copy {
  background: rgba(255, 117, 24, 0.12) !important;
  border: 1px solid rgba(255, 140, 26, 0.3) !important;
  color: #ffa94d !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
}

html[data-theme="halloween"] .stat-trend i,
html[data-theme="halloween"] .server-access-level i,
html[data-theme="halloween"] .tag-bot-active i {
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .btn-open-server {
  background: rgba(255, 117, 24, 0.2) !important;
  border: 1px solid rgba(255, 140, 26, 0.45) !important;
  color: #FFFFFF !important;
}

html[data-theme="halloween"] .btn-open-server:hover {
  background: #ff8c1a !important;
  color: #000000 !important;
}

/* Category Filter Tabs & Badges */
html[data-theme="halloween"] .cat-tab,
html[data-theme="halloween"] .category-tab,
html[data-theme="halloween"] .badge,
html[data-theme="halloween"] .badge-role,
html[data-theme="halloween"] .brand-badge {
  background: rgba(255, 117, 24, 0.14) !important;
  border-color: rgba(255, 140, 26, 0.38) !important;
  color: #ff9f38 !important;
}

html[data-theme="halloween"] .cat-tab.active,
html[data-theme="halloween"] .category-tab.active {
  background: #ff8c1a !important;
  color: #000000 !important;
  border-color: #ff8c1a !important;
  font-weight: 700 !important;
}

/* Interactive Buttons */
html[data-theme="halloween"] .btn-primary,
html[data-theme="halloween"] .btn-login-discord,
html[data-theme="halloween"] .btn-admin-primary,
html[data-theme="halloween"] .daily-primary-button,
html[data-theme="halloween"] .btn-hero-primary {
  background: linear-gradient(135deg, #ff8c1a 0%, #e65c00 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 179, 102, 0.45) !important;
  box-shadow: 0 4px 18px rgba(230, 92, 0, 0.5) !important;
}

html[data-theme="halloween"] .btn-secondary,
html[data-theme="halloween"] .btn-admin-secondary,
html[data-theme="halloween"] .btn-hero-secondary,
html[data-theme="halloween"] .btn-back-home,
html[data-theme="halloween"] .btn-back-portal {
  background: rgba(255, 117, 24, 0.12) !important;
  border-color: rgba(255, 140, 26, 0.35) !important;
  color: #FFFFFF !important;
}

/* Inputs & Form controls */
html[data-theme="halloween"] input,
html[data-theme="halloween"] select,
html[data-theme="halloween"] textarea,
html[data-theme="halloween"] .server-search-input,
html[data-theme="halloween"] .daily-code-input {
  background: #0a0300 !important;
  border-color: rgba(255, 140, 26, 0.30) !important;
  color: #FFFFFF !important;
}

/* ═══════════════════════════════════════════════════════════════════
   4. WINTER THEME (DEEP ICY FROST & CRYSTALLINE BLUE)
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="winter"] {
  --bg-base: #081426 !important;
  --bg-sidebar: rgba(147, 197, 253, 0.12) !important;
  --bg-card: rgba(147, 197, 253, 0.08) !important;
  --bg-card-hover: rgba(147, 197, 253, 0.15) !important;
  --bg-hover: rgba(147, 197, 253, 0.12) !important;
  --bg-active: rgba(147, 197, 253, 0.22) !important;
  --bg-input: #040a14 !important;
  --bg-modal: #081426 !important;
  --server-bar: rgba(147, 197, 253, 0.08) !important;

  --text-primary: #FFFFFF !important;
  --text-muted: rgba(219, 234, 254, 0.75) !important;
  --text-dimmed: rgba(191, 219, 254, 0.50) !important;

  --accent: #93c5fd !important;
  --accent-secondary: #bfdbfe !important;
  --accent-hover: #bae6fd !important;
  --accent-dim: rgba(147, 197, 253, 0.16) !important;
  --accent-glow: rgba(147, 197, 253, 0.45) !important;

  --border: rgba(147, 197, 253, 0.28) !important;
  --border-active: rgba(147, 197, 253, 0.65) !important;
  --card-shadow: 0 16px 48px rgba(0, 0, 0, 0.95) !important;
}

html[data-theme="winter"] body {
  background-color: #081426 !important;
  background-image: radial-gradient(ellipse at 50% 12%, rgba(147, 197, 253, 0.25) 0%, transparent 65%) !important;
}

html[data-theme="winter"] .night-sky {
  background: radial-gradient(ellipse at 50% 15%, #0f284d 0%, #08162b 50%, #040a14 100%) !important;
}

html[data-theme="winter"] .night-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(186, 230, 253, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Winter Harmonized Sidebars & Headers */
html[data-theme="winter"] .nav-sidebar,
html[data-theme="winter"] .server-sidebar,
html[data-theme="winter"] .far-left-rail,
html[data-theme="winter"] .user-profile-sidebar,
html[data-theme="winter"] .admin-sidebar,
html[data-theme="winter"] .server-list-container {
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.16) 0%, rgba(4, 10, 20, 0.85) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-color: rgba(147, 197, 253, 0.30) !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="winter"] .top-navbar,
html[data-theme="winter"] .mobile-dash-header,
html[data-theme="winter"] .admin-topbar,
html[data-theme="winter"] .daily-nav-header {
  background: rgba(4, 10, 20, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-color: rgba(147, 197, 253, 0.30) !important;
}

html[data-theme="winter"] .nav-item-link,
html[data-theme="winter"] .nav-link,
html[data-theme="winter"] .admin-nav-item {
  color: rgba(219, 234, 254, 0.75) !important;
}

html[data-theme="winter"] .nav-item-link:hover,
html[data-theme="winter"] .nav-link:hover,
html[data-theme="winter"] .admin-nav-item:hover {
  background: rgba(147, 197, 253, 0.12) !important;
  color: #bae6fd !important;
  border-color: rgba(147, 197, 253, 0.35) !important;
}

html[data-theme="winter"] .nav-item-link.active,
html[data-theme="winter"] .nav-link.active,
html[data-theme="winter"] .admin-nav-item.active {
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.22) 0%, rgba(147, 197, 253, 0.05) 100%) !important;
  border-color: rgba(147, 197, 253, 0.5) !important;
  color: #93c5fd !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #93c5fd !important;
}

/* Snowflake decoration on active winter navigation items */
/* Removed winter ::after badge */

html[data-theme="winter"] .command-card,
html[data-theme="winter"] .cmd-item,
html[data-theme="winter"] .cmd-row,
html[data-theme="winter"] .server-select-card,
html[data-theme="winter"] .server-card-box,
html[data-theme="winter"] .dash-stat-card,
html[data-theme="winter"] .hero-highlight-card,
html[data-theme="winter"] .module-card,
html[data-theme="winter"] .security-module-card,
html[data-theme="winter"] .panel,
html[data-theme="winter"] .card,
html[data-theme="winter"] .stat-card,
html[data-theme="winter"] .login-card,
html[data-theme="winter"] .docs-header,
html[data-theme="winter"] .docs-panel,
html[data-theme="winter"] .daily-hero-card,
html[data-theme="winter"] .hub-stat-card {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.12) 0%, rgba(9, 21, 38, 0.85) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(147, 197, 253, 0.30) !important;
  border-radius: 18px !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(147, 197, 253, 0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   5. HALLOWEEN DECORATIVE ELEMENTS (COFFEE, PUMPKIN, SPIDERS)
   ═══════════════════════════════════════════════════════════════════ */
.halloween-landing-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.22) 0%, rgba(20, 7, 0, 0.95) 100%) !important;
  border: 1px solid rgba(255, 140, 26, 0.45) !important;
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 140, 26, 0.3);
}

html[data-theme="halloween"] .halloween-landing-banner {
  display: flex !important;
}

.halloween-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.halloween-duo-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.halloween-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 117, 24, 0.22);
  border: 1px solid rgba(255, 140, 26, 0.55);
  color: #ff8c1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 16px rgba(255, 117, 24, 0.4);
}

.halloween-banner-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.halloween-banner-text p {
  font-size: 13px;
  color: rgba(255, 230, 205, 0.75);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   6. UNIVERSAL THEME TOGGLE SWITCH COMPONENT
   ═══════════════════════════════════════════════════════════════════ */
.theme-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 3px;
  position: relative;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  user-select: none;
  flex-shrink: 0;
}

html[data-theme="light"] .theme-switch-pill {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="halloween"] .theme-switch-pill {
  background: rgba(20, 7, 0, 0.95) !important;
  border-color: rgba(255, 140, 26, 0.45) !important;
  box-shadow: 0 4px 16px rgba(255, 117, 24, 0.3) !important;
}

html[data-theme="winter"] .theme-switch-pill {
  background: rgba(4, 10, 20, 0.95) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  box-shadow: 0 4px 16px rgba(147, 197, 253, 0.3) !important;
}

.theme-switch-pill button.theme-pill-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  line-height: 1;
}

html[data-theme="light"] .theme-switch-pill button.theme-pill-opt {
  color: #6b7280;
}

.theme-switch-pill button.theme-pill-opt i {
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.theme-switch-pill button.theme-pill-opt:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .theme-switch-pill button.theme-pill-opt:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}

.theme-switch-pill button.theme-pill-opt.active {
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .theme-switch-pill button.theme-pill-opt.active {
  background: #111827 !important;
  color: #ffffff !important;
}

html[data-theme="halloween"] .theme-switch-pill button.theme-pill-opt.active {
  background: #ff8c1a !important;
  color: #000000 !important;
}

html[data-theme="winter"] .theme-switch-pill button.theme-pill-opt.active {
  background: #93c5fd !important;
  color: #000000 !important;
}

.theme-switch-pill button.theme-pill-opt.active i {
  transform: scale(1.08);
}

.theme-switch-pill.compact {
  padding: 2px;
}

.theme-switch-pill.compact button.theme-pill-opt {
  padding: 6px 8px;
}

.theme-switch-pill.compact button.theme-pill-opt span {
  display: none;
}

.theme-switch-floating {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 9999;
}

[dir="rtl"] .theme-switch-floating {
  right: auto;
  left: 20px;
}

@media (max-width: 640px) {
  .theme-switch-pill button.theme-pill-opt span {
    display: none;
  }
  .theme-switch-pill button.theme-pill-opt {
    padding: 6px 9px;
  }
  .theme-switch-floating {
    top: 12px;
    right: 12px;
  }
  [dir="rtl"] .theme-switch-floating {
    left: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED CARD TYPOGRAPHY & HIGHLIGHT OVERRIDES (HALLOWEEN & WINTER)
   ═══════════════════════════════════════════════════════════════════ */

/* Halloween Card Text & Badges */
html[data-theme="halloween"] .hero-highlight-card .highlight-info h2 {
  background: linear-gradient(135deg, #ffffff 20%, #ff8c1a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .hero-highlight-card .highlight-icon {
  background: rgba(255, 117, 24, 0.22) !important;
  border-color: rgba(255, 140, 26, 0.5) !important;
}

html[data-theme="halloween"] .hero-highlight-card .highlight-icon i {
  color: #ff9f38 !important;
}

html[data-theme="halloween"] .hero-highlight-card .highlight-sub {
  color: #ffa94d !important;
}

html[data-theme="halloween"] .dash-stat-card .dash-stat-meta h3,
html[data-theme="halloween"] #dash-stat-balance,
html[data-theme="halloween"] #dash-stat-reaction,
html[data-theme="halloween"] #dash-stat-rank,
html[data-theme="halloween"] #dash-stat-level {
  color: #ffa94d !important;
}

html[data-theme="halloween"] .dash-stat-card .stat-icon-wrap {
  background: rgba(255, 117, 24, 0.22) !important;
  border-color: rgba(255, 140, 26, 0.5) !important;
}

html[data-theme="halloween"] .dash-stat-card .stat-icon-wrap i {
  color: #ff9f38 !important;
}

/* Winter Card Text & Badges */
html[data-theme="winter"] .hero-highlight-card .highlight-info h2 {
  background: linear-gradient(135deg, #ffffff 20%, #70d6ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #70d6ff !important;
}

html[data-theme="winter"] .hero-highlight-card .highlight-icon {
  background: rgba(112, 214, 255, 0.18) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
}

html[data-theme="winter"] .hero-highlight-card .highlight-icon i {
  color: #70d6ff !important;
}

html[data-theme="winter"] .hero-highlight-card .highlight-sub {
  color: #b9e6fe !important;
}

html[data-theme="winter"] .dash-stat-card .dash-stat-meta h3,
html[data-theme="winter"] #dash-stat-balance,
html[data-theme="winter"] #dash-stat-reaction,
html[data-theme="winter"] #dash-stat-rank,
html[data-theme="winter"] #dash-stat-level {
  color: #e0f2fe !important;
}

html[data-theme="winter"] .dash-stat-card .stat-icon-wrap {
  background: rgba(112, 214, 255, 0.18) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
}

html[data-theme="winter"] .dash-stat-card .stat-icon-wrap i {
  color: #70d6ff !important;
}

/* Light Mode Overrides */
html[data-theme="light"] .hero-highlight-card .highlight-info h2 {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #111827 !important;
}

html[data-theme="light"] .dash-stat-card .dash-stat-meta h3,
html[data-theme="light"] #dash-stat-balance,
html[data-theme="light"] #dash-stat-reaction,
html[data-theme="light"] #dash-stat-rank,
html[data-theme="light"] #dash-stat-level {
  color: #111827 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR BALANCE CHIP & ACTIVE TAB HARMONIZATION ACROSS THEMES
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. DEFAULT / DARK THEME ── */
html[data-theme="default"] .sidebar-balance-chip,
html:not([data-theme]) .sidebar-balance-chip {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="default"] .sidebar-balance-chip .balance-meta span,
html:not([data-theme]) .sidebar-balance-chip .balance-meta span {
  color: #888888 !important;
}

html[data-theme="default"] .sidebar-balance-chip .balance-meta strong,
html:not([data-theme]) .sidebar-balance-chip .balance-meta strong {
  color: #FFFFFF !important;
}

html[data-theme="default"] .balance-claim-tag,
html:not([data-theme]) .balance-claim-tag {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #FFFFFF !important;
}

html[data-theme="default"] .balance-claim-tag i,
html:not([data-theme]) .balance-claim-tag i {
  color: #000000 !important;
}

/* ── 2. HALLOWEEN THEME ── */
html[data-theme="halloween"] .sidebar-balance-chip {
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.16) 0%, rgba(20, 7, 0, 0.85) 100%) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 140, 26, 0.15) !important;
}

html[data-theme="halloween"] .sidebar-balance-chip .balance-meta span {
  color: #ffa94d !important;
}

html[data-theme="halloween"] .sidebar-balance-chip .balance-meta strong {
  color: #FFFFFF !important;
}

html[data-theme="halloween"] .balance-claim-tag {
  background: #ff8c1a !important;
  color: #000000 !important;
  border: 1px solid #ff9f38 !important;
  box-shadow: 0 2px 12px rgba(255, 117, 24, 0.4) !important;
}

html[data-theme="halloween"] .balance-claim-tag i {
  color: #000000 !important;
}

html[data-theme="halloween"] .balance-claim-tag:hover {
  background: #ffa94d !important;
  border-color: #ffb766 !important;
  box-shadow: 0 4px 16px rgba(255, 117, 24, 0.6) !important;
}

/* Halloween Active Navigation Tabs inside Profile Sidebar */
html[data-theme="halloween"] .sidebar-tab-btn.active {
  background: linear-gradient(90deg, #ff8c1a 0%, #ff7518 100%) !important;
  border-color: #ff9f38 !important;
  color: #000000 !important;
  box-shadow: 0 4px 18px rgba(255, 117, 24, 0.35) !important;
}

html[data-theme="halloween"] .sidebar-tab-btn.active .tab-label-group i,
html[data-theme="halloween"] .sidebar-tab-btn.active .tab-arrow,
html[data-theme="halloween"] .sidebar-tab-btn.active span {
  color: #000000 !important;
}

html[data-theme="halloween"] .sidebar-tab-btn:hover:not(.active) {
  background: rgba(255, 117, 24, 0.14) !important;
  border-color: rgba(255, 140, 26, 0.35) !important;
  color: #ff9f38 !important;
}

/* ── 3. WINTER THEME ── */
html[data-theme="winter"] .sidebar-balance-chip {
  background: linear-gradient(135deg, rgba(112, 214, 255, 0.15) 0%, rgba(10, 25, 47, 0.85) 100%) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(112, 214, 255, 0.15) !important;
}

html[data-theme="winter"] .sidebar-balance-chip .balance-meta span {
  color: #70d6ff !important;
}

html[data-theme="winter"] .sidebar-balance-chip .balance-meta strong {
  color: #FFFFFF !important;
}

html[data-theme="winter"] .balance-claim-tag {
  background: #70d6ff !important;
  color: #031525 !important;
  border: 1px solid #a5e8ff !important;
  box-shadow: 0 2px 12px rgba(112, 214, 255, 0.35) !important;
}

html[data-theme="winter"] .balance-claim-tag i {
  color: #031525 !important;
}

html[data-theme="winter"] .balance-claim-tag:hover {
  background: #a5e8ff !important;
  box-shadow: 0 4px 16px rgba(112, 214, 255, 0.55) !important;
}

html[data-theme="winter"] .sidebar-tab-btn.active {
  background: linear-gradient(90deg, #70d6ff 0%, #38bdf8 100%) !important;
  border-color: #a5e8ff !important;
  color: #031525 !important;
  box-shadow: 0 4px 18px rgba(112, 214, 255, 0.35) !important;
}

html[data-theme="winter"] .sidebar-tab-btn.active .tab-label-group i,
html[data-theme="winter"] .sidebar-tab-btn.active .tab-arrow,
html[data-theme="winter"] .sidebar-tab-btn.active span {
  color: #031525 !important;
}

/* ── 4. LIGHT THEME ── */
html[data-theme="light"] .sidebar-balance-chip {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .sidebar-balance-chip .balance-meta span {
  color: #64748b !important;
}

html[data-theme="light"] .sidebar-balance-chip .balance-meta strong {
  color: #0f172a !important;
}

html[data-theme="light"] .balance-claim-tag {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
}

html[data-theme="light"] .balance-claim-tag i {
  color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════════
   SECURITY CARDS & SETTINGS HARMONIZATION (WINTER, HALLOWEEN, LIGHT)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME SECURITY CARDS ── */
html[data-theme="winter"] .security-card,
html[data-theme="winter"] #card-theme-settings,
html[data-theme="winter"] #card-pin-security,
html[data-theme="winter"] #card-2fa-security,
html[data-theme="winter"] .security-card-tips {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.12) 0%, rgba(10, 25, 47, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  border-radius: 20px !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(112, 214, 255, 0.2) !important;
}

html[data-theme="winter"] .security-card:hover {
  border-color: rgba(112, 214, 255, 0.65) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.9), 0 0 28px rgba(112, 214, 255, 0.28) !important;
}

html[data-theme="winter"] .sec-info-box {
  background: rgba(4, 16, 32, 0.55) !important;
  border: 1px solid rgba(112, 214, 255, 0.22) !important;
}

html[data-theme="winter"] .sec-info-row span {
  color: #94a3b8 !important;
}

html[data-theme="winter"] .sec-info-row strong {
  color: #e0f2fe !important;
}

html[data-theme="winter"] .sec-btn-primary {
  background: linear-gradient(135deg, #70d6ff 0%, #38bdf8 100%) !important;
  color: #031525 !important;
  border: 1px solid #a5e8ff !important;
  box-shadow: 0 4px 18px rgba(112, 214, 255, 0.35) !important;
}

html[data-theme="winter"] .sec-btn-ghost,
html[data-theme="winter"] .sec-btn-danger {
  background: rgba(112, 214, 255, 0.1) !important;
  border: 1px solid rgba(112, 214, 255, 0.25) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .sec-status-pill.enabled {
  background: rgba(112, 214, 255, 0.15) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
  color: #70d6ff !important;
}

/* ── 2. HALLOWEEN THEME SECURITY CARDS ── */
html[data-theme="halloween"] .security-card,
html[data-theme="halloween"] #card-theme-settings,
html[data-theme="halloween"] #card-pin-security,
html[data-theme="halloween"] #card-2fa-security,
html[data-theme="halloween"] .security-card-tips {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.14) 0%, rgba(20, 7, 0, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  border-radius: 20px !important;
  color: #FFFFFF !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 140, 26, 0.2) !important;
}

html[data-theme="halloween"] .security-card:hover {
  border-color: rgba(255, 140, 26, 0.65) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.95), 0 0 28px rgba(255, 117, 24, 0.28) !important;
}

html[data-theme="halloween"] .sec-info-box {
  background: rgba(15, 5, 0, 0.6) !important;
  border: 1px solid rgba(255, 140, 26, 0.22) !important;
}

html[data-theme="halloween"] .sec-info-row span {
  color: #ffa94d !important;
}

html[data-theme="halloween"] .sec-info-row strong {
  color: #FFFFFF !important;
}

html[data-theme="halloween"] .sec-btn-primary {
  background: linear-gradient(135deg, #ff8c1a 0%, #ff7518 100%) !important;
  color: #000000 !important;
  border: 1px solid #ff9f38 !important;
  box-shadow: 0 4px 18px rgba(255, 117, 24, 0.35) !important;
}

html[data-theme="halloween"] .sec-btn-ghost,
html[data-theme="halloween"] .sec-btn-danger {
  background: rgba(255, 117, 24, 0.12) !important;
  border: 1px solid rgba(255, 140, 26, 0.3) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .sec-status-pill.enabled {
  background: rgba(255, 117, 24, 0.18) !important;
  border-color: rgba(255, 140, 26, 0.5) !important;
  color: #ff9f38 !important;
}

/* ── 3. LIGHT THEME SECURITY CARDS ── */
html[data-theme="light"] .security-card,
html[data-theme="light"] #card-theme-settings,
html[data-theme="light"] #card-pin-security,
html[data-theme="light"] #card-2fa-security,
html[data-theme="light"] .security-card-tips {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .sec-info-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .sec-info-row span {
  color: #64748b !important;
}

html[data-theme="light"] .sec-info-row strong {
  color: #0f172a !important;
}

html[data-theme="light"] .sec-btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
}


/* ═══════════════════════════════════════════════════════════════════
   DOCUMENTATION PAGE (DOCS.HTML) SEASONAL THEME HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME FOR DOCS ── */
html[data-theme="winter"] .docs-toc {
  background: linear-gradient(180deg, rgba(112, 214, 255, 0.14) 0%, rgba(10, 25, 47, 0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(112, 214, 255, 0.2) !important;
}

html[data-theme="winter"] .docs-toc-title {
  color: #70d6ff !important;
  border-bottom-color: rgba(112, 214, 255, 0.2) !important;
}

html[data-theme="winter"] .docs-toc a {
  color: #e0f2fe !important;
}

html[data-theme="winter"] .docs-toc a span.toc-num {
  color: #70d6ff !important;
}

html[data-theme="winter"] .docs-toc a:hover,
html[data-theme="winter"] .docs-toc a.active {
  background: linear-gradient(90deg, #70d6ff 0%, #38bdf8 100%) !important;
  color: #031525 !important;
  border-color: #a5e8ff !important;
}

html[data-theme="winter"] .docs-toc a:hover span.toc-num,
html[data-theme="winter"] .docs-toc a.active span.toc-num {
  color: #031525 !important;
}

html[data-theme="winter"] .docs-panel {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.12) 0%, rgba(10, 25, 47, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.30) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(112, 214, 255, 0.15) !important;
}

html[data-theme="winter"] .docs-callout {
  background: rgba(4, 16, 32, 0.6) !important;
  border: 1px solid rgba(112, 214, 255, 0.3) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .docs-callout i {
  color: #70d6ff !important;
}

html[data-theme="winter"] .docs-steps > div,
html[data-theme="winter"] .docs-page-links a,
html[data-theme="winter"] .docs-feature-grid > div,
html[data-theme="winter"] .docs-code {
  background: rgba(7, 20, 38, 0.65) !important;
  border: 1px solid rgba(112, 214, 255, 0.28) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="winter"] .docs-steps > div:hover,
html[data-theme="winter"] .docs-feature-grid > div:hover {
  border-color: rgba(112, 214, 255, 0.6) !important;
  background: rgba(12, 28, 54, 0.8) !important;
}

html[data-theme="winter"] .docs-steps b {
  background: #70d6ff !important;
  color: #031525 !important;
}

html[data-theme="winter"] .docs-number {
  background: rgba(112, 214, 255, 0.18) !important;
  color: #70d6ff !important;
  border: 1px solid rgba(112, 214, 255, 0.4) !important;
}

html[data-theme="winter"] .docs-header {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.15) 0%, rgba(10, 25, 47, 0.85) 100%) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
}

/* ── 2. HALLOWEEN THEME FOR DOCS ── */
html[data-theme="halloween"] .docs-toc {
  background: linear-gradient(180deg, rgba(255, 117, 24, 0.16) 0%, rgba(20, 7, 0, 0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 140, 26, 0.2) !important;
}

html[data-theme="halloween"] .docs-toc-title {
  color: #ff9f38 !important;
  border-bottom-color: rgba(255, 140, 26, 0.25) !important;
}

html[data-theme="halloween"] .docs-toc a {
  color: #ffa94d !important;
}

html[data-theme="halloween"] .docs-toc a span.toc-num {
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .docs-toc a:hover,
html[data-theme="halloween"] .docs-toc a.active {
  background: linear-gradient(90deg, #ff8c1a 0%, #ff7518 100%) !important;
  color: #000000 !important;
  border-color: #ff9f38 !important;
}

html[data-theme="halloween"] .docs-toc a:hover span.toc-num,
html[data-theme="halloween"] .docs-toc a.active span.toc-num {
  color: #000000 !important;
}

html[data-theme="halloween"] .docs-panel {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.12) 0%, rgba(20, 7, 0, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 140, 26, 0.32) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 140, 26, 0.18) !important;
}

html[data-theme="halloween"] .docs-callout {
  background: rgba(18, 6, 0, 0.65) !important;
  border: 1px solid rgba(255, 140, 26, 0.32) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .docs-callout i {
  color: #ff9f38 !important;
}

html[data-theme="halloween"] .docs-steps > div,
html[data-theme="halloween"] .docs-page-links a,
html[data-theme="halloween"] .docs-feature-grid > div,
html[data-theme="halloween"] .docs-code {
  background: rgba(18, 6, 0, 0.7) !important;
  border: 1px solid rgba(255, 140, 26, 0.3) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="halloween"] .docs-steps > div:hover,
html[data-theme="halloween"] .docs-feature-grid > div:hover {
  border-color: rgba(255, 140, 26, 0.65) !important;
  background: rgba(26, 8, 0, 0.85) !important;
}

html[data-theme="halloween"] .docs-steps b {
  background: #ff8c1a !important;
  color: #000000 !important;
}

html[data-theme="halloween"] .docs-number {
  background: rgba(255, 117, 24, 0.2) !important;
  color: #ff9f38 !important;
  border: 1px solid rgba(255, 140, 26, 0.45) !important;
}

html[data-theme="halloween"] .docs-header {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.16) 0%, rgba(20, 7, 0, 0.88) 100%) !important;
  border: 1px solid rgba(255, 140, 26, 0.38) !important;
}

/* ── 3. LIGHT THEME FOR DOCS ── */
html[data-theme="light"] .docs-toc,
html[data-theme="light"] .docs-panel,
html[data-theme="light"] .docs-header {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .docs-callout,
html[data-theme="light"] .docs-steps > div,
html[data-theme="light"] .docs-page-links a,
html[data-theme="light"] .docs-feature-grid > div,
html[data-theme="light"] .docs-code {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .docs-toc a {
  color: #334155 !important;
}

html[data-theme="light"] .docs-steps b {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CLEAN ACTIVE NAVIGATION TAB BADGES (FIX BLACK ARTIFACT)
   ═══════════════════════════════════════════════════════════════════ */
.sidebar-tab-btn.active .badge-active-daily,
.sidebar-tab-btn.active .badge-soon {
  background: rgba(0, 0, 0, 0.14) !important;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.22) !important;
  text-shadow: none !important;
}

html[data-theme="winter"] .sidebar-tab-btn.active .badge-active-daily,
html[data-theme="winter"] .sidebar-tab-btn.active .badge-soon {
  background: rgba(3, 21, 37, 0.22) !important;
  color: #031525 !important;
  border-color: rgba(3, 21, 37, 0.35) !important;
}

html[data-theme="halloween"] .sidebar-tab-btn.active .badge-active-daily,
html[data-theme="halloween"] .sidebar-tab-btn.active .badge-soon {
  background: rgba(0, 0, 0, 0.22) !important;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.35) !important;
}

/* Ensure no trailing pseudo elements create black boxes */
.sidebar-tab-btn::after,
.nav-item-link::after,
.nav-link::after,
.admin-nav-item::after {
  content: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD (ADMIN.HTML) SEASONAL THEME HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME FOR ADMIN ── */
html[data-theme="winter"] .section-panel,
html[data-theme="winter"] .role-card,
html[data-theme="winter"] .server-card,
html[data-theme="winter"] .admin-card,
html[data-theme="winter"] .kpi-card {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.12) 0%, rgba(10, 25, 47, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.32) !important;
  border-radius: 16px !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(112, 214, 255, 0.18) !important;
}

html[data-theme="winter"] .section-panel:hover,
html[data-theme="winter"] .role-card:hover,
html[data-theme="winter"] .server-card:hover {
  border-color: rgba(112, 214, 255, 0.6) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.88), 0 0 24px rgba(112, 214, 255, 0.22) !important;
}

html[data-theme="winter"] .admin-table-container {
  border: 1px solid rgba(112, 214, 255, 0.25) !important;
  border-radius: 12px !important;
  background: rgba(4, 16, 32, 0.45) !important;
}

html[data-theme="winter"] .admin-table th {
  background: rgba(112, 214, 255, 0.12) !important;
  color: #70d6ff !important;
  border-bottom: 1px solid rgba(112, 214, 255, 0.25) !important;
}

html[data-theme="winter"] .admin-table td {
  border-bottom: 1px solid rgba(112, 214, 255, 0.12) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .admin-table tbody tr:hover {
  background: rgba(112, 214, 255, 0.1) !important;
}

html[data-theme="winter"] .consumption-box {
  background: rgba(3, 15, 30, 0.6) !important;
  border: 1px solid rgba(112, 214, 255, 0.22) !important;
}

html[data-theme="winter"] .consumption-label-row span:first-child {
  color: #94a3b8 !important;
}

html[data-theme="winter"] .consumption-percent-badge {
  background: rgba(112, 214, 255, 0.18) !important;
  color: #70d6ff !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
}

html[data-theme="winter"] .btn-admin-primary:not(#admin-badge-add-btn):not(#admin-profile-save-btn):not(#admin-rank-save-btn):not(#badge-modal-submit) {
  background: linear-gradient(135deg, #70d6ff 0%, #38bdf8 100%) !important;
  color: #031525 !important;
  border: 1px solid #a5e8ff !important;
  box-shadow: 0 4px 16px rgba(112, 214, 255, 0.35) !important;
}

html[data-theme="winter"] .btn-admin-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #fca5a5 !important;
}

html[data-theme="winter"] .btn-icon-info {
  background: rgba(112, 214, 255, 0.15) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  color: #70d6ff !important;
}

/* ── 2. HALLOWEEN THEME FOR ADMIN ── */
html[data-theme="halloween"] .section-panel,
html[data-theme="halloween"] .role-card,
html[data-theme="halloween"] .server-card,
html[data-theme="halloween"] .admin-card,
html[data-theme="halloween"] .kpi-card {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.14) 0%, rgba(20, 7, 0, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  border-radius: 16px !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 140, 26, 0.2) !important;
}

html[data-theme="halloween"] .section-panel:hover,
html[data-theme="halloween"] .role-card:hover,
html[data-theme="halloween"] .server-card:hover {
  border-color: rgba(255, 140, 26, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 24px rgba(255, 117, 24, 0.25) !important;
}

html[data-theme="halloween"] .admin-table-container {
  border: 1px solid rgba(255, 140, 26, 0.28) !important;
  border-radius: 12px !important;
  background: rgba(15, 5, 0, 0.55) !important;
}

html[data-theme="halloween"] .admin-table th {
  background: rgba(255, 117, 24, 0.16) !important;
  color: #ff9f38 !important;
  border-bottom: 1px solid rgba(255, 140, 26, 0.28) !important;
}

html[data-theme="halloween"] .admin-table td {
  border-bottom: 1px solid rgba(255, 140, 26, 0.15) !important;
  color: #FFFFFF !important;
}

html[data-theme="halloween"] .admin-table tbody tr:hover {
  background: rgba(255, 117, 24, 0.12) !important;
}

html[data-theme="halloween"] .consumption-box {
  background: rgba(18, 6, 0, 0.65) !important;
  border: 1px solid rgba(255, 140, 26, 0.25) !important;
}

html[data-theme="halloween"] .consumption-percent-badge {
  background: rgba(255, 117, 24, 0.2) !important;
  color: #ff9f38 !important;
  border: 1px solid rgba(255, 140, 26, 0.4) !important;
}

html[data-theme="halloween"] .btn-admin-primary:not(#admin-badge-add-btn):not(#admin-profile-save-btn):not(#admin-rank-save-btn):not(#badge-modal-submit) {
  background: linear-gradient(135deg, #ff8c1a 0%, #ff7518 100%) !important;
  color: #000000 !important;
  border: 1px solid #ff9f38 !important;
  box-shadow: 0 4px 16px rgba(255, 117, 24, 0.35) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   SECURITY CARD ICON & SHIELD BADGE THEME HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── WINTER THEME ICONS ── */
html[data-theme="winter"] .sec-card-icon,
html[data-theme="winter"] .sec-score-icon,
html[data-theme="winter"] .section-icon-badge {
  background: rgba(112, 214, 255, 0.16) !important;
  border: 1px solid rgba(112, 214, 255, 0.4) !important;
  color: #70d6ff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(112, 214, 255, 0.2) !important;
}

html[data-theme="winter"] .sec-card-icon i,
html[data-theme="winter"] .sec-score-icon i,
html[data-theme="winter"] .section-icon-badge i {
  color: #70d6ff !important;
}

/* ── HALLOWEEN THEME ICONS ── */
html[data-theme="halloween"] .sec-card-icon,
html[data-theme="halloween"] .sec-score-icon,
html[data-theme="halloween"] .section-icon-badge {
  background: rgba(255, 117, 24, 0.2) !important;
  border: 1px solid rgba(255, 140, 26, 0.45) !important;
  color: #ff9f38 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 117, 24, 0.25) !important;
}

html[data-theme="halloween"] .sec-card-icon i,
html[data-theme="halloween"] .sec-score-icon i,
html[data-theme="halloween"] .section-icon-badge i {
  color: #ff9f38 !important;
}

/* ── DEFAULT / DARK THEME ICONS ── */
html[data-theme="default"] .sec-card-icon,
html:not([data-theme]) .sec-card-icon {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}

html[data-theme="default"] .sec-card-icon i,
html:not([data-theme]) .sec-card-icon i {
  color: #FFFFFF !important;
}

/* ── LIGHT THEME ICONS ── */
html[data-theme="light"] .sec-card-icon,
html[data-theme="light"] .sec-score-icon,
html[data-theme="light"] .section-icon-badge {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .sec-card-icon i,
html[data-theme="light"] .sec-score-icon i,
html[data-theme="light"] .section-icon-badge i {
  color: #0f172a !important;
}


/* ═══════════════════════════════════════════════════════════════════
   SESSION PIN LOCK OVERLAY (LOGIN LOCK) SEASONAL HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME FOR PIN LOCK ── */
html[data-theme="winter"] .session-lock-card {
  background: radial-gradient(circle at 50% 0%, rgba(112, 214, 255, 0.16) 0%, rgba(10, 25, 47, 0.95) 85%) !important;
  border: 1px solid rgba(112, 214, 255, 0.38) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(112, 214, 255, 0.22) !important;
}

html[data-theme="winter"] .session-lock-card::before {
  background: linear-gradient(90deg, transparent, #70d6ff, transparent) !important;
  box-shadow: 0 0 16px rgba(112, 214, 255, 0.7) !important;
}

html[data-theme="winter"] .session-lock-card .digit-box {
  background: rgba(112, 214, 255, 0.08) !important;
  border-color: rgba(112, 214, 255, 0.35) !important;
  color: #e0f2fe !important;
  text-align: center !important;
  padding: 0 !important;
}

html[data-theme="winter"] .session-lock-card .digit-box[type="password"] {
  font-family: caption, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 32px !important;
  line-height: 52px !important;
}

html[data-theme="winter"] .session-lock-card .digit-box:focus {
  border-color: #70d6ff !important;
  background: rgba(112, 214, 255, 0.18) !important;
  box-shadow: 0 0 16px rgba(112, 214, 255, 0.4) !important;
}

html[data-theme="winter"] #btn-unlock-pin {
  background: linear-gradient(135deg, #70d6ff 0%, #38bdf8 100%) !important;
  color: #031525 !important;
  border: 1px solid #a5e8ff !important;
  box-shadow: 0 4px 20px rgba(112, 214, 255, 0.4) !important;
}

html[data-theme="winter"] .lock-ghost-link {
  background: rgba(112, 214, 255, 0.1) !important;
  border-color: rgba(112, 214, 255, 0.25) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .lock-ghost-link:hover {
  background: rgba(112, 214, 255, 0.2) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
  color: #ffffff !important;
}

/* ── 2. HALLOWEEN THEME FOR PIN LOCK ── */
html[data-theme="halloween"] .session-lock-card {
  background: radial-gradient(circle at 50% 0%, rgba(255, 117, 24, 0.18) 0%, rgba(20, 7, 0, 0.96) 85%) !important;
  border: 1px solid rgba(255, 140, 26, 0.42) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 117, 24, 0.28) !important;
}

html[data-theme="halloween"] .session-lock-card::before {
  background: linear-gradient(90deg, transparent, #ff8c1a, transparent) !important;
  box-shadow: 0 0 16px rgba(255, 140, 26, 0.8) !important;
}

html[data-theme="halloween"] .session-lock-card .digit-box {
  background: rgba(255, 117, 24, 0.1) !important;
  border-color: rgba(255, 140, 26, 0.38) !important;
  color: #ffa94d !important;
  text-align: center !important;
  padding: 0 !important;
}

html[data-theme="halloween"] .session-lock-card .digit-box[type="password"] {
  font-family: caption, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 32px !important;
  line-height: 52px !important;
}

html[data-theme="halloween"] .session-lock-card .digit-box:focus {
  border-color: #ff8c1a !important;
  background: rgba(255, 117, 24, 0.2) !important;
  box-shadow: 0 0 16px rgba(255, 117, 24, 0.45) !important;
}

html[data-theme="halloween"] #btn-unlock-pin {
  background: linear-gradient(135deg, #ff8c1a 0%, #ff7518 100%) !important;
  color: #000000 !important;
  border: 1px solid #ff9f38 !important;
  box-shadow: 0 4px 20px rgba(255, 117, 24, 0.45) !important;
}

html[data-theme="halloween"] .lock-ghost-link {
  background: rgba(255, 117, 24, 0.12) !important;
  border-color: rgba(255, 140, 26, 0.3) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .lock-ghost-link:hover {
  background: rgba(255, 117, 24, 0.22) !important;
  border-color: rgba(255, 140, 26, 0.55) !important;
  color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════════
   DEEP RICH SEASONAL BACKGROUND ATMOSPHERES & AMBIENT LIGHTING
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. DEFAULT / DARK: PURE SOLID BLACK #0A0A0A (NO ANIMATIONS / NO GLOWS) ── */
html[data-theme="default"] body,
html:not([data-theme]) body,
html[data-theme="default"] .night-sky,
html:not([data-theme]) .night-sky {
  background: #0A0A0A !important;
  background-color: #0A0A0A !important;
  background-image: none !important;
}

html[data-theme="default"] .ambient-glow,
html:not([data-theme]) .ambient-glow {
  display: none !important;
  opacity: 0 !important;
}

/* ── 2. HALLOWEEN: SPOOKY ORANGE & PUMPKIN EMBER ATMOSPHERE ── */
html[data-theme="halloween"] body {
  background-color: #120500 !important;
  background-image: radial-gradient(ellipse 90% 60% at 50% 8%, rgba(255, 117, 24, 0.32) 0%, rgba(20, 7, 0, 0.95) 70%, #0a0300 100%) !important;
  background-attachment: fixed !important;
}

html[data-theme="halloween"] .night-sky {
  background: radial-gradient(ellipse 90% 60% at 50% 10%, #3a1300 0%, #1e0900 45%, #0e0400 80%, #080200 100%) !important;
}

html[data-theme="halloween"] .glow-1 {
  display: block !important;
  opacity: 0.65 !important;
  background: radial-gradient(circle, rgba(255, 117, 24, 0.35) 0%, transparent 70%) !important;
}

html[data-theme="halloween"] .glow-2 {
  display: block !important;
  opacity: 0.55 !important;
  background: radial-gradient(circle, rgba(230, 81, 0, 0.32) 0%, transparent 70%) !important;
}

html[data-theme="halloween"] .glow-3 {
  display: block !important;
  opacity: 0.45 !important;
  background: radial-gradient(circle, rgba(255, 140, 26, 0.25) 0%, transparent 70%) !important;
}

/* ── 3. WINTER: ICY FROZEN GLACIER & NORTHERN CHILL ATMOSPHERE ── */
html[data-theme="winter"] body {
  background-color: #050f1e !important;
  background-image: radial-gradient(ellipse 95% 65% at 50% 8%, rgba(112, 214, 255, 0.32) 0%, rgba(10, 25, 47, 0.95) 65%, #030812 100%) !important;
  background-attachment: fixed !important;
}

html[data-theme="winter"] .night-sky {
  background: radial-gradient(ellipse 95% 65% at 50% 10%, #0e294f 0%, #081933 50%, #030a17 80%, #02060f 100%) !important;
}

html[data-theme="winter"] .glow-1 {
  display: block !important;
  opacity: 0.7 !important;
  background: radial-gradient(circle, rgba(112, 214, 255, 0.35) 0%, transparent 70%) !important;
}

html[data-theme="winter"] .glow-2 {
  display: block !important;
  opacity: 0.6 !important;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, transparent 70%) !important;
}

html[data-theme="winter"] .glow-3 {
  display: block !important;
  opacity: 0.5 !important;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.25) 0%, transparent 70%) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   SESSION LOCK OVERLAY SEASONAL BACKGROUNDS & CANVAS TRANSPARENCY
   ═══════════════════════════════════════════════════════════════════ */

/* Keep the particle canvas (snowflakes/spiders) visible above the overlay */
#bg-canvas,
#stars-canvas {
  z-index: 1000000 !important;
  pointer-events: none !important;
}

/* ── 1. DEFAULT / DARK THEME LOCK OVERLAY ── */
html[data-theme="default"] .session-lock-overlay,
html:not([data-theme]) .session-lock-overlay {
  background: #0A0A0A !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="default"] .session-lock-overlay::before,
html[data-theme="default"] .session-lock-overlay::after,
html:not([data-theme]) .session-lock-overlay::before,
html:not([data-theme]) .session-lock-overlay::after {
  display: none !important;
}

/* ── 2. WINTER THEME LOCK OVERLAY ── */
html[data-theme="winter"] .session-lock-overlay {
  background: radial-gradient(ellipse 95% 70% at 50% 15%, rgba(14, 41, 79, 0.88) 0%, rgba(8, 25, 51, 0.94) 50%, rgba(3, 10, 23, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
}

html[data-theme="winter"] .session-lock-overlay::before {
  background-image: 
    radial-gradient(1.5px 1.5px at 50px 70px, rgba(147, 197, 253, 0.85), transparent),
    radial-gradient(2px 2px at 160px 140px, rgba(112, 214, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 280px 220px, rgba(186, 230, 253, 0.85), transparent),
    radial-gradient(2px 2px at 450px 80px, rgba(112, 214, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 600px 310px, rgba(147, 197, 253, 0.75), transparent) !important;
  opacity: 0.6 !important;
}

html[data-theme="winter"] .session-lock-overlay::after {
  background-image: 
    radial-gradient(2px 2px at 90px 180px, rgba(186, 230, 253, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 320px 70px, rgba(112, 214, 255, 0.95), transparent),
    radial-gradient(2px 2px at 520px 250px, rgba(147, 197, 253, 0.85), transparent) !important;
  opacity: 0.5 !important;
}

/* ── 3. HALLOWEEN THEME LOCK OVERLAY ── */
html[data-theme="halloween"] .session-lock-overlay {
  background: radial-gradient(ellipse 90% 65% at 50% 15%, rgba(48, 16, 0, 0.88) 0%, rgba(26, 8, 0, 0.94) 50%, rgba(10, 3, 0, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
}

html[data-theme="halloween"] .session-lock-overlay::before {
  background-image: 
    radial-gradient(2px 2px at 60px 80px, rgba(255, 140, 26, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(255, 117, 24, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 380px 90px, rgba(255, 175, 77, 0.95), transparent),
    radial-gradient(2px 2px at 580px 270px, rgba(255, 140, 26, 0.85), transparent) !important;
  opacity: 0.65 !important;
}

html[data-theme="halloween"] .session-lock-overlay::after {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   VERIFICATION SUCCESS MORPH INDICATOR THEME HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME SUCCESS MORPH ── */
html[data-theme="winter"] .morph-spinner-circle {
  background: linear-gradient(135deg, #70d6ff 0%, #0c2b54 100%) !important;
  border: 3px solid #70d6ff !important;
  box-shadow: 0 0 45px rgba(112, 214, 255, 0.75), inset 0 0 16px rgba(112, 214, 255, 0.5) !important;
}

html[data-theme="winter"] .morph-check-icon i {
  color: #031525 !important;
  text-shadow: none !important;
}

html[data-theme="winter"] .morph-success-badge {
  background: rgba(112, 214, 255, 0.18) !important;
  border: 1px solid rgba(112, 214, 255, 0.55) !important;
  color: #70d6ff !important;
  box-shadow: 0 0 28px rgba(112, 214, 255, 0.35) !important;
}

html[data-theme="winter"] .morph-success-badge i {
  color: #70d6ff !important;
}

/* ── 2. HALLOWEEN THEME SUCCESS MORPH ── */
html[data-theme="halloween"] .morph-spinner-circle {
  background: linear-gradient(135deg, #ff8c1a 0%, #2e0d00 100%) !important;
  border: 3px solid #ff8c1a !important;
  box-shadow: 0 0 45px rgba(255, 140, 26, 0.8), inset 0 0 16px rgba(255, 140, 26, 0.5) !important;
}

html[data-theme="halloween"] .morph-check-icon i {
  color: #000000 !important;
  text-shadow: none !important;
}

html[data-theme="halloween"] .morph-success-badge {
  background: rgba(255, 117, 24, 0.22) !important;
  border: 1px solid rgba(255, 140, 26, 0.6) !important;
  color: #ff9f38 !important;
  box-shadow: 0 0 28px rgba(255, 117, 24, 0.4) !important;
}

html[data-theme="halloween"] .morph-success-badge i {
  color: #ff8c1a !important;
}

/* ── 3. DEFAULT / DARK THEME SUCCESS MORPH ── */
html[data-theme="default"] .morph-spinner-circle,
html:not([data-theme]) .morph-spinner-circle {
  background: linear-gradient(135deg, #FFFFFF 0%, #1a1a1a 100%) !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.4) !important;
}

html[data-theme="default"] .morph-check-icon i,
html:not([data-theme]) .morph-check-icon i {
  color: #000000 !important;
}

html[data-theme="default"] .morph-success-badge,
html:not([data-theme]) .morph-success-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
}


/* ═══════════════════════════════════════════════════════════════════
   OVERVIEW WELCOME HERO BUTTONS & TEXT HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── WINTER THEME WELCOME HERO BUTTONS ── */
html[data-theme="winter"] .btn-hero-primary {
  background: linear-gradient(135deg, #70d6ff 0%, #38bdf8 100%) !important;
  color: #031525 !important;
  border: 1px solid #a5e8ff !important;
  box-shadow: 0 4px 18px rgba(112, 214, 255, 0.4) !important;
}

html[data-theme="winter"] .btn-hero-primary i {
  color: #031525 !important;
}

html[data-theme="winter"] .btn-hero-secondary {
  background: rgba(112, 214, 255, 0.14) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .btn-hero-secondary i {
  color: #70d6ff !important;
}

html[data-theme="winter"] .btn-hero-ghost {
  background: rgba(112, 214, 255, 0.08) !important;
  border: 1px solid rgba(112, 214, 255, 0.22) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .btn-hero-ghost:hover {
  background: rgba(112, 214, 255, 0.18) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
}

/* ── HALLOWEEN THEME WELCOME HERO BUTTONS ── */
html[data-theme="halloween"] .btn-hero-primary {
  background: linear-gradient(135deg, #ff8c1a 0%, #ff7518 100%) !important;
  color: #000000 !important;
  border: 1px solid #ff9f38 !important;
  box-shadow: 0 4px 18px rgba(255, 117, 24, 0.45) !important;
}

html[data-theme="halloween"] .btn-hero-primary i {
  color: #000000 !important;
}

html[data-theme="halloween"] .btn-hero-secondary {
  background: rgba(255, 117, 24, 0.16) !important;
  border: 1px solid rgba(255, 140, 26, 0.38) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .btn-hero-secondary i {
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .btn-hero-ghost {
  background: rgba(255, 117, 24, 0.1) !important;
  border: 1px solid rgba(255, 140, 26, 0.25) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .btn-hero-ghost:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: rgba(255, 140, 26, 0.5) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   DAILY CLAIM PAGE (DAILY-CLAIM.HTML) SEASONAL THEME HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME FOR DAILY CLAIM ── */
html[data-theme="winter"] .daily-nav-header {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.14) 0%, rgba(10, 25, 47, 0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(112, 214, 255, 0.2) !important;
}

html[data-theme="winter"] .daily-hero-card {
  background: radial-gradient(circle at 50% 0%, rgba(112, 214, 255, 0.16) 0%, rgba(10, 25, 47, 0.9) 70%, rgba(4, 12, 24, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.38) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(112, 214, 255, 0.3), 0 0 50px rgba(112, 214, 255, 0.15) !important;
}

html[data-theme="winter"] .daily-hero-card h2 {
  background: linear-gradient(135deg, #ffffff 30%, #70d6ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #70d6ff !important;
}

html[data-theme="winter"] .daily-eyebrow {
  background: rgba(112, 214, 255, 0.15) !important;
  border-color: rgba(112, 214, 255, 0.4) !important;
  color: #70d6ff !important;
}

html[data-theme="winter"] .gift-box-button {
  background: linear-gradient(135deg, rgba(112, 214, 255, 0.28) 0%, rgba(10, 25, 47, 0.85) 60%, rgba(4, 14, 28, 0.95) 100%) !important;
  border: 2px solid rgba(112, 214, 255, 0.55) !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(112, 214, 255, 0.6), 0 0 45px rgba(112, 214, 255, 0.35) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .gift-box-button:hover:not(:disabled) {
  border-color: #70d6ff !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), inset 0 2px 8px rgba(112, 214, 255, 0.8), 0 0 65px rgba(112, 214, 255, 0.55) !important;
}

html[data-theme="winter"] .gift-glow {
  background: linear-gradient(45deg, rgba(112, 214, 255, 0.6), rgba(56, 189, 248, 0.2), rgba(112, 214, 255, 0.5), rgba(147, 197, 253, 0.3)) !important;
}

html[data-theme="winter"] .balance-badge-card,
html[data-theme="winter"] .streak-badge-card,
html[data-theme="winter"] .daily-status-text {
  background: rgba(112, 214, 255, 0.14) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  color: #e0f2fe !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(112, 214, 255, 0.2) !important;
}

html[data-theme="winter"] .balance-badge-card i,
html[data-theme="winter"] .streak-badge-card i {
  color: #70d6ff !important;
}

html[data-theme="winter"] .btn-back-portal {
  background: rgba(112, 214, 255, 0.12) !important;
  border: 1px solid rgba(112, 214, 255, 0.3) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .btn-back-portal:hover {
  background: rgba(112, 214, 255, 0.22) !important;
  border-color: rgba(112, 214, 255, 0.6) !important;
  color: #ffffff !important;
}

html[data-theme="winter"] .rule-card {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.12) 0%, rgba(10, 25, 47, 0.85) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.32) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(112, 214, 255, 0.15) !important;
}

html[data-theme="winter"] .rule-card:hover {
  border-color: rgba(112, 214, 255, 0.65) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.88), 0 0 24px rgba(112, 214, 255, 0.25) !important;
}

html[data-theme="winter"] .rule-card-icon {
  background: rgba(112, 214, 255, 0.16) !important;
  border: 1px solid rgba(112, 214, 255, 0.4) !important;
  color: #70d6ff !important;
}

/* ── 2. HALLOWEEN THEME FOR DAILY CLAIM ── */
html[data-theme="halloween"] .daily-nav-header {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.16) 0%, rgba(20, 7, 0, 0.88) 100%) !important;
  border: 1px solid rgba(255, 140, 26, 0.38) !important;
}

html[data-theme="halloween"] .daily-hero-card {
  background: radial-gradient(circle at 50% 0%, rgba(255, 117, 24, 0.2) 0%, rgba(20, 7, 0, 0.9) 70%, rgba(10, 3, 0, 0.98) 100%) !important;
  border: 1px solid rgba(255, 140, 26, 0.42) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(255, 140, 26, 0.35), 0 0 50px rgba(255, 117, 24, 0.2) !important;
}

html[data-theme="halloween"] .daily-hero-card h2 {
  background: linear-gradient(135deg, #ffffff 30%, #ff8c1a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .daily-eyebrow {
  background: rgba(255, 117, 24, 0.18) !important;
  border-color: rgba(255, 140, 26, 0.45) !important;
  color: #ff9f38 !important;
}

html[data-theme="halloween"] .gift-box-button {
  background: linear-gradient(135deg, rgba(255, 140, 26, 0.3) 0%, rgba(20, 7, 0, 0.88) 60%, rgba(10, 3, 0, 0.95) 100%) !important;
  border: 2px solid rgba(255, 140, 26, 0.6) !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(255, 140, 26, 0.65), 0 0 45px rgba(255, 117, 24, 0.4) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .gift-box-button:hover:not(:disabled) {
  border-color: #ff8c1a !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), inset 0 2px 8px rgba(255, 140, 26, 0.85), 0 0 65px rgba(255, 117, 24, 0.6) !important;
}

html[data-theme="halloween"] .gift-glow {
  background: linear-gradient(45deg, rgba(255, 117, 24, 0.65), rgba(230, 81, 0, 0.25), rgba(255, 140, 26, 0.55), rgba(255, 175, 77, 0.35)) !important;
}

html[data-theme="halloween"] .balance-badge-card,
html[data-theme="halloween"] .streak-badge-card,
html[data-theme="halloween"] .daily-status-text {
  background: rgba(255, 117, 24, 0.16) !important;
  border: 1px solid rgba(255, 140, 26, 0.4) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .balance-badge-card i,
html[data-theme="halloween"] .streak-badge-card i {
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .btn-back-portal {
  background: rgba(255, 117, 24, 0.15) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .rule-card {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.14) 0%, rgba(20, 7, 0, 0.85) 100%) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
}

html[data-theme="halloween"] .rule-card-icon {
  background: rgba(255, 117, 24, 0.2) !important;
  border: 1px solid rgba(255, 140, 26, 0.45) !important;
  color: #ff9f38 !important;
}


/* ═══════════════════════════════════════════════════════════════════
   VTX TOP LEADERBOARD PAGE (VTX-TOP.HTML) SEASONAL THEME HARMONIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. WINTER THEME FOR VTX-TOP ── */
html[data-theme="winter"] .top-navbar,
html[data-theme="winter"] .table-card-container,
html[data-theme="winter"] .podium-card,
html[data-theme="winter"] .counter-card,
html[data-theme="winter"] .my-standing-bar {
  background: linear-gradient(145deg, rgba(112, 214, 255, 0.14) 0%, rgba(10, 25, 47, 0.88) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(112, 214, 255, 0.2) !important;
  color: #FFFFFF !important;
}

html[data-theme="winter"] .podium-card:hover,
html[data-theme="winter"] .counter-card:hover {
  border-color: rgba(112, 214, 255, 0.65) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.88), 0 0 28px rgba(112, 214, 255, 0.25) !important;
}

html[data-theme="winter"] .podium-card.rank-1 {
  border-color: rgba(112, 214, 255, 0.55) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(112, 214, 255, 0.3) !important;
}

html[data-theme="winter"] .hero-pill {
  background: rgba(112, 214, 255, 0.16) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
  color: #70d6ff !important;
}

html[data-theme="winter"] .leaderboard-hero h1 {
  background: linear-gradient(135deg, #ffffff 30%, #70d6ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="winter"] .lb-row {
  background: rgba(112, 214, 255, 0.06) !important;
  border: 1px solid rgba(112, 214, 255, 0.18) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .lb-row:hover {
  background: rgba(112, 214, 255, 0.14) !important;
  border-color: rgba(112, 214, 255, 0.45) !important;
}

html[data-theme="winter"] .lb-row.highlight-me {
  background: rgba(112, 214, 255, 0.18) !important;
  border-color: #70d6ff !important;
}

html[data-theme="winter"] .btn-portal-back,
html[data-theme="winter"] .btn-refresh {
  background: rgba(112, 214, 255, 0.12) !important;
  border: 1px solid rgba(112, 214, 255, 0.3) !important;
  color: #e0f2fe !important;
}

html[data-theme="winter"] .btn-portal-back:hover,
html[data-theme="winter"] .btn-refresh:hover {
  background: rgba(112, 214, 255, 0.22) !important;
  border-color: rgba(112, 214, 255, 0.6) !important;
  color: #ffffff !important;
}

html[data-theme="winter"] .counter-label {
  color: #94a3b8 !important;
}

html[data-theme="winter"] .counter-val {
  color: #70d6ff !important;
}

/* ── 2. HALLOWEEN THEME FOR VTX-TOP ── */
html[data-theme="halloween"] .top-navbar,
html[data-theme="halloween"] .table-card-container,
html[data-theme="halloween"] .podium-card,
html[data-theme="halloween"] .counter-card,
html[data-theme="halloween"] .my-standing-bar {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.16) 0%, rgba(20, 7, 0, 0.88) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 140, 26, 0.38) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 140, 26, 0.22) !important;
  color: #FFFFFF !important;
}

html[data-theme="halloween"] .podium-card:hover,
html[data-theme="halloween"] .counter-card:hover {
  border-color: rgba(255, 140, 26, 0.65) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.95), 0 0 28px rgba(255, 117, 24, 0.3) !important;
}

html[data-theme="halloween"] .hero-pill {
  background: rgba(255, 117, 24, 0.18) !important;
  border-color: rgba(255, 140, 26, 0.45) !important;
  color: #ff9f38 !important;
}

html[data-theme="halloween"] .leaderboard-hero h1 {
  background: linear-gradient(135deg, #ffffff 30%, #ff8c1a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="halloween"] .lb-row {
  background: rgba(255, 117, 24, 0.08) !important;
  border: 1px solid rgba(255, 140, 26, 0.22) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .lb-row:hover {
  background: rgba(255, 117, 24, 0.18) !important;
  border-color: rgba(255, 140, 26, 0.5) !important;
}

html[data-theme="halloween"] .btn-portal-back,
html[data-theme="halloween"] .btn-refresh {
  background: rgba(255, 117, 24, 0.14) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  color: #ffa94d !important;
}

html[data-theme="halloween"] .counter-val {
  color: #ff8c1a !important;
}


/* ══ Winter Theme - Games Integration ══ */
html[data-theme="winter"] .game-square-card,
html[data-theme="winter"] .builder-card {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.12) 0%, rgba(9, 21, 38, 0.85) 100%) !important;
  border-color: rgba(147, 197, 253, 0.30) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(147, 197, 253, 0.15) !important;
}

html[data-theme="winter"] .game-square-card:hover {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.20) 0%, rgba(14, 30, 54, 0.90) 100%) !important;
  border-color: rgba(147, 197, 253, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 20px rgba(147, 197, 253, 0.25) !important;
}

html[data-theme="winter"] .game-square-card .tmb-icon-wrapper,
html[data-theme="winter"] .game-square-card .tmb-badge,
html[data-theme="winter"] .header-icon-box {
  background: rgba(147, 197, 253, 0.18) !important;
  border-color: rgba(147, 197, 253, 0.40) !important;
  color: #70d6ff !important;
}

html[data-theme="winter"] .game-square-card .btn-tmb-edit {
  background: rgba(112, 214, 255, 0.14) !important;
  border: 1px solid rgba(112, 214, 255, 0.35) !important;
  color: #ffffff !important;
}

html[data-theme="winter"] .game-square-card .btn-tmb-edit:hover {
  background: rgba(112, 214, 255, 0.25) !important;
  border-color: rgba(112, 214, 255, 0.7) !important;
}

html[data-theme="winter"] .xo-preview-cell {
  background: rgba(9, 21, 38, 0.8) !important;
  border-color: rgba(147, 197, 253, 0.25) !important;
}

html[data-theme="winter"] .xo-preview-cell.cell-x {
  background: rgba(147, 197, 253, 0.22) !important;
  border-color: #70d6ff !important;
  color: #70d6ff !important;
}

/* ══ Halloween Theme - Games Integration ══ */
html[data-theme="halloween"] .game-square-card,
html[data-theme="halloween"] .builder-card {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.12) 0%, rgba(20, 7, 0, 0.75) 100%) !important;
  border-color: rgba(255, 140, 26, 0.35) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 140, 26, 0.22) !important;
}

html[data-theme="halloween"] .game-square-card:hover {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.20) 0%, rgba(28, 9, 0, 0.85) 100%) !important;
  border-color: rgba(255, 140, 26, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 117, 24, 0.25) !important;
}

html[data-theme="halloween"] .game-square-card .tmb-icon-wrapper,
html[data-theme="halloween"] .game-square-card .tmb-badge,
html[data-theme="halloween"] .header-icon-box {
  background: rgba(255, 117, 24, 0.22) !important;
  border-color: rgba(255, 140, 26, 0.45) !important;
  color: #ff8c1a !important;
}

html[data-theme="halloween"] .game-square-card .btn-tmb-edit {
  background: rgba(255, 117, 24, 0.16) !important;
  border: 1px solid rgba(255, 140, 26, 0.35) !important;
  color: #ffffff !important;
}

html[data-theme="halloween"] .game-square-card .btn-tmb-edit:hover {
  background: rgba(255, 117, 24, 0.3) !important;
  border-color: rgba(255, 140, 26, 0.75) !important;
}

html[data-theme="halloween"] .xo-preview-cell {
  background: rgba(20, 7, 0, 0.8) !important;
  border-color: rgba(255, 140, 26, 0.30) !important;
}

html[data-theme="halloween"] .xo-preview-cell.cell-x {
  background: rgba(255, 117, 24, 0.25) !important;
  border-color: #ff8c1a !important;
  color: #ff8c1a !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   WINTER THEME - TICKETS INTEGRATION
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="winter"] .ticket-panel-card,
html[data-theme="winter"] .ticket-message-square-card,
html[data-theme="winter"] .ticket-message-box-card {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.12) 0%, rgba(9, 21, 38, 0.85) 100%) !important;
  border-color: rgba(147, 197, 253, 0.30) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(147, 197, 253, 0.15) !important;
}

html[data-theme="winter"] .ticket-panel-card:hover,
html[data-theme="winter"] .ticket-message-square-card:hover,
html[data-theme="winter"] .ticket-message-box-card:hover {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.20) 0%, rgba(14, 30, 54, 0.90) 100%) !important;
  border-color: rgba(147, 197, 253, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 20px rgba(147, 197, 253, 0.25) !important;
}

html[data-theme="winter"] .ticket-panel-card .btn-primary,
html[data-theme="winter"] .ticket-message-square-card .btn-tmb-edit,
html[data-theme="winter"] .ticket-message-box-card .btn-tmb-edit {
  background: rgba(112, 214, 255, 0.18) !important;
  border: 1px solid rgba(112, 214, 255, 0.4) !important;
  color: #ffffff !important;
}

html[data-theme="winter"] .ticket-panel-card .btn-primary:hover,
html[data-theme="winter"] .ticket-message-square-card .btn-tmb-edit:hover,
html[data-theme="winter"] .ticket-message-box-card .btn-tmb-edit:hover {
  background: rgba(112, 214, 255, 0.35) !important;
  border-color: #70d6ff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(112, 214, 255, 0.3) !important;
}

html[data-theme="winter"] #btn-new-ticket-panel.btn-large-new {
  background: linear-gradient(135deg, #70d6ff 0%, #38bdf8 100%) !important;
  border: 1px solid #a5e8ff !important;
  color: #031525 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="winter"] #btn-new-ticket-panel.btn-large-new:hover {
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.55) !important;
}

html[data-theme="winter"] .ticket-stat-pill {
  background: rgba(147, 197, 253, 0.15) !important;
  border-color: rgba(147, 197, 253, 0.35) !important;
  color: #70d6ff !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   HALLOWEEN THEME - TICKETS INTEGRATION
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="halloween"] .ticket-panel-card,
html[data-theme="halloween"] .ticket-message-square-card,
html[data-theme="halloween"] .ticket-message-box-card {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.12) 0%, rgba(20, 7, 0, 0.75) 100%) !important;
  border-color: rgba(255, 140, 26, 0.35) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 140, 26, 0.22) !important;
}

html[data-theme="halloween"] .ticket-panel-card:hover,
html[data-theme="halloween"] .ticket-message-square-card:hover,
html[data-theme="halloween"] .ticket-message-box-card:hover {
  background: linear-gradient(145deg, rgba(255, 117, 24, 0.20) 0%, rgba(28, 9, 0, 0.85) 100%) !important;
  border-color: rgba(255, 140, 26, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 117, 24, 0.25) !important;
}

html[data-theme="halloween"] .ticket-panel-card .btn-primary,
html[data-theme="halloween"] .ticket-message-square-card .btn-tmb-edit,
html[data-theme="halloween"] .ticket-message-box-card .btn-tmb-edit {
  background: rgba(255, 117, 24, 0.18) !important;
  border: 1px solid rgba(255, 140, 26, 0.4) !important;
  color: #ffffff !important;
}

html[data-theme="halloween"] .ticket-panel-card .btn-primary:hover,
html[data-theme="halloween"] .ticket-message-square-card .btn-tmb-edit:hover,
html[data-theme="halloween"] .ticket-message-box-card .btn-tmb-edit:hover {
  background: rgba(255, 117, 24, 0.35) !important;
  border-color: #ff8c1a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 140, 26, 0.35) !important;
}

html[data-theme="halloween"] #btn-new-ticket-panel.btn-large-new {
  background: linear-gradient(135deg, #ff8c1a 0%, #ff5722 100%) !important;
  border: 1px solid #ffa94d !important;
  color: #1a0800 !important;
  box-shadow: 0 4px 20px rgba(255, 140, 26, 0.4) !important;
}

html[data-theme="halloween"] #btn-new-ticket-panel.btn-large-new:hover {
  box-shadow: 0 6px 26px rgba(255, 140, 26, 0.6) !important;
}

html[data-theme="halloween"] .ticket-stat-pill {
  background: rgba(255, 117, 24, 0.18) !important;
  border-color: rgba(255, 140, 26, 0.4) !important;
  color: #ffa94d !important;
}
