/* ===== VARIABLES ===== */
:root {
  --bg: #07070e;
  --bg-2: #0d0d1a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --green: #4ade80;
  --nav-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor__dot {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor__ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor--hover .cursor__ring {
  width: 52px; height: 52px;
  border-color: var(--purple);
}
.cursor--click .cursor__dot { transform: translate(-50%,-50%) scale(2.5); }

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== GLOW ORBS ===== */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.glow-orb--purple {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation-delay: 0s;
}
.glow-orb--cyan {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
  top: 20%; right: -100px;
  animation-delay: -4s;
}
.glow-orb--pink {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,114,182,0.1) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-40px) scale(1.05); }
  66% { transform: translateY(20px) scale(0.95); }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7,7,14,0.7);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  filter: drop-shadow(0 4px 14px rgba(168,85,247,0.35));
}
.nav__logo-mark svg { width: 100%; height: 100%; display: block; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-main {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo-city { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; margin-top: 3px; display: flex; align-items: center; gap: 2px; }
.nav__menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav__link.is-active { color: var(--purple); }
.btn-create {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--purple-dark), #5b21b6);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
  flex-shrink: 0;
}
.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(168,85,247,0.5);
}
.btn-create:active { transform: translateY(0); }

/* ===== NAV ACTIONS (right side) ===== */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Compact admin quick-access in top nav (only for admins) */
.nav__admin {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 100px;
  border: 1px solid rgba(168,85,247,0.28);
  background: rgba(168,85,247,0.08);
  position: relative;
}
.nav__admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim, #cdc5dd);
  text-decoration: none;
  border-radius: 100px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav__admin-btn:hover {
  background: rgba(168,85,247,0.18);
  color: #fff;
}
.nav__admin-btn svg { opacity: .85; }
.nav__admin-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg, #0a0613);
  pointer-events: none;
}
@media (max-width: 980px) {
  .nav__admin-btn { padding: 6px 8px; font-size: 0; gap: 0; }
  .nav__admin-btn svg { width: 16px; height: 16px; opacity: 1; }
}
.nav__login {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all .25s;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
}
.nav__login:hover {
  color: white;
  border-color: rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.06);
  transform: translateY(-1px);
}
.nav__user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  transition: all .25s;
}
.nav__user:hover, .nav__user.is-active {
  border-color: rgba(168,85,247,0.5);
  background: rgba(168,85,247,0.08);
  transform: translateY(-1px);
}
.nav__user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav__user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

/* ===== PAGE WRAPPER ===== */
.page-wrap {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 60px;
  position: relative;
  overflow: hidden;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease both;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(42px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title-word {
  display: inline-block;
  animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__title-line:nth-child(1) .hero__title-word { animation-delay: 0.1s; }
.hero__title-line:nth-child(2) .hero__title-word { animation-delay: 0.2s; }
.hero__title-line:nth-child(3) .hero__title-word { animation-delay: 0.3s; }
@keyframes wordReveal {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero__title-grad {
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s 0.5s ease both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.6s 0.65s ease both;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s 1s ease both;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple-dark), #5b21b6);
  color: white;
  box-shadow: 0 4px 30px rgba(168,85,247,0.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(168,85,247,0.5);
}
.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn--sm { padding: 9px 18px; font-size: 13px; border-radius: 10px; }

/* ===== SECTION ===== */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section--sm { padding: 48px 32px; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
.section__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section__title span {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__sub { font-size: 15px; color: var(--text-muted); margin-top: 8px; }
.section__link {
  font-size: 13px;
  color: var(--purple);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap 0.2s;
}
.section__link:hover { gap: 10px; }

/* ===== FILTER PILLS ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.25s;
  cursor: pointer;
}
.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.filter-pill.is-active {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.4);
  color: var(--purple);
}

/* ===== EVENT CARDS GRID ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 20px;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.events-grid.is-ready {
  opacity: 1;
}

/* ===== EVENT CARD ===== */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  will-change: transform;
}
.event-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(168,85,247,0.12);
}
.event-card.is-reveal {
  opacity: 1;
}

/* Large card (span 2) */
.event-card--lg .event-card__title { font-size: 22px; }

/* ===== CARD PHOTO GRID ===== */
.card-photo-grid {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-2);
  flex-shrink: 0;
}

/* 0 photos — placeholder */
.card-photo-grid--0 {
  aspect-ratio: 16/9;
  min-height: 200px;
}
.event-card--lg .card-photo-grid--0 {
  min-height: 300px;
}
.card-photo-grid__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  min-height: inherit;
  text-decoration: none;
}
.card-photo-grid__placeholder svg { opacity: 0.2; }

/* 1 photo — fixed container, photo fits inside with blur backdrop */
.card-photo-grid--1 { aspect-ratio: 4/3; }
.event-card--lg .card-photo-grid--1 { aspect-ratio: 16/9; }
.card-photo-grid--standalone.card-photo-grid--1 { aspect-ratio: 4/3; }
.card-photo-grid--1 .card-photo-grid__item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 2 photos — side by side */
.card-photo-grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16/9;
}
.event-card--lg .card-photo-grid--2 { aspect-ratio: 21/9; }

/* 3 photos — 1 big left + 2 stacked right */
.card-photo-grid--3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16/9;
}
.event-card--lg .card-photo-grid--3 { aspect-ratio: 21/9; }
.card-photo-grid--3 .card-photo-grid__item:nth-child(1) { grid-row: 1 / 3; }

