/* ==========================================================================
   SPIRIT GANG — HETI ELÉRHETŐSÉG NAPTÁR (VIBRANT RAW LANDSCAPE & RESPONSIVE)
   Eredeti élénk festett háttérkép (sötétítés nélkül),
   700%-os Matematikailag Folytonos Belső Neon Sugár az Összes Napon Át,
   Áttetsző Gaussian Blur Panelek, Liquid Piros Törlés Animáció,
   65% Törlés + 35% Studio Gombok, Mobil Napi Tab Rendszer
   ========================================================================== */

:root {
  /* Alapszínek és transzparens üvegfelületek */
  --bg-deep: #0a1024;
  --bg-main: #0e1834;
  --bg-surface: rgba(18, 30, 66, 0.72);
  --bg-surface-gloss: rgba(30, 50, 108, 0.78);
  --bg-surface-subtle: rgba(40, 68, 140, 0.65);
  --bg-hover: rgba(50, 84, 168, 0.75);

  /* Spirit Gang Neon Színek */
  --sg-cyan: #00f0ff;
  --sg-cyan-light: #80f7ff;
  --sg-cyan-glow: rgba(0, 240, 255, 0.7);
  --sg-cyan-border: rgba(0, 240, 255, 0.85);

  --sg-magenta: #ff007f;
  --sg-magenta-light: #ff54b8;
  --sg-magenta-glow: rgba(255, 0, 127, 0.7);
  --sg-magenta-border: rgba(255, 0, 127, 0.85);

  /* 3+ Fős Co-op Csúcsszín */
  --coop-green: #10b981;
  --coop-green-light: #34d399;
  --coop-green-glow: rgba(16, 185, 129, 0.8);

  /* Keretek és Fények */
  --border-neon-cyan: rgba(0, 240, 255, 0.65);
  --border-neon-magenta: rgba(255, 0, 127, 0.6);
  --border-light: rgba(255, 255, 255, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.15);

  /* Szövegszínek */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-disabled: rgba(255, 255, 255, 0.3);

  /* Lekerekítések */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ==========================================================================
   ALAP BEÁLLÍTÁSOK & TELJESEN EREDETI VILÁGOS HÁTTÉRKÉP (SÖTÉTÍTÉS NÉLKÜL!)
   ========================================================================== */
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-deep);
  /* EREDETI, TISZTA FESTETT TÁJKÉP — SEMMILYEN SÖTÉTÍTŐ ÁRNYÉK VAGY ÁTSZÍNEZÉS NÉLKÜL */
  background-image: url('/static/images/bg_landscape.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   TÁBLÁZAT ELŐTT LEBEGŐ POR PARTICLES CANVAS
   ========================================================================== */
.ambient-dust-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.ambient-dust-fg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
}

/* ==========================================================================
   12+ LEBEGŐ MAGENTA KRISTÁLY
   ========================================================================== */
.amethyst-decor {
  will-change: opacity;
  transform: translateZ(0);
  position: fixed;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
  filter: drop-shadow(0 0 16px rgba(255, 0, 127, 0.75)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  animation: crystalGlowPulse 4.5s ease-in-out infinite alternate;
}

/* GPU-OPTIMALIZÁLT STATIKUS DROP-SHADOW + KÖNNYŰ OPACITY PULZÁLÁS (NINCS PER-FRAME FILTER ÚJRARASZTEREZÉS) */
@keyframes crystalGlowPulse {
  0% {
    opacity: 0.72;
    transform: translateZ(0);
  }
  100% {
    opacity: 0.95;
    transform: translateZ(0);
  }
}

.amethyst-bottom-left  { left: -20px; bottom: -20px; width: 220px; height: 260px; }
.amethyst-bottom-right { right: -20px; bottom: -20px; width: 250px; height: 270px; }
.amethyst-top-left     { left: 5px; top: -5px; width: 170px; height: 170px; }
.amethyst-top-right    { right: 5px; top: -5px; width: 170px; height: 170px; }
.amethyst-mid-left     { left: 0; top: 50%; transform: translateY(-50%); width: 125px; height: 145px; }
.amethyst-mid-right    { right: 0; top: 50%; transform: translateY(-50%); width: 125px; height: 145px; }
.amethyst-bottom-center { left: 50%; bottom: 0; transform: translateX(-50%); width: 140px; height: 90px; }
.amethyst-top-mid-left { left: 28%; top: 6px; width: 70px; height: 85px; }
.amethyst-top-mid-right { right: 28%; top: 6px; width: 70px; height: 85px; }
.amethyst-float-left-upper { left: 13%; top: 17%; width: 80px; height: 95px; }
.amethyst-float-right-upper { right: 13%; top: 17%; width: 80px; height: 95px; }
.amethyst-float-bottom-mid { left: 36%; bottom: 12px; width: 90px; height: 75px; }

.crystal-cluster-svg, .crystal-mini-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.floating-shard-1 { animation: shardFloatAnim1 4s ease-in-out infinite alternate; transform-origin: center; }
.floating-shard-2 { animation: shardFloatAnim2 4.6s ease-in-out infinite alternate; transform-origin: center; }
.floating-shard-3 { animation: shardFloatAnim3 3.8s ease-in-out infinite alternate; transform-origin: center; }

@keyframes shardFloatAnim1 {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-12px) rotate(6deg) scale(1.08); }
}

@keyframes shardFloatAnim2 {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-16px) rotate(-8deg) scale(1.12); }
}

@keyframes shardFloatAnim3 {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(10px) rotate(5deg) scale(1.06); }
}

/* ==========================================================================
   FŐ ALKALMAZÁS KONTÉNER
   ========================================================================== */
.calendar-app {
  width: 100%;
  max-width: 1740px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

/* ==========================================================================
   FEJLÉC — ÁTTETSZŐ GAUSSIAN BLUR FELÜLET & HANGSÚLYOS HÉT VÁLASZTÓ
   ========================================================================== */
.calendar-header {
  position: relative;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  margin-left: 94px; /* Pontosan a Hétfő oszlop kezdetétől a Vasárnap végéig! Bal felső sarok az idő oszlop felett üres hely! */
  margin-bottom: 12px;
  background: rgba(16, 28, 64, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-neon-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--sg-cyan);
  box-shadow: 0 0 16px var(--sg-cyan-glow);
  background: #080f20;
  flex-shrink: 0;
}

.sg-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 16px var(--sg-cyan-glow);
  line-height: 1.1;
}

.header-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-cyan-light);
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* HANGSÚLYOS TÁGAS HÉT NAVIGÁCIÓ & PROFILVÁLASZTÓ */
.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  min-height: 64px;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 18, 48, 0.88);
  border: 2px solid var(--sg-cyan);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  height: 64px;
  min-height: 64px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), inset 0 0 12px rgba(0, 240, 255, 0.15);
  box-sizing: border-box;
}

.week-display-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 150px;
}

.week-status-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #071120;
  background: var(--sg-cyan);
  padding: 2px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  box-shadow: 0 0 8px var(--sg-cyan);
}

.week-status-badge.future {
  background: var(--sg-magenta);
  color: #ffffff;
  box-shadow: 0 0 10px var(--sg-magenta);
}

.week-display {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  letter-spacing: 0.02em;
}

.week-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.week-nav-btn:hover {
  background: var(--sg-cyan);
  color: #080f20;
  box-shadow: 0 0 16px var(--sg-cyan-glow);
}

/* NAGY AVATAROS PROFILVÁLASZTÓ (PROFILOD FELIRAT NÉLKÜL, KÉP NAGYBAN) */
.user-select-bar {
  position: relative;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 18, 48, 0.88);
  border: 1.5px solid var(--border-neon-cyan);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  height: 64px;
  min-height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.12);
  position: relative;
  box-sizing: border-box;
}

.active-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sg-cyan);
  box-shadow: 0 0 14px var(--sg-cyan-glow);
  z-index: 2;
  position: relative;
}

