/* ========================================================================
   TEF App Components CSS
   All custom component styles for the frontend app (app.html)
   ======================================================================== */

/* ======================== ROOT & LAYOUT ======================== */
html, body {
  background: #020617;
  margin: 0;
  padding: 0;
}

.app-root, .app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #020617 0%, #0a1929 40%, #0c1e3a 100%);
  color: #e0f2fe;
  overflow-x: hidden;
}

/* Header spacer for fixed header — height set via inline style + JS ResizeObserver */
.header-spacer {
  height: var(--header-height, 155px);
  flex-shrink: 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tariff grid */
.tariff-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .tariff-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  }
}

/* ======================== TARIFF CARD ======================== */
.card-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #0a2540 0%, #010b24 55%, #010b24 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.15), 0 0 20px rgba(6, 182, 212, 0.08);
}

.card-wrapper.card-active {
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3), 0 0 0 2px rgba(34, 211, 238, 0.4);
}

.card-wrapper-promo {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.15);
}

.card-header {
  position: relative;
  padding: 1.25rem 1.5rem 0;
  min-height: 260px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, rgba(6, 182, 212, 0.05) 60%, transparent 100%);
  overflow: hidden;
}

.card-header-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  margin-top: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.card-header-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card-middle {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #f1fbff 0%, #ffffff 30%, #ffffff 100%);
  color: #1e293b;
}

.card-footer {
  /* Defined inline, but enhance */
}

.card-footer-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.card-footer-actions.always-visible {
  opacity: 1;
}

.card-footer-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.card-footer-btn:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #bae6fd;
  transform: scale(1.1);
}

.card-footer-btn.selected {
  background: rgba(34, 211, 238, 0.2);
  border-color: #22d3ee;
  color: #22d3ee;
}

.card-footer-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Prepaid Ring – als Pseudo-Element, damit position:relative der card-wrapper erhalten bleibt */
.prepaid-ring {
  /* Kein position: absolute hier! card-wrapper braucht position: relative */
}
.prepaid-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.25rem;
  border: 2px solid rgba(34, 211, 238, 0.3);
  pointer-events: none;
  animation: prepaid-pulse 3s ease-in-out infinite;
  z-index: 5;
}

@keyframes prepaid-pulse {
  0%, 100% { border-color: rgba(34, 211, 238, 0.2); }
  50% { border-color: rgba(34, 211, 238, 0.5); }
}

/* ======================== AJAX SEARCH DROPDOWN (Glow Glass) ======================== */
.ajax-search-dropdown {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.08),
    0 0 40px rgba(56, 189, 248, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.4);
  animation: ajaxDropdownIn 0.2s ease-out;
}
.ajax-search-dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, transparent 50%, rgba(56, 189, 248, 0.03) 100%);
  pointer-events: none;
}
.ajax-search-dropdown button:hover {
  background: rgba(56, 189, 248, 0.08);
}
@keyframes ajaxDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge / Tag System */
.kombi-badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.validity-badge-left {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #bae6fd;
  z-index: 5;
}

.badge-category {
  /* Base for category badges */
}

.tag-blue { background: rgba(37, 99, 235, 0.25); border: 1px solid rgba(96, 165, 250, 0.4); }
.tag-young { background: rgba(168, 85, 247, 0.25); border: 1px solid rgba(192, 132, 252, 0.4); }
.tag-promo { background: rgba(251, 146, 60, 0.25); border: 1px solid rgba(251, 191, 36, 0.4); }

.tag-left {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 5;
}

.tag-right {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 5;
}

/* Price glow */
.price-glow-main {
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5), 0 0 40px rgba(34, 211, 238, 0.2);
}

.statt-price-text {
  color: rgba(148, 163, 184, 0.8);
}

.connection-fee-neon {
  color: #94a3b8;
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

.connection-fee-free-neon {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

/* Liquid glow text (data volume) */
.liquid-glow-text {
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 40%, #22d3ee 60%, #e0f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}

/* O2 prefix glow */
.o2-prefix-glow {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Feature icon */
.feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #10b981;
}

.phone-icon {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  color: rgba(186, 230, 253, 0.5);
}

/* Segment Tab active */
.segment-tab-active {
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* ======================== HEADER ======================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  will-change: transform;
  overflow: hidden; /* Verhindert dass Inhalt in den Header reinscrollt */
  background: #020617; /* Solider Hintergrund um Durchscheinen zu verhindern */
}

/* Main header content — elegant fade out on scroll */
.header-main-content {
  position: relative;
  z-index: 10; /* Höher als die .wave-wrap (z-index: 5) */
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.8s ease;
  max-height: 500px;
  overflow: hidden;
  filter: blur(0px);
}

.header-wrapper.header-scrolled .header-main-content {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  max-height: 0;
  pointer-events: none;
  filter: blur(2px);
}

.header-wrapper.header-scrolled .wave-wrap,
.header-wrapper.header-scrolled .snow-mountains-wrap,
.header-wrapper.header-scrolled .easter-meadow-wrap {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Compact scroll header — elegant fade in */
.compact-scroll-header {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98) 0%, rgba(10, 25, 41, 0.95) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
  opacity: 0;
  transform: translateY(-100%);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.header-wrapper.header-scrolled .compact-scroll-header {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
  pointer-events: auto;
}

:root {
  --header-gap: 72px;
}

@media (max-width: 768px) {
  :root {
    --header-gap: 64px;
  }
}

/* Fullscreen menu — scroll lock fix */
.fullscreen-menu-panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.header-backdrop {
  background: linear-gradient(180deg, #020617 0%, #0a1929 50%, #0c2240 100%);
  position: relative;
  overflow: hidden;
}

.blackweek-header {
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
}

.compact-menu-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.2s;
}

.compact-menu-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #bae6fd;
}

.compact-menu-btn svg {
  width: 20px;
  height: 20px;
}

.compact-clock-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #7dd3fc;
}

.compact-clock-time {
  font-weight: 600;
  font-size: 0.85rem;
  color: #bae6fd;
}

.compact-clock-date, .compact-clock-kw {
  color: rgba(125, 211, 252, 0.6);
  font-size: 0.7rem;
}

/* Season Layer */
.season-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Season Items – gemeinsame Basis */
.season-item {
  position: absolute;
  top: -30px;
  pointer-events: none;
  opacity: 0;
  animation: season-fall var(--fall-duration, 5s) linear var(--fall-delay, 0s) forwards;
  will-change: transform, opacity;
}

/* Schnee-Flocken */
.season-snow-flake {
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
}

.snowflake-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.snowflake-dot .snowflake-svg,
.snowflake-dot {
  opacity: 0.7;
}

/* Blätter (Herbst) */
.season-leaf {
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.25));
}

.season-leaf .leaf-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Konfetti */
.season-confetti {
  width: 7px;
  height: 12px;
  border-radius: 2px;
}

/* Ostern */
.season-easter {
  font-size: 22px;
  line-height: 1;
}

/* Feuerwerk */
.season-firework {
  animation: season-firework-pop 1.8s ease-out forwards;
}

/* ---- Season-Animationen ---- */
/* Container-relative Fallhöhe: füllt die season-layer Höhe */
@keyframes season-fall {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform:
      translateY(110vh)
      translateX(var(--drift, 0px))
      rotate(var(--rotation, 360deg));
    opacity: 0;
  }
}

@keyframes season-firework-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  30% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Header Menu Button */
.header-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.header-menu-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.header-menu-btn.menu-active {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
}

.header-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Header Logo Orb */
.header-logo-orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
  flex-shrink: 0;
}

/* Header Logo Smartphone Icon */
.header-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
  flex-shrink: 0;
}
.header-logo-icon svg {
  width: 18px;
  height: 18px;
  color: #7dd3fc;
  stroke: currentColor;
}


