/* ==========================================================================
   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;
}

/* ==========================================================================
   OPTIMALIZÁLT MAGENTA KRISTÁLYOK (STATIKUS RENDERELÉS, 0% GPU REPAINT)
   ========================================================================== */
.amethyst-decor {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
  filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.45));
}

.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, .floating-shard-2, .floating-shard-3 {
  transform: none;
}

/* ==========================================================================
   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.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  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-display {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #c4b5fd;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.week-display.is-target-active-week {
  color: #00f0ff;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.85), 0 0 25px rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.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);
}

/* VALÓS IDEJŰ MENTÉS ÁLLAPOT JELZŐ */
.save-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  height: 40px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(10, 18, 48, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.save-status-text {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.save-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* is-saved state */
.save-status-pill.is-saved {
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
  background: rgba(6, 78, 59, 0.3);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}
.save-status-pill.is-saved .save-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* is-saving state */
.save-status-pill.is-saving {
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}
.save-status-pill.is-saving .save-status-dot {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  animation: pulse-dot 1s infinite alternate ease-in-out;
}

/* is-error state */
.save-status-pill.is-error {
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}
.save-status-pill.is-error .save-status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse-dot {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* 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: none;
  -webkit-backdrop-filter: none;
  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: flex-start !important;
  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: 64px !important;
  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;
  align-self: flex-start !important;
  height: fit-content !important;
}

.time-lane-column:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* BAL FELSŐ ÜRES SAROK HELYMEGŐRZŐ */
.time-lane-header {
  flex-shrink: 0;
  height: 52px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.time-lane-cells {
  flex: none !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.time-lane-cell {
  height: 38px;
  min-height: 38px;
  max-height: 42px;
  width: 64px !important;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(18, 30, 68, 0.88) !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  user-select: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.time-lane-cell:hover {
  transform: scale(1.08);
  color: #00f0ff !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7) !important;
  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: flex-start !important;
}

.day-lane {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, border-color 0.4s ease;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  align-self: flex-start !important;
  height: fit-content !important;
  background-color: #0c1432 !important;
  background-image:
    linear-gradient(135deg, 
      rgba(0, 240, 255, 0.38) 0%, 
      rgba(0, 195, 255, 0.30) 20%, 
      rgba(147, 51, 234, 0.30) 46%, 
      rgba(217, 70, 239, 0.36) 72%, 
      rgba(255, 0, 127, 0.45) 100%
    ),
    linear-gradient(180deg, rgba(22, 36, 80, 0.94) 0%, rgba(14, 22, 54, 0.96) 100%) !important;
  background-size: 700% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
}

.day-lane-hetfo     { background-position: 0% 0%, 0 0 !important; border-color: rgba(0, 240, 255, 0.35) !important; }
.day-lane-kedd      { background-position: 16.666% 0%, 0 0 !important; border-color: rgba(0, 210, 255, 0.35) !important; }
.day-lane-szerda    { background-position: 33.333% 0%, 0 0 !important; border-color: rgba(120, 120, 255, 0.35) !important; }
.day-lane-csutortok { background-position: 50% 0%, 0 0 !important; border-color: rgba(168, 85, 247, 0.35) !important; }
.day-lane-pentek    { background-position: 66.666% 0%, 0 0 !important; border-color: rgba(217, 70, 239, 0.35) !important; }
.day-lane-szombat   { background-position: 83.333% 0%, 0 0 !important; border-color: rgba(255, 0, 127, 0.4) !important; }
.day-lane-vasarnap  { background-position: 100% 0%, 0 0 !important; border-color: rgba(255, 0, 127, 0.45) !important; }

.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: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 4px;
  background: rgba(24, 40, 88, 0.82);
  border-bottom: 2px solid var(--border-neon-cyan);
  position: relative;
  user-select: none;
  border-top-left-radius: calc(var(--radius-md) - 1px) !important;
  border-top-right-radius: calc(var(--radius-md) - 1px) !important;
}

.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: clamp(12px, 1.15vw, 17px);
  font-weight: 900;
  letter-spacing: 0.03em;
  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;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
}

.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 {
  position: relative !important;
  flex: none !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cal-cell {
  height: 38px;
  min-height: 38px;
  max-height: 42px;
  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.18s cubic-bezier(0.2, 0, 0, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none;
  box-sizing: border-box;
}

.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;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  animation: avatarPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avatarPop {
  0% { transform: scale(0.65); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.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; }
}


/* ==========================================================================
   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: 8px !important;
  margin-top: 0 !important;
}

/* 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;
  background: linear-gradient(135deg, rgba(14, 18, 34, 0.96) 0%, rgba(22, 14, 38, 0.94) 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 12px 16px 16px 16px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
  overflow: visible !important;
  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: #0d1527 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-neon-cyan);
  border-radius: var(--radius-md);
  padding: 14px 16px 16px 16px !important;
  min-height: 200px !important;
  height: auto !important;
  position: relative;
  overflow: hidden !important;
  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, border-color 0.4s ease, background-color 0.4s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 10px !important;
}

.best-time-panel:hover {
  transform: translateY(-6px) scale(1.015);
  z-index: 30;
}

/* 3 TAG esetén: TELJESEN SOLID SÁRGA GOMB LÁTVÁNYÚ PANEL, HATALMAS FONTOKKAL */
.best-time-panel.tier-yellow {
  background: linear-gradient(135deg, #78350f 0%, #92400e 25%, #b45309 50%, #d97706 75%, #f59e0b 100%) !important;
  border: 3px solid #fbbf24 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.85), 
              0 10px 28px rgba(0, 0, 0, 0.6), 
              inset 0 2px 3px rgba(255, 255, 255, 0.7), 
              inset 0 -3px 8px rgba(0, 0, 0, 0.4) !important;
  animation: megaYellowButtonPulse 2.4s ease-in-out infinite alternate !important;
  position: relative !important;
  overflow: hidden !important;
}

@keyframes megaYellowButtonPulse {
  0% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.75), 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.7);
    border-color: #f59e0b;
  }
  100% {
    box-shadow: 0 0 36px rgba(251, 191, 36, 0.95), 0 12px 30px rgba(0, 0, 0, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.85);
    border-color: #fde047;
  }
}

.best-time-panel.tier-yellow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: megaYellowShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes megaYellowShine {
  0%, 60% { left: -120%; }
  85%, 100% { left: 160%; }
}

.best-time-panel.tier-yellow .best-time-glow-icon {
  font-size: 20px !important;
  color: #fde047 !important;
  filter: drop-shadow(0 0 10px #fbbf24) drop-shadow(0 0 18px #f59e0b) !important;
  animation: iconBounce 1.8s ease-in-out infinite alternate;
}

.best-time-panel.tier-yellow .best-time-title-tag {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  color: #fef08a !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.best-time-panel.tier-yellow .best-time-slot-large {
  font-size: 21px !important;
  font-weight: 950 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 18px rgba(251, 191, 36, 0.8) !important;
}

.best-time-panel.tier-yellow .slot-day-part {
  color: #ffffff !important;
}

.best-time-panel.tier-yellow .slot-time-part {
  color: #fef08a !important;
  text-shadow: 0 0 16px rgba(254, 240, 138, 0.95), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  font-weight: 950 !important;
}

.best-time-panel.tier-yellow .best-time-status-pill {
  background: rgba(120, 53, 15, 0.55) !important;
  border: 1.5px solid #fde047 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

.best-time-panel.tier-yellow .best-time-status-pill span {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8) !important;
}

.best-time-panel.tier-yellow .best-time-dot {
  background-color: #fde047 !important;
  box-shadow: 0 0 10px #fde047, 0 0 16px #fbbf24 !important;
}

.best-time-panel.tier-yellow .best-member-avatar {
  border: 2px solid #fde047 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.85) !important;
}


/* 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 14px;
  background: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  border-radius: var(--radius-sm);
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
}

.btn-gcal-add .gcal-icon {
  fill: #0f172a !important;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-gcal-add:hover {
  background: #f1f5f9 !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  color: #020617 !important;
}

.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;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  padding: 4px 2px 2px 2px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.yt-view-pane {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 8px !important;
  height: auto !important;
  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:
   Selymesen lassú és smooth animáció, ami a panel keretein belül marad */
.yt-anim-item {
  will-change: transform, opacity;
}

.yt-anim-item.exit-right {
  animation: animExitToRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--anim-idx, 0) * 0.05s);
}

@keyframes animExitToRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

.yt-anim-item.enter-left {
  animation: animEnterFromLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--anim-idx, 0) * 0.05s);
}

