/* base.css — warstwa CSS QR3 (Faza 3 reorg 2026-09-02)
   Warstwa bazowa: reset, typografia, przyciski, inputy, karty, layout, landing,
   modale bazowe, strony publiczne (blog/legal/error), responsywność, animacje.
   Ładowana ZAWSZE z base.html, po tokens.css.
   Nie edytować wartości reguł tutaj bez świadomej decyzji — patrz q:\docs\CSS.md */

/* Fonty Inter/Outfit — self-hosted, patrz /static/css/fonts.css (linkowane w base.html przed tokens.css/base.css) */

/* ============================================================
   WedMemo — Professional Event Design System
   Light-first, with dark mode via [data-theme="dark"]
   ============================================================ */

[x-cloak] { display: none !important; }

.modal-input-field {
  width: 100% !important;
  display: block !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}
.modal-input-field::placeholder {
  color: #94a3b8 !important;
  opacity: 0.7 !important;
}
.modal-input-field:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}
.modal-input-field.input-error {
  border: 2px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
}

/* Tryb testowy — czerwona sygnalizacja, żeby nie pomylić go z widokiem gościa */
.test-banner {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 5px 16px;
  background: #dc2626;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.3;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.35);
}
/* Treść banera trzyma się tej samej osi co reszta widoku */
.test-banner__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--event-max-width);
  margin: 0 auto;
}
.test-banner__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: test-pulse 1.6s ease-in-out infinite;
}
/* @keyframes test-pulse — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
.test-banner__exit {
  margin-left: auto;
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}
.test-banner__exit:hover { background: rgba(255, 255, 255, 0.3); }
.event-layout--test { outline: 3px solid #dc2626; outline-offset: -3px; }

/* Bottom nav w trybie testowym (2026-09-06) — organizator ogląda przez tryb
   testowy (bramka dat/opłacenia pominięta), krawędź + ikony/etykiety na czerwono
   #dc2626 (spójne z .event-layout--test wyżej), żeby ten sam sygnał ostrzegawczy
   był widoczny też na dole ekranu, nie tylko w obwódce całej strony. */