/* Header Clock Widget */
.header-clock-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.header-clock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.header-clock-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #bae6fd;
  letter-spacing: 0.05em;
}

.header-clock-date {
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.6);
}

.header-clock-kw {
  font-size: 0.6rem;
  color: rgba(125, 211, 252, 0.45);
}

/* Header Countdown Mini */
.header-countdown-mini {
  margin-top: 0.25rem;
  margin-left: 26px;
}

/* Header Selection View */
.header-selection-view {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-selection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22d3ee;
  font-size: 0.8rem;
  font-weight: 600;
}

.header-selection-title svg {
  width: 16px;
  height: 16px;
}

.header-selection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.header-selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

.header-selection-chip .chip-name {
  font-weight: 500;
}

.header-selection-chip .chip-remove {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: rgba(125, 211, 252, 0.5);
  cursor: pointer;
  padding: 0;
}

.header-selection-chip .chip-remove:hover {
  color: #ef4444;
}

.header-selection-chip .chip-remove svg {
  width: 12px;
  height: 12px;
}

.header-selection-more {
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.5);
  align-self: center;
}

/* Header Selection Actions */
.header-selection-actions {
  display: flex;
  gap: 0.5rem;
}

.header-sel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
}

.header-sel-btn svg {
  width: 14px;
  height: 14px;
}

.header-sel-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
}

.header-sel-btn-clear { color: #f87171; border-color: rgba(248, 113, 113, 0.2); }
.header-sel-btn-clear:hover { background: rgba(239, 68, 68, 0.15); }

.header-sel-btn-print { color: #a5f3fc; }

.header-sel-btn-view {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

.header-sel-btn-view:hover {
  background: rgba(34, 211, 238, 0.25);
}

/* Black Friday Header Text */
.blackfriday-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.bf-text-line {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bf-text-black { color: #ffffff; }
.bf-text-friday { color: #fbbf24; text-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }

/* ======================== WAVES ======================== */
.wave-wrap {
  position: relative;
  height: 36px;
  width: 100%;
  z-index: 5;
  overflow: visible;
}

.wave-svg {
  display: block;
}

.wave-layer {
  animation: wave-drift 8s ease-in-out infinite;
}

.wave-line {
  animation: wave-drift 8s ease-in-out infinite;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

/* Wave Bubbles */
.wave-bubbles-layer {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  overflow: visible;
}

.wave-bubble-pop {
  position: absolute;
  bottom: 0;
  left: var(--x, 50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(165, 243, 252, 0.6), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(165, 243, 252, 0.3);
  animation: wave-bubble-rise var(--duration, 4s) ease-out infinite;
}

.wave-bubble-pop.small { width: 4px; height: 4px; }
.wave-bubble-pop.medium { width: 7px; height: 7px; }
.wave-bubble-pop.large { width: 10px; height: 10px; }

@keyframes wave-bubble-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-80px) translateX(var(--drift, 10px));
    opacity: 0;
  }
}

/* ======================== HEADER BUBBLES ======================== */
.header-bubbles-container {
  pointer-events: none;
}

.hbubble {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186, 230, 253, 0.25), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.15);
  pointer-events: none;
}

.hbubble.tiny { width: 4px; height: 4px; }
.hbubble.small { width: 8px; height: 8px; }
.hbubble.medium { width: 12px; height: 12px; }
.hbubble.large { width: 18px; height: 18px; }

@keyframes hbubbleRiseRandom {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  10% { opacity: 0.7; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.3; }
  100% { transform: translateY(-200px) translateX(20px) scale(0.8); opacity: 0; }
}

/* Brand Logo Bubbles */
.brand-logo-bubble {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brand-logo-rise {
  animation: brand-logo-rise-anim 12s ease-out forwards;
}

.brand-logo-drift {
  animation: brand-logo-drift-anim 15s ease-in-out forwards;
}

.brand-logo-float {
  animation: brand-logo-float-anim 18s ease-in-out forwards;
}

.brand-logo-cyan { color: #22d3ee; }
.brand-logo-white { color: #f0f9ff; }

@keyframes brand-logo-rise-anim {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.3; }
  80% { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-180px); }
}

@keyframes brand-logo-drift-anim {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  15% { opacity: 0.25; }
  80% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-150px) translateX(30px); }
}

@keyframes brand-logo-float-anim {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  20% { opacity: 0.2; }
  80% { opacity: 0.08; }
  100% { opacity: 0; transform: translateY(-120px) translateX(-20px); }
}

/* ======================== SNOW MOUNTAINS ======================== */
.snow-mountains-wrap {
  position: relative;
  height: 56px;
  width: 100%;
  z-index: 5;
  overflow: visible;
}

/* Winter Landscape (trees, house, snowman) inside snow-mountains-wrap */
.winter-landscape {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}

.winter-glow-tree {
  position: absolute;
  pointer-events: none;
}

.snowman-winter {
  position: absolute;
  left: 15%;
  bottom: 0;
  width: 35px;
  height: 50px;
  z-index: 8;
  pointer-events: none;
}

/* Christmas right trees - positioned absolutely in header-backdrop */
.christmas-right-trees {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}

.right-tree {
  position: absolute;
  bottom: 0;
  pointer-events: none;
}

.right-tree-1 { right: 2%; width: 24px; height: 36px; }
.right-tree-2 { right: 8%; width: 20px; height: 30px; bottom: 4px; }
.right-tree-3 { right: 14%; width: 16px; height: 22px; bottom: 2px; }
.right-tree-4 { right: 5%; width: 22px; height: 32px; bottom: 8px; }
.right-tree-5 { right: 18%; width: 14px; height: 20px; bottom: 6px; }
.right-tree-6 { right: 11%; width: 18px; height: 26px; bottom: 10px; }

.snow-mountains-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.snow-layer { transition: opacity 1s ease; }
.snow-shadow { transition: opacity 1s ease; }

.snow-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.snow-sparkle {
  position: absolute;
  bottom: 20%;
  left: var(--x, 50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  animation: snow-sparkle-twinkle 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes snow-sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Snowman */
.snowman-winter-right {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 50px;
  height: 100px;
  z-index: 10;
}

.snowman-puff {
  position: absolute;
  animation: snowman-puff-rise 5s ease-out forwards;
  opacity: 0;
}

/* Winter house container - positioned absolutely inside snow-mountains-wrap */
.winter-house-container {
  position: absolute;
  z-index: 8;
  pointer-events: none;
}

/* Chimney bubble effect */
.chimney-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 220, 255, 0.3);
  border: 1px solid rgba(200, 220, 255, 0.2);
  animation: chimney-rise 4s ease-out forwards;
  opacity: 0;
}

@keyframes chimney-rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  15% { opacity: 0.5; }
  80% { opacity: 0.15; }
  100% { transform: translateY(-60px) translateX(var(--drift, 10px)) scale(1); opacity: 0; }
}

/* Blackweek wave wrap */
.blackweek-wave-wrap {
  position: relative;
  height: 40px;
  width: 100%;
  z-index: 5;
}

.blackweek-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bw-wave-back,
.bw-wave-mid,
.bw-wave-front {
  animation: wave-drift 6s ease-in-out infinite;
}

@keyframes snowman-puff-rise {
  0% { transform: translateX(-50%) translateY(0); opacity: 0; }
  15% { opacity: 0.6; }
  80% { opacity: 0.2; }
  100% { transform: translateX(calc(-50% + var(--drift, 0px))) translateY(-100px); opacity: 0; }
}

/* Responsive: Winter-Dekorationen auf kleinen Screens ausblenden */
@media (max-width: 600px) {
  .snowman-winter-right {
    display: none !important;
  }
  .winter-house-container {
    display: none !important;
  }
  .winter-glow-tree {
    display: none !important;
  }
  .christmas-right-trees {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .snowman-winter-right {
    right: 3%;
    width: 35px;
    height: 70px;
    opacity: 0.7 !important;
  }
  .winter-house-container {
    opacity: 0.6 !important;
    transform: scale(0.7);
    transform-origin: bottom left;
  }
  .winter-glow-tree {
    opacity: 0.5 !important;
    transform: scale(0.7);
    transform-origin: bottom center;
  }
}

/* ======================== EASTER ======================== */
.easter-meadow-wrap {
  position: relative;
  height: 50px;
  width: 100%;
  z-index: 5;
}

.meadow-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.easter-bunny-container {
  position: absolute;
  right: 12%;
  bottom: 8px;
  width: 40px;
  height: 50px;
  z-index: 10;
}

.easter-bunny-svg {
  width: 100%;
  height: 100%;
}

.easter-egg {
  position: absolute;
  width: 20px;
  height: 26px;
  z-index: 8;
}

.egg-1 { left: 25%; bottom: 4px; }
.egg-2 { left: 55%; bottom: 6px; }
.egg-3 { right: 30%; bottom: 3px; }

/* ======================== EVENT SCENES ======================== */
.event-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

/* Christmas Scene */
.christmas-scene {
  transition: opacity 0.5s ease;
}

.christmas-led-tree {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 50px;
  height: 65px;
  z-index: 10;
}

.led-light {
  animation: led-blink 2s ease-in-out infinite;
}

.led-star {
  animation: led-star-glow 3s ease-in-out infinite;
}

@keyframes led-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes led-star-glow {
  0%, 100% { opacity: 0.6; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.5); }
}

.santa-o2-container {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 45px;
  height: 60px;
  z-index: 10;
}

.santa-modern-inner {
  width: 100%;
  height: 100%;
}

.santa-phone-arm {
  animation: santa-phone-move 4s ease-in-out infinite;
}

@keyframes santa-phone-move {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-5deg); }
}