.avatar-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--sg-cyan), var(--sg-magenta), var(--sg-cyan));
  animation: spinAvatarRing 6s linear infinite;
  z-index: 1;
  filter: blur(1.5px);
  opacity: 0.85;
}

@keyframes spinAvatarRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.custom-select-container {
  position: relative;
  z-index: 700;
  position: relative;
  min-width: 170px;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus {
  border-color: var(--sg-cyan);
  background: rgba(0, 240, 255, 0.16);
  box-shadow: 0 0 14px var(--sg-cyan-glow);
}

.select-chevron {
  width: 18px;
  height: 18px;
  color: var(--sg-cyan);
  transition: transform 0.2s ease;
}

.custom-select-container.open .select-chevron {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(8, 16, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--sg-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 240, 255, 0.5);
  z-index: 99999;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--sg-cyan) transparent;
}

.custom-select-dropdown.hidden {
  display: none !important;
}

.dropdown-members-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-member-item:hover {
  background: rgba(0, 240, 255, 0.2);
  color: var(--sg-cyan-light);
  transform: translateX(4px);
}

.dropdown-member-item.active {
  background: rgba(0, 240, 255, 0.28);
  border: 1px solid var(--sg-cyan);
}

.member-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--sg-cyan);
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 6px 0;
}

.dropdown-item-other {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--sg-magenta-light);
  transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-item-other:hover {
  background: rgba(255, 0, 127, 0.2);
  color: #ffffff;
  transform: translateX(4px);
}

.custom-name-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-name-wrapper.hidden,
.hidden {
  display: none !important;
}

.custom-name-input {
  background: #081028;
  color: #ffffff;
  border: 1.5px solid var(--sg-magenta);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  outline: none;
  width: 140px;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.confirm-name-btn {
  background: var(--sg-magenta);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--sg-magenta);
}

.confirm-name-btn:hover {
  filter: brightness(1.2);
}

.header-right {
  display: flex;
  align-items: center;
}

.best-time-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--sg-cyan-light);
  text-transform: uppercase;
}

.best-time-slot {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  line-height: 1.2;
}

.best-time-ratio {
  font-size: 14px;
  font-weight: 800;
  color: var(--sg-magenta-light);
}

/* ==========================================================================
   FŐ NAPTÁR SZEKCIÓ ÉS LAYOUT SOR
   ========================================================================== */
.calendar-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.calendar-layout-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.calendar-scroll-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.calendar-lanes-layout {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: stretch;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================================================
   IDŐ OSZLOP — HÁTTÉR NÉLKÜLI KONTÉNER, EGYEDI GLOSSY POPUP CELLÁKKAL
   ========================================================================== */
.time-lane-column {
  width: 84px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

.time-lane-column:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* BAL FELSŐ ÜRES SAROK HELYMEGŐRZŐ */
.time-lane-header {
  flex-shrink: 0;
  height: 68px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.time-lane-cells {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 0;
}

.time-lane-cell {
  height: 48px;
  min-height: 48px;
  max-height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 950;
  color: #ffffff;
  background: rgba(20, 36, 82, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  user-select: none;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.75), 0 2px 4px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.time-lane-cell:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--sg-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 20;
}

/* ==========================================================================
   7 NAP OSZLOP — MATEMATIKAILAG 700%-OS SIKLÓ FOLYTONOS NEON FÉNYSUGÁR!
   ========================================================================== */
.days-lanes-container {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.day-lane {
  position: relative;
  z-index: 2;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-neon-cyan);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  

  /* 700%-OS SIKLÓ FOLYTONOS NEON FÉNYSUGÁR A PANELEKEN BELÜL */
  background-image:
    linear-gradient(135deg, 
      rgba(0, 240, 255, 0.46) 0%, 
      rgba(0, 195, 255, 0.35) 20%, 
      rgba(147, 51, 234, 0.32) 46%, 
      rgba(217, 70, 239, 0.35) 72%, 
      rgba(255, 0, 127, 0.52) 100%
    ),
    linear-gradient(180deg, rgba(18, 30, 68, 0.72) 0%, rgba(12, 20, 48, 0.82) 100%);
  background-size: 700% 100%, 100% 100%;
  background-repeat: no-repeat;
}

.day-lane-hetfo     { background-position: 0% 0%, 0 0; }
.day-lane-kedd      { background-position: 16.666% 0%, 0 0; }
.day-lane-szerda    { background-position: 33.333% 0%, 0 0; }
.day-lane-csutortok { background-position: 50% 0%, 0 0; }
.day-lane-pentek    { background-position: 66.666% 0%, 0 0; }
.day-lane-szombat   { background-position: 83.333% 0%, 0 0; border-color: var(--border-neon-magenta); }
.day-lane-vasarnap  { background-position: 100% 0%, 0 0; border-color: var(--border-neon-magenta); }

.day-lane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sg-cyan), transparent);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px var(--sg-cyan);
  z-index: 5;
  pointer-events: none;
}

.day-lane-szombat::before,
.day-lane-vasarnap::before {
  background: linear-gradient(90deg, transparent, var(--sg-magenta), transparent);
  box-shadow: 0 0 12px var(--sg-magenta);
}

.day-lane:hover {
  transform: translateY(-6px) scale(1.012);
  z-index: 30;
  border-color: var(--sg-cyan);
}

/* NAP FEJLÉC — KISEBB DÁTUMMAL A NAP ALATT */
.day-lane-header {
  flex-shrink: 0;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(24, 40, 88, 0.82);
  border-bottom: 2px solid var(--border-neon-cyan);
  position: relative;
  user-select: none;
}

.day-lane-szombat .day-lane-header,
.day-lane-vasarnap .day-lane-header {
  border-bottom-color: var(--border-neon-magenta);
}

.day-name {
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 240, 255, 0.7);
  line-height: 1.1;
}

.day-lane-szombat .day-name,
.day-lane-vasarnap .day-name {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 0, 127, 0.8);
}

/* SOKKAL KISEBB DÁTUM A HÉTFŐ / NAPOK ALATT */
.day-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--sg-cyan-light);
  background: rgba(0, 240, 255, 0.22);
  border: 1px solid rgba(0, 240, 255, 0.55);
  padding: 1px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* NAP CELLÁK */
.day-lane-cells {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cal-cell {
  height: 48px;
  min-height: 48px;
  max-height: 52px;
  flex: none;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none;
}

.cal-cell * {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
}

.cal-cell:hover:not(.cell-past-locked) {
  background-color: rgba(255, 255, 255, 0.14);
}

.cal-cell:last-child {
  border-bottom: none;
}

.empty-dash {
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
}

/* MÚLTBELI TÉNYLEGESEN LEJÁRT ÓRÁK — 100% TÖMÖR SZÜRKE, KÖZÉPEN NAGY LAKAT IKONNAL */
.cal-cell.cell-past-locked {
  background: #181d28 !important;
  border: 1px solid #2d3546 !important;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.85) !important;
  cursor: not-allowed !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.95 !important;
}

.cal-cell.cell-past-locked .empty-dash {
  display: none !important;
}

.cell-expired-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  color: #94a3b8 !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) !important;
}

/* Titkos admin módban a múltbeli cellák is szerkeszthetők */
body.is-admin-active .cal-cell.cell-past-locked {
  cursor: pointer !important;
  opacity: 0.72 !important;
  filter: none !important;
}

/* ==========================================================================
   3+ TAG KÖZÖS RÁÉRÉSE — ÉLÉNK ZÖLD SZÍN + LEBEGŐ KRISTÁLYOK
   ========================================================================== */