.event-nav--test-mode { border-top-color: #dc2626; box-shadow: 0 -1px 0 #dc2626; }
.event-nav--test-mode .nav-item { color: #dc2626; }
.event-nav--test-mode .nav-item:hover { color: #b91c1c; }
.event-nav--test-mode .nav-item--active { color: #dc2626; }

@media (max-width: 560px) {
  .test-banner { font-size: 0.76rem; flex-wrap: wrap; }
}

/* Pola kodu OTP — 6 kwadratów.
   Style trzymamy w klasach, nie w :style, bo dynamiczny :style Alpine nadpisuje
   cały statyczny atrybut style i przy pustym polu kasował wygląd bazowy. */
.otp-box {
  width: 46px !important;
  height: 56px !important;
  flex: 0 0 46px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  font-family: 'Outfit', monospace !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: var(--bg-surface-2) !important;
  border: 2px solid var(--border) !important;
  color: #6366f1 !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  -moz-appearance: textfield !important;
}
.otp-box:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}
.otp-box--filled {
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #4338ca !important;
}
:root[data-theme="dark"] .otp-box--filled { color: #a5b4fc !important; }

/* Na wąskich ekranach 6 × 46px + odstępy nie mieści się w modalu */
@media (max-width: 420px) {
  .otp-box {
    width: 40px !important;
    height: 50px !important;
    flex: 0 0 40px !important;
    font-size: 1.35rem !important;
  }
}

/* Pola dat "Od kiedy / Do kiedy" w modalu tworzenia wydarzenia.
   Grid item domyślnie nie kurczy się poniżej szerokości treści (min-width: auto),
   więc pełna data+godzina wypychała modal szerzej niż viewport na telefonie. */
.modal-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-date-grid > div { min-width: 0; }
@media (max-width: 480px) {
  .modal-date-grid { grid-template-columns: 1fr; }
}

/* ---- Design tokens (:root + [data-theme="dark"]) ----
   Przeniesione do app/static/css/tokens.css — ładowany w base.html PRZED base.css.
   Nie dodawaj tu zmiennych motywu; jedyne źródło = tokens.css. */

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; } /* siatka bezpieczeństwa — pojedynczy przeoczony element bez wrapu nie rozjeżdża już całej strony w bok na telefonie */
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; }

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.btn-icon-white {
  display: inline-block;
  filter: brightness(0) invert(1);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(79,70,229,0.40);
  color: #fff;
  opacity: 0.92;
}
[data-theme="dark"] .btn--primary:hover {
  box-shadow: 0 6px 24px rgba(129,140,248,0.40);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn--google {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.btn--google:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn--danger {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #ef4444;
}
.btn--danger:hover { background: rgba(239,68,68,0.14); }
.btn--sm { padding: 6px 14px; font-size: 0.82rem; line-height: 1; }
.btn--lg { padding: 13px 28px; font-size: 0.98rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============================================================
   INPUTS
   ============================================================ */
.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
[data-theme="dark"] .input:focus {
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}
.input::placeholder { color: var(--text-faint); }
.input.input-error { border-color: #ef4444; background: rgba(239, 68, 68, 0.06); }
.input.input-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.textarea { resize: vertical; min-height: 96px; }
.input--lg { font-size: 1.05rem; padding: 13px 18px; }
.input--icon { max-width: 80px; text-align: center; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.83rem; font-weight: 500; color: var(--text-muted); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group,
.form-row .input { flex: 1; min-width: 140px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.checkbox-label input { accent-color: var(--accent); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card--form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

/* ============================================================
   INFO / LEGAL PAGES (Regulamin, Polityka Prywatności, DPA)
   ============================================================ */
.info-page-wrap { max-width: 720px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.info-page-body {
  padding: 1.75rem 2rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.92rem;
}
.info-page-body h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.info-page-body h2 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}
.info-page-body p { margin-bottom: 0.85rem; }
.info-page-body ol, .info-page-body ul { margin-bottom: 0.85rem; padding-left: 1.4rem; }
.info-page-body li { margin-bottom: 0.55rem; }
.info-page-body ul { list-style: disc; margin-top: 0.4rem; }
.info-page-body a { text-decoration: underline; }
@media (max-width: 640px) {
  .info-page-body { padding: 1.25rem 1.25rem; font-size: 0.9rem; }
  .info-page-body h1 { font-size: 1.3rem; }
}

/* ============================================================
   LAYOUT — App Shell
   ============================================================ */
.app-layout { min-height: 100vh; display: flex; flex-direction: column; }

/* Topbar — .topbar* przeniesione do admin.css (Faza 6c, 2026-09-03): wszystkie
   szablony z <header class="topbar"> robią extends "admin_base.html" (panel PA +
   supervisor), żaden widok gościa ani publiczny ich nie używa. base.css ładował
   je do każdego odwiedzającego jako martwy kod, a admin.css i tak nadpisywał
   część wartości (height 60→64, z-index 50→100, backdrop 20→16, bg). Scalone
   tam w jedną definicję. Lightbox ma własne .lightbox__topbar* — bez związku. */

.logo-text-sm {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar-brand__logo {
  display: block;
  height: 28px;
  width: auto;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* Event layout — mobile-first; na desktopie treść wyśrodkowana jak w panelu admina */
.event-layout { min-height: 100vh; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); }
.event-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  /* viewport-fit=cover: treść może wejść pod wcięcie/pasek stanu — dokładamy
     bezpieczny odstęp u góry, żeby nagłówek eventu nie chował się pod notchem. */
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
  box-shadow: var(--shadow-xs);
}
.event-header__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: var(--event-max-width);
  margin: 0 auto;
}
.event-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }
.event-location { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }
.photo-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.event-main {
  padding: 20px;
  max-width: var(--event-max-width);
  margin: 0 auto;
}

/* Bottom navigation — na telefonie pełna szerokość, na desktopie wyśrodkowany pasek.
   Gdy modułów jest dużo, pasek przewija się poziomo zamiast ściskać ikony (szerokość
   .nav-item jest stała) — strzałki na krawędziach (event_nav_scroll.js) to STAŁY
   wskaźnik "jest więcej", pokazywany raz przy starcie (jeśli jest overflow), nie
   dynamicznie sterowany pozycją scrolla. */
.event-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  /* viewport-fit=cover: dokładamy wysokość home-indicatora do paska, żeby ikony
     nawigacji nie chowały się pod dolną krawędzią na iPhone z gestem. */
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  background: var(--event-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 100;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -1px 0 var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.event-nav::-webkit-scrollbar { display: none; }
/* Gdy pasek faktycznie nie mieści się w całości (event_nav_scroll.js), justify-content:
   center zaczyna centrować NADMIAR symetrycznie — połowa ląduje przed scrollLeft:0, poza
   zasięgiem scrolla i wizualnie ucięta (m.in. pierwsza/aktywna ikona bywała niewidoczna
   mimo scrollLeft:0). Wyrównanie do lewej eliminuje to bez zmiany wyglądu w typowym,
   niescrollowanym przypadku (mało modułów). */
.event-nav--overflowing { justify-content: flex-start; }
.nav-item {
  flex: 0 0 auto;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px;
  text-decoration: none;
  color: var(--text-faint);
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}
.nav-item:hover { color: var(--text-muted); }
.nav-item--active { color: var(--accent); }
.nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.nav-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.nav-label { font-size: 0.6rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.02em; }

.event-nav-fade {
  position: sticky;
  top: 0;
  align-self: stretch;
  flex: 0 0 0;
  min-width: 28px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 101;
}
.event-nav-fade--left { left: 0; margin-right: -28px; justify-content: flex-start; background: linear-gradient(to right, var(--event-nav-bg) 40%, transparent); }
.event-nav-fade--right { right: 0; margin-left: -28px; justify-content: flex-end; background: linear-gradient(to left, var(--event-nav-bg) 40%, transparent); }
.event-nav-fade.is-visible { opacity: 1; }
.event-nav-fade__arrow {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  color: var(--text-muted);
  background: var(--bg-surface-2);
  border-radius: var(--radius-full);
  padding: 3px;
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   LANDING PAGE — Full redesign based on competitor analysis
   ============================================================ */
.landing-page { display: flex; flex-direction: column; min-height: 100vh; }

/* ---- Landing Nav ---- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}
.landing-nav__logo {
  display: inline-flex;
  align-items: center;
}
.landing-nav__logo img {
  display: block;
  height: 32px;
  width: auto;
}
.landing-nav__links { display: flex; align-items: center; gap: 4px; }
.landing-nav__links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.landing-nav__links a:hover { color: var(--text-primary); background: var(--bg-surface); }
.landing-nav__actions { display: flex; align-items: center; gap: 10px; }

/* ---- Hero — Split Layout ---- */
.landing-hero {
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-surface) 60%, var(--bg-surface-2) 100%);
  padding: 80px 32px;
  overflow: hidden; /* .landing-hero__visual::before bleeds 40px poza kontener (glow) — bez tego łamie szerokość na mobile */
}
.landing-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.landing-hero__text { display: flex; flex-direction: column; }

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(79,70,229,0.20);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  align-self: flex-start;
  letter-spacing: 0.03em;
}
[data-theme="dark"] .landing-badge { border-color: rgba(129,140,248,0.25); }

.landing-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.landing-headline span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

/* Checklist */
.landing-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.landing-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}
.landing-check svg { color: #16a34a; flex-shrink: 0; }
[data-theme="dark"] .landing-check svg { color: #86efac; }

/* Hero CTA buttons */
.landing-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.btn--demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.btn--demo:hover { color: var(--accent); }
.btn--demo .play-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn--demo:hover .play-icon { background: var(--accent); color: #fff; }
.btn--demo .play-icon svg { width: 12px; height: 12px; margin-left: 1px; }

/* Stats strip */
.landing-stats {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.landing-stat__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: block;
}
.landing-stat__label {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1px;
  display: block;
}

/* Hero visual (mockup) */
.landing-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.landing-hero__visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--accent-light) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-mockup {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  background: var(--bg-primary);
  overflow: hidden;
}
.hero-mockup img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}
.hero-live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.hero-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 2s infinite;
}
/* @keyframes live-pulse — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */

/* ---- How it works ---- */
.landing-steps {
  padding: 80px 32px;
  background: var(--bg-primary);
}
.landing-steps__inner { max-width: 1100px; margin: 0 auto; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.25;
}
.step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.step-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}
.step-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.step-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ---- Features Grid ---- */
.landing-features {
  padding: 80px 32px;
  background: var(--bg-surface);
}
.landing-features__inner { max-width: 1100px; margin: 0 auto; }
.features-block {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.features-block__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.features-block__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.features-block__header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.features-block__header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }
}
.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: left;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card--new {
  border-color: rgba(79, 70, 229, 0.25);
  background: linear-gradient(to bottom right, var(--bg-primary), var(--bg-surface));
}
[data-theme="dark"] .feature-card--new {
  border-color: rgba(129, 140, 248, 0.25);
}
.feature-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-grad);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-xs);
}
.feature-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.feature-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.feature-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.feature-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* Price badges on feature cards */
.badge-price {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.badge-price--free {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
}
[data-theme="dark"] .badge-price--free {
  color: #86efac;
}
.badge-price--combo {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.25);
}
[data-theme="dark"] .badge-price--combo {
  border-color: rgba(129, 140, 248, 0.3);
}