.o2-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.o2-bubble {
  position: absolute;
  width: 24px;
  height: 24px;
  animation: o2-bubble-rise 6s ease-out infinite;
  opacity: 0;
}

.bubble-1 { left: 40%; animation-delay: 0s; }
.bubble-2 { left: 55%; animation-delay: 1.5s; }
.bubble-3 { left: 30%; animation-delay: 3s; }
.bubble-4 { left: 65%; animation-delay: 4.5s; }

.neon-white { color: rgba(255, 255, 255, 0.6); }
.neon-cyan { color: rgba(34, 211, 238, 0.7); }

@keyframes o2-bubble-rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.6; }
  80% { opacity: 0.2; }
  100% { transform: translateY(-80px); opacity: 0; }
}

/* Christmas Shooting Stars */
.header-shooting-stars-dynamic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.shooting-star-dynamic {
  position: absolute;
  animation: shooting-star-fly var(--duration, 2s) ease-in-out forwards;
  opacity: 0;
}

@keyframes shooting-star-fly {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-200px) translateY(100px); }
}

.sky-star {
  position: absolute;
  pointer-events: none;
}

.sky-star-1 { top: 10%; left: 15%; width: 10px; height: 10px; }
.sky-star-2 { top: 8%; right: 25%; width: 8px; height: 8px; }
.sky-star-3 { top: 15%; left: 60%; width: 6px; height: 6px; }

.twinkle-star {
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Christmas Gifts */
.christmas-gifts {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 8;
  pointer-events: none;
}

.gift {
  position: absolute;
  bottom: 2px;
}

.gift-1 { left: 4%; width: 18px; height: 16px; }
.gift-2 { left: 15%; width: 14px; height: 18px; }
.gift-3 { right: 25%; width: 14px; height: 12px; }
.gift-4 { right: 15%; width: 12px; height: 10px; }

/* Chimney Effect */
.chimney-wrap {
  position: absolute;
  right: 15%;
  bottom: 0;
  z-index: 10;
}

.chimney-smoke {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: chimney-smoke-rise 4s ease-out infinite;
}

@keyframes chimney-smoke-rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0.6; }
  100% { transform: translateY(-60px) scale(2); opacity: 0; }
}

/* Summer Scene */
.summer-sun {
  position: absolute;
  z-index: 50;
}

.sun-svg {
  width: 100%;
  height: 100%;
}

.sun-rays {
  animation: sun-spin 30s linear infinite;
}

@keyframes sun-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Silvester / Pig */
.silvester-pig-container {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 10;
}

.pig-mouth {
  animation: pig-puff 3s ease-in-out infinite;
}

@keyframes pig-puff {
  0%, 70%, 100% { rx: 5; ry: 4; }
  35% { rx: 7; ry: 6; }
}

/* Newyear Scene */
.newyear-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 6px;
  height: 6px;
}

.firework-1 { top: 15%; left: 20%; }
.firework-2 { top: 10%; left: 60%; }
.firework-3 { top: 20%; right: 15%; }

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fbbf24;
  animation: firework-burst 3s ease-out infinite;
}

.spark-1 { --angle: 0deg; }
.spark-2 { --angle: 45deg; }
.spark-3 { --angle: 90deg; }
.spark-4 { --angle: 135deg; }
.spark-5 { --angle: 180deg; }
.spark-6 { --angle: 225deg; }
.spark-7 { --angle: 270deg; }
.spark-8 { --angle: 315deg; }

@keyframes firework-burst {
  0% { transform: translate(0) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translate(0) scale(1); }
  50% {
    transform: translate(
      calc(cos(var(--angle)) * 30px),
      calc(sin(var(--angle)) * 30px)
    ) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(
      calc(cos(var(--angle)) * 50px),
      calc(sin(var(--angle)) * 50px)
    ) scale(0);
    opacity: 0;
  }
}

/* Lucky Clover */
.lucky-clover-container {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 40px;
  height: 50px;
  z-index: 10;
}

.lucky-clover {
  width: 100%;
  height: 100%;
}

.clover-o2-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.clover-bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.clover-bubble-1 { left: 20%; animation: clover-bubble-float 5s 0s ease-out infinite; }
.clover-bubble-2 { left: 50%; animation: clover-bubble-float 4s 1.5s ease-out infinite; }
.clover-bubble-3 { left: 30%; animation: clover-bubble-float 6s 3s ease-out infinite; }

@keyframes clover-bubble-float {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-100px); opacity: 0; }
}

/* ======================== FULLSCREEN MENU ======================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  animation: menu-fade-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes menu-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fullscreen-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.fullscreen-menu-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: linear-gradient(180deg, #020617 0%, #0a1929 30%, #0c2240 100%);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  animation: menu-slide-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes menu-slide-in {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Menu Header */
.menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.menu-header-icon {
  width: 56px;
  height: 56px;
}

.menu-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #bae6fd;
  letter-spacing: 0.04em;
}

/* Menu Bubbles */
.menu-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186, 230, 253, 0.15), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(125, 211, 252, 0.08);
  pointer-events: none;
  animation: menu-bubble-rise 20s linear infinite;
  opacity: 0;
}

@keyframes menu-bubble-rise {
  0% { bottom: -20px; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.1; }
  100% { bottom: 100%; opacity: 0; }
}

/* Menu Content */
.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero Icons Grid */
.hero-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.hero-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-icon-btn:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.hero-icon-btn svg {
  width: 28px;
  height: 28px;
}

.hero-icon-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Quick Links Section */
.quick-links-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-links-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.4);
  padding: 0.5rem 0.5rem 0.25rem;
}

/* Menu Item */
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: #bae6fd;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
}

.menu-item:hover {
  background: rgba(14, 165, 233, 0.1);
}

.menu-item-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #38bdf8;
}

.menu-item-content {
  flex: 1;
}

.menu-item-title {
  font-size: 0.85rem;
  font-weight: 500;
}

.menu-item-arrow {
  width: 16px;
  height: 16px;
  color: rgba(125, 211, 252, 0.3);
}