/* 4+ FŐS KÖZÖS CSÚCSIDŐPONT — ELTÉRŐ ELEKTROMOS LIME / CHARTREUSE ARANY-ZÖLD (TÖKÉLETESEN MEGKÜLÖNBÖZTETHETŐ!) */
.cal-cell.is-coop-highlight {
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.38) 0%, rgba(101, 163, 13, 0.52) 100%) !important;
  border: 2.5px solid #bef264 !important;
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.8), inset 0 0 12px rgba(163, 230, 53, 0.45) !important;
  z-index: 10 !important;
}

@keyframes coopSlotPulse {
  0% { opacity: 0.88; transform: translateZ(0); }
  100% { opacity: 1; transform: translateZ(0); }
}

.coop-crystals-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 20;
}

.coop-shard {
  position: absolute;
  width: 12px;
  height: 16px;
  filter: drop-shadow(0 0 8px #ff007f);
  will-change: transform;
  transform: translateZ(0);
}

.coop-shard-tl { top: -4px; left: 4px; animation: shardFloatTL 3s ease-in-out infinite; }
.coop-shard-br { bottom: -4px; left: 20px; animation: shardFloatBR 3.2s ease-in-out infinite 0.5s; }
.coop-shard-tr { top: -4px; right: 28px; width: 10px; height: 14px; animation: shardFloatTR 2.8s ease-in-out infinite 1s; }

@keyframes shardFloatTL {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-5px) rotate(-15deg) scale(1.15); }
}

@keyframes shardFloatBR {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(5px) rotate(20deg) scale(1.18); }
}

@keyframes shardFloatTR {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-4px) rotate(12deg) scale(1.12); }
}

/* MÁS TAGOK AVATARJAI */
.voters-cluster {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  z-index: 8;
  pointer-events: none;
}

.mini-discord-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #1a233a;
  border: 2px solid #070e1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  display: block;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  margin-left: -8px;
}

.more-voters-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1a233a;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  cursor: pointer;
  margin-left: -8px;
}

/* SAJÁT RÁÉRÉS BLOKK — ÉLÉNK TISZTA SMARAGD/NEON ZÖLD (TELJESEN ZÖLD!) */
.cal-cell.is-selected {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.45) 0%, rgba(22, 163, 74, 0.58) 100%) !important;
  border-left: 3.5px solid #22c55e !important;
  border-right: 3.5px solid #22c55e !important;
  border-bottom: none !important;
  box-shadow: inset 0 0 16px rgba(34, 197, 94, 0.4) !important;
}

.cal-cell.is-selected.block-top {
  border-top: 3.5px solid #22c55e !important;
  border-top-left-radius: var(--radius-sm) !important;
  border-top-right-radius: var(--radius-sm) !important;
}

.cal-cell.is-selected.block-bottom {
  border-bottom: 3.5px solid #22c55e !important;
  border-bottom-left-radius: var(--radius-sm) !important;
  border-bottom-right-radius: var(--radius-sm) !important;
}

.cal-cell.is-drag-preview {
  background-color: rgba(34, 197, 94, 0.4) !important;
  outline: 2.5px dashed #22c55e !important;
  outline-offset: -2px;
}

.cal-cell.is-drag-remove-preview {
  background-color: rgba(239, 68, 68, 0.4) !important;
  outline: 2.5px dashed #ef4444 !important;
  outline-offset: -2px;
}

.block-time-start, .block-time-end {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  color: #022c22 !important;
  background: #22c55e !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9) !important;
  pointer-events: none !important;
  z-index: 7 !important;
  white-space: nowrap !important;
}

.block-time-start { top: 3px; }
.block-time-end   { bottom: 3px; }

.block-v-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.8), #22c55e, rgba(34, 197, 94, 0.8)) !important;
  box-shadow: 0 0 10px #22c55e !important;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.block-top .block-v-line { top: 20px; }
.block-bottom .block-v-line { bottom: 20px; }

.cell-has-cam-center .block-v-line {
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(50% - 18px), transparent calc(50% - 18px), transparent calc(50% + 18px), #000 calc(50% + 18px), #000 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(50% - 18px), transparent calc(50% - 18px), transparent calc(50% + 18px), #000 calc(50% + 18px), #000 100%);
}

.cell-has-cam-border-top .block-v-line { bottom: 18px !important; }
.cell-has-cam-border-bottom .block-v-line { top: 18px !important; }

.block-camera-icon {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #22c55e !important;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.95)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
  z-index: 6;
  pointer-events: none;
  animation: cameraPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.block-camera-icon.cam-mid-center { top: 50%; transform: translate(-50%, -50%); }
.block-camera-icon.cam-mid-border { top: 100%; transform: translate(-50%, -50%); }

.camera-svg-icon { width: 26px; height: 26px; }

@keyframes cameraPopIn {
  0% { transform: translate(-50%, -50%) scale(0.3) rotate(-15deg); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.2) rotate(4deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

/* ==========================================================================
   LIQUID PIROS TÖRLÉS ANIMÁCIÓ (BÖNGÉSZŐS ABLAK HELYETT)
   ========================================================================== */
.liquid-clear-wipe {
  position: absolute;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 0, 51, 0.94) 0%, rgba(185, 28, 28, 0.98) 100%);
  box-shadow: 0 0 60px rgba(255, 0, 51, 0.95), inset 0 0 40px rgba(255, 120, 120, 0.7);
  animation: liquidWavePass 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes liquidWavePass {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    opacity: 0;
  }
  30% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
  75% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    transform: scale(1);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
    transform: scale(1.02);
  }
}

.liquid-trash-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: trashPopPulse 1.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.liquid-trash-icon {
  width: 72px;
  height: 72px;
  color: #ffffff;
  filter: drop-shadow(0 0 20px #ffffff) drop-shadow(0 0 35px #ff0051);
}

.liquid-trash-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 20px #ffffff;
}

@keyframes trashPopPulse {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  35% { transform: scale(1.25) rotate(4deg); opacity: 1; }
  50% { transform: scale(1) rotate(0deg); opacity: 1; }
  75% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.6) translateY(-20px); opacity: 0; }
}

/* ==========================================================================
   TŰZ MEGSEMMISÍTÉS ANIMÁCIÓ (5 MP HOSSZÚ NYOMÁS UTÁN)
   ========================================================================== */
.fire-incinerate-wipe {
  position: absolute;
  inset: 0;
  z-index: 160;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 69, 0, 0.96) 0%, rgba(220, 38, 38, 0.98) 45%, rgba(120, 15, 15, 0.99) 100%);
  box-shadow: 0 0 80px rgba(255, 69, 0, 0.95), inset 0 0 50px rgba(255, 200, 50, 0.85);
  animation: fireIncinerateSweep 1.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fireIncinerateSweep {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    opacity: 0;
    filter: brightness(2) saturate(1.5);
  }
  25% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    filter: brightness(1.4) saturate(1.3);
  }
  75% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
    transform: scale(1.03);
    filter: brightness(0.7);
  }
}

.fire-incinerate-flames-bg {
  position: absolute;
  inset: -20px;
  background-image: 
    radial-gradient(circle at 15% 90%, rgba(255, 235, 59, 0.8) 0%, rgba(255, 87, 34, 0.6) 25%, transparent 60%),
    radial-gradient(circle at 50% 95%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 152, 0, 0.7) 30%, transparent 65%),
    radial-gradient(circle at 85% 90%, rgba(255, 235, 59, 0.8) 0%, rgba(244, 67, 54, 0.6) 25%, transparent 60%);
  filter: blur(8px);
  animation: fireWaveUndulate 0.4s ease-in-out infinite alternate;
}

@keyframes fireWaveUndulate {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.05) translateY(-8px); }
}

.fire-incinerate-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fireCenterPop 1.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fire-symbol-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffeb3b 40%, #ff5722 75%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px #ffcc00, 0 0 80px #ff3300;
  animation: fireSymbolPuff 0.3s ease-in-out infinite alternate;
}

@keyframes fireSymbolPuff {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}