@keyframes animEnterFromLeft {
  0% {
    transform: translateX(-140%);
    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;
}


/* 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) {
  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: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
}

.reset-warning-icon {
  width: 32px;
  height: 32px;
  color: #f87171;
}

.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;
  }
  .header-titles {
    text-align: center !important;
    padding-right: 0 !important;
  }
  .header-center {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
  }
  .today-banner-box {
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 10px !important;
  }
  .week-nav {
    height: 42px !important;
    min-height: 42px !important;
    padding: 3px 8px !important;
    gap: 6px !important;
  }
  .week-display {
    font-size: 15px !important;
    min-width: 110px !important;
    padding: 2px 6px !important;
  }
  .week-nav-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }
  .save-status-pill {
    height: 36px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
  }
  .user-select-bar {
    height: 42px !important;
    min-height: 42px !important;
    padding: 3px 8px !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .active-avatar-wrap {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  .custom-select-container {
    min-width: unset !important;
    width: auto !important;
    max-width: 100px !important;
    flex: 1 1 auto !important;
  }
  .custom-select-trigger {
    padding: 3px 6px !important;
    gap: 4px !important;
    font-size: 13px !important;
  }
  .selected-user-name {
    font-size: 13px !important;
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .btn-sheets-nav, .btn-notes-nav {
    padding: 4px 8px !important;
    font-size: 12px !important;
    height: 36px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .btn-logout {
    padding: 4px 8px !important;
    font-size: 12px !important;
    height: 36px !important;
    width: 36px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .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.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  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: 13px 18px;
  min-height: 48px;
  margin-top: 6px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 2px solid #f87171;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 950;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.btn-unavailable-week:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: #ffffff;
  border-color: #fca5a5;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.85);
  transform: translateY(-2px);
}

.btn-unavailable-week.is-active-unavailable {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  color: #fef2f2;
  border-color: #fca5a5;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.9);
}

.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: 3100px !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: 2350px !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: 8px 16px !important;
    height: auto !important;
  }
  .calendar-sidebar-col {
    width: 340px !important;
    gap: 8px !important;
    margin-top: 60px !important;
  }
  .calendar-header {
    margin-left: 94px !important;
    padding: 6px 14px !important;
    margin-bottom: 8px !important;
  }
  .time-lane-column {
    width: 84px !important;
  }
  .time-lane-header, .day-lane-header {
    height: 52px !important;
  }
  .time-lane-cell, .cal-cell {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 40px !important;
  }
  .time-lane-cells, .day-lane-cells {
    gap: 0 !important;
    padding: 0 !important;
  }
  .time-lane-cell {
    font-size: 16px !important;
  }
  .day-name {
    font-size: 15px !important;
  }
  .header-title {
    font-size: 26px !important;
  }
  .today-banner-box {
    padding: 4px 10px !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;
}

/* ==========================================================================
   SPIRIT GANG — GTA VICE CITY GLASS & REFINED UI ENHANCEMENTS
   ========================================================================== */

/* FORGATÁSI SHEETS ÉS NOTES NAV GOMBOK */
.btn-sheets-nav,
.btn-notes-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22) 0%, rgba(168, 85, 247, 0.26) 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.22s ease;
}
.btn-sheets-nav:hover,
.btn-notes-nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(168, 85, 247, 0.4) 100%);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
  border-color: #00f0ff;
}