/* Menu Particles */
.menu-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.menu-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.3);
  top: 50%;
  left: 50%;
  animation: menu-particle-burst 0.5s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes menu-particle-burst {
  to {
    transform: translate(
      calc(cos(var(--angle)) * var(--distance)),
      calc(sin(var(--angle)) * var(--distance))
    );
    opacity: 0;
  }
}

/* ======================== SYSTEM SETTINGS PANEL ======================== */
.system-settings-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.system-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.15;
}

.system-glow-orb-1 {
  width: 200px; height: 200px;
  background: #0ea5e9;
  top: -50px; left: -50px;
}

.system-glow-orb-2 {
  width: 150px; height: 150px;
  background: #a855f7;
  bottom: 50px; right: -30px;
}

.system-glow-orb-3 {
  width: 100px; height: 100px;
  background: #22d3ee;
  top: 40%; left: 30%;
}

.system-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.system-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.system-back-btn:hover {
  background: rgba(14, 165, 233, 0.2);
}

.system-back-btn svg {
  width: 16px;
  height: 16px;
}

.system-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #bae6fd;
  margin: 0;
}

/* System Tabs */
.system-tabs-full {
  display: flex;
  gap: 0.25rem;
  background: rgba(2, 6, 23, 0.5);
  border-radius: 0.75rem;
  padding: 0.25rem;
  border: 1px solid rgba(56, 189, 248, 0.08);
}

.system-tab-full {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: rgba(125, 211, 252, 0.5);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.system-tab-full:hover {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.08);
}

.system-tab-full.active {
  background: rgba(14, 165, 233, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tab-icon {
  font-size: 0.85rem;
}

.system-content-area {
  flex: 1;
}

.system-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* System Card */
.system-card {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
}

.system-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.system-card-icon {
  font-size: 1rem;
}

.system-card-icon-svg {
  width: 18px;
  height: 18px;
  color: #38bdf8;
}

.system-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bae6fd;
}

.system-card-hint {
  font-size: 0.7rem;
  color: rgba(125, 211, 252, 0.4);
  margin-top: 0.5rem;
}

/* Toggle Grid */
.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.06);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-card.solo {
  grid-column: span 2;
}

.toggle-card:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.12);
}

.toggle-card-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.toggle-emoji {
  font-size: 0.85rem;
}

.toggle-card input[type="checkbox"] {
  width: 36px;
  height: 20px;
  accent-color: #0ea5e9;
  cursor: pointer;
}

/* Active Event Display */
.active-event-display {
  position: relative;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  overflow: hidden;
}

.active-event-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, 0.08), transparent);
  pointer-events: none;
}

.active-event-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.active-event-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #22d3ee;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
}

.active-event-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.active-event-icon {
  width: 20px;
  height: 20px;
  color: #38bdf8;
}

.active-event-icon svg {
  width: 100%;
  height: 100%;
}

.active-event-text {
  display: flex;
  flex-direction: column;
}

.active-event-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #bae6fd;
}

.active-event-period {
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.5);
}

.next-event-hint {
  font-size: 0.7rem;
  color: rgba(125, 211, 252, 0.45);
  padding: 0.25rem 0;
}

/* Event Grid */
.event-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.event-card-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.06);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.event-card-btn:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
}

.event-card-btn.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

.event-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.event-card-icon svg {
  width: 100%;
  height: 100%;
}

.event-card-text {
  display: flex;
  flex-direction: column;
}

.event-card-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.event-card-period {
  font-size: 0.6rem;
  opacity: 0.6;
}

/* ======================== SELECTION PANEL ======================== */
.selection-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.selection-panel.visible {
  transform: translateY(0);
}

.selection-panel.minimized .selection-grid {
  display: none;
}

.selection-panel.minimized .selection-toggle-btn svg {
  transform: rotate(180deg);
}

.selection-panel-inner {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.95) 0%, rgba(10, 25, 41, 0.98) 100%);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.selection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 600;
}

.selection-title svg {
  width: 16px;
  height: 16px;
  color: #22d3ee;
}

.selection-toggle-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 0.375rem;
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.selection-toggle-btn:hover {
  background: rgba(14, 165, 233, 0.2);
}

.selection-toggle-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.selection-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 700;
}

.selection-actions {
  display: flex;
  gap: 0.5rem;
}

.selection-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.selection-btn-clear {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.selection-btn-clear:hover {
  background: rgba(239, 68, 68, 0.2);
}

.selection-btn-view {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

.selection-btn-view:hover {
  background: rgba(34, 211, 238, 0.25);
}

.selection-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-height: 100px;
  overflow-y: auto;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.selection-chip-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
}

.selection-chip-info {
  display: flex;
  flex-direction: column;
}

.selection-chip-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: #bae6fd;
}

.selection-chip-data {
  font-size: 0.6rem;
  color: rgba(125, 211, 252, 0.5);
}

.selection-chip-remove {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.selection-chip-remove:hover {
  background: rgba(239, 68, 68, 0.25);
}

.selection-chip-remove svg {
  width: 12px;
  height: 12px;
}

/* Body class when selection is active */
body.selection-active .header-wrapper {
  /* Optional: adjust header when selection is active */
}

/* ======================== LIVE VIEW PANEL ======================== */
.live-view-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.live-view-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.live-view-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  z-index: 151;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-view-panel.visible {
  transform: translateX(0);
}

.live-view-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #020617 0%, #0a1929 40%, #0c2240 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.1);
}

.live-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.live-view-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #bae6fd;
  font-size: 0.9rem;
  font-weight: 600;
}

.live-view-title svg {
  width: 20px;
  height: 20px;
  color: #38bdf8;
}

.live-view-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(14, 165, 233, 0.05);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.2s;
}

.live-view-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.live-view-close svg {
  width: 18px;
  height: 18px;
}

.live-view-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-view-tariff {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.live-view-tariff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(14, 165, 233, 0.06);
  border-bottom: 1px solid rgba(56, 189, 248, 0.06);
}

.live-view-tariff-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bae6fd;
}

.live-view-tariff-data {
  font-size: 0.75rem;
  font-weight: 500;
  color: #38bdf8;
}

.live-view-tariff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.live-view-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.live-view-stat-label {
  font-size: 0.6rem;
  color: rgba(125, 211, 252, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-view-stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #bae6fd;
}

.live-view-stat-value.savings {
  color: #4ade80;
}

.live-view-summary {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 0.75rem;
  padding: 1rem;
}

.live-view-summary-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #22d3ee;
  margin-bottom: 0.75rem;
}

.live-view-summary-title svg {
  width: 16px;
  height: 16px;
}

.live-view-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.live-view-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.live-view-summary-label {
  font-size: 0.6rem;
  color: rgba(125, 211, 252, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-view-summary-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #bae6fd;
}

.live-view-summary-value.total {
  color: #22d3ee;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

.live-view-summary-value.savings {
  color: #4ade80;
}

.live-view-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
}

.live-view-print-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.live-view-print-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.35);
}

.live-view-print-btn svg {
  width: 18px;
  height: 18px;
}

/* ======================== EFFECTS CONTAINERS ======================== */
.confetti-container,
.leaf-container,
.easter-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-fall linear infinite;
  opacity: 0;
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.falling-leaf {
  position: absolute;
  top: -30px;
  animation: leaf-fall linear infinite;
  opacity: 0;
}

@keyframes leaf-fall {
  0% { transform: translateY(-30px) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translateY(50vh) translateX(30px) rotate(180deg); }
  100% { transform: translateY(100vh) translateX(-20px) rotate(360deg); opacity: 0; }
}

/* ======================== LIQUID INPUT (Search) ======================== */
.liquid-input {
  background: rgba(14, 165, 233, 0.06);
  border: 1.5px solid rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.liquid-input:focus {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08), 0 0 20px rgba(34, 211, 238, 0.1);
  background: rgba(14, 165, 233, 0.1);
}