.fire-flame-svg {
  width: 56px;
  height: 56px;
  color: #b91c1c;
  filter: drop-shadow(0 0 10px #ffffff);
}

.fire-incinerate-title {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 25px #ffffff, 0 0 45px #ffaa00, 0 0 65px #ff1a00;
}

.fire-incinerate-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fef08a;
  text-transform: uppercase;
  text-shadow: 0 0 12px #ff9900;
}

@keyframes fireCenterPop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  25% { transform: scale(1.22) rotate(3deg); opacity: 1; }
  45% { transform: scale(1) rotate(0deg); opacity: 1; }
  75% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(0.7) translateY(-30px); opacity: 0; }
}

/* ==========================================================================
   JOBB OLDALI SÁV (YOUTUBE PANEL ÉS 65%/35% GOMBOK)
   ========================================================================== */
.calendar-sidebar-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 96px; /* A Vasárnap jobb felső sarkához igazítva a táblázattal egy vonalban! */
}

/* YOUTUBE SPIRIT GANG PANEL — GÖRGETHETŐ, HA NEM FÉR KI */
.yt-sidebar-panel:hover {
  transform: translateY(-6px) scale(1.012);
  z-index: 30;
}

.yt-sidebar-panel {
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease, border-color 0.4s ease;
  background: rgba(16, 28, 64, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-neon-magenta);
  border-radius: var(--radius-md);
  padding: 8px 14px 14px 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  overflow: visible !important; /* Nem vágja le a bal szél árnyékát! */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-sidebar-panel::-webkit-scrollbar {
  width: 4px;
}
.yt-sidebar-panel::-webkit-scrollbar-thumb {
  background: var(--sg-magenta);
  border-radius: 4px;
}

.yt-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yt-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 51, 0.22);
  border: 1px solid rgba(255, 0, 51, 0.7);
  padding: 2px 8px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ff3366;
}

.yt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff0033;
  box-shadow: 0 0 8px #ff0033;
  animation: liveDotBlink 1.4s ease-in-out infinite;
}

@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.yt-sub-badge-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

/* ANIMÁLT KÖRVONALÚ LOGÓ & HORIZONTÁLIS NÉV ELRENDEZÉS */
.yt-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px;
}

.yt-avatar-wrap-large {
  position: relative;
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
  margin: 2px 10px 2px -4px;
  z-index: 25;
}

.yt-avatar-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--sg-cyan) 0%, var(--sg-magenta) 50%, var(--sg-cyan) 100%);
  animation: spinGlowRing 6s linear infinite;
  z-index: 1;
  /* Kétoldali illeszkedő árnyék: bal oldalon kék, jobb oldalon magenta! */
  filter: drop-shadow(-14px 0 20px rgba(0, 240, 255, 0.9)) drop-shadow(14px 0 20px rgba(255, 0, 127, 0.9));
}

@keyframes spinGlowRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.yt-avatar-img-large {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 90px;
  max-height: 90px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  display: block;
}

.yt-verified-check-large {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sg-cyan);
  color: #071120;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #081024;
  box-shadow: 0 0 8px var(--sg-cyan);
  z-index: 3;
}

.yt-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.yt-channel-name-large {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-channel-handle-large {
  font-size: 14px;
  font-weight: 700;
  color: var(--sg-cyan-light);
  letter-spacing: 0.02em;
}

/* VALÓS ÉLŐ FELIRATKOZÓ SZÁMLÁLÓ + 20K PROGRESS SÁV */
.yt-counter-card {
  background: rgba(10, 18, 44, 0.85);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-counter-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yt-counter-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.yt-realtime-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
}

.yt-pulse-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.yt-counter-display-wrap {
  position: relative;
}

.yt-counter-number {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

.yt-counter-subtext {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.sub-goal-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.sub-goal-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goal-tag { font-size: 13px; font-weight: 800; color: var(--sg-cyan-light); }
.goal-pct { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 900; color: var(--sg-magenta-light); }

.sub-goal-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.sub-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sg-cyan) 0%, var(--sg-magenta) 100%);
  box-shadow: 0 0 10px var(--sg-magenta);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* QUEST PANELEK (BURGLING GNOMES FRIENDSLOP CHALLENGE-DZSEL) */
.yt-quests-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quest-card {
  background: rgba(10, 18, 44, 0.85);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.quest-card:hover {
  transform: translateY(-2px);
  border-color: var(--sg-cyan);
}

.quest-card-target { border-left: 3.5px solid var(--sg-magenta); }
.quest-card-weekly { border-left: 3.5px solid var(--sg-cyan); }
.quest-card-hype   { border-left: 3.5px solid #f59e0b; }

.quest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quest-icon { font-size: 15px; }

.quest-title-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.quest-status-badge, .quest-reward-badge, .quest-hype-val {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
}

.quest-status-badge {
  background: rgba(255, 0, 127, 0.25);
  border: 1px solid var(--sg-magenta);
  color: var(--sg-magenta-light);
}

.quest-reward-badge {
  background: rgba(0, 240, 255, 0.25);
  border: 1px solid var(--sg-cyan);
  color: var(--sg-cyan-light);
}

.quest-hype-val {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.quest-headline {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.quest-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.quest-hype-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 3px;
}

.quest-hype-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 10px #f59e0b;
}

/* ==========================================================================
   TÁBLÁZAT ALATTI GOMBOK: 65% RÁÉRÉSEK TÖRLÉSE + 35% YOUTUBE STUDIO
   ========================================================================== */
/* ==========================================================================
   LEGJOBB KÖZÖS IDŐ (2 ÓRÁS FELVÉTELI ABLAK) PANEL
   ========================================================================== */
.best-time-panel {
  background: rgba(16, 28, 64, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-neon-cyan);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  min-height: 168px; /* Kicsit magasabb vertikálisan lefelé! */
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, min-height 0.3s ease, border-color 0.4s ease, background-color 0.4s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.best-time-panel:hover {
  transform: translateY(-6px) scale(1.015);
  z-index: 30;
}

/* 3 TAG esetén: meleg arany-sárga lassan pulzáló árnyék */
.best-time-panel.tier-yellow {
  border-color: #f59e0b !important;
  animation: bestCommonYellowPulse 2.8s ease-in-out infinite alternate !important;
}

@keyframes bestCommonYellowPulse {
  0% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.55), 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 200, 0.4);
  }
  100% {
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.95), 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(251, 191, 36, 0.35);
  }
}

/* 4+ TAG esetén: HATALMAS, ÉLÉNK 3D ZÖLD GOMB LÁTVÁNYÚ, SZEMVONZÓ, ANIMÁLT PANEL */
.best-time-panel.tier-green {
  background: linear-gradient(135deg, #052e16 0%, #064e3b 35%, #047857 70%, #059669 100%) !important;
  border: 2.5px solid #22c55e !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.75), 
              0 10px 28px rgba(0, 0, 0, 0.6), 
              inset 0 2px 3px rgba(255, 255, 255, 0.65), 
              inset 0 -3px 8px rgba(0, 0, 0, 0.5) !important;
  animation: megaGreenButtonPulse 2.2s ease-in-out infinite alternate !important;
  position: relative !important;
  overflow: hidden !important;
}

@keyframes megaGreenButtonPulse {
  0% {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.7), 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.65);
    border-color: #22c55e;
    transform: translateZ(0);
  }
  100% {
    box-shadow: 0 0 34px rgba(74, 222, 128, 0.9), 0 10px 28px rgba(0, 0, 0, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.75);
    border-color: #4ade80;
    transform: translateZ(0);
  }
}

.best-time-panel.tier-green::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: megaGreenShine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes megaGreenShine {
  0%, 60% { left: -120%; }
  85%, 100% { left: 160%; }
}

.best-time-panel.tier-green .best-time-glow-icon {
  font-size: 20px !important;
  color: #a3e635 !important;
  filter: drop-shadow(0 0 10px #4ade80) drop-shadow(0 0 18px #22c55e) !important;
  animation: iconBounce 1.8s ease-in-out infinite alternate;
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.15) rotate(5deg); }
}