/* 4 photos — 2×2 grid */
.card-photo-grid--4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4/3;
}
.event-card--lg .card-photo-grid--4 { aspect-ratio: 16/7; }

/* Each photo item (div на странице события, <a> в карточках списка) */
.card-photo-grid__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #000;
}
.event-card .card-photo-grid__item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-photo-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
.card-photo-grid__item:hover img {
  transform: scale(1.07);
  opacity: 0.85;
}

/* "+N more" overlay on 4th photo */
.card-photo-grid__more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* Category & today badges sit inside items (absolute) */
.card-photo-grid__item > .event-card__cat,
.card-photo-grid__item > .event-card__today,
.card-photo-grid__item > .event-card__age,
.card-photo-grid__placeholder > .event-card__cat,
.card-photo-grid__placeholder > .event-card__today,
.card-photo-grid__placeholder > .event-card__age {
  z-index: 3;
}

/* ── Standalone variant (event detail page) ── */
.card-photo-grid--standalone {
  border-radius: var(--radius-sm);
  margin-bottom: 36px;
  /* override card-only top-rounded corners */
}

/* Larger aspect ratios for the full-width detail view */
.card-photo-grid--standalone.card-photo-grid--1 { aspect-ratio: 16/9; }
.card-photo-grid--standalone.card-photo-grid--2 { aspect-ratio: 16/9; }
.card-photo-grid--standalone.card-photo-grid--3 { aspect-ratio: 4/3; }
.card-photo-grid--standalone.card-photo-grid--4 { aspect-ratio: 16/9; }

/* Zoom cursor on items */
.card-photo-grid--standalone .card-photo-grid__item { cursor: zoom-in; }

/* Category badge on card.
   Бирка должна читаться поверх любого фото. Решение:
   – плотный тёмный фон-«таблетка» (почти непрозрачный) перекрывает фото,
   – blur+saturate усиливают контраст,
   – двойной text-shadow вокруг букв гарантирует читаемость даже когда
     цвет категории совпадает по тону с фоном фотографии,
   – цветная рамка/текст оставляют визуальную идентификацию категории. */
.event-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  background: rgba(10,10,14,0.78);
  border: 1px solid currentColor;
  text-shadow:
    0 0 4px rgba(0,0,0,0.95),
    0 1px 2px rgba(0,0,0,0.9),
    0 0 1px rgba(0,0,0,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Today/Tomorrow badge */
.event-card__today {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--amber);
  color: #000;
}

/* Age rating badge inside photo block */
.event-card__age {
  position: absolute;
  bottom: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.55);
  border: 1px solid currentColor;
  z-index: 3;
}
.card-photo-grid__placeholder > .event-card__age {
  background: rgba(0,0,0,0.35);
}

.event-card__body {
  padding: 20px 22px 22px;
  display: block;
  color: inherit;
  text-decoration: none;
}
.event-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.event-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-card__views {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.event-card__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.event-card__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-card__footer-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.event-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
}
.event-card__location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}
.event-card__price--paid { color: var(--amber); }

/* Шильдик «N сеансов» для кино */
.event-card__sessions {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700;
    color: var(--purple);
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.28);
    border-radius: 100px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* Бейджик «Билеты онлайн» */
.event-card__tickets-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700;
    color: #d97706;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 100px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* Glow on hover by category */
.event-card[data-cat="concert"]:hover    { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(168,85,247,0.15); }
.event-card[data-cat="nightlife"]:hover  { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(217, 70,239,0.18); }
.event-card[data-cat="karaoke"]:hover    { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(192,132,252,0.18); }
.event-card[data-cat="gastronomy"]:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(251,146, 60,0.18); }
.event-card[data-cat="standup"]:hover    { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(244, 63, 94,0.18); }
.event-card[data-cat="cinema"]:hover     { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba( 14,165,233,0.18); }
.event-card[data-cat="exhibition"]:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(  6,182,212,0.15); }
.event-card[data-cat="sport"]:hover      { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba( 34,197, 94,0.15); }
.event-card[data-cat="games"]:hover      { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(132,204, 22,0.18); }
.event-card[data-cat="theater"]:hover    { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(244,114,182,0.15); }

/* Gradient border on featured card */
.event-card--featured {
  position: relative;
}
.event-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, var(--purple), var(--cyan), var(--pink));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.event-card--featured:hover::before { opacity: 1; }

/* ===== TODAY STRIP ===== */
.today-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-bottom: 60px;
}
.today-strip::-webkit-scrollbar { display: none; }
.today-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 18px 20px;
  transition: transform 0.25s, border-color 0.25s;
  cursor: pointer;
}
.today-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.today-card__time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.today-card__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.today-card__place {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== EVENT DETAIL PAGE ===== */
.event-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}
.event-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.event-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,14,1) 0%, rgba(7,7,14,0.4) 50%, transparent 100%);
}
.event-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.event-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-hero__cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.event-hero__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Event detail layout */
.event-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.event-detail__main { min-width: 0; }
.event-detail__sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