.liquid-animated {
  position: relative;
}

.liquid-icon {
  transition: color 0.3s;
}

/* ======================== EDIT MODAL / TARIFF EDITOR ======================== */
.edit-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: modal-overlay-in 0.3s ease;
}

@keyframes modal-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.edit-lightbox-modal {
  position: relative;
  width: 95%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #0a1929 0%, #020617 100%);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-scale-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-scale-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modal Konfetti */
.modal-konfetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.modal-konfetti {
  position: absolute;
  top: -10px;
  width: var(--konfetti-size, 6px);
  height: var(--konfetti-size, 6px);
  border-radius: 1px;
  animation: modal-konfetti-fall var(--konfetti-duration, 5s) var(--konfetti-delay, 0s) linear infinite;
  opacity: 0;
}

.modal-konfetti.circle { border-radius: 50%; background: #22d3ee; }
.modal-konfetti.square { background: #a855f7; }
.modal-konfetti.triangle { 
  width: 0; height: 0;
  border-left: calc(var(--konfetti-size, 6px) / 2) solid transparent;
  border-right: calc(var(--konfetti-size, 6px) / 2) solid transparent;
  border-bottom: var(--konfetti-size, 6px) solid #fbbf24;
  background: transparent;
}

@keyframes modal-konfetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.2; }
  100% { transform: translateY(100%) rotate(720deg); opacity: 0; }
}

.modal-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), transparent 50%, rgba(168, 85, 247, 0.1));
  pointer-events: none;
  z-index: 0;
}

/* Modal Header */
.edit-lightbox-header {
  position: relative;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  z-index: 1;
}

.premium-header {
  /* Additional premium styling */
}

.header-glow-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), rgba(168, 85, 247, 0.2), transparent);
}

.edit-lightbox-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
}

.premium-title {
  color: #bae6fd;
}

.title-icon-wrapper {
  width: 28px;
  height: 28px;
}

.title-icon-wrapper.compact {
  width: 24px;
  height: 24px;
}

.title-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.title-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.title-text.compact {
  font-size: 0.85rem;
}

.title-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.title-badge.compact {
  font-size: 0.5rem;
}

.edit-lightbox-close,
.premium-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(14, 165, 233, 0.05);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-lightbox-close:hover,
.premium-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.edit-lightbox-close svg,
.premium-close svg {
  width: 18px;
  height: 18px;
}

/* Modal Tabs */
.edit-lightbox-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.06);
  position: relative;
  z-index: 1;
}

.premium-tabs {
  background: rgba(2, 6, 23, 0.4);
}

.tabs-glow-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(56, 189, 248, 0.05);
}

.edit-lightbox-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(125, 211, 252, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-size: inherit;
  font-family: inherit;
}

.edit-lightbox-tab:hover {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.05);
}

.edit-lightbox-tab.active {
  color: #bae6fd;
}

.tab-icon-glow {
  width: 20px;
  height: 20px;
}

.tab-icon-glow svg {
  width: 100%;
  height: 100%;
}

.tab-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background 0.2s;
}

.edit-lightbox-tab.active .tab-indicator {
  background: linear-gradient(90deg, #22d3ee, #a855f7);
}

/* Modal Body */
.edit-lightbox-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 1;
}

.premium-body {
  /* Additional spacing */
}

.edit-lightbox-tab-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.premium-content {
  /* Premium content wrapper */
}

/* Section Headers */
.premium-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.premium-section-header.compact {
  margin-bottom: 0.375rem;
}

.premium-section-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.premium-section-header h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bae6fd;
  margin: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.3), transparent);
}

.section-line.green { background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), transparent); }
.section-line.orange { background: linear-gradient(90deg, rgba(251, 146, 60, 0.3), transparent); }
.section-line.promo { background: linear-gradient(90deg, rgba(245, 158, 11, 0.3), transparent); }

/* Premium Inputs */
.premium-input-container {
  position: relative;
}

.premium-input-container.floating {
  position: relative;
}

.premium-input-container.compact {
  /* Reduced sizing */
}

.premium-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(2, 6, 23, 0.5);
  color: #bae6fd;
  font-size: 0.8rem;
  transition: all 0.2s;
  outline: none;
}

.premium-input:focus {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.08);
}

.premium-input:not(:placeholder-shown) + .premium-label,
.premium-input:focus + .premium-label {
  transform: translateY(-1.5rem) scale(0.78);
  color: #38bdf8;
}

.premium-label {
  position: absolute;
  left: 2.25rem;
  top: 0.6rem;
  font-size: 0.75rem;
  color: rgba(125, 211, 252, 0.4);
  transition: all 0.2s;
  pointer-events: none;
  transform-origin: left;
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.premium-input:focus ~ .input-glow {
  opacity: 1;
}

.input-glow.promo-glow {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

.input-icon-wrapper {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(125, 211, 252, 0.35);
  z-index: 1;
}

.input-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.input-icon-wrapper.promo-icon {
  color: rgba(245, 158, 11, 0.5);
}

.discount-preview {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: #4ade80;
  font-weight: 500;
}

.premium-row {
  display: flex;
  gap: 0.75rem;
}

.premium-row > * {
  flex: 1;
}

/* Premium Toggle */
.premium-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.375rem 0;
}

.premium-toggle-container.compact {
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.premium-toggle-input {
  display: none;
}

.premium-toggle-slider {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.15);
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.premium-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.4);
  transition: all 0.2s;
}

.premium-toggle-input:checked + .premium-toggle-slider {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.4);
}

.premium-toggle-input:checked + .premium-toggle-slider::after {
  left: 18px;
  background: #22d3ee;
}

.premium-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.premium-toggle-label svg {
  width: 14px;
  height: 14px;
  color: rgba(125, 211, 252, 0.4);
}

/* Premium Option Grid */
.premium-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.premium-option-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(2, 6, 23, 0.4);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.premium-option-btn:hover {
  border-color: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

.premium-option-btn.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

/* Premium Color Buttons */
.premium-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.premium-color-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(2, 6, 23, 0.3);
  color: #94a3b8;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.premium-color-btn.active {
  border-color: rgba(34, 211, 238, 0.3);
  color: #bae6fd;
}

.premium-color-btn .color-bubble {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.premium-color-btn.cyan .color-bubble { background: #22d3ee; }
.premium-color-btn.blue .color-bubble { background: #3b82f6; }
.premium-color-btn.purple .color-bubble { background: #a855f7; }
.premium-color-btn.pink .color-bubble { background: #ec4899; }
.premium-color-btn.green .color-bubble { background: #10b981; }
.premium-color-btn.orange .color-bubble { background: #f97316; }
.premium-color-btn.custom .color-bubble { background: var(--custom-color, #999); }

/* Custom Color Picker */
.custom-color-picker {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.color-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: #7dd3fc;
}

.color-picker-header button {
  background: none;
  border: none;
  color: #7dd3fc;
  cursor: pointer;
  font-size: 0.8rem;
}

.color-picker-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-wheel-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-wheel-input {
  width: 40px;
  height: 36px;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  background: transparent;
}

.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-code-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #7dd3fc;
}

.color-code-input input {
  width: 70px;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(2, 6, 23, 0.5);
  color: #bae6fd;
  font-family: monospace;
  font-size: 0.75rem;
  outline: none;
}

/* Premium Icon Select */
.premium-icon-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.375rem;
}

.premium-icon-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.06);
  background: rgba(2, 6, 23, 0.3);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  font-size: inherit;
  font-family: inherit;
}

.premium-icon-select-btn:hover {
  border-color: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
}

.premium-icon-select-btn.active {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
}

.icon-emoji { font-size: 1.2rem; }
.icon-none { font-size: 1rem; opacity: 0.4; }
.icon-label { font-size: 0.55rem; }

/* Premium Preview Card */
.premium-preview-card {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #7dd3fc;
}

.preview-header svg {
  width: 14px;
  height: 14px;
}

.preview-content {
  display: flex;
  gap: 0.375rem;
}

.preview-chip {
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6rem;
  font-weight: 500;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.08);
  color: #94a3b8;
}

/* Cost Overview */
.cost-overview-box {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.cost-overview-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #bae6fd;
  margin-bottom: 0.5rem;
}

.cost-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cost-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cost-item.savings {
  grid-column: span 2;
}

.cost-label {
  font-size: 0.6rem;
  color: rgba(125, 211, 252, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cost-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bae6fd;
}

.cost-value.highlight {
  color: #22d3ee;
}

.cost-value small {
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.5);
  margin-left: 0.25rem;
}

/* Modal Footer */
.edit-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  position: relative;
  z-index: 1;
}

.premium-footer {
  background: rgba(2, 6, 23, 0.5);
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
}

.premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  border: none;
  font-family: inherit;
}

.premium-btn svg {
  width: 16px;
  height: 16px;
}

.premium-btn.cancel {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.premium-btn.cancel:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.premium-btn.save {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(14, 165, 233, 0.3));
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #bae6fd;
}

.premium-btn.save:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(14, 165, 233, 0.4));
  border-color: rgba(34, 211, 238, 0.5);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent);
  pointer-events: none;
}