.best-time-panel.tier-green .best-time-title-tag {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  color: #a3e635 !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 12px rgba(163, 230, 53, 0.85), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.best-time-panel.tier-green .best-time-slot-large {
  font-size: 23px !important;
  font-weight: 950 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 18px rgba(74, 222, 128, 0.8) !important;
}

.best-time-panel.tier-green .slot-time-part {
  color: #bef264 !important;
  text-shadow: 0 0 16px rgba(190, 242, 100, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  font-weight: 950 !important;
}

.best-time-panel.tier-green .best-time-status-pill {
  background: rgba(34, 197, 94, 0.35) !important;
  border: 1.5px solid #4ade80 !important;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

.best-time-panel.tier-green .best-time-status-pill span {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.8) !important;
}

.best-time-panel.tier-green .best-time-dot {
  background-color: #bef264 !important;
  box-shadow: 0 0 10px #bef264, 0 0 16px #4ade80 !important;
}

.best-time-panel.tier-green .best-member-avatar {
  border: 2px solid #4ade80 !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.85) !important;
}


.best-time-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.best-time-tag-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.best-time-glow-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 6px #f59e0b);
}

.best-time-panel.tier-green .best-time-glow-icon {
  filter: drop-shadow(0 0 8px #10b981);
}

.best-time-title-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--sg-cyan-light);
  text-transform: uppercase;
}

.best-time-panel.tier-yellow .best-time-title-tag {
  color: #fbbf24;
}

.best-time-panel.tier-green .best-time-title-tag {
  color: #34d399;
}

.best-time-nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.best-time-page-indicator {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
}

.best-time-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.best-time-arrow-btn:hover {
  background: var(--sg-cyan);
  color: #071120;
  box-shadow: 0 0 10px var(--sg-cyan);
  transform: scale(1.08);
}





.best-time-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.best-time-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--sg-cyan);
  box-shadow: 0 0 6px var(--sg-cyan);
}

.best-time-panel.tier-yellow .best-time-dot {
  background-color: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.best-time-panel.tier-green .best-time-dot {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.best-time-members-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.best-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sg-cyan);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.best-member-avatar:hover {
  transform: scale(1.25);
  z-index: 10;
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--sg-cyan);
}

/* GOOGLE NAPTÁRBA ADÁS GOMB A LEGJOBB IDŐPONT PANELEN */
.best-time-actions-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.btn-gcal-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.38) 100%);
  border: 1.5px solid #10b981;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-gcal-add:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.7);
  transform: translateY(-2px);
}

.gcal-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   YOUTUBE SPIRIT GANG PANEL TOPBAR ÉS TOGGLE GOMB
   ========================================================================== */
/* ==========================================================================
   SPIRIT GANG PANEL KÜLSŐ FLIP GOMB ÉS NÉZETEK
   ========================================================================== */
.sidebar-flip-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
  padding: 0 2px;
}

.yt-panel-flip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 0, 127, 0.18);
  border: 1.5px solid var(--sg-magenta);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.4);
}

.yt-panel-flip-btn:hover {
  background: var(--sg-magenta);
  box-shadow: 0 0 18px var(--sg-magenta);
  transform: scale(1.05);
}

.yt-views-wrapper {
  position: relative;
  overflow: visible !important; /* Nem vágja le a profilikon árnyékát! */
  height: 290px;
  min-height: 290px;
  max-height: 290px;
  padding: 4px 2px 2px 2px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.yt-view-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

.yt-view-pane.hidden {
  display: none !important;
}

/* KÜLÖNLEGES KILÉPŐ ÉS BELÉPŐ ANIMÁCIÓK:
   Lassú indulással és fokozatos függvényes egyre fokozódó gyorsítással (cubic-bezier(0.85, 0, 1, 1))
   + Staggered késleltetésekkel */
.yt-anim-item {
  will-change: transform, opacity;
}

.yt-anim-item.exit-right {
  animation: animExitToRight 0.35s cubic-bezier(0.85, 0, 1, 1) forwards;
  animation-delay: calc(var(--anim-idx, 0) * 0.08s);
}

@keyframes animExitToRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(115%);
    opacity: 0;
  }
}

.yt-anim-item.enter-left {
  animation: animEnterFromLeft 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--anim-idx, 0) * 0.08s);
}

@keyframes animEnterFromLeft {
  0% {
    transform: translateX(-115%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


.table-bottom-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
  margin-top: 4px;
}

.btn-clear-table-bottom {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  flex: 0 0 65%;
  width: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 2px solid #ef4444;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn-clear-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
}

.btn-clear-label {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* TŰZ SÁV TRACK ÉS TÖLTŐDÉS (1.5 mp után lentről felfelé, 6.0 mp-ig = 4.5s) */
.btn-fire-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.btn-fire-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, 
    #7f1d1d 0%, 
    #dc2626 25%, 
    #ea580c 55%, 
    #f59e0b 80%, 
    #fef08a 95%, 
    #ffffff 100%
  );
  box-shadow: 0 -4px 18px rgba(255, 170, 0, 0.95), inset 0 0 14px rgba(255, 240, 150, 0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, height 0.35s ease;
}

/* Amikor aktív a töltődés (1.5 mp nyomás után indul, 4.5 mp alatt ér a tetejére 6.0 mp-nél) */
.btn-clear-table-bottom.is-charging-fire .btn-fire-fill {
  opacity: 1;
  height: 100%;
  transition: height 4.5s cubic-bezier(0.2, 0, 0.25, 1), opacity 0.2s ease;
}

/* Láng fodrozódó él a tűz tetején */
.btn-fire-flame-crest {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 200, 50, 0.85) 40%, transparent 80%);
  filter: blur(1.5px);
  animation: fireCrestFlicker 0.18s infinite alternate ease-in-out;
}

@keyframes fireCrestFlicker {
  0% { transform: scaleY(0.8) scaleX(0.98); opacity: 0.85; }
  100% { transform: scaleY(1.35) scaleX(1.02); opacity: 1; filter: blur(0.8px); }
}