/* Info sidebar */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.info-card__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 14px;
}
.info-row:last-child { margin-bottom: 0; }
.info-row__icon { color: var(--purple); flex-shrink: 0; margin-top: 1px; }
.info-row__label { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.info-row__value { font-weight: 500; }
.info-row__value--price { color: var(--green); font-size: 18px; font-weight: 700; }
.info-row--admin-poster {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(168, 85, 247, 0.35);
}
.info-row--admin-poster .info-row__icon { color: var(--purple); }

/* ── Cinema sessions schedule ── */
.sessions-day { margin-bottom: 14px; }
.sessions-day:last-child { margin-bottom: 0; }
.sessions-day__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.sessions-day__times { display: flex; flex-wrap: wrap; gap: 8px; }
.session-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 72px;
  cursor: default;
  transition: background .18s, border-color .18s;
}
.session-chip:hover { background: rgba(168,85,247,.18); border-color: rgba(168,85,247,.45); }
.session-chip--past {
  opacity: .35;
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
.session-chip__time { font-size: 15px; font-weight: 700; color: var(--text); }
.session-chip__hall { font-size: 10px; color: var(--text-muted); }
.session-chip__price { font-size: 11px; font-weight: 600; color: var(--purple-2); margin-top: 1px; }

.sessions-past-details {
  margin-top: 12px;
}
.sessions-past-details__summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-2, #c4b5fd);
  padding: 8px 0;
  user-select: none;
}
.sessions-past-details > .sessions-past-details__summary::-webkit-details-marker {
  display: none;
}
.sessions-past-details > .sessions-past-details__summary::marker {
  content: '';
}
.sessions-past-details__body {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Views counter */
.views-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.views-badge strong { color: var(--text); }

/* ===== PHOTO STACK (вертикальный список) ===== */
.photo-masonry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}
.photo-masonry__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: #000;
}
.photo-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}
.photo-masonry__item:hover img { opacity: 0.88; }

/* Оверлей */
.photo-masonry__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.photo-masonry__overlay svg {
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8));
}
.photo-masonry__item:hover .photo-masonry__overlay { opacity: 1; }

/* Description */
.event-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.event-film-meta {
  margin: 0 0 36px;
  padding: 18px 20px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  display: grid;
  gap: 12px;
}
.event-film-meta__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
}
.event-film-meta__row dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted, #8a8a92);
  margin: 0;
}
.event-film-meta__row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .event-film-meta__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Map */
.event-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border);
}

/* ===== MAP (leaflet overrides) ===== */
.leaflet-container { background: #0d1117 !important; }
.leaflet-tile { filter: brightness(0.7) saturate(0.5) hue-rotate(200deg); }
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom a {
  background: rgba(7,7,14,0.8) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* ===== CREATE FORM ===== */
.create-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.create-page__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.create-page__sub {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.form-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.session-range-toggle {
  transition: opacity .15s;
}
.session-range-toggle:hover {
  opacity: 1 !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-label span { color: var(--purple); }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}
.form-control--readonly {
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
  cursor: default;
  font-size: 13px;
}
.form-control--readonly:focus {
  border-color: var(--border);
  box-shadow: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  color-scheme: dark;
}
select.form-control option {
  background: #14101e;
  color: var(--text);
}

/* ===== Тёмные иконки datetime-local / date / time ===== */
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="month"] {
  color-scheme: dark;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity .2s;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ===== CUSTOM DARK SELECT ===== */
.cs-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
.cs-wrap { position: relative; }
.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  font-family: inherit;
  background-image: none !important;
  padding-right: 16px;
}
.cs-trigger__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-trigger__chev {
  flex-shrink: 0;
  margin-left: 10px;
  color: var(--text-muted);
  transition: transform .25s;
}
.cs-wrap.is-open .cs-trigger {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}
.cs-wrap.is-open .cs-trigger__chev { transform: rotate(180deg); color: var(--purple); }

.cs-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(20,16,30,0.98) 0%, rgba(13,10,22,0.98) 100%);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.cs-wrap.is-open .cs-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cs-dropdown::-webkit-scrollbar { width: 8px; }
.cs-dropdown::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.3);
  border-radius: 4px;
}
.cs-option {
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: background .15s, color .15s;
  position: relative;
}
.cs-option:hover { background: rgba(168,85,247,0.12); color: white; }
.cs-option.is-active {
  background: linear-gradient(90deg, rgba(168,85,247,0.18), rgba(34,211,238,0.10));
  color: white;
  font-weight: 600;
}
.cs-option.is-active::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  width: 3px; height: 18px;
  margin-top: -9px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
}
.cs-option.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.upload-area:hover, .upload-area.is-drag { 
  border-color: var(--purple);
  background: rgba(168,85,247,0.04);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-area__icon { color: var(--text-muted); margin: 0 auto 12px; }
.upload-area__title { font-weight: 600; margin-bottom: 6px; }
.upload-area__sub { font-size: 13px; color: var(--text-muted); }
.upload-area.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: var(--border);
  background: rgba(248,113,113,0.04);
}
.upload-area.is-disabled input[type="file"] { pointer-events: none; cursor: not-allowed; }
.upload-area.is-disabled:hover { border-color: var(--border); background: rgba(248,113,113,0.04); }