.btn-sheets-nav {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.26) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}
.btn-sheets-nav:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.4) 100%);
  border-color: #10b981;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* PROGRESS TÖLTŐDÉS A TŰZ EFFEKT HELYETT */
.btn-charge-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.btn-charge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, rgba(239, 68, 68, 0.6) 0%, rgba(220, 38, 38, 0.9) 100%);
  box-shadow: 0 -2px 14px rgba(239, 68, 68, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, height 0.35s ease;
}

.btn-clear-table-bottom.is-charging .btn-charge-fill {
  opacity: 1;
  height: 100%;
  transition: height 4.5s cubic-bezier(0.2, 0, 0.25, 1), opacity 0.2s ease;
}

/* SAJÁT KIJELÖLÉS: ÁTTETSZŐ FEHÉR/TEJÜVEG HÁTTÉR, FEHÉR KERET, KÖZÉPEN AVATAR */
.cal-cell.is-selected {
  background: rgba(255, 255, 255, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-left: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-right: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-top: none !important;
  border-bottom: none !important;
  z-index: 5 !important;
}

.cal-cell.is-selected.block-top {
  border-top: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.cal-cell.is-selected.block-bottom {
  border-bottom: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.cal-cell.is-selected.block-single {
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 8px !important;
}

.cal-cell.is-selected .block-time-start,
.cal-cell.is-selected .block-time-end {
  background: #ffffff !important;
  color: #0b0f19 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45) !important;
  z-index: 15 !important;
}

.block-own-avatar {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 6px rgba(255, 255, 255, 0.5);
  z-index: 12;
  pointer-events: none;
}
.block-own-avatar.cam-mid-center {
  top: 50%;
  transform: translate(-50%, -50%);
}
.block-own-avatar.cam-mid-border {
  top: 100%;
  transform: translate(-50%, -50%);
}

/* 3 FŐS RÁÉRÉS: CITROMSÁRGA ÖSSZEFÜGGŐ KÖRVONAL, BELSŐ VÍZSZINTES VONAL NÉLKÜL */
.cal-cell.coop-tier-3 {
  background: rgba(253, 224, 71, 0.08) !important;
  border-left: 2px solid #fde047 !important;
  border-right: 2px solid #fde047 !important;
  border-top: none !important;
  border-bottom: none !important;
}
.cal-cell.coop-tier-3.coop-block-top {
  border-top: 2px solid #fde047 !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}
.cal-cell.coop-tier-3.coop-block-bottom {
  border-bottom: 2px solid #fde047 !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}
.cal-cell.coop-tier-3.coop-block-single {
  border: 2px solid #fde047 !important;
  border-radius: 8px !important;
}

/* 4 FŐS RÁÉRÉS: LIME ZÖLD ÖSSZEFÜGGŐ KÖRVONAL, BELSŐ VÍZSZINTES VONAL NÉLKÜL */
.cal-cell.coop-tier-4 {
  background: rgba(163, 230, 53, 0.12) !important;
  border-left: 2px solid #a3e635 !important;
  border-right: 2px solid #a3e635 !important;
  border-top: none !important;
  border-bottom: none !important;
}
.cal-cell.coop-tier-4.coop-block-top {
  border-top: 2px solid #a3e635 !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}
.cal-cell.coop-tier-4.coop-block-bottom {
  border-bottom: 2px solid #a3e635 !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}
.cal-cell.coop-tier-4.coop-block-single {
  border: 2px solid #a3e635 !important;
  border-radius: 8px !important;
}

/* KÖZÖS IDŐPONT KÁRTYA HOVER: CSAK A CELLÁK JOBB OLDALÁN JELENIK MEG HATÁROZOTT CSÍK */
.cal-cell.active-best-slot-stroke {
  box-shadow: inset -4px 0 0 #ffffff, inset -8px 0 12px rgba(0, 240, 255, 0.7) !important;
}

/* [REMOVED: Old glassmorphism override block] */

/* DAY HEADER EASTER EGG LEBEGŐ TOOLTIP */
.day-lane-header {
  position: relative;
  cursor: pointer;
}

.day-header-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 18, 36, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 240, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.day-lane-header:hover .day-header-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-nameday {
  font-weight: 800;
  color: #38bdf8;
  display: block;
}

.tooltip-easter-egg {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  display: block;
  margin-top: 2px;
}

/* MOBIL GÖRGETŐSÁV ELTÁVOLÍTÁSA */
@media (max-width: 768px) {
  .calendar-scroll-container {
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .calendar-scroll-container::-webkit-scrollbar {
    display: none !important;
  }
}
/* SPIRIT GANG — GTA VICE CITY GLASS & REFINED UI ENHANCEMENTS */

/* FORGATÁSI NOTES NAV GOMB */
.btn-notes-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22) 0%, rgba(168, 85, 247, 0.26) 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.22s ease;
}
.btn-notes-nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(168, 85, 247, 0.4) 100%);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

/* PROGRESS TÖLTŐDÉS A TŰZ EFFEKT HELYETT */
.btn-charge-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.btn-charge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, rgba(239, 68, 68, 0.6) 0%, rgba(220, 38, 38, 0.9) 100%);
  box-shadow: 0 -2px 14px rgba(239, 68, 68, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, height 0.35s ease;
}

.btn-clear-table-bottom.is-charging .btn-charge-fill {
  opacity: 1;
  height: 100%;
  transition: height 4.5s cubic-bezier(0.2, 0, 0.25, 1), opacity 0.2s ease;
}

/* ==========================================================================
   SAJÁT RÁÉRÉS — HÓFEHÉR INSET BORDER & 2X NAGYOBB PROFILKÉP
   ========================================================================== */

.cal-cell.is-selected {
  background: rgba(255, 255, 255, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; /* HALVÁNY, NEM MEGERŐSÍTETT! */
  z-index: 5;
}

/* Ha a cellán nincs csoportos közös időpont keret, a szélek transzparensek */
.cal-cell.is-selected:not(.coop-tier-3):not(.coop-tier-4) {
  border-left: 1px solid transparent !important;
  border-right: 1px solid transparent !important;
}

/* A SAJÁT FEHÉR BORDER: 6PX-SZEL BELJEBB VAN A CELLA SZÉLÉTŐL!
   Így ha aznap van 3-4 fős időpont, a vastag külső zöld/sárga és a belső fehér border egyszerre látható! */
.cal-cell.is-selected::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 6px !important;
  right: 6px !important;
  border-left: 2.5px solid #ffffff !important;
  border-right: 2.5px solid #ffffff !important;
  border-top: none !important;
  border-bottom: none !important;
  pointer-events: none !important;
  z-index: 10 !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7) !important;
}

.cal-cell.is-selected.block-top::before {
  top: 4px !important;
  border-top: 2.5px solid #ffffff !important;
  border-top-left-radius: 6px !important;
  border-top-right-radius: 6px !important;
}

.cal-cell.is-selected.block-bottom::before {
  bottom: 4px !important;
  border-bottom: 2.5px solid #ffffff !important;
  border-bottom-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}

.cal-cell.is-selected.block-single::before {
  top: 4px !important;
  bottom: 4px !important;
  border-top: 2.5px solid #ffffff !important;
  border-bottom: 2.5px solid #ffffff !important;
  border-radius: 6px !important;
}

.cal-cell.is-selected.block-bottom,
.cal-cell.is-selected.block-single {
  border-bottom: none !important;
}

/* 2X NAGYOBB KÖZÉPSŐ AVATAR (PÁROS CELLASZÁMNÁL SEM CSÚSZIK ALSÓ CELLA HÁTTERE ALÁ!) */
.cell-has-cam-center,
.cell-has-cam-border-top {
  z-index: 28 !important;
}

.block-own-avatar {
  position: absolute !important;
  left: 50% !important;
  width: 46px !important; /* 2x méret */
  height: 46px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(0, 0, 0, 0.8) !important;
  z-index: 40 !important;
  pointer-events: none !important;
}
.block-own-avatar.cam-mid-center {
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.block-own-avatar.cam-mid-border {
  top: 100% !important;
  transform: translate(-50%, -50%) !important;
}

.block-v-line {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85) !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  z-index: 8 !important;
}

.cal-cell.is-selected .block-time-start,
.cal-cell.is-selected .block-time-end {
  background: #ffffff !important;
  color: #0b0f19 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
  z-index: 15 !important;
}

/* EGYETLEN CELLÁS KIJELÖLÉS (PROFILKÉP ÉS IDŐ HORIZONTÁLISAN EGYMÁS MELLETT, ZERO OVERLAP) */
.block-single-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 6px;
  z-index: 20;
  pointer-events: none;
}

.block-own-avatar-single {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.block-time-single {
  background: #ffffff !important;
  color: #0b0f19 !important;
  font-family: 'Outfit', sans-serif;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em;
  z-index: 21;
}

/* ==========================================================================
   3 ÉS 4 FŐS KÖZÖS CSOPORTOS KERETEK — SOKKAL ERŐSEBB, 5PX VASTAG NEON BORDER!
   ========================================================================== */

/* 3 FŐS RÁÉRÉS: CITROMSÁRGA 5PX VASTAG NEON BORDER */
.cal-cell.coop-tier-3 {
  background: rgba(253, 224, 71, 0.12) !important;
  border-left: 5px solid #facc15 !important;
  border-right: 5px solid #facc15 !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.85), inset 0 0 10px rgba(250, 204, 21, 0.35) !important;
}
.cal-cell.coop-tier-3.coop-block-top {
  border-top: 5px solid #facc15 !important;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}
.cal-cell.coop-tier-3.coop-block-bottom {
  border-bottom: 5px solid #facc15 !important;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}
.cal-cell.coop-tier-3.coop-block-single {
  border: 5px solid #facc15 !important;
  border-radius: 10px !important;
}

/* 4+ FŐS RÁÉRÉS: VIBRÁLÓ LIME ZÖLD 5.5PX VASTAG NEON BORDER */
.cal-cell.coop-tier-4 {
  background: rgba(163, 230, 53, 0.16) !important;
  border-left: 5.5px solid #22c55e !important;
  border-right: 5.5px solid #22c55e !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.9), inset 0 0 12px rgba(34, 197, 94, 0.4) !important;
}
.cal-cell.coop-tier-4.coop-block-top {
  border-top: 5.5px solid #22c55e !important;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}
.cal-cell.coop-tier-4.coop-block-bottom {
  border-bottom: 5.5px solid #22c55e !important;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}
.cal-cell.coop-tier-4.coop-block-single {
  border: 5.5px solid #22c55e !important;
  border-radius: 10px !important;
}

/* ==========================================================================
   BEST TIME CARD BODY & GCAL GOMB ILLESZTÉS (ZERO ÁTFEDÉS)
   ========================================================================== */

.best-time-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: auto !important;
}

.best-time-slot-large {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

.slot-day-part {
  font-family: 'Outfit', sans-serif !important;
  font-size: 21px !important;
  font-weight: 950 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.slot-time-part {
  font-family: 'Outfit', sans-serif !important;
  font-size: 21px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.best-time-members-list {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

.btn-gcal-add {
  margin-top: 6px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 10 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   MOBIL NÉZET FIXÁLÁSA: A NAP OSZLOP KÖZÉPEN MARAD, NEM GÖRGETŐDIK EL
   ========================================================================== */
@media (max-width: 768px) {
  .calendar-scroll-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .calendar-lanes-layout {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
  }
  .time-lane-column {
    width: 58px !important;
    flex: 0 0 58px !important;
  }
  .days-lanes-container {
    flex: 1 1 auto !important;
    width: calc(100% - 58px) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
  }
  .day-lane {
    display: none !important;
  }
  .day-lane.mobile-active-lane {
    display: flex !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .mobile-day-tabs {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: flex !important;
  }
  .mobile-day-tabs::-webkit-scrollbar {
    display: none !important;
  }
}


/* ==========================================================================
   SAROK TÖRLÉS GOMB (TIME-LANE HEADER: PIROS, KUKÁS GOMB)
   ========================================================================== */
.time-lane-header {
  flex-shrink: 0;
  height: 52px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
}

.btn-clear-corner {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border: 1.5px solid #f87171 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), 0 4px 10px rgba(0, 0, 0, 0.5) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.25, 1);
  padding: 0;
  user-select: none;
}

.btn-clear-corner:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.75), 0 6px 14px rgba(0, 0, 0, 0.6) !important;
  border-color: #fca5a5 !important;
}

.btn-clear-corner:active {
  transform: scale(0.95);
}

.btn-clear-corner .trash-svg-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 3;
}

.btn-clear-corner .btn-charge-track {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.btn-clear-corner .btn-charge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: rgba(255, 255, 255, 0.5);
  transition: height 0.05s linear;
}

.btn-clear-corner.is-charging .btn-charge-fill {
  background: rgba(255, 255, 255, 0.75);
}

.btn-clear-corner.is-detonated {
  animation: trashDetonate 0.6s ease-out;
}

@keyframes trashDetonate {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.25); filter: brightness(2) drop-shadow(0 0 25px #ffffff); }
  100% { transform: scale(1); filter: brightness(1); }
}


/* MÁS TAGOK AVATARJAI: BELJEBB A STROKE VONALAKTÓL */
.voters-cluster {
  right: 14px !important;
}

/* SAJÁT RÁÉRÉS VONALA, PROFILKÉPE ÉS IDŐCÍMKÉI KICSIT BALRA IGAZÍTVA */
.block-v-line {
  left: calc(50% - 8px) !important;
  transform: translateX(-50%) !important;
}

.block-time-start,
.block-time-end {
  left: calc(50% - 8px) !important;
  transform: translateX(-50%) !important;
}

.block-single-content {
  left: calc(50% - 8px) !important;
  transform: translate(-50%, -50%) !important;
}

.block-own-avatar-floating {
  position: absolute !important;
  left: calc(50% - 8px) !important;
  transform: translate(-50%, -50%) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(0, 0, 0, 0.7) !important;
  z-index: 1000 !important;
  pointer-events: none !important;
  object-fit: cover !important;
}

/* ADMIN BADGE: KÍVÜL BALRA A CELLÁTÓL */
.admin-badge-mini {
  position: absolute !important;
  right: calc(100% + 6px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  color: #22c55e !important;
  background: rgba(5, 46, 22, 0.95) !important;
  border: 1.2px solid #22c55e !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  white-space: nowrap !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
  pointer-events: none !important;
  z-index: 20 !important;
}

/* SPIRIT GANG PANEL FLIP GOMB: JOBB FELSŐ SAROKBAN, RÁRÉTEGZŐDVE A PANELEKRE */
.yt-sidebar-panel {
  position: relative !important;
  padding: 12px 14px !important;
}

.yt-panel-flip-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 50 !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 0, 127, 0.22) !important;
  border: 1.5px solid var(--sg-magenta) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.4) !important;
  transition: all 0.2s ease !important;
}

.yt-panel-flip-btn:hover {
  background: var(--sg-magenta) !important;
  box-shadow: 0 0 18px var(--sg-magenta) !important;
  transform: scale(1.08) !important;
}

.yt-profile-row {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-right: 38px !important;
}

.yt-counter-card {
  margin-top: 4px !important;
  padding: 10px 14px !important;
}


/* ==========================================================================
   LEGJOBB KÖZÖS IDŐ: 100% SOLID VIDEÓJÁTÉK ARCADE DESIGN (ZÉRÓ GAUSSIAN BLUR, ZÉRÓ ÁTLÁTSZÓSÁG)
   ========================================================================== */
.best-time-panel,
.best-time-panel.tier-yellow,
.best-time-panel.tier-green,
.best-time-panel.tier-none,
.best-time-panel.is-empty {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  opacity: 1 !important;
}

/* ALAP / TÖLTŐDŐ NÉZET: SOLID SÖTÉT ÉJFÉLKÉK VIDEÓJÁTÉK PANEL */
.best-time-panel {
  background: #0d1527 !important;
  border: 2px solid rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* 3 FŐS RÁÉRÉS: 100% SOLID ARANY-BOROSTYÁNSÁRGA VIDEÓJÁTÉK DESIGN */
.best-time-panel.tier-yellow {
  background: linear-gradient(135deg, #78350f 0%, #92400e 25%, #b45309 50%, #d97706 75%, #f59e0b 100%) !important;
  border: 3px solid #fbbf24 !important;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.9), 
              0 12px 30px rgba(0, 0, 0, 0.75), 
              inset 0 2px 4px rgba(255, 255, 255, 0.8), 
              inset 0 -3px 8px rgba(0, 0, 0, 0.5) !important;
  animation: megaYellowButtonPulse 2.4s ease-in-out infinite alternate !important;
}

/* 4+ FŐS RÁÉRÉS: 100% SOLID SMARAGD-LIME ZÖLD VIDEÓJÁTÉK DESIGN */
.best-time-panel.tier-green {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 35%, #047857 70%, #059669 100%) !important;
  border: 3px solid #22c55e !important;
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.9), 
              0 12px 30px rgba(0, 0, 0, 0.75), 
              inset 0 2px 4px rgba(255, 255, 255, 0.8), 
              inset 0 -3px 8px rgba(0, 0, 0, 0.5) !important;
  animation: megaGreenButtonPulse 2.2s ease-in-out infinite alternate !important;
}

/* AMIKOR MÉG NINCS 3+ FŐS IDŐPONT: SOLID OPAQUE DARK PANEL (NEM ÁTLÁTSZÓ, NEM BLUROS) */
.best-time-panel.tier-none,
.best-time-panel.is-empty {
  background: #141a29 !important;
  border: 2px solid rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
}

.best-time-panel.tier-none .best-time-title-tag,
.best-time-panel.is-empty .best-time-title-tag {
  color: #f87171 !important;
}

.best-time-panel.tier-none .best-time-glow-icon,
.best-time-panel.is-empty .best-time-glow-icon {
  color: #ef4444 !important;
  filter: drop-shadow(0 0 6px #ef4444) !important;
}

/* ==========================================================================
   STABIL RESPONSIVE LAYER — keskeny telefon, 1080p és 21:9
   A korábbi komponensstílusokat csak az elrendezési határokon korrigálja.
   ========================================================================== */
@media (max-width: 768px) {
  .calendar-app {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    overflow-x: clip !important;
  }

  .calendar-header,
  .header-center,
  .user-select-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .header-center {
    margin: 0 !important;
  }

  .user-select-bar {
    flex: 0 0 100% !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .custom-select-container {
    flex: 1 1 90px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .custom-select-trigger {
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-sheets-nav,
  .btn-notes-nav,
  .btn-logout {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .sheets-nav-text,
  .notes-nav-text,
  .logout-text {
    display: none !important;
  }

  .sheets-nav-icon,
  .notes-nav-icon {
    margin: 0 !important;
  }

  .calendar-scroll-container {
    max-width: 100% !important;
  }

  .calendar-tooltip,
  #dayHeaderFloatingTooltip {
    max-width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 380px) {
  .header-title {
    font-size: 22px !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .header-subtitle {
    display: none !important;
  }

  .today-date-text {
    font-size: 13px !important;
  }

  .mobile-day-tab {
    padding-inline: 12px !important;
  }
}

@media (min-width: 2000px) and (max-height: 1200px) {
  .calendar-app {
    max-width: min(2350px, calc(100vw - 48px)) !important;
    margin-inline: auto !important;
  }

  .calendar-layout-row {
    gap: 16px !important;
  }

  .calendar-sidebar-col {
    flex: 0 0 clamp(340px, 15vw, 390px) !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .week-nav-btn,
  .btn-sheets-nav,
  .btn-notes-nav,
  .btn-logout,
  .btn-gcal-add,
  .btn-unavailable-week,
  .yt-panel-flip-btn,
  .mobile-day-tab {
    transform-origin: center;
    will-change: transform;
  }

  .week-nav-btn:hover,
  .btn-sheets-nav:hover,
  .btn-notes-nav:hover,
  .btn-logout:hover,
  .btn-gcal-add:hover,
  .btn-unavailable-week:hover,
  .yt-panel-flip-btn:hover {
    transform: translateY(-2px) scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #ambientDustCanvas,
  #ambientDustFgCanvas {
    display: none !important;
  }
}