/* Felcsapó mikroszikrák */
.btn-fire-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2.5px 2.5px at 50% 60%, #ffcc00, transparent),
    radial-gradient(1.5px 1.5px at 75% 25%, #ff4400, transparent),
    radial-gradient(2px 2px at 85% 75%, #ffea70, transparent),
    radial-gradient(3px 3px at 35% 85%, #ff6600, transparent);
  background-repeat: repeat;
  background-size: 80px 80px;
  animation: fireSparksRise 0.6s linear infinite;
  opacity: 0.85;
}

@keyframes fireSparksRise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* FINOM LIBEGŐ SHAKE ÉS FÉNY (1.5 mp után egyre jobban) */
.btn-clear-table-bottom.is-charging-fire {
  border-color: #f59e0b !important;
  animation: btnFireHoverTremble 0.22s ease-in-out infinite alternate !important;
}

@keyframes btnFireHoverTremble {
  0% {
    transform: translateY(-2px) rotate(-0.6deg) scale(1.015);
    box-shadow: 0 0 24px rgba(255, 100, 0, 0.85), 0 0 10px rgba(255, 200, 0, 0.6);
  }
  50% {
    transform: translateY(-4px) rotate(0.5deg) scale(1.025);
    box-shadow: 0 0 32px rgba(255, 70, 0, 0.95), 0 0 18px rgba(255, 230, 0, 0.8);
  }
  100% {
    transform: translateY(-3px) rotate(-0.3deg) scale(1.02);
    box-shadow: 0 0 38px rgba(255, 50, 0, 1), 0 0 24px rgba(255, 255, 50, 0.9);
  }
}

/* ROBBANÁSSZERŰ TŰZ FELVILLANÁS KISÜTÉSKOR (6 mp elérésekor) */
.btn-clear-table-bottom.is-detonated {
  animation: btnDetonateBurst 0.6s cubic-bezier(0.1, 1.3, 0.3, 1) forwards !important;
}

@keyframes btnDetonateBurst {
  0% { transform: scale(1.08); filter: brightness(2) contrast(1.3); }
  50% { transform: scale(0.96); filter: brightness(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* HOVER ÁLLAPOT: VILÁGÍT ÉS EMELKEDIK, HÁTTÉR SOHA NEM TŰNIK EL */
.btn-clear-table-bottom:hover:not(.is-charging-fire) {
  filter: brightness(1.18);
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.9);
  transform: translateY(-2px);
}

.trash-svg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   FULL HETI RESET MEGERŐSÍTŐ MODAL (6 MP HOSSZÚ NYOMÁS UTÁN)
   ========================================================================== */
.reset-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.3s ease;
}

.reset-modal-backdrop.hidden {
  display: none !important;
}

.reset-modal-card {
  position: relative;
  max-width: 480px;
  width: 90%;
  background: rgba(12, 20, 50, 0.96);
  border: 2px solid rgba(255, 68, 0, 0.8);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: 0 0 65px rgba(255, 68, 0, 0.5), 0 25px 50px rgba(0, 0, 0, 0.85), inset 0 1px 3px rgba(255, 200, 100, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: resetModalPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes resetModalPopIn {
  0% { transform: scale(0.82) translateY(24px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.reset-modal-card.is-burning-out {
  animation: resetModalBurnOut 0.42s cubic-bezier(0.2, 0.8, 0.4, 1) forwards !important;
}

@keyframes resetModalBurnOut {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  35% {
    transform: scale(1.04);
    filter: brightness(2.2) contrast(1.4);
  }
  100% {
    transform: scale(0.88) translateY(24px);
    opacity: 0;
    filter: blur(10px) brightness(0.2);
  }
}

.reset-modal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff5722 0%, #b91c1c 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px #ff5722;
  animation: resetFlamePuff 0.4s ease-in-out infinite alternate;
}

@keyframes resetFlamePuff {
  0% { transform: scale(0.94); }
  100% { transform: scale(1.08); }
}

.reset-flame-icon {
  width: 34px;
  height: 34px;
  color: #ffeb3b;
  filter: drop-shadow(0 0 10px #ffffff);
}

.reset-modal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reset-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  font-weight: 950;
  color: #ffffff;
  line-height: 1.28;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.7), 0 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.reset-modal-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f87171;
  opacity: 0.8;
  margin: 0;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.reset-modal-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* KÉK GOMB: "Szólok Marcinak Inkább" TISZTA, MODERN IZZÓ KÉK GOMB */
.btn-reset-cancel-sunshine {
  position: relative;
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 2px solid #38bdf8;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), 0 0 40px rgba(2, 132, 199, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reset-cancel-sunshine:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.9), 0 0 55px rgba(2, 132, 199, 0.65);
}

.btn-sunshine-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(56, 189, 248, 0.8);
}

/* SZÜRKE GOMB: "Igen, TÖRLÖM!" SZIMPLA SZÜRKE KERET, TRANSPARENS HÁTTÉR, HORIZONTÁLISAN KISEBB */
.btn-reset-confirm-gray {
  flex: 0 0 auto;
  min-width: 130px;
  padding: 12px 18px;
  background: transparent;
  border: 1.5px solid #64748b;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.btn-reset-confirm-gray:hover {
  border-color: #ef4444;
  color: #fca5a5;
  background-color: rgba(239, 68, 68, 0.12);
  transform: scale(1.02);
}

.btn-yt-studio-bottom {
  flex: 0 0 calc(35% - 10px);
  width: calc(35% - 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.3) 0%, rgba(200, 0, 40, 0.4) 100%);
  border: 1.5px solid rgba(255, 0, 51, 0.85);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.35);
  white-space: nowrap;
}

.btn-yt-studio-bottom:hover {
  background: linear-gradient(135deg, #ff0033 0%, #cc0029 100%);
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.7);
  transform: translateY(-2px);
}

.yt-studio-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   TOOLTIP
   ========================================================================== */
.calendar-tooltip {
  position: fixed;
  display: none;
  background: rgba(10, 18, 44, 0.96);
  border: 1.5px solid var(--sg-cyan);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 12px var(--sg-cyan-glow);
  z-index: 200;
  pointer-events: none;
  line-height: 1.4;
}

.tooltip-highlight {
  color: var(--sg-cyan-light);
  font-weight: 800;
}

/* ==========================================================================
   ÁTFOGÓ RESZPONZÍV LOGIKA & MOBIL NAPI TAB RENDSZER
   ========================================================================== */
.mobile-day-tabs {
  display: none;
}

@media (min-width: 1240px) and (min-height: 860px) {
  html, body {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important;
  }
  .calendar-app {
    height: 100vh;
    max-height: 100vh;
  }
}

@media (max-height: 859px) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
  }
  .calendar-app {
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 24px;
  }
  .calendar-main {
    height: auto !important;
  }
  .calendar-scroll-container {
    height: auto !important;
  }
  .time-lane-cell, .cal-cell {
    min-height: 46px !important;
  }
}

@media (max-width: 1200px) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
  }
  .calendar-app {
    height: auto !important;
    min-height: 100vh;
    padding: 10px;
  }
  .calendar-layout-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .calendar-scroll-container {
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 8px;
  }
  .calendar-lanes-layout {
    min-width: 780px !important;
  }
  .time-lane-cell, .cal-cell {
    min-height: 46px !important;
  }
  .calendar-sidebar-col {
    width: 100% !important;
    max-width: 100% !important;
  }
  .yt-sidebar-panel {
    width: 100% !important;
    max-height: unset !important;
  }
  .yt-quests-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 10px !important;
  }
  .table-bottom-actions {
    width: 100% !important;
    max-width: 480px;
    margin-left: auto;
  }
}

/* MOBIL NÉZET (<= 768px): TÖKÉLETESEN ÁTGONDOLT NAPI TAB LAPOZÁS */
@media (max-width: 768px) {
  .calendar-header { margin-left: 0 !important; }
  .calendar-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .header-left, .header-center, .header-right {
    justify-content: center;
  }
  .best-time-card {
    align-items: center;
    width: 100%;
  }

  /* MOBIL NAPI TAB SÁV MEGJELENIK */
  .mobile-day-tabs {
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 2px;
    margin-bottom: 8px;
    scrollbar-width: none;
  }
  .mobile-day-tabs::-webkit-scrollbar {
    display: none;
  }
  .mobile-day-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(14, 24, 56, 0.9);
    border: 1.5px solid var(--border-light);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-day-tab.active {
    background: var(--sg-cyan);
    color: #071120;
    border-color: var(--sg-cyan);
    box-shadow: 0 0 12px var(--sg-cyan-glow);
  }

  /* MOBILON CSAK AZ AKTÍV NAP OSZLOP LÁTSZÓDIK AZ IDŐ OSZLOP MELLETT */
  .calendar-lanes-layout {
    min-width: unset !important;
    width: 100% !important;
  }
  .day-lane {
    display: none !important;
  }
  .day-lane.mobile-active-lane {
    display: flex !important;
    flex: 1 !important;
    width: 100% !important;
  }
  .time-lane-column {
    width: 64px !important;
  }
  .time-lane-cell, .cal-cell {
    min-height: 48px !important;
  }
  .day-name {
    font-size: 20px !important;
  }

  .table-bottom-actions {
    max-width: 100% !important;
  }
}

/* AMIKOR NINCS KÖZÖS IDŐ: PIROS HÁTTÉR ÉS BORDER, ÁRNYÉK NÉLKÜL */
.best-time-panel.tier-none,
.best-time-panel.is-empty {
  background: rgba(185, 28, 28, 0.35) !important;
  border-color: #ef4444 !important;
  box-shadow: none !important;
  animation: none !important;
}