/* Compact mode: two action buttons + drag-and-drop hint */
.upload-area--compact {
  padding: 22px 20px;
  cursor: default;
}
.upload-area--compact:hover { background: transparent; border-color: var(--border); }
.upload-area--compact.is-drag { border-color: var(--purple); background: rgba(168,85,247,0.05); }
.upload-area--compact input[type="file"] { display: none; }
.upload-area__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.upload-area__hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}
.upload-area__embed {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.upload-area__embed[hidden] { display: none; }
.upload-area--compact.is-disabled .upload-area__actions button { opacity: .55; cursor: not-allowed; }

/* Unified media list (photos + videos in one section) */
.media-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.media-item--photo .video-upload-item__icon {
  width: 64px; height: 64px; border-radius: 10px; padding: 0;
}

/* Photo previews */
.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.photo-preview {
  position: relative;
  width: 90px; height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview__rm {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-preview:hover .photo-preview__rm,
.photo-preview:focus-within .photo-preview__rm { opacity: 1; }
/* На touch-устройствах крестик всегда виден */
@media (hover: none) {
  .photo-preview__rm { opacity: 0.8; }
}

/* Map picker */
.map-picker {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--border);
  border-top: none;
}
.map-hint {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Address search */
.map-search-wrap {
  position: relative;
  margin-bottom: 0;
}
.map-search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 13px 46px 13px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.map-search-input::placeholder { color: var(--text-muted); }
.map-search-input:focus {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.08);
  z-index: 1;
}
.map-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}
.map-search-input:focus ~ .map-search-icon { color: var(--purple); }

/* Spinner */
.map-search-spinner {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border: 2px solid rgba(168,85,247,0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Dropdown */
.map-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #0d0d1a;
  border: 1px solid rgba(168,85,247,0.3);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 2000;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: none;
}
.map-search-dropdown.is-open { display: block; }
.map-search-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.map-search-option:last-child { border-bottom: none; }
.map-search-option:hover { background: rgba(168,85,247,0.1); }
.map-search-option__icon {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 1px;
}
.map-search-option__main {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.map-search-option__sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}
.map-search-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Form submit */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* ===== CALENDAR ===== */
.calendar-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.cal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.cal-header__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  letter-spacing: -0.01em;
}
.cal-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}
.cal-nav-btn:hover {
  background: rgba(168,85,247,0.1);
  border-color: rgba(168,85,247,0.3);
  color: var(--purple);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  cursor: default;
  transition: background 0.2s;
}
.cal-day--empty { }
.cal-day--has-events {
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.15);
  cursor: pointer;
}
.cal-day--has-events:hover {
  background: rgba(168,85,247,0.15);
}
.cal-day--today {
  background: rgba(168,85,247,0.2) !important;
  border: 1px solid rgba(168,85,247,0.5) !important;
  color: var(--purple) !important;
  font-weight: 700;
}
.cal-day--selected {
  background: var(--purple) !important;
  color: white !important;
  border: none !important;
}
.cal-day__dots {
  display: flex;
  gap: 3px;
  position: absolute;
  bottom: 6px;
}
.cal-day__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
}

/* Calendar events list */
.cal-events {
  margin-top: 48px;
}
.cal-events__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===== PAST EVENTS ===== */
.past-header {
  text-align: center;
  padding: 80px 32px 60px;
}
.past-header__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.past-header__sub { color: var(--text-muted); font-size: 17px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.footer__brand-name {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }
.footer__nav--legal {
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  opacity: 0.75;
}
.footer__nav--legal a { font-size: 12px; }
.footer__copy { font-size: 12px; color: var(--text-muted); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,30,0.95);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--success { border-color: rgba(74,222,128,0.3); color: var(--green); }
.toast--error { border-color: rgba(248,113,113,0.3); color: #f87171; }

/* ===== VIDEO ===== */
.event-video {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.event-video video {
  width: 100%;
  max-height: 400px;
  background: #000;
  display: block;
}

/* ===== VIDEO GRID (event detail page) ===== */
/* ===== EVENT SECTIONS (desktop) ===== */
.event-section {
  margin-bottom: 36px;
}
.event-section__title {
  font-family: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}
.video-grid__item {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.video-grid__item:only-child {
  grid-column: 1 / -1;
}
.video-grid__item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.video-grid__item:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.video-grid__item video,
.video-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.video-grid__item iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  background: #000;
}
/* Прозрачный hit-слой поверх iframe — чтобы клик ловила плитка, а не ифрейм */
.video-grid__hit {
  position: absolute; inset: 0;
  cursor: pointer;
  background: transparent;
}
.video-grid__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.20);
  transition: background .15s;
  pointer-events: none;
}
.video-grid__item:hover .video-grid__play { background: rgba(0,0,0,.35); }
.video-grid__play svg { filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); transition: transform .15s; }
.video-grid__item:hover .video-grid__play svg { transform: scale(1.08); }

/* ===== VIDEO LIGHTBOX ===== */
.vlightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.vlightbox.is-open { display: flex; }
.vlightbox__stage {
  position: relative;
  width: 100%; max-width: 1280px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.vlightbox__stage video,
.vlightbox__stage iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
  background: #000;
}
.vlightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background .15s;
}
.vlightbox__close:hover { background: rgba(0,0,0,.85); }
.vlightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background .15s, transform .15s;
}
.vlightbox__btn:hover { background: rgba(0,0,0,.85); }
.vlightbox__btn:disabled { opacity: .35; cursor: default; }
.vlightbox__btn--prev { left: 24px; }
.vlightbox__btn--next { right: 24px; }
.vlightbox__counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  background: rgba(0,0,0,.5);
  padding: 4px 12px; border-radius: 20px;
  z-index: 2;
}
@media (max-width: 720px) {
  .vlightbox { padding: 12px; }
  .vlightbox__btn { width: 42px; height: 42px; }
  .vlightbox__btn--prev { left: 8px; }
  .vlightbox__btn--next { right: 8px; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 20px; opacity: 0.3; }
.empty-state__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.empty-state__sub { font-size: 14px; }

/* ===== SEARCH BAR ===== */
.search-wrap {
  position: relative;
  max-width: 440px;
}
.search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 20px 12px 46px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.08);
}