/* ======================== CATEGORY ICON ======================== */
.category-icon {
  width: 14px;
  height: 14px;
}

/* ======================== LOADING SPINNER ======================== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #7dd3fc;
  font-size: 0.85rem;
}

/* ======================== MENU WEATHER WIDGET ======================== */
.menu-weather-widget {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
  z-index: 5;
}

/* Menu Weather Row */
.menu-weather-row {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-weather-icon-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.weather-icon-neon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.weather-condition-under-icon {
  font-size: 0.6rem;
  font-weight: 600;
  color: #38bdf8;
  white-space: nowrap;
}

/* Menu Weather Corner (top right) */
.menu-weather-top-right {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 10;
}

.menu-weather-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.weather-temp-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: #22d3ee;
  line-height: 1;
  text-shadow: 0 0 10px rgba(34,211,238,0.5);
}

.weather-city-small {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(186,230,253,0.6);
  margin-top: 2px;
}

/* ======================== MENU DATE DISPLAY (inside menu-header) ======================== */
.menu-header-date-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 0.25rem;
}

.menu-header-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(186,230,253,0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.date-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #38bdf8;
  opacity: 0.7;
}

.date-text {
  white-space: nowrap;
}

.date-separator {
  color: rgba(125,211,252,0.3);
  font-size: 1rem;
}

.menu-clock-under-date {
  color: #22d3ee;
  text-shadow: 0 0 6px rgba(34,211,238,0.5);
}

/* ======================== MENU SNOW / FIREWORK / CHARACTER ======================== */
.menu-snow-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.menu-firework-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.menu-character {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

/* ======================== MENU DATE DISPLAY ======================== */
.menu-date-display {
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.4);
}

/* ======================== EVENT TRANSITION ======================== */
.event-transition-enter {
  opacity: 0;
  transform: scale(0.95);
}

.event-transition-active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.5s ease;
}

/* ======================== BLACK WEEK SCENE ======================== */
.blackweek-scene {
  background: radial-gradient(ellipse at center top, rgba(30, 30, 30, 0.3), transparent);
}

.standard-scene {
  /* Empty for standard */
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 640px) {
  .header-spacer {
    /* Dynamische Höhe beibehalten, Fallback anpassen */
    height: var(--header-height, 180px);
  }

  .tariff-grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-selection-chips {
    display: none;
  }

  .header-selection-actions {
    flex-wrap: wrap;
  }

  .fullscreen-menu-panel {
    max-width: 100%;
  }

  .hero-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .event-grid-2col {
    grid-template-columns: 1fr;
  }

  .live-view-panel {
    max-width: 100%;
  }

  .premium-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .tariff-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (min-width: 1280px) {
  .tariff-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Font heading */
.font-heading {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
}

/* poppins (connection fee) */
.poppins-anschlusspreis {
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
}

/* ============================================================
   FEHLENDE CSS-KLASSEN — Comprehensive Fix (155 classes)
   ============================================================ */

/* ======================== BADGE CATEGORY VARIANTS ======================== */
.card-category-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.badge-category-promo-aktion {
  background: linear-gradient(135deg, rgba(236,72,153,0.8), rgba(219,39,119,0.9));
  border-color: rgba(236,72,153,0.4);
}

.badge-category-junge-leute {
  background: linear-gradient(135deg, rgba(139,92,246,0.8), rgba(124,58,237,0.9));
  border-color: rgba(139,92,246,0.4);
}

.badge-category-ohne-rabatt {
  background: linear-gradient(135deg, rgba(71,85,105,0.8), rgba(51,65,85,0.9));
  border-color: rgba(100,116,139,0.4);
}

.badge-category-60plus {
  background: linear-gradient(135deg, rgba(245,158,11,0.8), rgba(217,119,6,0.9));
  border-color: rgba(245,158,11,0.4);
}

.badge-category-business {
  background: linear-gradient(135deg, rgba(6,182,212,0.8), rgba(8,145,178,0.9));
  border-color: rgba(6,182,212,0.4);
}

.badge-category-blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.8), rgba(37,99,235,0.9));
  border-color: rgba(59,130,246,0.4);
}

.badge-category-internet-festnetz {
  background: linear-gradient(135deg, rgba(16,185,129,0.8), rgba(5,150,105,0.9));
  border-color: rgba(16,185,129,0.4);
}

.badge-category-vdsl {
  background: linear-gradient(135deg, rgba(99,102,241,0.8), rgba(79,70,229,0.9));
  border-color: rgba(99,102,241,0.4);
}

.badge-category-kabel {
  background: linear-gradient(135deg, rgba(244,63,94,0.8), rgba(225,29,72,0.9));
  border-color: rgba(244,63,94,0.4);
}

.badge-category-glasfaser {
  background: linear-gradient(135deg, rgba(34,211,238,0.8), rgba(6,182,212,0.9));
  border-color: rgba(34,211,238,0.4);
}

.badge-category-home-spot {
  background: linear-gradient(135deg, rgba(251,146,60,0.8), rgba(234,88,12,0.9));
  border-color: rgba(251,146,60,0.4);
}

/* ======================== CHATGPT FEATURE ======================== */
.chatgpt-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.chatgpt-text {
  font-size: 0.7rem;
  color: #86efac;
  line-height: 1.3;
}

/* ======================== CONNECTION FEE PINK ======================== */
.connection-fee-free-pink {
  color: #f472b6;
  text-shadow: 0 0 8px rgba(244,114,182,0.4);
}

/* ======================== CARD EFFECTS (Bubbles & Snow on cards) ======================== */
.card-bubbles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  border-radius: inherit;
}

.card-bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186,230,253,0.2), rgba(34,211,238,0.06));
  border: 1px solid rgba(125,211,252,0.1);
  animation: card-bubble-rise 6s ease-in-out infinite;
  opacity: 0;
}

@keyframes card-bubble-rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-200px); opacity: 0; }
}

.card-snow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  border-radius: inherit;
}

.card-snowpoint {
  position: absolute;
  top: -5px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  animation: card-snow-fall 5s linear infinite;
}

@keyframes card-snow-fall {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { transform: translateY(300px); opacity: 0; }
}

.card-snow-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15));
  border-radius: 0 0 inherit inherit;
}

/* ======================== STANDALONE BUBBLE & SNOW EFFECTS ======================== */
.bubble-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186,230,253,0.15), rgba(34,211,238,0.04));
  border: 1px solid rgba(125,211,252,0.08);
  opacity: 0;
}