.best-time-panel.tier-none .best-time-title-tag,
.best-time-panel.is-empty .best-time-title-tag {
  color: #fca5a5 !important;
}

.best-time-panel.tier-none .best-time-dot,
.best-time-panel.is-empty .best-time-dot {
  background-color: #ef4444 !important;
  box-shadow: none !important;
}

.best-time-panel.tier-none .best-time-glow-icon,
.best-time-panel.is-empty .best-time-glow-icon {
  filter: none !important;
  color: #ef4444 !important;
}

.best-time-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.best-time-slot-large {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 950;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
  line-height: 1.25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 2px;
}

.best-time-slot-large.is-full-text {
  display: block;
  text-align: center;
  font-size: 20px;
}

.slot-day-part {
  text-align: left;
}

.slot-time-part {
  text-align: right;
  color: var(--sg-cyan-light);
}

.best-time-panel.tier-yellow .slot-time-part {
  color: #fef08a;
}

.best-time-panel.tier-green .slot-time-part {
  color: #a7f3d0;
}

/* AKTÍV LEGJOBB KÖZÖS IDŐ CELLÁK IZZÁSA A TÁBLÁZATBAN */
.cal-cell.active-best-slot-yellow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.6) 0%, rgba(217, 119, 6, 0.72) 100%) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.9), inset 0 0 16px rgba(251, 191, 36, 0.6) !important;
  animation: activeBestYellowPulse 2.4s ease-in-out infinite alternate !important;
  z-index: 12 !important;
}

@keyframes activeBestYellowPulse {
  0% { opacity: 0.88; transform: translateZ(0); }
  100% { opacity: 1; transform: translateZ(0); }
}

/* AKTÍV 4 FŐS LEGJOBB KÖZÖS IDŐ — GPU-BARÁT, STATIKUS LÁNGOLÓ TÜZES KERET (0% GPU TÚLFOGYASZTÁS!) */
.cal-cell.active-best-slot-green,
.cal-cell.cell-fire-border {
  border: 2px solid #ff4500 !important;
  box-shadow: 0 0 16px rgba(255, 69, 0, 0.8), 0 0 28px rgba(255, 119, 0, 0.5), inset 0 0 10px rgba(255, 170, 0, 0.4) !important;
  z-index: 15 !important;
  position: relative !important;
  transform: translateZ(0);
}

.cal-cell.active-best-slot-green::before,
.cal-cell.cell-fire-border::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.5px dashed #ffe600;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.85;
  box-shadow: inset 0 0 8px rgba(255, 69, 0, 0.5);
  transform: translateZ(0);
}


/* ==========================================================================
   DISCORD KIJELENTKEZÉS GOMB & USER BAR
   ========================================================================== */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.logout-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ==========================================================================
   ZÖLD IDŐPONT 3MP-ES ÜNNEPLŐ SPOTLIGHT EFFEKTUS (WOW SOUND + AMETHYST AURA)
   ========================================================================== */
.celebration-spotlight-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(3, 7, 18, 0.70) 0%, rgba(2, 4, 12, 0.85) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.celebration-spotlight-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.calendar-app.celebration-app-elevated {
  z-index: 99995 !important;
}

.best-time-panel.celebration-spotlight-active {
  position: relative;
  z-index: 99999 !important;
  transform: scale(1.12) translateZ(0) !important;
  box-shadow: 
    0 0 0 4px #22c55e,
    0 0 50px rgba(34, 197, 94, 0.85),
    0 0 120px rgba(16, 185, 129, 0.6),
    inset 0 0 35px rgba(34, 197, 94, 0.35) !important;
  border-color: #4ade80 !important;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease !important;
  animation: celebrationPulse 1.2s ease-in-out infinite alternate !important;
}

@keyframes celebrationPulse {
  0% {
    transform: scale(1.10);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.7), 0 0 80px rgba(16, 185, 129, 0.4);
  }
  100% {
    transform: scale(1.14);
    box-shadow: 0 0 65px rgba(34, 197, 94, 1), 0 0 140px rgba(16, 185, 129, 0.75);
  }
}

/* ==========================================================================
   MA DÁTUM KIJELZŐ (NAGY BOLD DARK GLASS PILL)
   ========================================================================== */
.today-banner-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 48, 0.88);
  border: 1.5px solid var(--border-neon-cyan);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  height: 64px;
  min-height: 64px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.12);
}

.today-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--sg-cyan);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px var(--sg-cyan-glow);
}

.today-date-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

/* ==========================================================================
   TITKOS ADMIN SZERKESZTÉS MÓD (22:00 CELLA 3MP NYOMÁSSAL)
   ========================================================================== */
.time-lane-cell.admin-holding {
  background: linear-gradient(to right, rgba(34, 197, 94, 0.45) var(--hold-pct, 0%), rgba(16, 28, 64, 0.8) var(--hold-pct, 0%)) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.75) !important;
  transition: none !important;
  cursor: pointer !important;
}

.time-lane-cell.admin-mode-active {
  background: rgba(34, 197, 94, 0.28) !important;
  border: 2px solid #22c55e !important;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.85), inset 0 0 12px rgba(34, 197, 94, 0.5) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  animation: adminCellPulse 1.6s ease-in-out infinite alternate !important;
  cursor: pointer !important;
}

@keyframes adminCellPulse {
  0% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.7), inset 0 0 8px rgba(34, 197, 94, 0.4);
    border-color: #22c55e;
  }
  100% {
    box-shadow: 0 0 32px rgba(34, 197, 94, 1), inset 0 0 16px rgba(34, 197, 94, 0.7);
    border-color: #4ade80;
  }
}

.admin-badge-mini {
  display: block;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #86efac;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  padding: 1px 3px;
  margin-top: 1px;
}

/* Felhasználó választó zárolása vs feloldása */
.user-select-bar.is-locked .custom-select-trigger {
  cursor: default !important;
}
.user-select-bar.is-locked .select-chevron {
  display: none !important;
}
.user-select-bar.admin-unlocked {
  border-color: #22c55e !important;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.6), inset 0 0 10px rgba(34, 197, 94, 0.2) !important;
}

/* Lebegő értesítő Admin Mód aktiváláskor */
.admin-mode-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 28, 18, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid #22c55e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(34, 197, 94, 0.85);
  border-radius: var(--radius-md);
  padding: 12px 28px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-mode-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   MINI NAPTÁR WIDGET A TÖRLÉS GOMB FELETT
   ========================================================================== */
.mini-calendar-widget {
  background: rgba(10, 18, 44, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.mini-cal-month-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sg-cyan);
}

.mini-cal-today-badge {
  font-size: 0.70rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 1px 6px;
}

.mini-cal-day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.mini-cal-day-names span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 1px 0;
}

.mini-cal-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  border-radius: 4px;
  padding: 1px 1px;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.mini-cal-week-row.is-active-week {
  border: 1.5px solid var(--sg-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45), inset 0 0 6px rgba(0, 240, 255, 0.15) !important;
  background: rgba(0, 240, 255, 0.08) !important;
}

.mini-cal-cell {
  font-size: 0.70rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 3px 0;
  border-radius: 4px;
  line-height: 1;
  text-align: center;
}

.mini-cal-cell.is-today {
  background: var(--sg-cyan) !important;
  color: #04091a !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px var(--sg-cyan-glow) !important;
  transform: scale(1.08);
}

.mini-cal-cell.is-empty {
  opacity: 0;
  pointer-events: none;
}

/* EZEN A HÉTEN NEM ÉREK RÁ GOMB & SÁV KIEMELÉS */
.btn-unavailable-week {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 4px;
  margin-bottom: 2px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22) 0%, rgba(153, 27, 27, 0.32) 100%);
  border: 1.5px solid #ef4444;
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
}