/* ===== ANIMATIONS UTILITY ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.5s ease both; }

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to { background-position: -200% center; }
}

/* ===== DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 32px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 8, 0.97);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Центральное изображение */
.lightbox__img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px 100px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
  user-select: none;
  display: block;
}
.lightbox__img.is-switching {
  opacity: 0;
  transform: scale(0.96);
}

/* Кнопки навигации */
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.lightbox__btn:hover {
  background: rgba(168,85,247,0.25);
  border-color: rgba(168,85,247,0.5);
  transform: translateY(-50%) scale(1.1);
}
.lightbox__btn--prev { left: 20px; }
.lightbox__btn--next { right: 20px; }
.lightbox__btn:disabled {
  opacity: 0.2;
  cursor: default;
}
.lightbox__btn:disabled:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-50%) scale(1);
}

/* Кнопка закрытия */
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.lightbox__close:hover {
  background: rgba(248,113,113,0.2);
  border-color: rgba(248,113,113,0.4);
  transform: rotate(90deg);
}

/* Счётчик */
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lightbox__dots {
  display: flex;
  gap: 6px;
}
.lightbox__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.lightbox__dot.is-active {
  background: var(--purple);
  transform: scale(1.4);
}

/* Номер фото */
.lightbox__num {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: center;
}

/* Курсор-зум при наведении на фото в галерее */
.gallery__main img { cursor: zoom-in; }
.gallery__thumb img { cursor: pointer; }

/* ===== TICKETS BUTTON ===== */
.btn-tickets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(245,158,11,0.35);
  margin-bottom: 16px;
}
.btn-tickets:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(245,158,11,0.55);
  color: #000;
}
.btn-tickets:active { transform: translateY(-1px); }
.btn-tickets.is-disabled,
.btn-tickets[disabled] {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .6;
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 6px;
}
.btn-tickets.is-disabled:hover,
.btn-tickets[disabled]:hover {
  transform: none;
  box-shadow: none;
  color: var(--text-muted);
}

/* ===== PRICE TOGGLE ===== */
.price-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.price-toggle__btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.price-toggle__btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.price-toggle__btn.is-active {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.45);
  color: var(--purple);
  font-weight: 600;
}
.price-amount-wrap { transition: opacity 0.2s; }

/* ===== SESSION-ROW PRICE (компактный тумблер для строки даты) ===== */
.session-price__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.session-price__tabs .price-toggle__btn {
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  flex: 1;
}
.session-price__amount-wrap {
  display: flex;
}
.session-price__amount-wrap .input-group__suffix {
  font-size: 12px;
  padding: 6px 8px;
  min-width: 36px;
  justify-content: center;
}
.session-price__amount-wrap .form-control {
  font-size: 13px;
  padding: 6px 10px;
}

/* ===== AGE RATING TOGGLE ===== */
.age-toggle {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.age-toggle__btn {
  flex: 1;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.age-toggle__btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.age-toggle__btn.is-active {
  background: color-mix(in srgb, var(--age-color) 14%, transparent);
  border-color: color-mix(in srgb, var(--age-color) 50%, transparent);
  color: var(--age-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--age-color) 25%, transparent);
}

/* ===== CTA LABEL TOGGLE (универсальная кнопка-ссылка) ===== */
.cta-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cta-toggle__btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.cta-toggle__btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.cta-toggle__btn.is-active {
  background: rgba(168,85,247,0.14);
  border-color: rgba(168,85,247,0.50);
  color: #c4b5fd;
  box-shadow: 0 0 16px rgba(168,85,247,0.25);
}
#cta-custom-input { margin-top: 8px; }

/* Бейдж возраста (на карточках/в шапке события) */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 7px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  background: color-mix(in srgb, var(--age-color, #22c55e) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--age-color, #22c55e) 45%, transparent);
  color: var(--age-color, #22c55e);
}
.age-badge--lg {
  min-width: 44px;
  height: 30px;
  font-size: 13px;
  border-radius: 8px;
  padding: 4px 10px;
}

/* ===== INPUT GROUP (price with suffix) ===== */
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  flex: 1;
}
.input-group .form-control:focus {
  border-right: none;
  z-index: 1;
}
.input-group__suffix {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(168,85,247,0.08);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
  transition: border-color 0.2s;
}
.input-group:focus-within .input-group__suffix {
  border-color: rgba(168,85,247,0.5);
}

/* ===== VIDEO UPLOAD LIST ===== */
.video-upload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.video-upload-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.video-upload-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.video-upload-item__icon {
  width: 36px; height: 36px;
  background: rgba(168,85,247,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
}
.video-upload-item__info { flex: 1; min-width: 0; }
.video-upload-item__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.video-upload-item__size { font-size: 11px; color: var(--text-muted); }
.video-upload-item__status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.video-upload-item__status--uploading { color: var(--cyan); }
.video-upload-item__status--done { color: var(--green); }
.video-upload-item__status--error { color: #f87171; }
.video-upload-item__rm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #f87171;
  transition: background 0.2s;
  flex-shrink: 0;
}
.video-upload-item__rm:hover { background: rgba(248,113,113,0.2); }

/* Progress bar */
.video-upload-item__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.video-upload-item__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.15s ease;
  width: 0%;
}
.video-upload-item--done .video-upload-item__progress-bar {
  background: var(--green);
  width: 100%;
}

/* Preview in upload item */
.video-upload-item__preview {
  padding: 0 16px 14px;
}
.video-upload-item__preview video,
.video-upload-item__preview iframe {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  background: #000;
  display: block;
  border: 0;
}
.media-item--embed .video-upload-item__preview { padding: 0; }
.media-item--embed .video-upload-item__preview iframe {
  max-height: none;
  height: 100%;
  border-radius: 0 0 12px 12px;
}

/* ===== VIDEO PLACEHOLDER ===== */
.no-cover {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 32px;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ===== LEAFLET CUSTOM MARKER ===== */
.custom-marker {
  width: 32px; height: 32px;
  background: var(--purple);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid white;
  box-shadow: 0 4px 16px rgba(168,85,247,0.5);
}

/* ===== HELPERS ===== */
.text-purple { color: var(--purple); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================================
 *  AUTH (login / register / forgot)
 * ============================================================ */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(30,22,52,0.85) 0%, rgba(20,16,36,0.9) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 38px 30px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(168,85,247,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  animation: authIn .6s cubic-bezier(.2,.8,.3,1.2);
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(168,85,247,0.6), transparent 40%, transparent 60%, rgba(34,211,238,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.auth-card__head { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.4));
}
.auth-title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 30%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .01em;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.3);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 100px;
  transition: all .25s;
  letter-spacing: .01em;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.is-active {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  box-shadow: 0 4px 18px -4px rgba(168,85,247,0.5);
}

.auth-form { display: none; animation: authFormIn .35s ease; }
.auth-form.is-active { display: block; }
@keyframes authFormIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-input-wrap {
  position: relative;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
  transition: color .2s;
}
.auth-input-wrap input.form-control {
  padding-left: 42px !important;
}
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--purple);
}
.auth-pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.auth-pass-toggle:hover { background: rgba(168,85,247,0.1); color: var(--text); }
.auth-pass-toggle.is-on { color: var(--purple); }

.auth-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  padding-left: 2px;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}