/* ---- Pricing Section ---- */
.landing-pricing {
  padding: 80px 32px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.landing-pricing__inner { max-width: 1100px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.pricing-card--popular {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  box-shadow: var(--shadow-md);
}
.pricing-badge-top {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-accent);
}
.pricing-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pricing-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 38px;
}
.pricing-price-box {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.pricing-currency {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pricing-period {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.pricing-item svg {
  color: #16a34a;
  flex-shrink: 0;
}
[data-theme="dark"] .pricing-item svg { color: #86efac; }
.pricing-item--muted {
  color: var(--text-faint);
  text-decoration: line-through;
}
.pricing-item--muted svg {
  color: var(--text-faint);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---- Testimonials ---- */
.landing-testimonials {
  padding: 80px 32px;
  background: var(--bg-primary);
}
.landing-testimonials__inner { max-width: 1100px; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: #f59e0b;
}
.testimonial-stars svg { width: 14px; height: 14px; fill: currentColor; }
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
  flex: 1;
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after { content: '"'; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.testimonial-meta { font-size: 0.75rem; color: var(--text-faint); }

/* ---- CTA Final ---- */
.landing-cta-final {
  padding: 80px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  text-align: center;
}
.landing-cta-final h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.landing-cta-final p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.btn--cta-final {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn--cta-final:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: var(--accent-2);
}

/* ---- Landing Footer ---- */
.landing-footer {
  color: var(--text-faint);
  font-size: 0.82rem;
  text-align: center;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

/* ---- Auth ---- */
.landing-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 400px;
}
.auth-divider {
  text-align: center;
  position: relative;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 2px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: var(--border-strong);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.magic-form { display: flex; flex-direction: column; gap: 10px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .landing-nav { padding: 0 16px; }
  .landing-nav__links { display: none; }
  .landing-hero { padding: 48px 20px; }
  .landing-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .landing-hero__visual { order: -1; }
  .hero-mockup { max-width: 340px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .landing-steps, .landing-features, .landing-testimonials, .landing-cta-final { padding: 56px 20px; }
  .landing-badge { align-self: center; }
  .landing-headline, .landing-sub { text-align: center; }
  .landing-checks { align-items: flex-start; }
  .landing-cta-group { justify-content: center; }
  .landing-stats { justify-content: center; }
  .landing-auth { align-items: center; max-width: 400px; margin: 0 auto; }
}

/* Message alert */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 16px;
  width: 100%;
  max-width: 400px;
  border: 1px solid transparent;
}
.alert--success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #16a34a; }
.alert--error   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #dc2626; }
.alert--info    { background: var(--accent-light); border-color: rgba(79,70,229,0.25); color: var(--accent); }
[data-theme="dark"] .alert--success { color: #86efac; }
[data-theme="dark"] .alert--error   { color: #f87171; }

/* @keyframes heartBurstAnim — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
/* @keyframes pulse-skeleton — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
/* @keyframes spin — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
}
[data-theme="dark"] .modal { box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.3); }
.modal--sm { max-width: 400px; }
/* Overlay drugorzędny (np. lista modułów) otwierany NAD innym modalem — wyższy
   z-index, bez własnego blur (tło jest już przyciemnione przez modal pod spodem). */
.modal-overlay--nested { z-index: 160; background: rgba(0,0,0,0.35); backdrop-filter: none; }
.modal--shake { animation: modal-shake 0.4s ease-in-out; }
.modal--upload {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
}
.modal--upload .modal__header {
  flex-shrink: 0;
  padding: 20px 24px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
}
.modal__footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  padding: 14px 24px 20px;
  z-index: 10;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
}
.upload-prep-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
}
.upload-prep-spinner svg {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  color: #6366f1;
  flex-shrink: 0;
}
.modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 26px 0;
  margin-bottom: 22px;
}
.modal__header h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 12px; letter-spacing: -0.01em; }
.modal__header-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal__back {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.modal__back:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.modal__back svg { width: 16px; height: 16px; }
.modal__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal__close:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.modal__close svg { width: 14px; height: 14px; }
.modal__form { padding: 0 26px 26px; display: flex; flex-direction: column; gap: 16px; }

/* @keyframes pulse-dot — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
/* @keyframes quiz-timer-ring-blink — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
/* @keyframes quiz-live-pulse — przeniesione do sekcji ANIMATIONS na końcu tego pliku (Faza 3) */
/* ============================================================
   EMPTY STATES & UTILS
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state--sm { padding: 40px 20px; }
.empty-state__icon { display: flex; justify-content: center; margin-bottom: 16px; color: var(--text-faint); }
.empty-state__icon svg { width: 48px; height: 48px; stroke-width: 1.3; }
.empty-state h2 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }

.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.text-accent { color: var(--accent); }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .landing-nav { padding: 0 16px; }
  .pa-page { padding: 16px; }
  .event-main { padding: 12px; }
  .landing-hero { padding: 40px 16px 36px; }
  .landing-headline { letter-spacing: -0.015em; }
  /* .challenge-*/.timeline-item/.quiz-question__text — override responsywny
     przeniesiony do guest.css (reguła bazowa tych klas jest w warstwie guest). */
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-item { width: 68px; }
  .nav-label { font-size: 0.55rem; }
  /* .topbar*, .topbar-inner*, .topbar-new-event-label — override responsywny
     przeniesiony do admin.css razem z regułą bazową (Faza 6c). */
  .topbar-breadcrumb__label { display: none; }
  .topbar-breadcrumbs { gap: 4px; }
  .topbar-breadcrumb__sep { width: 10px; }
}

/* ── Live Slideshow — pełnoekranowy pokaz na rzutnik/TV ─────────────────── */
.slideshow {
  position: fixed;
  inset: 0;
  background: #05050a;
  overflow: hidden;
}
.slideshow__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
  pointer-events: none;
}
.slideshow__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  border-radius: 0 2px 2px 0;
  will-change: width;
}
.slideshow__stage {
  position: absolute;
  inset: 0;
}
.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideshow__slide--active {
  opacity: 1;
  z-index: 1;
}
.slideshow__media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.slideshow__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 48px 40px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slideshow__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}
.slideshow__qr {
  width: 220px;
  height: 220px;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.slideshow__empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 8px 0 0;
}
.slideshow__empty-sub {
  font-size: 1rem;
  color: #94a3b8;
  margin: 0;
}

/* ── Quiz Live — ekran prezentera (TV/rzutnik) ──────────────────────────── */
/* Domyślnie jasny (czytelny na rzutnikach w dzień) — przełącznik w rogu
   (quiz_display.js: theme, localStorage 'qr3_quiz_display_theme') przełącza na
   .quiz-display--dark. Niezależne od globalnego motywu strony (żadna reguła
   motywu jej nie dotyka) — to osobne, zapamiętane per urządzenie/TV. */
.quiz-display {
  --qd-bg: #f8fafc;
  --qd-text: #0f172a;
  --qd-accent: #d97706;
  --qd-muted: #64748b;
  --qd-option-bg: rgba(15,23,42,0.04);
  --qd-option-border: rgba(15,23,42,0.14);
  --qd-option-letter-bg: rgba(15,23,42,0.08);
  --qd-lb-row-bg: rgba(15,23,42,0.045);
  --qd-correct-bg: rgba(22,163,74,0.14);
  --qd-shadow: 0 20px 60px rgba(15,23,42,0.12);

  position: fixed;
  inset: 0;
  background: var(--qd-bg);
  color: var(--qd-text);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  overflow-y: auto;
  transition: background 0.3s ease, color 0.3s ease;
}
.quiz-display--dark {
  --qd-bg: #05050a;
  --qd-text: #f1f5f9;
  --qd-accent: #f59e0b;
  --qd-muted: #94a3b8;
  --qd-option-bg: rgba(255,255,255,0.06);
  --qd-option-border: rgba(255,255,255,0.12);
  --qd-option-letter-bg: rgba(255,255,255,0.1);
  --qd-lb-row-bg: rgba(255,255,255,0.05);
  --qd-correct-bg: rgba(22,163,74,0.2);
  --qd-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.quiz-display__theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--qd-option-border);
  background: var(--qd-option-bg);
  color: var(--qd-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.quiz-display__theme-toggle svg { width: 20px; height: 20px; }
.quiz-display__eyebrow {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-accent);
  margin: 0 0 24px;
}
.quiz-display .quiz-timer-ring { width: 150px; height: 150px; margin-bottom: 20px; }
.quiz-display .quiz-timer-ring circle { stroke-width: 9; }
.quiz-display .quiz-timer-ring__track { stroke: var(--qd-option-border); }
.quiz-display .quiz-timer-ring__progress { stroke: var(--qd-accent); }
.quiz-display .quiz-timer-ring__value { font-size: 2.6rem; color: var(--qd-text); }
/* Odliczanie w fazie 'revealed' (do następnego pytania) — celowo bez pierścienia,
   koloru ani migania: to informacyjny podpis, nie presja czasu jak przy odpowiadaniu. */
.quiz-display__timer-plain {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--qd-muted);
  margin: 0 0 20px;
}
.quiz-display__timer-plain span { font-weight: 800; color: var(--qd-text); }
.quiz-display__question {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  max-width: 1100px;
  margin-bottom: 48px;
  line-height: 1.25;
  padding: 22px 36px;
  background: var(--qd-option-bg);
  border: 2px solid var(--qd-accent);
  border-radius: 22px;
}
.quiz-display__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}
@media (max-width: 760px) {
  .quiz-display__options { grid-template-columns: 1fr; }
}
.quiz-display__option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--qd-option-bg);
  border: 2px solid var(--qd-option-border);
  border-radius: 16px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  text-align: left;
  transition: all 0.3s ease;
}
.quiz-display__option--correct { border-color: #16a34a; background: var(--qd-correct-bg); }
.quiz-display__option--wrong-highlight { opacity: 0.45; }
.quiz-display__option-letter {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--qd-option-letter-bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.quiz-display__tally {
  margin-left: auto;
  font-size: 0.85em;
  opacity: 0.8;
  font-weight: 800;
}
.quiz-display__counter {
  margin-top: 40px;
  font-size: 1.3rem;
  color: var(--qd-muted);
}
.quiz-display__counter strong { color: var(--qd-text); font-size: 1.6rem; }
.quiz-display__leaderboard {
  margin-top: 24px;
  width: 100%;
  max-width: 620px;
  max-height: 55vh;
  overflow-y: auto;
}
.quiz-display__leaderboard h3 {
  font-size: 1.1rem;
  color: var(--qd-accent);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quiz-display__lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: var(--qd-lb-row-bg);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.quiz-display__lb-rank { width: 36px; font-size: 1.3rem; }
.quiz-display__lb-name { flex: 1; text-align: left; font-weight: 600; }
.quiz-display__lb-score { font-weight: 800; color: var(--qd-accent); }
.quiz-display__qr {
  display: block;
  width: 260px; height: 260px;
  padding: 18px;
  background: #fff;
  border-radius: 22px;
  margin: 0 0 16px;
  box-shadow: var(--qd-shadow);
}
.quiz-display__qr-caption {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--qd-muted);
  margin: 0 0 36px;
}

/* Self-hosted Twemoji SVG (js/twemoji-init.js) — spójny wygląd emoji na każdym
   telefonie, zamiast fontu systemowego. Rozmiar 1em, żeby wtapiały się w tekst
   jak natywny znak emoji (te same wartości co TinyMCE emoticons picker). */
img.twemoji-icon {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
  display: inline-block;
}

/* ============================================================
   UTILITY (minimalny zestaw — od 2026-08-28, refaktor inline style)
   Namespace u-*, mapują 1:1 najczęstsze inline deklaracje w panelu PA.
   NIE jest to framework — dodawać oszczędnie.
   ============================================================ */
.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-flex-wrap { flex-wrap: wrap; }
.u-items-center { align-items: center; }
.u-items-start { align-items: flex-start; }
.u-items-baseline { align-items: baseline; }
.u-justify-between { justify-content: space-between; }
.u-justify-center { justify-content: center; }
.u-grow { flex: 1; min-width: 0; }
.u-gap-1 { gap: 4px; }
.u-gap-2 { gap: 8px; }
.u-gap-3 { gap: 12px; }
.u-gap-4 { gap: 16px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-1 { margin-bottom: 4px; }
.u-mb-2 { margin-bottom: 8px; }
.u-mb-3 { margin-bottom: 12px; }
.u-mb-4 { margin-bottom: 16px; }
.u-mb-5 { margin-bottom: 20px; }
.u-mb-6 { margin-bottom: 24px; }
.u-mt-2 { margin-top: 8px; }
.u-m-0 { margin: 0; }
.u-w-full { width: 100%; }
.u-text-center { text-align: center; }
.u-text-sm { font-size: 0.85rem; }
.u-text-xs { font-size: 0.78rem; }
.u-text-muted { color: var(--text-muted); }
.u-bold { font-weight: 700; }
.u-medium { font-weight: 500; }
.u-hidden { display: none; }
.u-italic { font-style: italic; }

/* ============================================================
   MODAL AUTH / KREATOR NA LANDINGU (landing.html) — od 2026-08-28
   Ciemny modal z własną paletą (niezależny od motywu strony).
   ============================================================ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.auth-modal__card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  margin: auto;
  box-sizing: border-box;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
}
.auth-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.auth-modal__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.auth-modal__head { margin-bottom: 24px; }
.auth-modal__title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.auth-modal__lead { font-size: 0.88rem; color: #94a3b8; margin: 8px 0 0; }

.auth-field { margin-bottom: 16px; }
.auth-field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}
.auth-field__label--upper { text-transform: uppercase; letter-spacing: 0.5px; }

/* Pola tekstowe w tym modalu — ciemne tło, ważność podbita bo modal-input-field
   ma jasny motyw z panelu admina */
.auth-input {
  width: 100%;
  display: block;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  outline: none !important;
}
.auth-input--sm { padding: 11px 14px !important; font-size: 0.9rem !important; }
.auth-input--pointer { cursor: pointer !important; }
.auth-input + .auth-input { margin-top: 8px; }
.auth-input.input-error { border-color: #ef4444 !important; background: rgba(239, 68, 68, 0.1) !important; }

.auth-info {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.auth-info__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 6px;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.auth-consent input[type="checkbox"] {
  accent-color: #6366f1;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-consent a { color: #818cf8; text-decoration: underline; }

.auth-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-error__icon { flex-shrink: 0; }
.auth-error--center { text-align: center; display: block; background: none; border: none; color: #f87171; padding: 0; }

.auth-submit {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 14px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: opacity .2s;
}
.auth-submit:disabled { opacity: 0.6; cursor: default; }

.auth-otp-head { text-align: center; margin-bottom: 24px; }
.auth-otp-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.auth-otp-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-otp-sub { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.auth-otp-sub strong { color: #6366f1; }
.auth-otp-sub small { color: var(--text-muted); }
.auth-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  max-width: 100%;
}
.auth-back-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}
.auth-back-row { text-align: center; margin-top: 18px; }

/* Drobne one-offy strony landing (poza modalem) */
.lp-travel-banner {
  background: var(--accent-light, #eef2ff);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
}
.lp-travel-banner a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.lp-alert-mb { margin-bottom: 20px; }
.lp-oneprice {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.lp-pricing-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.lp-pricing-hint--accent { color: var(--accent); font-weight: 600; }
.pricing-item--total { font-weight: 700; color: #059669; }
.features-block__badge--commercial { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.pricing-badge-top--accent { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent); }
.pricing-notice-box--spaced {
  margin-top: 36px;
  padding: 22px 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}
.pricing-notice-box__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pricing-notice-box__text { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.text-warn { color: #ef4444; font-weight: 600; }
.btn--cta-final-inline { cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px; }
.lp-cta-sub { font-size: 0.8rem; margin-top: 16px; opacity: 0.65; }

/* ============================================================
   CSP Etap 5 — event_notice.html (strona-komunikat: event nie
   rozpoczęty / zakończony). Standalone, extends base.html, dark.
   ============================================================ */
.evn-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; color: #f8fafc; font-family: 'Inter', sans-serif;
}
.evn-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px; max-width: 520px; width: 100%; padding: 40px 32px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px); text-align: center;
}
.evn-logo {
  font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: #818cf8; letter-spacing: -0.02em; margin-bottom: 32px;
}
.evn-icon {
  width: 68px; height: 68px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.evn-icon--wait {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3); color: #818cf8;
}
.evn-icon--done {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171;
}
.evn-title {
  font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 700;
  color: #ffffff; margin: 0 0 10px 0;
}
.evn-location { font-size: 0.92rem; color: #cbd5e1; margin: 0 0 16px 0; }
.evn-box {
  border-radius: 16px; padding: 18px 20px; margin: 24px 0;
  font-size: 0.95rem; line-height: 1.6;
}
.evn-box--wait {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25); color: #e2e8f0;
}
.evn-box--done {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25); color: #fca5a5;
}
.evn-box__head {
  display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 4px;
}
.evn-box--wait .evn-box__head { color: #a5b4fc; }
.evn-box--done .evn-box__head { color: #fca5a5; }
.evn-box__strong { color: #ffffff; font-size: 1.1rem; }
.evn-hint {
  font-size: 0.85rem; color: #94a3b8; line-height: 1.5; margin: 0;
}

/* ============================================================================
   CSP Etap 5 — strony-komunikaty standalone (error.html, event_deleted.html)
   Wcześniej ~15 inline style= na dwóch bliźniaczych szablonach. Ciemny gradient,
   karta glassmorphism, akcent czerwony (błąd) / zielony (usunięcie = wariant --ok).
   ============================================================================ */
.err-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
}
.err-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 40px 32px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  text-align: center;
}
.err-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.err-icon {
  width: 68px;
  height: 68px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  margin-bottom: 20px;
}
.err-icon--ok {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.err-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}
.err-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #fca5a5;
  line-height: 1.6;
}
.err-box--ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}
.err-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 600;
}
.err-code {
  font-size: 0.78rem;
  color: #64748b;
  margin: 20px 0 0 0;
}

/* ============================================================================
   CSP Etap 5 — blog (blog/list.html, blog/post.html, supervisor/blog_list.html)
   Wcześniej 29 inline style= na trzech szablonach. Publiczna lista wpisów +
   pojedynczy wpis + panel supervisora. Reużywa .card, .badge, .info-page-wrap.
   ============================================================================ */
.blg-wrap { max-width: 880px; }
.blg-page-title { font-family: var(--font-heading); margin-bottom: 8px; }
.blg-lead { color: var(--text-muted); margin-bottom: 24px; }
.blg-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.blg-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}
.blg-list {
  display: grid;
  gap: 18px;
}
.blg-card {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 16px;
  align-items: center;
}
.blg-card__cover {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.blg-card__body { min-width: 0; }
.blg-card__title {
  font-size: 1.1rem;
  margin: 0 0 6px;
  font-family: var(--font-heading);
}
.blg-card__excerpt {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.blg-card__tags {
  font-size: 0.78rem;
  color: var(--accent);
}

/* pojedynczy wpis */
.blg-back {
  display: inline-block;
  margin-bottom: 14px;
}
.blg-post-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.blg-post-tags { margin-bottom: 20px; }
.blg-post-tags .badge { margin-right: 6px; }

/* panel supervisora */
.blg-sv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.blg-sv-new-form {
  display: flex;
  gap: 8px;
}
.blg-sv-new-input { min-width: 220px; }
.blg-sv-item {
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.blg-sv-item__body { min-width: 0; }
.blg-sv-item__titlerow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blg-sv-item__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.blg-sv-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.blg-sv-del-btn { color: #dc2626; }



/* ============================================================
   SHARED COMPONENTS — komponenty używane i w modułach gościa, i w zapleczu
   (albo na stronach publicznych). Przeniesione tu w Fazie 3 fix 2026-09-03,
   bo section-based split zostawił je tylko w guest.css/admin.css.
   ============================================================ */

/* --- z guest.css --- */
/* FAB upload button */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
  /* Trzyma się prawej krawędzi treści, nie okna — na szerokim monitorze inaczej
     odlatywałby daleko od galerii */
  right: max(20px, calc(50vw - var(--event-max-width) / 2 + 20px));
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent);
  z-index: 90;
  transition: all var(--transition);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(79,70,229,0.45); }
.fab svg { width: 22px; height: 22px; color: #fff; }
/* .admin-list-item — wspólny wiersz listy: panel PA/supervisor + event/expenses + event/seating (gość) */
.admin-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px;
  background: #FAFAF8;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 6px;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}
[data-theme="dark"] .admin-list-item { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.admin-list-item:hover { border-color: rgba(0,0,0,0.12); }
.admin-list-item[open] summary { margin-bottom: 4px; }
.admin-list-item summary::-webkit-details-marker { display: none; }
.lightbox__video {
  max-width: 100%; max-height: 80vh; border-radius: var(--radius-md, 8px); outline: none;
}
.lightbox__author-link {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; margin-top: 4px; display: inline-block;
}
.lightbox__author-link:hover { color: #fff; text-decoration: underline; }
/* Modern Lightbox UX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  /* iOS Safari: pasek URL chowa się/pokazuje przy przewijaniu galerii. Lightbox jest
     teleportowany do <body> i tło jest zablokowane (position:fixed na body, app.js),
     ale wysokość i tak liczymy z dvh — śledzi aktualny widok, gdy chrome przeglądarki
     zmienia rozmiar. 100vh jako fallback dla starszych silników. */
  height: 100vh;
  height: 100dvh;
  background: #090d16;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  transition: opacity 0.2s ease;
}
.lightbox__ambient {
  position: absolute; inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.35);
  transform: scale(1.1);
  z-index: 0;
  pointer-events: none;
  transition: background-image 0.4s ease;
}
.lightbox__topbar {
  position: absolute; top: 0; left: 0; right: 0;
  min-height: 60px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  /* Odsuwamy X i pigułkę autora od paska stanu / wcięcia (notch) i chromu
     przeglądarki — bez tego przy schowanym pasku adresu przycisk trafiał pod
     krawędź ekranu. env() = 0 na urządzeniach bez wcięcia, więc zostaje 10px. */
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  pointer-events: auto;
  gap: 10px;
}
.lightbox__topbar-left {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow: hidden; flex: 1; min-width: 0;
}
.lightbox__topbar-caption {
  color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.lightbox__topbar-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.lightbox__counter {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem; font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 4px 12px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.lightbox__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.15s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__stage {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 16px 80px 16px;
  cursor: grab;
}
.lightbox__stage:active { cursor: grabbing; }
.lightbox__reactions-overlay {
  position: absolute; left: 24px; bottom: 96px; z-index: 6;
  display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 48px);
}
.lightbox__img {
  max-width: 100%; max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  pointer-events: auto;
  touch-action: none;
}
.lightbox__video {
  max-width: 100%; max-height: 82vh;
  outline: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  pointer-events: auto;
}
/* Double tap Heart Burst */
.lightbox__heart-burst {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 5rem;
  pointer-events: none;
  z-index: 20;
  animation: heartBurstAnim 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* Floating Dock */
.lightbox__dock {
  position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px;
  z-index: 15;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 14px;
  gap: 10px;
}
.lightbox__dock-left {
  display: flex; align-items: center; gap: 8px; overflow: hidden;
}
.lightbox__author-pill {
  color: #fff; font-size: 0.82rem; font-weight: 600; text-decoration: none;
  background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.lightbox__dock-caption {
  color: rgba(255,255,255,0.85); font-size: 0.82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lightbox__dock-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.lightbox__quick-reactions {
  display: flex; gap: 4px; align-items: center;
}
.lightbox__drawer-btn {
  background: rgba(255,255,255,0.18); border: none; color: #fff;
  font-size: 0.84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background 0.2s ease;
}
.lightbox__drawer-btn:hover { background: rgba(255,255,255,0.28); }
/* Bottom Sheet Drawer */
.lightbox__drawer {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-height: 75vh; z-index: 30;
  background: #0f172a;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
  display: flex; flex-direction: column;
  padding: 12px 16px 24px 16px;
  pointer-events: auto;
}
.lightbox__drawer-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 12px auto; cursor: pointer;
}
.lightbox__drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lightbox__drawer-header h3 {
  margin: 0; font-size: 1rem; color: #fff; font-weight: 600;
}
.lightbox__drawer-close {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.1rem; cursor: pointer; padding: 2px 6px;
}
.lightbox__drawer-close:hover { color: #fff; }
.lightbox__drawer-content {
  overflow-y: auto; flex: 1;
}
.upload-hint { display: block; color: var(--text-faint); font-size: 0.78rem; text-align: center; margin-bottom: 16px; }
.upload-queue { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.upload-item { position: relative; display: flex; align-items: center; gap: 10px; background: var(--bg-surface-2); border-radius: var(--radius-sm); padding: 10px 34px 10px 14px; border: 1px solid var(--border); }
.upload-item__remove {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-surface-3); border: 1px solid var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; line-height: 1; cursor: pointer; padding: 0;
}
.upload-item__remove:hover { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.35); color: #ef4444; }
.upload-item__thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-surface-3); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.upload-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-item__body { flex: 1; min-width: 0; }
.upload-item__name { font-size: 0.83rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item__bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.upload-item__progress { height: 100%; width: var(--up-progress, 0%); background: var(--accent-grad); border-radius: 2px; transition: width 0.3s ease; }
.upload-item__status { font-size: 0.73rem; color: var(--text-muted); margin-top: 4px; }
/* Nazwa unikalna — była kolizja z drugim @keyframes pulse (sekcja QUIZ, wariant ze scale),
   przez którą skeleton uploadu dostawał animację kropek "connecting". */
.upload-item__skeleton {
  width: 100%; height: 100%;
  background: var(--bg-surface-2, rgba(255, 255, 255, 0.12));
  border-radius: 6px;
  animation: pulse-skeleton 1.2s infinite ease-in-out;
}
/* ============================================================
   PAGE SECTIONS (schedule, menu, book, dj, challenge, quiz)
   ============================================================ */
.page-section { padding: 8px 0; }
.section-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
/* Ikona modułu w nagłówku — ten sam zestaw SVG co lista modułów w adminie */
.title-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.title-icon svg { width: 20px; height: 20px; }
[data-theme="dark"] .title-icon {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
  color: #a5b4fc;
}
.badge {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.badge--green { background: rgba(22,163,74,0.1); color: #15803d; border-color: rgba(22,163,74,0.2); }
.badge--yellow { background: rgba(202,138,4,0.1); color: #92400e; border-color: rgba(202,138,4,0.2); }
[data-theme="dark"] .badge--green { color: #86efac; border-color: rgba(134,239,172,0.25); }
[data-theme="dark"] .badge--yellow { color: #fde047; border-color: rgba(253,224,71,0.25); }
/* Supervisor dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.stat-card__value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-card__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.supervisor-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.supervisor-table th, .supervisor-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.supervisor-table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
.supervisor-table tr:last-child td { border-bottom: none; }
.supervisor-table tr:hover td { background: var(--bg-surface-2); }
.supervisor-table a { color: var(--accent); font-weight: 500; text-decoration: none; }
.supervisor-table a:hover { text-decoration: underline; }
.supervisor-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: flex-end; }
.supervisor-filters .form-group { margin-bottom: 0; min-width: 160px; }
.entry-card__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.entry-card__photo { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; display: block; border: 1px solid var(--border); }
.entry-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Link do playlisty Spotify eventu — panel DJ-a (dj_manage.html). */
.dj-playlist-box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px;
  background: #1DB95412; border: 1px solid #1DB95440; border-radius: var(--radius-md);
}
.dj-playlist-box img { width: 76px; height: 76px; border-radius: 6px; background: #fff; }
.dj-playlist-box__info { display: flex; flex-direction: column; gap: 2px; }
.dj-playlist-box a { color: #1a8f42; font-weight: 600; text-decoration: none; }
.dj-playlist-box a:hover { text-decoration: underline; }
.u-ml-2 { margin-left: 8px; }
.entry-card__photo-media { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* lightbox: hooki runtime (custom properties) — współdzielone przez event/gallery,
   event/memories i admin/gallery_manage (ten sam markup lightboxa). */
.glb-lightbox-ambient { background-image: var(--glb-ambient, none); }
.glb-lightbox-stage {
  transform: translate(var(--glb-tx, 0px), var(--glb-ty, 0px)) scale(var(--glb-scale, 1));
  opacity: var(--glb-opacity, 1);
  transition: var(--glb-transition, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease);
  cursor: var(--glb-cursor, grab);
}
.glb-lightbox-img {
  transform: translate(var(--glb-pan-x, 0px), var(--glb-pan-y, 0px)) scale(var(--glb-zoom, 1));
  transition: var(--glb-img-transition, transform 0.2s ease);
}

/* --- kreator wydarzenia: modale współdzielone z landing.html (public) + dashboard --- */
/* Bulletproof Centered Modals */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  overflow-y: auto !important;
}
.modal-backdrop[style*="display: none"],
.modal-backdrop[style*="display:none"] {
  display: none !important;
}
.modal-card {
  margin: auto !important;
  position: relative !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}
/* ============================================================
   WSPÓLNE KOMPONENTY MODALI — kreator wydarzenia (od 2026-08-28)
   Wyprowadzone z inline style w admin/event.html, dashboard.html,
   landing.html. `.modal-backdrop` / `.modal-card` (wyżej) zostają.
   ============================================================ */

/* Ciemna karta modala — dotąd inline `background:#0f172a` w 3 szablonach */
.modal-card--dark {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  color: #fff;
  max-width: 500px;
  width: 90%;
}
.modal-card__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card__close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.modal-card__title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.modal-card__subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 20px;
}
.modal-card__title--spaced { margin-bottom: 20px; }
/* Krok 1 kreatora — wybór typu wydarzenia kaflami.
   auto-fit + minmax zamiast sztywnych 2 kolumn — od .wizard-page 1080px (PA)
   kafle nie rozciągają się nienaturalnie, tylko dokładają kolumny. */
.type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.type-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.type-tile:hover { border-color: rgba(129, 140, 248, 0.6); }
.type-tile--active {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
}
.type-tile__emoji { font-size: 1.6rem; line-height: 1; }
.type-tile__label { font-size: 0.95rem; font-weight: 700; }
.type-tile__hint { font-size: 0.76rem; color: #94a3b8; }
/* Wariant jasny — modal na jasnym tle (dashboard.html, .modal) */
.type-picker--light { grid-template-columns: 1fr 1fr; gap: 12px; }
.type-tile--light {
  border: 1.5px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  gap: 4px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.type-tile--light:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.type-tile--light.type-tile--active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-light);
  color: var(--text-primary);
  transform: none;
}
.type-tile--light .type-tile__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-size: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  margin-bottom: 4px;
}
.type-tile--light.type-tile--active .type-tile__emoji { background: var(--bg-primary); }
.type-tile--light .type-tile__label { font-size: 0.94rem; color: var(--text-primary); }
.type-tile--light .type-tile__hint { color: var(--text-muted); line-height: 1.35; }
/* Breadcrumbs kreatora wydarzenia w topbarze (3 kroki: typ / dane / wycena) —
   wyśrodkowane absolutnie względem .topbar (position:sticky, containing block),
   niezależnie od .topbar-left/.topbar-right (patrz admin/_topbar.html, admin.css). */
.topbar-breadcrumbs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.topbar-breadcrumb:disabled { cursor: default; }
.topbar-breadcrumb.is-done:hover { background: var(--bg-surface-2); }
.topbar-breadcrumb__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.topbar-breadcrumb__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.topbar-breadcrumb.is-active .topbar-breadcrumb__dot { background: var(--accent); color: #fff; }
.topbar-breadcrumb.is-active .topbar-breadcrumb__label { color: var(--text-primary); }
.topbar-breadcrumb.is-done .topbar-breadcrumb__dot { background: var(--accent-light); color: var(--accent); }
.topbar-breadcrumb.is-done .topbar-breadcrumb__label { color: var(--text-primary); }
.topbar-breadcrumb__sep { width: 20px; height: 2px; background: var(--bg-surface-2); transition: background var(--transition); }
.topbar-breadcrumb__sep.is-done { background: var(--accent); }
.wizard-step1--light { padding: 4px 26px 26px; }
.wizard-lead { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 18px; }
.wizard-nav--tight { margin-bottom: 4px; }
/* Krok 2 — pasek powrotu */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.wizard-back {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
}
.wizard-back:hover { background: rgba(255, 255, 255, 0.14); }
.wizard-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Link "Co zawiera pakiet?" — kreator wydarzenia, krok Wycena */
.wizard-package-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: -4px 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  align-self: flex-start;
}
.wizard-package-link:hover { text-decoration: underline; }
.wizard-package-list {
  list-style: none;
  margin: 0;
  padding: 4px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}
.wizard-package-list li { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.wizard-package-list li strong { color: var(--text-primary); }
.wizard-package-list li span { color: var(--text-muted); font-size: 0.82rem; }
.discount-code-row { display: flex; gap: 8px; }
.discount-code-row .input { flex: 1; }
/* Pola formularza w ciemnym modalu */
.modal-field { margin-bottom: 16px; }
.modal-field--gap-lg { margin-bottom: 24px; }
.modal-field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.modal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-field-row > div { min-width: 0; }
.modal-field__hint { font-size: 0.76rem; color: #94a3b8; margin-top: 4px; }
.modal-range { width: 100%; accent-color: rgb(129, 140, 248); }
.modal-quote-box {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: var(--radius-md, 10px);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.modal-quote-box__breakdown { font-size: 0.8rem; color: #cbd5e1; margin: 0 0 4px; }
.modal-quote-box__total { font-size: 1rem; margin: 0; }
/* Wariant jasny — modal na jasnym tle (dashboard.html, .modal--wizard) */
.modal-quote-box--light {
  background: var(--accent-light);
  border-color: var(--accent);
}
.modal-quote-box--light .modal-quote-box__breakdown,
.modal-quote-box--light .modal-quote-box__total { color: var(--text-primary); }
.modal-field__hint--light { color: var(--text-muted); }
/* Modal kreatora na jasnym tle (dashboard.html) */
.modal--wizard { max-width: 540px; border-radius: var(--radius-xl); }
/* Kreator wydarzenia jako osobna strona (dashboard_new_event.html) — sam markup
   kroków 1:1 z .modal--wizard, tylko bez overlay; karta wyśrodkowana pod topbarem,
   wewnątrz main.pa-page (1040px) — patrz admin.css. */
.wizard-page-back { margin-bottom: 10px; }
.wizard-page {
  width: 100%;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  padding: 26px 0 0;
  box-sizing: border-box;
}
[data-theme="dark"] .wizard-page { box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.3); }
.wizard-form { padding: 0 26px 26px; display: flex; flex-direction: column; gap: 16px; }

/* Wyszukiwanie lokalu (Google Places autocomplete) — kreator wydarzenia, krok 2 */
.venue-search { position: relative; }
.venue-search-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,0.12));
  max-height: 260px; overflow-y: auto;
}
.venue-search-result { padding: 9px 12px; cursor: pointer; }
.venue-search-result:hover { background: var(--bg-surface-2); }
.venue-search-result strong { display: block; font-size: 0.87rem; }
.venue-search-result small { font-size: 0.76rem; color: var(--text-muted); }
.venue-selected-chip {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: var(--bg-surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.venue-selected-chip__info { display: flex; flex-direction: column; min-width: 0; }
.venue-selected-chip__info strong { font-size: 0.88rem; }
.venue-selected-chip__info small { font-size: 0.78rem; color: var(--text-muted); }
.venue-selected-chip__clear {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 0.78rem; text-decoration: underline; flex-shrink: 0; padding: 0;
}
.venue-manual-toggle {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 0.78rem; text-decoration: underline; padding: 4px 0 0; align-self: flex-start;
}
.cf-turnstile-venue { margin-top: 8px; }
.modal-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 20px 12px;
}
.modal-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}
:root[data-theme="dark"] .modal-alert--error { color: #fca5a5; }
/* Checkbox zgód (Regulamin / Polityka / DPA) — kreator wydarzenia */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin: 4px 0 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  flex-shrink: 0;
}
.consent-check.input-error { color: #ef4444; }
.consent-check.input-error input[type="checkbox"] { outline: 2px solid #ef4444; outline-offset: 2px; border-radius: 3px; }
/* ============================================================================
   CSP Etap 5 — admin: :style string -> obiekt / klasa (event.html modale,
   gallery_manage.html lightbox+chip, guest_activity.html modal QR,
   visit_stats.html słupki). Domyka też legacy selektor atrybutowy
   .modal-backdrop[style*="display:none"] (§4.1).
   ============================================================================ */

/* Backdrop modali w admin/event.html — kopia wyglądu .modal-backdrop, ale BEZ
   !important i BEZ zależności od atrybutu style= (widocznością rządzi x-show). */
.ev-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

/* --- z admin.css --- */
/* Admin form rows */
.admin-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.admin-form .form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
/* Mapka sali — obrazek + klikalne pineski stolików */
.seating-map-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: default;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}
.seating-map-wrap--placing { cursor: crosshair; box-shadow: 0 0 0 2px var(--accent); }
.seating-map-wrap img { display: block; max-width: 100%; height: auto; }
.seating-map-pin {
  position: absolute;
  /* Pozycja pinu z danych (runtime) — gość: event/seating.html ustawia
     --seat-x/--seat-y przez :style obiekt (CSP Etap 5); admin nadpisuje
     bardziej szczegółowym .mc-main .seating-map-pin (--mc-pin-x/y). */
  left: var(--seat-x, 50%);
  top: var(--seat-y, 50%);
  transform: translate(-50%, -100%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
}
.seating-map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent);
}

/* ============================================================
   CONFIRM / ALERT MODAL — js/confirm-helper.js. Markup budowany z klas (wcześniej
   ~27 linii inline style= w innerHTML). Własny namespace .confirm-modal*, NIE
   .modal-backdrop — confirm-helper nie zależy od globalnego `display:flex
   !important` ani selektora [style*="display:none"]; widoczność przez [hidden].
   Zamyka się WYŁĄCZNIE przyciskiem (bez klik-w-tło / Esc) — patrz skill frontend.
   ============================================================ */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  overflow-y: auto;
}
.confirm-modal[hidden] { display: none; }

.confirm-modal__card {
  margin: auto;
  position: relative;
  width: 92%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #1e293b);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: "Inter", sans-serif;
}
.confirm-modal__title {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-main, #0f172a);
}
.confirm-modal__message {
  font-size: 0.92rem;
  color: var(--text-muted, #475569);
  margin-bottom: 20px;
  white-space: pre-line;
  line-height: 1.55;
}

/* Podgląd pliku (opcjonalny) */
.confirm-modal__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
}
.confirm-modal__preview[hidden] { display: none; }
.confirm-modal__thumb {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-modal__thumb-img { width: 100%; height: 100%; object-fit: cover; }
.confirm-modal__thumb-img[hidden] { display: none; }
.confirm-modal__thumb-fallback { font-size: 1.8rem; }
.confirm-modal__thumb-fallback[hidden] { display: none; }
.confirm-modal__thumb-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.1rem;
}
.confirm-modal__thumb-video[hidden] { display: none; }
.confirm-modal__preview-body { flex: 1; min-width: 0; }
.confirm-modal__preview-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.confirm-modal__preview-caption {
  font-size: 0.83rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.confirm-modal__preview-caption[hidden] { display: none; }
.confirm-modal__preview-flag { margin-top: 4px; }
.confirm-modal__preview-flag[hidden] { display: none; }
.confirm-modal__flag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.confirm-modal__flag--hidden { background: rgba(220, 38, 38, 0.15); color: #dc2626; }
.confirm-modal__flag--visible { background: rgba(16, 185, 129, 0.15); color: #059669; }

.confirm-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.confirm-modal__actions .btn { width: 100%; }
.confirm-modal__btn-secondary[hidden],
.confirm-modal__btn-cancel[hidden] { display: none; }

/* ============================================================
   TOAST — jedna implementacja (js/toast.js). Zastąpił 3 warianty inline-cssText:
   showToast (panel org.), qr3Toast (powiadomienia ZIP), showGuestToast (gość).
   Wygląd wg type; pozycja wg host-kontenera.
   ============================================================ */
.qr3-toast-host {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.qr3-toast-host--bottom-right { right: 24px; bottom: 24px; align-items: flex-end; }
.qr3-toast-host--bottom-center {
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  align-items: center;
}

.qr3-toast {
  pointer-events: auto;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 10px;
  font: 600 0.9rem/1.4 "Inter", sans-serif;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
}
.qr3-toast--in { opacity: 1; transform: translateY(0); }
.qr3-toast--info { background: #0f172a; color: #f8fafc; }
.qr3-toast--success { background: #10b981; }
.qr3-toast--error { background: #ef4444; }

/* ============================================================
   ANIMATIONS — wszystkie @keyframes projektu (skonsolidowane w Fazie 3)
   Definicje trzymane tu (base.css, ładowane zawsze); reguły-konsumenci
   zostają w swoich warstwach (base/guest/admin).
   ============================================================ */
@keyframes test-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
@keyframes heartBurstAnim {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
@keyframes pulse-skeleton { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.75; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes quiz-timer-ring-blink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 rgba(220,38,38,0)); }
  50% { opacity: 0.35; filter: drop-shadow(0 0 14px rgba(220,38,38,0.65)); }
}
@keyframes quiz-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.35); }
  50% { box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}
@keyframes modal-shake {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.025); }
}