@keyframes bubble-rise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100vh) scale(1.1); opacity: 0; }
}

@keyframes bubble-fall {
  0% { transform: translateY(-100vh) scale(0.8); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { transform: translateY(100vh) scale(1.1); opacity: 0; }
}

@keyframes bubble-drift-left {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  10% { opacity: 0.5; }
  100% { transform: translate(-200px, -100vh) scale(1); opacity: 0; }
}

@keyframes bubble-drift-right {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  10% { opacity: 0.5; }
  100% { transform: translate(200px, -100vh) scale(1); opacity: 0; }
}

.snow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: white;
  opacity: 0;
  pointer-events: none;
}

@keyframes snowfall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.3; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes snowfall-up {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  100% { transform: translateY(-20px) rotate(360deg); opacity: 0; }
}

@keyframes snowfall-left {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  100% { transform: translate(-100px, 100vh) rotate(360deg); opacity: 0; }
}

@keyframes snowfall-right {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  100% { transform: translate(100px, 100vh) rotate(360deg); opacity: 0; }
}

/* ======================== COMPACT HEADER EFFECTS ======================== */
.compact-header-blur-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.compact-bubble {
  position: absolute;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186,230,253,0.12), rgba(34,211,238,0.04));
  border: 1px solid rgba(125,211,252,0.06);
  animation: compact-float 8s ease-in-out infinite;
  opacity: 0;
}

@keyframes compact-float {
  0%, 100% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.4; }
  50% { transform: translateY(-20px); opacity: 0.3; }
  80% { opacity: 0.1; }
}

.compact-snow {
  position: absolute;
  top: -3px;
  border-radius: 50%;
  background: white;
  animation: compact-snow-fall 4s linear infinite;
  opacity: 0;
}

@keyframes compact-snow-fall {
  0% { transform: translateY(-3px); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(50px); opacity: 0; }
}

/* ======================== SNOW LAYER VARIANTS (Header mountains) ======================== */
.snow-layer-1 { /* vorderste Schneeschicht */ }
.snow-layer-2 { /* mittlere Schneeschicht */ }
.snow-layer-3 { /* hinterste Schneeschicht */ }

/* ======================== SNOWMAN SVG ======================== */
.snowman-winter-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.snowman-mouth-puff {
  animation: snowman-puff-pulse 3s ease-in-out infinite;
}

@keyframes snowman-puff-pulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ======================== WINTER HOUSE ======================== */
.winter-house {
  display: block;
}

.window-light {
  animation: window-flicker 4s ease-in-out infinite;
}

@keyframes window-flicker {
  0%, 100% { opacity: 0.9; }
  30% { opacity: 0.6; }
  50% { opacity: 0.95; }
  70% { opacity: 0.5; }
}

/* ======================== LED LIGHT COLORS (Christmas tree) ======================== */
.led-red { animation-delay: 0s; }
.led-green { animation-delay: 0.4s; }
.led-cyan { animation-delay: 2s; }
.led-pink { animation-delay: 0.8s; }
.led-yellow { animation-delay: 0.6s; }
.led-purple { animation-delay: 2.2s; }
.led-blue { animation-delay: 0.2s; }

/* ======================== SANTA & MASCOTS ======================== */
.santa-phone {
  /* SVG group — positioned by parent transform */
}

.santa-bubbles {
  /* positioned relative to santa container */
}

.o2-mascots-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  pointer-events: none;
}

.o2-mascots-img {
  max-width: 120px;
  height: auto;
}

/* ======================== WAVE COLOR & LINE VARIANTS ======================== */
.wave-cobalt { /* filled wave path — color set via SVG fill */ }
.wave-darkblue { /* filled wave path */ }
.wave-midblue { /* filled wave path */ }
.wave-neon-blue { /* filled wave path */ }

.wave-neon-cyan {
  animation: wave-glow-pulse 4s ease-in-out infinite;
}

@keyframes wave-glow-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.wave-neon-light { /* filled wave path */ }

.wave-line-1 { /* SVG stroke line — color set inline */ }
.wave-line-2 { /* SVG stroke line */ }
.wave-line-3 { /* SVG stroke line */ }
.wave-line-4 { /* SVG stroke line */ }

.wave-line-top {
  animation: wave-line-glow 3s ease-in-out infinite;
}

@keyframes wave-line-glow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ======================== EVENT SCENE VARIANTS ======================== */
.silvester-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.newyear-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.summer-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ======================== FIREWORKS (Top-level header) ======================== */
.fireworks-top {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

.explosion-only {
  position: absolute;
  animation: firework-burst 1.5s ease-out forwards;
}

@keyframes firework-burst {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ======================== LUCKY PIG ======================== */
.lucky-pig {
  position: absolute;
  bottom: 5px;
  right: 15%;
  z-index: 8;
  pointer-events: none;
}

.pig-svg {
  width: 50px;
  height: 60px;
  display: block;
}

.pig-snout {
  animation: pig-snout-twitch 3s ease-in-out infinite;
}

@keyframes pig-snout-twitch {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pig-o2-bubbles {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.pig-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186,230,253,0.25), rgba(34,211,238,0.08));
  border: 1px solid rgba(125,211,252,0.15);
  animation: pig-bubble-float 4s ease-in-out infinite;
  opacity: 0;
}

.pig-bubble-1 { width: 10px; height: 10px; left: -5px; animation-delay: 0s; }
.pig-bubble-2 { width: 7px; height: 7px; left: 5px; animation-delay: 1s; }
.pig-bubble-3 { width: 12px; height: 12px; left: -8px; animation-delay: 2s; }

@keyframes pig-bubble-float {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.pig-mouth { /* SVG element */ }

/* ======================== EASTER ITEM ======================== */
.easter-item {
  position: absolute;
  top: -30px;
  pointer-events: none;
  animation: easter-float 12s linear infinite;
  opacity: 0;
}

@keyframes easter-float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  5% { opacity: 0.8; }
  95% { opacity: 0.3; }
  100% { transform: translateY(100vh) rotate(20deg); opacity: 0; }
}

/* ======================== COUNTDOWN WIDGETS ======================== */
/* Silvester Countdown (Widgets.jsx) */
.silvester-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.countdown-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.countdown-unit {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(186,230,253,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-separator {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(186,230,253,0.3);
  margin: 0 0.1rem;
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* CountdownMini (header inline) */
.countdown-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
}

.countdown-mini-header {
  display: flex;
  align-items: center;
  gap: 3px;
}

.countdown-mini-icon {
  width: 10px;
  height: 10px;
}

.countdown-mini-year {
  font-size: 0.55rem;
  font-weight: 700;
  color: #fbbf24;
}

.countdown-mini-blocks {
  display: flex;
  align-items: center;
  gap: 2px;
}

.countdown-mini-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-mini-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-mini-label {
  font-size: 0.4rem;
  color: rgba(186,230,253,0.4);
  text-transform: uppercase;
}

.countdown-mini-sep {
  font-size: 0.55rem;
  color: rgba(251,191,36,0.3);
  font-weight: 700;
}

/* Countdown Widget (Glass card — SilvesterCountdown.jsx widget) */
.countdown-widget-glass {
  background: rgba(6,60,136,0.3);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-icon {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.countdown-widget-year {
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,0.4);
}

.countdown-widget-timer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.countdown-widget-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 2.5rem;
}

.countdown-widget-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.countdown-widget-txt {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(186,230,253,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-widget-sep {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(186,230,253,0.3);
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* ======================== MENU FIREWORK EFFECTS ======================== */
.menu-fireworks-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.menu-firework-explosion {
  position: absolute;
  width: 60px;
  height: 60px;
}

.menu-firework-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: menu-spark-fly 1s ease-out forwards;
  opacity: 0;
}

@keyframes menu-spark-fly {
  0% { transform: translate(-50%, -50%) translate(0, 0); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--spark-x, 30px), var(--spark-y, -30px)); opacity: 0; }
}

.menu-firework-center {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: menu-center-pulse 0.8s ease-out forwards;
}

@keyframes menu-center-pulse {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(2); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* ======================== MENU CHARACTER (SVG & Bubbles) ======================== */
.menu-character-svg {
  width: 60px;
  height: 70px;
  display: block;
  margin: 0 auto;
}

.menu-character-bubbles {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.menu-o2-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186,230,253,0.2), rgba(34,211,238,0.06));
  border: 1px solid rgba(125,211,252,0.1);
  animation: menu-bubble-rise 6s ease-in-out infinite;
  opacity: 0;
}

/* ======================== EDIT MODAL — Inner Content (53 missing classes) ======================== */
.edit-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
}

.premium-modal {
  background: linear-gradient(180deg, #020617 0%, #0a1929 50%, #0c2240 100%);
  border: 1px solid rgba(56,189,248,0.15);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(34,211,238,0.1);
}

.modal-liquid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  animation: liquid-float 10s ease-in-out infinite;
}

.liquid-blob-1 {
  width: 200px; height: 200px;
  background: #0ea5e9;
  top: -50px; left: -50px;
}

.liquid-blob-2 {
  width: 150px; height: 150px;
  background: #22d3ee;
  bottom: -30px; right: -30px;
  animation-delay: 3s;
}

.liquid-blob-3 {
  width: 180px; height: 180px;
  background: #6366f1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes liquid-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.modal-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(186,230,253,0.1), transparent);
  border: 1px solid rgba(125,211,252,0.06);
  pointer-events: none;
  animation: modal-bubble-float 8s ease-in-out infinite;
  opacity: 0;
}

@keyframes modal-bubble-float {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.4; }
  100% { transform: translateY(-100px); opacity: 0; }
}