.auth-foot {
  margin-top: 18px;
  font-size: 13px;
  text-align: center;
}
.auth-foot a {
  color: var(--purple);
  font-weight: 500;
  transition: color .2s;
}
.auth-foot a:hover { color: var(--cyan); }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0 14px;
  transition: color .2s;
}
.auth-back:hover { color: var(--purple); }

.auth-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
  margin-right: 8px;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ============================================================
 *  PROFILE
 * ============================================================ */
.profile-page,
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 32px 60px;
}
@media (max-width: 720px) {
  .profile-page,
  .admin-page { padding: 20px 16px 40px; }
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(30,22,52,0.6), rgba(20,16,36,0.7));
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  box-shadow: 0 8px 30px -8px rgba(168,85,247,0.5);
  flex-shrink: 0;
}
.profile-name {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.profile-email {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.6fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ===== Profile tabs (Мои события / Мои отзывы) ===== */
.profile-tabs-card { padding-top: 0; }
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: -4px -4px 0;
  padding: 0 4px;
}
.profile-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--purple, #a855f7);
}
.profile-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--surface, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
}
.profile-tab.is-active .profile-tab__count {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c4b5fd;
}
.profile-tab-pane { display: none; }
.profile-tab-pane.is-active { display: block; }

/* ── Левое меню профиля (десктоп) ─────────────────────────────────── */
.profile-menu-card { padding: 8px; }
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: background .15s;
}
.profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.profile-menu-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-menu-item__text {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.profile-menu-item__arrow {
  color: var(--text-muted);
  display: inline-flex;
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}
.profile-menu-item:hover .profile-menu-item__arrow {
  color: var(--text);
  transform: translateX(2px);
}
.profile-menu-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  background: #ef4444;
  color: #fff;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Красный бейдж непрочитанных на вкладке */
.profile-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--bg, #0a0a14);
}

/* ============== ПРЕДЛОЖЕНИЯ И ПОЖЕЛАНИЯ ============== */
/* CTA-карточка в профиле пользователя */
.suggestion-cta-card {
  background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(34,211,238,0.08));
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.suggestion-cta-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px -6px rgba(168, 85, 247, 0.6);
}

/* Список предложений (для админа) */
.suggestions-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 16px;
  flex-wrap: wrap;
}
.suggestions-filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.suggestions-filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.suggestions-filter:hover { color: var(--text); }
.suggestions-filter.is-active {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: #c4b5fd;
}
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggestions-empty {
  padding: 30px 4px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.suggestion-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  transition: border-color .15s, background .15s;
}
.suggestion-item--new {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}
.suggestion-item--done {
  opacity: .65;
}
.suggestion-item__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.suggestion-item__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.suggestion-item__name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.suggestion-item__email {
  font-size: 12px;
  color: var(--text-muted);
}
.suggestion-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.suggestion-item__date {
  font-size: 11.5px;
  color: var(--text-muted);
}
.suggestion-status {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 100px;
}
.suggestion-status--new   { background: rgba(239,68,68,0.18);  color: #fca5a5; }
.suggestion-status--read  { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.suggestion-status--done  { background: rgba(52,211,153,0.18); color: #6ee7b7; }
.suggestion-item__text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}
.suggestion-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Модалка отправки предложения */
.suggestion-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.suggestion-modal.is-show {
  opacity: 1;
  pointer-events: auto;
}
.suggestion-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.suggestion-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-2, #0d0d1a);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.suggestion-modal.is-show .suggestion-modal__dialog {
  transform: translateY(0) scale(1);
}
.suggestion-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.suggestion-modal__close:hover { background: rgba(248,113,113,0.15); color: #f87171; }
.suggestion-modal__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px -8px rgba(168,85,247,0.6);
}
.suggestion-modal__title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.suggestion-modal__sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.suggestion-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .suggestion-modal__dialog { padding: 22px 18px; }
  .suggestion-modal__title  { font-size: 19px; }
}