.btn-unavailable-week:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.55) 100%);
  color: #ffffff;
  border-color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.65);
  transform: translateY(-2px);
}

.btn-unavailable-week.is-active-unavailable {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border-color: #fca5a5;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.85);
}

.day-lane.week-unavailable-active {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3) !important;
}

.day-lane.week-unavailable-active .cal-cell:not(.is-selected) {
  opacity: 0.45;
}

/* Studio mini button */
.btn-yt-studio-mini {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255, 0, 51, 0.15);
  border: 1.5px solid rgba(255, 0, 51, 0.6);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3366;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 900;
  transition: all 0.2s ease;
}
.btn-yt-studio-mini:hover {
  background: rgba(255, 0, 51, 0.35);
  border-color: #ff3366;
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.6);
  transform: scale(1.08);
}

/* Quests pane fixed height and smooth scroll without visible scrollbar */
.yt-view-quests {
  max-height: 280px;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yt-view-quests::-webkit-scrollbar {
  display: none !important;
}

/* Quest card header colored background bands */
.quest-card-target {
  border-left: 3.5px solid #ff007f !important;
}
.quest-card-target .quest-card-header {
  background: linear-gradient(90deg, rgba(255, 0, 127, 0.32) 0%, rgba(255, 0, 127, 0.04) 100%) !important;
  border-left: 3px solid #ff007f !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}

.quest-card-weekly {
  border-left: 3.5px solid #10b981 !important;
}
.quest-card-weekly .quest-card-header {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.32) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
  border-left: 3px solid #10b981 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}

.quest-card-hype {
  border-left: 3.5px solid #f59e0b !important;
}
.quest-card-hype .quest-card-header {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.32) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
  border-left: 3px solid #f59e0b !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}


/* ==========================================================================
   NAPOK KIEMELÉSE: MA (VILÁGÍTÓ CIÁN KERET + BADGE) & MÚLTBELI NAPOK
   ========================================================================== */
.day-lane.day-lane-today {
  border: 2px solid var(--sg-cyan) !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.day-lane.day-lane-today .day-lane-header {
  background: rgba(14, 42, 92, 0.92) !important;
  border-bottom: 2.5px solid var(--sg-cyan) !important;
}

.day-today-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 950;
  background: var(--sg-cyan);
  color: #04091a;
  padding: 1px 7px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--sg-cyan-glow);
  letter-spacing: 0.12em;
  margin-bottom: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.day-lane.day-lane-past .day-lane-header {
  opacity: 0.72;
  background: rgba(14, 22, 48, 0.75) !important;
}

.day-lane.day-lane-past .day-date {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #94a3b8 !important;
}

.day-lane.day-lane-past .cal-cell:not(.is-selected) {
  opacity: 0.6;
}


/* ==========================================================================
   GOMBOK ÉS SZÖVEGEK TÖKÉLETES ILLESZKEDÉSE ÉS LEVÁGÁS-VÉDELME
   ========================================================================== */
.selected-user-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: clamp(100px, 9vw, 150px) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.btn-unavailable-week {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

.unavail-label {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-gcal-add {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

.btn-clear-table-bottom {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.btn-clear-label {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-yt-studio-mini {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex-shrink: 0 !important;
}

.btn-logout {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-reset-cancel-sunshine,
.btn-reset-confirm-gray {
  white-space: nowrap !important;
}


/* ==========================================================================
   ÁTFOGÓ RESZPONZÍV LOGIKA: 4K, 2K/QHD, ULTRAWIDE 21:9, 1080P, MOBIL
   ========================================================================== */

/* 4K UHD FELBONTÁS (>= 3000px) */
@media (min-width: 3000px) {
  .calendar-app {
    max-width: 2700px !important;
    padding: 24px 36px !important;
    height: auto !important;
    min-height: auto !important;
  }
  .calendar-sidebar-col {
    width: 440px !important;
    gap: 12px !important;
    margin-top: 88px !important;
  }
  .time-lane-column {
    width: 100px !important;
  }
  .calendar-header {
    margin-left: 110px !important;
    padding: 12px 24px !important;
  }
  .time-lane-cell, .cal-cell {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 54px !important;
  }
  .time-lane-cell {
    font-size: 24px !important;
  }
  .day-name {
    font-size: 28px !important;
  }
  .header-title {
    font-size: 34px !important;
  }
  .best-time-slot-large {
    font-size: 26px !important;
  }
  .btn-unavailable-week {
    font-size: 15px !important;
    padding: 12px 18px !important;
  }
  .btn-clear-table-bottom {
    font-size: 16.5px !important;
    padding: 13px 18px !important;
  }
  .btn-yt-studio-mini {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }
}

/* QHD / 2K / 21:9 ULTRAWIDE (2000px - 2999px) */
@media (min-width: 2000px) and (max-width: 2999px) {
  .calendar-app {
    max-width: 2150px !important;
    padding: 18px 28px !important;
    height: auto !important;
  }
  .calendar-sidebar-col {
    width: 370px !important;
    gap: 10px !important;
    margin-top: 86px !important;
  }
  .time-lane-column {
    width: 92px !important;
  }
  .calendar-header {
    margin-left: 102px !important;
  }
  .time-lane-cell, .cal-cell {
    height: 50px !important;
    min-height: 50px !important;
  }
  .day-name {
    font-size: 25px !important;
  }
  .header-title {
    font-size: 30px !important;
  }
}

/* STANDARD 1080P & LAPTOP (1200px - 1999px) */
@media (min-width: 1200px) and (max-width: 1999px) {
  .calendar-app {
    max-width: 1680px !important;
    padding: 12px 18px !important;
    height: auto !important;
  }
  .calendar-sidebar-col {
    width: 320px !important;
    gap: 8px !important;
    margin-top: 84px !important;
  }
  .calendar-header {
    margin-left: 94px !important;
    padding: 8px 16px !important;
  }
  .time-lane-column {
    width: 84px !important;
  }
  .time-lane-cell, .cal-cell {
    height: 48px !important;
    min-height: 48px !important;
  }
}

/* MAGASSÁGI KEZELÉS: SOHA NEM NYÚLNAK MEG A CELLÁK TÚLZOTTAN */
html, body {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
}


/* ==========================================================================
   SZÖVEGVÉDELEM: SOSEM ÉR BORDERHEZ, SOSEM LÓG KI SEHOL
   ========================================================================== */
.header-titles {
  padding-right: 14px;
  min-width: 0;
}

.header-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 0;
}

.header-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 0;
}

.today-banner-box {
  padding: 6px 16px !important;
  box-sizing: border-box !important;
}

.week-nav {
  padding: 6px 16px !important;
  box-sizing: border-box !important;
}

.week-display {
  padding: 0 6px !important;
  white-space: nowrap !important;
}

.user-select-bar {
  padding: 6px 16px !important;
  box-sizing: border-box !important;
}

.custom-select-trigger {
  padding: 8px 14px !important;
  box-sizing: border-box !important;
}

.selected-user-name {
  padding: 0 4px !important;
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.best-time-panel {
  padding: 10px 14px 12px 14px !important;
  box-sizing: border-box !important;
}

.best-time-slot-large {
  padding: 0 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.slot-day-part {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  margin-right: 6px !important;
}

.slot-time-part {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-gcal-add {
  padding: 8px 14px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-unavailable-week {
  padding: 8px 14px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.unavail-label {
  padding: 0 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-clear-table-bottom {
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-clear-label {
  padding: 0 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.yt-channel-name-large {
  padding-right: 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.yt-channel-handle-large {
  padding-right: 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.quest-card {
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}

.quest-headline {
  padding: 2px 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.reset-modal-card {
  padding: 26px 24px !important;
  box-sizing: border-box !important;
}

.reset-modal-title {
  padding: 0 8px !important;
  line-height: 1.3 !important;
}