.modal-snow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.modal-snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 10px;
  animation: modal-snow-drift 6s linear infinite;
  opacity: 0;
}

@keyframes modal-snow-drift {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  100% { transform: translateY(100%) rotate(360deg); opacity: 0; }
}

.premium-tab {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: rgba(186,230,253,0.5);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  position: relative;
}

.promo-input {
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.2);
}

.premium-option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(14,165,233,0.04);
  border: 1px solid rgba(56,189,248,0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.premium-option-card:hover {
  background: rgba(14,165,233,0.1);
  border-color: rgba(56,189,248,0.2);
}

.option-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,165,233,0.1);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.option-label {
  font-size: 0.8rem;
  color: #bae6fd;
}

.option-check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(56,189,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-new {
  border-style: dashed;
  border-color: rgba(56,189,248,0.15);
  color: rgba(125,211,252,0.4);
}

.add-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.premium-feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.premium-feature-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: rgba(14,165,233,0.06);
  border: 1px solid rgba(56,189,248,0.1);
  font-size: 0.72rem;
  color: #bae6fd;
  cursor: pointer;
  transition: all 0.2s;
}

.premium-feature-chip:hover {
  background: rgba(14,165,233,0.12);
}

.feature-icon-wrap {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.feature-text {
  white-space: nowrap;
}

.feature-check-mark {
  width: 14px;
  height: 14px;
  color: #22d3ee;
}

.premium-add-feature {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-feature-input-wrap {
  flex: 1;
  position: relative;
}

.premium-feature-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(14,165,233,0.06);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.premium-feature-input:focus {
  border-color: rgba(34,211,238,0.4);
}

.add-feature-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(56,189,248,0.2);
  color: #7dd3fc;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}

.add-feature-btn:hover {
  background: rgba(14,165,233,0.25);
}

.premium-active-features {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.active-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(14,165,233,0.04);
  font-size: 0.75rem;
  color: #bae6fd;
}

.feature-number {
  color: rgba(125,211,252,0.3);
  font-size: 0.65rem;
  min-width: 1.25rem;
}

.feature-name {
  flex: 1;
}

.feature-delete-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(239,68,68,0.1);
  color: #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.feature-delete-btn:hover {
  background: rgba(239,68,68,0.25);
}

.premium-empty-state {
  text-align: center;
  padding: 1.5rem;
  color: rgba(125,211,252,0.3);
  font-size: 0.8rem;
}

.feature-count {
  font-size: 0.65rem;
  color: rgba(125,211,252,0.4);
  font-weight: 500;
}

/* Design Cards (Theme preview) */
.premium-design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.premium-design-card {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(56,189,248,0.1);
  background: rgba(14,165,233,0.04);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.premium-design-card:hover {
  border-color: rgba(56,189,248,0.3);
}

.design-preview {
  height: 60px;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  position: relative;
}

.design-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #bae6fd;
}

.standard-preview {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(6,60,136,0.3));
}

.neon-card {
  border-color: rgba(34,211,238,0.3);
}

.neon-preview {
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(6,182,212,0.3));
  box-shadow: inset 0 0 15px rgba(34,211,238,0.1);
}

.minimal-preview {
  background: rgba(30,41,59,0.5);
}

.dark-card {
  border-color: rgba(100,116,139,0.3);
}

.dark-preview {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.preview-line {
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background: rgba(186,230,253,0.2);
}

.preview-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(186,230,253,0.15);
}

.preview-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.3;
}

.preview-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(186,230,253,0.3);
}

/* Icon Style Selection */
.premium-icon-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.premium-icon-style {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(56,189,248,0.1);
  background: rgba(14,165,233,0.04);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.premium-icon-style:hover {
  border-color: rgba(56,189,248,0.3);
}

.icon-style-preview {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.edit-lightbox-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: 1px solid rgba(56,189,248,0.15);
  background: rgba(14,165,233,0.08);
  color: #7dd3fc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.edit-lightbox-icon-btn:hover {
  background: rgba(14,165,233,0.2);
}

.icon-wrapper {
  width: 20px;
  height: 20px;
}

/* triple layout modifier */
.triple {
  grid-template-columns: repeat(3, 1fr);
}

/* ======================== FILTER BAR ======================== */
.tef-filter-bar {
  position: relative;
  z-index: 20;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.tef-filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 1200px;
  margin: 0 auto;
}

.tef-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tef-filter-row--sub {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(56, 189, 248, 0.15);
}

.tef-filter-search-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tef-filter-search-pill:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #bae6fd;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.tef-filter-search-pill-hint {
  display: flex;
  gap: 0.2rem;
  margin-left: 0.5rem;
  opacity: 0.7;
}

.tef-search-hint-key {
  background: rgba(2, 6, 23, 0.5);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tef-filter-active-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
  font-size: 0.85rem;
}

.tef-filter-active-chip-x {
  background: transparent;
  border: none;
  color: #d8b4fe;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tef-filter-active-chip-x:hover {
  color: #f3e8ff;
}

.tef-filter-divider {
  width: 1px;
  height: 24px;
  background: rgba(56, 189, 248, 0.15);
  margin: 0 0.25rem;
}

.tef-filter-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.tef-filter-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.1);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tef-filter-pill:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border-color: rgba(56, 189, 248, 0.3);
}

.tef-filter-pill.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.tef-filter-pill--brand.active.tef-filter-pill--o2 {
  background: rgba(37, 99, 235, 0.15);
  border-color: #60A5FA;
  color: #60A5FA;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.tef-filter-pill--brand.active.tef-filter-pill--ss {
  background: rgba(225, 29, 72, 0.1);
  border-color: #fb7185;
  color: #fb7185;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

.tef-filter-pill--sub {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: rgba(30, 41, 59, 0.4);
}

.tef-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tef-pill-dot--o2 {
  background: #60A5FA;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.tef-pill-dot--ss {
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.6);
}

.tef-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  width: 14px;
  height: 14px;
}