.profile-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.profile-event {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .25s;
  align-items: center;
}
.profile-event:hover {
  border-color: rgba(168,85,247,0.35);
  transform: translateX(2px);
}
.profile-event.is-past {
  opacity: .65;
}
.profile-event__img {
  width: 90px; height: 70px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.profile-event__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-event__past {
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 600;
}
.profile-event__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.profile-event__meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-event__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============== REVIEWS ============== */
.event-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
  line-height: 1;
}

.reviews-section { margin-top: 24px; }

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.reviews-summary__num { color: #fbbf24; font-weight: 700; }
.reviews-summary__cnt { color: var(--text-muted); }

.rstars { display: inline-flex; align-items: center; gap: 2px; line-height: 0; }
.rstars__s { color: rgba(255,255,255,0.18); transition: color .12s ease; display: inline-flex; }
.rstars__s svg { fill: currentColor; stroke: none; display: block; }
.rstars__s.is-on { color: #fbbf24; }
.rstars--input .rstars__s {
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: rgba(255,255,255,0.22);
  transition: color .12s ease, transform .12s ease;
}
.rstars--input .rstars__s.is-on,
.rstars--input .rstars__s.is-hover { color: #fbbf24; }
.rstars--input .rstars__s:hover { transform: scale(1.1); }
.rstars--input .rstars__s:focus-visible { outline: none; transform: scale(1.1); }

.reviews-locked,
.reviews-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.reviews-locked svg { color: #f59e0b; flex-shrink: 0; }
.reviews-empty { margin-top: 18px; }

.review-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.review-form__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-form__body { display: flex; flex-direction: column; gap: 10px; }
.review-form__text { resize: vertical; min-height: 80px; }
.review-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.reviews-empty {
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}
.review__avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.review__main { flex: 1; min-width: 0; }
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.review__author { font-weight: 600; color: var(--text); }
.review__date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.review__meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-top: 6px;
  word-wrap: break-word;
}
.review__actions { margin-top: 8px; }
.review__del,
.review__edit {
  background: none;
  border: 0;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.review__del { color: #f87171; }
.review__edit { color: var(--purple, #a855f7); }
.review__del:hover,
.review__edit:hover { text-decoration: underline; }
.review__actions { display: flex; gap: 14px; }

.review--mine {
  background: rgba(168,85,247,0.06);
  border-color: rgba(168,85,247,0.22);
}
.review__you {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--purple, #a855f7);
  background: rgba(168,85,247,0.14);
  padding: 1px 6px;
  border-radius: 100px;
  vertical-align: 1px;
}
.review__status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .02em;
}
.review__status--pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.review__status--rejected { background: rgba(248,113,113,0.15); color: #f87171; }
.review__status--approved { background: rgba(16,185,129,0.15); color: #10b981; }

.review-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Профиль: мои отзывы */
.profile-reviews { display: flex; flex-direction: column; gap: 12px; }
.profile-review {
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.profile-review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.profile-review__title {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}
.profile-review__title:hover { color: var(--purple, #a855f7); }
.profile-review__meta {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
  color: #fbbf24;
}
.profile-review__text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-top: 4px;
  word-wrap: break-word;
}

/* ============== SUPPORT CHAT (профиль ↔ техподдержка) ============== */
.support-card { padding: 22px; }

/* ── Затемнение фона ────────────────────────────────────────────── */
.support-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 5400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.support-overlay.is-show {
  opacity: 1;
  pointer-events: auto;
}

/* ── Выезжающая панель чата (по центру окна) ───────────────────── */
.support-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 480px;
  max-width: calc(100vw - 32px);
  height: 75vh;
  max-height: 720px;
  z-index: 5450;
  background: var(--bg-2, #0d0d1a);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.7), 0 12px 30px rgba(0,0,0,0.4);
  transform: translate(-50%, calc(-50% + 16px)) scale(0.96);
  opacity: 0;
  transform-origin: center center;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
  display: flex;
  flex-direction: column;
}
.support-panel.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.support-panel--admin {
  width: 760px;
  height: 80vh;
  max-height: 760px;
}
.support-panel .support-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.support-panel__head {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  margin: 0 !important;
}
.support-panel__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.support-panel__close:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

/* Внутри панели чат должен заполнять всё доступное пространство */
.support-panel .support-admin-layout,
.support-panel .support-chat--user {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
/* В панели у пользователя сообщения растягиваются, форма ввода прижата к низу */
.support-panel .support-chat--user {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 18px;
}
.support-panel .support-chat--user .support-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.support-panel .support-chat--user .support-form {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .support-panel {
    width: calc(100vw - 24px);
    height: 80vh;
  }
  .support-panel--admin { width: calc(100vw - 24px); }
}

.support-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0;
  text-transform: none;
}

.support-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-chat--user .support-messages { min-height: 320px; max-height: 460px; }

.support-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.support-messages::-webkit-scrollbar { width: 8px; }
.support-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.support-msg { display: flex; }
.support-msg--mine  { justify-content: flex-end; }
.support-msg--other { justify-content: flex-start; }

.support-msg__bubble {
  max-width: 78%;
  padding: 9px 14px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.support-msg--mine .support-msg__bubble {
  background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(34,211,238,0.16));
  border-color: rgba(168,85,247,0.32);
  border-bottom-right-radius: 6px;
}
.support-msg--other .support-msg__bubble {
  border-bottom-left-radius: 6px;
}
.support-msg__author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 3px;
  opacity: .85;
}
.support-msg--mine .support-msg__author { color: #c4a5ff; }
.support-msg__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.support-msg__time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
  opacity: .7;
}

.support-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.support-input {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 160px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s;
}
.support-input:focus { border-color: rgba(168,85,247,0.5); }
.support-send {
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Админ-вид: список диалогов + панель чата ===== */
.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 420px;
}
@media (max-width: 800px) {
  .support-admin-layout { grid-template-columns: 1fr; }
}
.support-conversations {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 480px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.support-conversations::-webkit-scrollbar { width: 8px; }
.support-conversations::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.support-conv {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
  transition: all .15s;
}
.support-conv:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.05); }
.support-conv.is-active {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.32);
}
.support-conv__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.support-conv__body { min-width: 0; }
.support-conv__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.support-conv__last {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.support-conv__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.support-conv__time { font-size: 10px; color: var(--text-muted); }
.support-conv__badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 100px;
  padding: 1px 6px;
  min-width: 16px; text-align: center;
}

.support-chat__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 320px;
  background: rgba(0,0,0,0.18);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 30px 16px;
}

/* В админском макете чат должен заполнить колонку и подскроллиться сам */
.support-admin-layout .support-chat { height: 100%; }
.support-admin-layout .support-messages { flex: 1; min-height: 320px; max-height: 480px; }

/* Яндекс.Метрика: информер только у админа (includes/metrika.php) */
.ym-informer-wrap {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 999999;
  line-height: 0;
}
.ym-informer-wrap a { display: inline-block; }

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 0 48px;
  color: var(--text);
  line-height: 1.65;
  font-size: 15.5px;
}
.legal-page__breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.legal-page__breadcrumbs a {
  color: var(--text-muted);
  transition: color .15s;
}
.legal-page__breadcrumbs a:hover { color: var(--purple); }
.legal-page__title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--purple), var(--cyan, #22d3ee));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-page__updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.legal-page__content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}
.legal-page__content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--text);
}
.legal-page__content p {
  margin: 0 0 14px;
}
.legal-page__content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-page__content ul ul {
  margin: 8px 0 8px;
}
.legal-page__content li {
  margin-bottom: 6px;
}
.legal-page__content a {
  color: var(--purple);
  border-bottom: 1px solid rgba(168,85,247,0.3);
  transition: border-color .15s;
}
.legal-page__content a:hover { border-bottom-color: var(--purple); }
.legal-page__content code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: Consolas, monospace;
}
.legal-page__related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-page__related-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.legal-page__related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.legal-page__related-links a {
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .legal-page { padding: 12px 4px 32px; font-size: 15px; }
  .legal-page__title { font-size: 24px; }
  .legal-page__content h2 { font-size: 17px; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(20,20,28,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.6);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  max-width: 920px;
  margin: 0 auto;
  animation: cookieIn .35s ease-out;
}
@keyframes cookieIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text { flex: 1; min-width: 0; }
.cookie-banner__text a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__btn {
  background: linear-gradient(135deg, var(--purple), var(--cyan, #22d3ee));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, opacity .15s;
}
.cookie-banner__btn:hover { transform: translateY(-1px); }
.cookie-banner__btn:active { transform: translateY(0); }
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 14px;
  }
  .cookie-banner__btn { width: 100%; }
}

/* ===== AUTH CONSENT CHECKBOX ===== */
.auth-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 12px;
}
.auth-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  cursor: pointer;
  accent-color: var(--purple);
}
.auth-consent label {
  cursor: pointer;
  user-select: none;
}
.auth-consent a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-consent a:hover { color: var(--cyan, #22d3ee); }

 
 
/* ===== MULTI-CATEGORY PICKER (desktop forms) ===== */
.cat-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.cat-multi__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #e5e7eb);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.cat-multi__pill:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.cat-multi__pill.is-active {
  background: color-mix(in srgb, var(--cat-color) 20%, transparent);
  border-color: var(--cat-color);
  color: #fff;
}
.cat-multi__pill.is-main {
  background: color-mix(in srgb, var(--cat-color) 35%, transparent);
  border-width: 2px;
  cursor: not-allowed;
  opacity: 0.95;
}
.cat-multi__pill.is-main::after {
  content: "★";
  margin-left: 2px;
  font-size: 10px;
  color: #fde68a;
}
.cat-multi__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== SHARE BUTTON ===== */
.event-card__share {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: all .15s ease;
  opacity: 0;
}
.event-card:hover .event-card__share { opacity: 1; }
.event-card__share:hover {
  background: rgba(168, 85, 247, 0.85);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.event-card__share svg { width: 16px; height: 16px; display: block; }

/* ===== CARD CATEGORY EXTRA BADGES ===== */
.event-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.event-card__cat-extra {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #e5e7eb);
  white-space: nowrap;
}
.event-card__cat-extra-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ===== SHARE TOAST ===== */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,30,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== EVENT PAGE: SHARE BUTTON (большая) ===== */
.event-page__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: var(--text, #e5e7eb);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.event-page__share-btn:hover {
  background: rgba(168,85,247,0.2);
  border-color: rgba(168,85,247,0.5);
}
.event-page__share-btn svg { width: 16px; height: 16px; }
