/* ==========================================================================
   OOO Community — design 2026
   Moderní design systém, bez jQuery/Bootstrap/owl-carousel.
   ========================================================================== */

:root {
  /* ---- Brand barvy OOO ---- */
  --navy: #0a1045;      /* modrá hlavní */
  --purple: #af3b6e;    /* fialová dominantní */
  --off-white: #f2f2f2; /* bílá hlavní */
  --sky: #05b2dc;       /* doplňková modrá */
  --mint: #21fa90;      /* doplňková zelená */

  --bg: var(--off-white);
  --bg-alt: #e7e7ef;
  --surface: #ffffff;
  --text: var(--navy);
  --text-muted: #565b7d;
  --border: #dcdce6;

  --primary: var(--purple);
  --primary-dark: #7e2a52;
  --accent: var(--sky);
  /* Decentní přechod fialová -> modrá (dvě dominantní brand barvy), bez duhy */
  --gradient: linear-gradient(120deg, var(--purple) 0%, var(--navy) 100%);

  --success: #067a4d;
  --success-bg: #dffcee;
  --warning: #b3660a;
  --warning-bg: #fdf2e2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(23, 23, 43, 0.06), 0 1px 2px rgba(23, 23, 43, 0.04);
  --shadow: 0 8px 24px rgba(23, 23, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 23, 43, 0.14);

  --header-h: 84px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.015em;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 16, 69, 0.18);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(10, 16, 69, 0.24); color: #fff; }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(242, 242, 242, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}
.brand img {
  height: 60px; width: 60px; object-fit: cover;
  border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(10, 16, 69, 0.08), 0 2px 8px rgba(10, 16, 69, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img { transform: rotate(8deg) scale(1.05); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-alt); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

#user-info {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
  cursor: pointer;
}
#user-info img { width: 28px; height: 28px; border-radius: 50%; }

/* Mini menu po kliknutí na avatar/jméno (2026-08-25, plán sekce 7c) - "Profil" a
   "Odhlásit" místo dřívějšího samostatného tlačítka Odhlásit, co rovnou odhlašovalo. */
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 500;
  display: flex; flex-direction: column; gap: 2px;
}
.user-menu.hidden { display: none; }
.user-menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  background: none; border: none; font-size: 0.88rem; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit;
}
.user-menu-item:hover { background: var(--bg-alt); }
.user-menu-item--danger:hover { background: #fdecea; color: #b42318; }

.btn-uname { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header .container {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  .nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  /* Avatar zůstává klikatelný i na mobilu (2026-08-25) - jen jméno vedle něj se na úzkém
     displeji schová, ať se hlavička nemačká; menu po kliknutí funguje stejně jako na
     desktopu. */
  #user-info { padding: 4px; background: none; }
  #user-name { display: none; }
  .user-menu { right: -4px; }
  nav { grid-column: 1 / -1; grid-row: 2; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* Mobil: hlavička se nevejde na šířku se vším najednou - schováme text loga a zmenšíme mezery */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .site-header .container { gap: 8px; padding: 0 16px; }
  .brand img { height: 42px; width: 42px; }
  .brand span { display: none; }
  .header-actions { gap: 2px; }
  .btn-sm { padding: 8px 14px; font-size: 0.82rem; }
}

/* ---------- Hero ---------- */
/* Decentní, luxusní nádech - jeden jemný přechod fialová/modrá, žádná duha */
.hero {
  padding: 110px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(175, 59, 110, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(10, 16, 69, 0.05), transparent 60%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 620px; height: 620px;
  right: -220px; top: -260px;
  border-radius: 50%;
  border: 1px solid rgba(10, 16, 69, 0.07);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero p.lead { max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 800;
  margin-bottom: 14px;
}
.pillar-card h3 { margin-bottom: 6px; }
.pillar-card p { margin: 0; font-size: 0.92rem; }

/* ---------- Event grid & cards ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s ease;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-alt); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .badge-soon {
  position: absolute; top: 12px; left: 12px;
  background: var(--warning-bg); color: var(--warning);
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.event-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card .price { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: 0.02em; color: var(--primary); font-size: 1.35rem; }
.event-card .meta { font-size: 0.82rem; color: var(--text-muted); }
.event-card .desc { font-size: 0.88rem; color: var(--text-muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .footer-row { margin-top: 8px; }
.event-card .badge-video {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

.access-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.access-badge.locked { background: var(--bg-alt); color: var(--text-muted); }
.access-badge.role { background: var(--warning-bg); color: var(--warning); }

.empty-state, .loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ---------- Detail page ---------- */
.detail-hero { padding: 40px 0 80px; }
.back-link { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }

.event-description {
  width: 100%;
  margin: 56px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.event-description h2 { margin-bottom: 20px; }
.event-description .prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  column-width: 420px;
  column-gap: 56px;
}
.event-description .prose br { content: ""; display: block; margin-top: 10px; }
@media (max-width: 760px) { .event-description .prose { column-width: auto; column-count: 1; } }

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

/* Galerie zůstává "přilepená" při scrollu, ať mezi ní a delším buy boxem nevzniká prázdná mezera */
.detail-grid > div:first-child {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
@media (max-width: 900px) {
  .detail-grid > div:first-child { position: static; }
}

.gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery-viewport { position: relative; }
.gallery-main {
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  scrollbar-width: none;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.gallery-dots { display: flex; justify-content: center; gap: 6px; padding: 12px; }
.gallery-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}
.gallery-dots span.active { background: var(--primary); width: 18px; border-radius: 4px; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(10, 16, 69, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
/* Cena je tu vedlejší informace - datum (níže) je hlavní */
.detail-card .price-tag {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Datum je klíčová informace u akce - výrazně největší a v brand barvě */
.date-strip {
  margin: 18px 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.date-strip-main {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.date-strip-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.date-strip-sub + .date-strip-sub { margin-top: 2px; }

.lead-teaser { font-size: 0.95rem; color: var(--text-muted); margin: 4px 0 16px; line-height: 1.6; }
.read-more-link { font-weight: 600; color: var(--primary); white-space: nowrap; }

.discord-link-inline { font-size: 0.86rem; color: var(--text-muted); margin: 0 0 24px; }
.discord-link-inline a { color: var(--primary); font-weight: 600; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

.pill-choice { display: flex; gap: 10px; }
.pill-choice label {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-choice input { display: none; }
.pill-choice input:checked + label,
.pill-choice label.checked { border-color: var(--primary); background: var(--bg-alt); color: var(--primary); }

.pref-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pref-list label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
}
.pref-list input { accent-color: var(--primary); width: 16px; height: 16px; }

.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.autocomplete-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--bg-alt); }
.autocomplete-item strong { display: block; font-size: 0.9rem; }
.autocomplete-item small { color: var(--text-muted); }

/* ---------- Status panels (deposit / final / done / denied) ---------- */
.status-panel {
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}
.status-panel.info { background: var(--bg-alt); }
.status-panel.success { background: var(--success-bg); }
.status-panel .qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.status-panel .qr-wrap img { width: 160px; height: 160px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--border); }
.status-panel .qr-info { font-size: 0.88rem; }
.status-panel .qr-info div { margin-bottom: 4px; }
.status-panel h4 { margin-bottom: 8px; }

/* Kontakt s patronem přes jinou platformu (2026-09-13, na žádost) - ikona + pole v
   jednom rámečku, stejné pole se používá pro WhatsApp (tel) i Instagram (text). */
.contact-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.input-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 14px;
}
.input-icon:focus-within { border-color: var(--primary); }
.input-icon svg { flex-shrink: 0; }
.input-icon .wa-ico { color: #25D366; }
.input-icon .ig-ico { color: var(--primary); }
.input-icon .form-control { flex: 1; border: none; padding: 11px 0; background: none; }
.input-icon .form-control:focus { outline: none; }
.saved-msg { font-size: 0.85rem; font-weight: 600; color: var(--success); margin-left: 12px; opacity: 0; transition: opacity 0.2s ease; }
.saved-msg.show { opacity: 1; }
.saved-msg.error { color: #b42318; }

/* "Přidat do kalendáře" (2026-09-13/14) - dvě rovnocenné pilulky vedle sebe (Google
   Kalendář / Apple+Outlook přes .ics), ať je hned jasné, že jde o dvě rovnocenné
   možnosti, ne hlavní akce + drobný odkaz vedle. */
.btn-calendar-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn-calendar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-calendar:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10, 16, 69, 0.12); }
.btn-calendar svg { flex-shrink: 0; }
.btn-calendar--google:hover { border-color: #4285F4; }
.btn-calendar--ics { color: var(--primary); }
.btn-calendar--ics:hover { border-color: var(--primary); }

/* Plynulé zobrazení/schování volitelného pole (2026-09-13) - grid-template-rows
   0fr → 1fr místo height:auto, ať jde animovat i neznámou výšku obsahu. */
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease; }
.reveal.open { grid-template-rows: 1fr; }
.reveal > div { overflow: hidden; }

.access-denied {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-weight: 800; font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h4 { font-size: 0.98rem; margin-bottom: 4px; }
.step p { font-size: 0.86rem; margin: 0; }

/* ---------- Simple content pages (pravidla / kontakt) ---------- */
.rules-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rules-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
}
.rules-list strong { color: var(--text); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 12px; }
.contact-card a { font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.contact-card a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  background: var(--text);
  color: #d8d7e6;
  padding: 48px 0 24px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.footer-brand { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; font-size: 1.5rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #d8d7e6; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; color: #9998ac; text-align: center; }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-lg { margin-top: 32px; }

/* Fotogalerie z akce (2026-08-26) - veřejná/omezená mřížka na detailu akce, oddělená od
   .gallery výše (to je jen cover foto/album akce, tohle jsou fotky Z AKCE nahrané v
   administraci). Podalba jako pojmenované skupiny, "bez podalba" bez nadpisu. */
.event-photo-gallery { margin-top: 40px; }
.epg-group { margin-bottom: 24px; }
.epg-group-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }
.epg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.epg-item { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); border: none; padding: 0; cursor: pointer; }
.epg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.epg-item:hover img { transform: scale(1.04); }

/* Lightbox - prohlížení fotek s listováním (2026-08-26, na žádost - "nejde fotkami
   listovat", klik na fotku otevře okno s prev/next a pásem náhledů). Videa zůstávají
   mimo lightbox - odkaz otevírá celou stránku Disku v nové záložce (viz komentář u
   driveVideoViewUrl), ne vestavěný přehrávač v mřížce. */
.epg-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 12, 20, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.epg-lightbox.hidden { display: none; }
.epg-lightbox-main-wrap { position: relative; flex: 1 1 auto; width: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: center; min-height: 0; }
.epg-lightbox-main { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.epg-lightbox-close, .epg-lightbox-prev, .epg-lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 999px;
  cursor: pointer; font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.epg-lightbox-close:hover, .epg-lightbox-prev:hover, .epg-lightbox-next:hover { background: rgba(255,255,255,0.25); }
.epg-lightbox-close { top: 16px; right: 16px; width: 42px; height: 42px; z-index: 2; }
.epg-lightbox-prev, .epg-lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.epg-lightbox-prev { left: 8px; }
.epg-lightbox-next { right: 8px; }
.epg-lightbox-counter { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 10px; }
.epg-lightbox-filmstrip { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; margin-top: 12px; padding: 4px 2px; scroll-behavior: smooth; }
.epg-lightbox-thumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: 0.55; border: 2px solid transparent; }
.epg-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.epg-lightbox-thumb.active { opacity: 1; border-color: var(--primary); }
.epg-video-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-alt) 150%);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.epg-play-icon {
  width: 52px; height: 52px; border-radius: 999px; background: rgba(255,255,255,0.9);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; padding-left: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.epg-note { margin-top: 8px; font-style: italic; }
.epg-cell { display: flex; flex-direction: column; gap: 6px; }
.epg-reactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: relative; }
.epg-reaction-pill, .epg-reaction-add, .epg-reaction-pick {
  border: 1.5px solid var(--border); background: var(--bg-card, #fff);
  border-radius: 999px; padding: 2px 9px; font-size: 0.82rem; cursor: pointer; line-height: 1.6;
}
.epg-reaction-pill.mine { border-color: var(--primary); background: var(--primary-bg, rgba(0,0,0,0.05)); font-weight: 700; }
.epg-reaction-add { padding: 2px 8px; color: var(--text-muted); }
.epg-reaction-picker {
  display: flex; flex-wrap: wrap; gap: 4px; width: 100%;
  padding-top: 4px;
}
.epg-reaction-picker.hidden { display: none; }
.epg-reaction-pick { padding: 2px 7px; font-size: 0.95rem; }

/* Věková brána (2026-08-27) - stejný vizuální jazyk jako member-modal-overlay níže, jen
   vyšší z-index (musí být nad úplně vším, i nad lightboxem galerie) a nejde zavřít klikem
   mimo kartu (žádný "escape" bez potvrzení/odmítnutí). */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(10, 16, 69, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.age-gate-card {
  background: var(--surface); border-radius: var(--radius); padding: 40px 32px;
  max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
}
.age-gate-logo { width: 64px; height: 64px; border-radius: 999px; margin-bottom: 16px; }
.age-gate-card h2 { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: 0.03em; font-size: 1.8rem; margin: 0 0 12px; color: var(--text); }
.age-gate-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 24px; line-height: 1.5; }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Znovupoužitelné okno detailu člena (Část B, 2026-08-24) ---------- */
.member-modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 16, 69, 0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.member-modal {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative;
}
.member-modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 1.6rem; line-height: 1; color: var(--text-muted); cursor: pointer;
}
.member-modal-close:hover { color: var(--text); }
.member-modal-loading, .member-modal-error, .member-modal-empty { color: var(--text-muted); font-size: 0.9rem; }
.member-modal-error { color: #b42318; }
.member-modal-header { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.member-modal-header h3 { margin: 0 0 4px; }
.member-modal-photo {
  width: 88px; height: 88px; border-radius: var(--radius-sm); object-fit: contain; flex-shrink: 0;
  background: var(--bg-alt); border: 1px solid var(--border); cursor: zoom-in;
}
.member-preferred-contact {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-alt); margin-top: 6px;
}
.member-preferred-contact svg { width: 13px; height: 13px; flex-shrink: 0; }
.member-preferred-contact.discord { color: var(--sky); }
.member-preferred-contact.whatsapp { color: #25D366; }
.member-preferred-contact.instagram { color: var(--primary); }

.member-photo-count {
  display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 600;
  color: var(--primary); cursor: zoom-in; background: none; border: none; padding: 0;
}
.member-photo-lightbox {
  position: fixed; inset: 0; background: rgba(10, 16, 69, 0.85); z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.member-photo-lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); cursor: default; }
.member-photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.member-photo-lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.member-photo-lightbox-nav.prev { left: 16px; }
.member-photo-lightbox-nav.next { right: 16px; }
.member-photo-lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; font-weight: 600; background: rgba(10, 16, 69, 0.5);
  padding: 4px 12px; border-radius: 999px;
}
.member-modal-photo-empty { border: 1px dashed var(--border); }
.member-modal-contact { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.member-modal-dochazka { display: flex; gap: 12px; font-size: 0.85rem; font-weight: 600; margin: 2px 0 6px; }
.member-note-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; }
.member-note-edit input { font-size: 0.82rem; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); flex: 1; min-width: 160px; }
.member-note-edit .member-modal-msg { font-size: 0.78rem; color: var(--text-muted); }
/* Jméno v seznamech (2026-09-24) - poznámka je doplňkový kontext, ne hlavní informace,
   proto menší a tlumenější než klikací jméno vedle ní. */
.member-name-note { font-size: 0.82em; color: var(--text-muted); font-style: italic; }
.member-modal h4 { margin: 20px 0 8px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.member-access-list { display: flex; flex-direction: column; gap: 6px; }
.member-access-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; }
.member-access-ok { background: var(--success-bg); color: var(--success); }
.member-access-waiting { background: var(--warning-bg); color: var(--warning); }
.member-access-missing { background: var(--bg-alt); color: var(--text-muted); }
.member-access-icon { font-weight: 700; }
.member-history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.member-history-list li { font-size: 0.88rem; background: var(--bg-alt); padding: 8px 12px; border-radius: var(--radius-sm); }
.member-history-status { color: var(--text-muted); }
.member-q-fields { display: flex; flex-direction: column; gap: 6px; }
.member-q-field { font-size: 0.88rem; }
.member-patron-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.member-patron-actions select { padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); margin-left: 8px; }
.member-patron-buttons { display: flex; gap: 10px; }
.member-modal-msg { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.member-notes-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.member-notes-checks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }
.member-notes-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.member-notes-section textarea { width: 100%; min-height: 60px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: inherit; font-size: 0.88rem; resize: vertical; box-sizing: border-box; }
.member-notes-section label.member-notes-label { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 4px; }

.member-link { color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; background: none; border: none; padding: 0; font: inherit; }
.member-link:hover { color: var(--primary-dark); }

/* Zaplněnost akce (2026-08-25) - vizuální pruh bez čísel, jen slovní pásmo (viz
   lib/capacity.js na backendu - fráze i procenta se počítají tam, nikdy se sem
   neposílá skutečné číslo). Podlaha na straně backendu zajišťuje, že pruh nikdy
   nevypadá prázdný. */
.occupancy { margin: 10px 0; }
.occupancy-track { height: 7px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.occupancy-fill { height: 100%; border-radius: 999px; background: var(--gradient); }
.occupancy-text { font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-top: 5px; }
.occupancy-full-note {
  margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--text); font-size: 0.85rem; line-height: 1.5;
}

/* Zrušená účast v přehledu přihlášek (2026-08-25) - řádek zůstává, jen prošedlý a
   přeškrtnutý, ať je vidět historie, ne skrytý/smazaný záznam. */
.reg-row-cancelled { opacity: 0.55; text-decoration: line-through; }
.reg-row-cancelled .member-link { pointer-events: none; text-decoration: line-through; }

/* ---------- Admin navigace rozdělená do skupin Akce/Lidé/Správa (2026-09-16, na žádost -
   "rozdělit administraci do tří skupin, hezky, ale ať to nezabere víc místa" - nahrazuje
   dřívější jeden natěsnaný řádek se všemi taby a statický "eyebrow" popisek nad nadpisem).
   Pilulky ve stylu .eyebrow, jen klikací - klik přepne, který .admin-tabs řádek pod nimi
   je vidět (viz initAdminGroupNav v auth.js). ---------- */
.admin-group-nav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-group-pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); background: var(--bg-alt);
  padding: 6px 14px; border-radius: 999px; border: none; cursor: pointer;
}
.admin-group-pill:hover { background: var(--border); }
.admin-group-pill.active { background: var(--primary); color: #fff; }

/* ---------- Admin tabulky - responzivní na mobilu (2026-08-24, na žádost - vodorovné
   posouvání "není přehledný") ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-tabs a { padding: 10px 16px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.admin-card h3 { margin: 0 0 12px; }
.admin-responsive-table-wrap { overflow-x: auto; }
.admin-responsive-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.88rem; }
.admin-responsive-table th, .admin-responsive-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.admin-responsive-table th { font-size: 0.78rem; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 700px) {
  .admin-responsive-table-wrap { overflow-x: visible; }
  .admin-responsive-table { min-width: 0; }
  .admin-responsive-table thead { display: none; }
  .admin-responsive-table, .admin-responsive-table tbody, .admin-responsive-table tr, .admin-responsive-table td { display: block; width: 100%; }
  .admin-responsive-table tr { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
  .admin-responsive-table td { border-bottom: none; padding: 4px 0; white-space: normal; }
  .admin-responsive-table td[data-label]::before {
    content: attr(data-label) ": "; font-weight: 600; color: var(--text-muted);
    font-size: 0.78rem; text-transform: uppercase;
  }
}
