/* ═══════════════════════════════════════════════
   Вечеринка — главный CSS
   Все страницы используют этот файл
═══════════════════════════════════════════════ */

/* ── Google Fonts подключаются в layout.php ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lime:         #C8F135;
  --lime-sh:      rgba(200,241,53,0.4);
  --violet:       #7B4FFF;
  --violet-light: #EDE8FF;
  --coral:        #FF5C5C;
  --coral-light:  #FFE8E8;
  --sky:          #38C8FF;
  --sky-light:    #E3F8FF;
  --amber:        #FFB800;
  --amber-light:  #FFF4CC;
  --green:        #16A34A;
  --green-light:  #DCFCE7;
  --ink:          #1A1A2E;
  --muted:        #7A7A96;
  --surface:      #F7F6FF;
  --white:        #FFFFFF;
  --ink-06:       rgba(26,26,46,0.06);
  --ink-12:       rgba(26,26,46,0.12);
  --ink-60:       rgba(26,26,46,0.6);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --font-d: 'Unbounded', sans-serif;
  --font-b: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; }
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: 64px; padding: 0 2rem;
  background: rgba(247,246,255,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1.5px solid rgba(123,79,255,0.1);
  display: flex; align-items: center; gap: 12px;
  transition: background .3s, border-color .3s;
}
.navbar.scrolled {
  background: rgba(247,246,255,0.96);
  border-color: var(--ink-06);
}
.nav-logo {
  font-family: var(--font-d); font-size: 17px; font-weight: 900;
  color: var(--ink); display: flex; align-items: center; gap: 7px; flex: 1;
}
.nav-logo-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200,241,53,0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(200,241,53,0.3); }
  50%      { box-shadow: 0 0 0 7px rgba(200,241,53,0.12); }
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  font-weight: 600; font-size: 14px; color: var(--muted);
  background: none; border: none; padding: 8px 14px;
  border-radius: var(--r-sm); transition: color .15s, background .15s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--ink); background: var(--ink-06); }
.btn-primary {
  font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--ink);
  background: var(--lime); border: none;
  padding: 9px 20px; border-radius: 99px;
  box-shadow: 0 2px 14px var(--lime-sh);
  transition: transform .12s, box-shadow .12s;
  display: inline-block;
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 4px 20px var(--lime-sh); }
.btn-primary:active { transform: scale(.97); }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--violet); color: white;
  font-family: var(--font-d); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white; outline: 2px solid var(--violet); cursor: pointer;
}

/* ══════════════════════════════
   HERO (главная)
══════════════════════════════ */
.hero {
  padding: 5rem 2rem 3rem;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 3rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--violet-light); color: var(--violet);
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 99px; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 52px); font-weight: 900; line-height: 1.1;
  color: var(--ink); margin-bottom: 16px;
}
.hero-title span { color: var(--violet); position: relative; }
.hero-title span::after {
  content: ''; position: absolute; left: 0; bottom: -2px; right: 0;
  height: 4px; background: var(--lime); border-radius: 2px;
}
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 440px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-big {
  font-family: var(--font-d); font-size: 14px; font-weight: 700;
  color: var(--ink); background: var(--lime); border: none;
  padding: 14px 28px; border-radius: 99px;
  box-shadow: 0 4px 20px var(--lime-sh);
  transition: transform .12s, box-shadow .15s; display: inline-block;
}
.btn-big:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px var(--lime-sh); }
.btn-big:active { transform: scale(.97); }
.btn-outline {
  font-size: 14px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1.5px solid rgba(0,0,0,0.12);
  padding: 13px 22px; border-radius: 99px; display: inline-block;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.hero-stats {
  display: flex; gap: 28px; margin-top: 36px; padding-top: 28px;
  border-top: 1.5px dashed rgba(0,0,0,0.1);
}
.stat-num   { font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Hero float cards */
.hero-visual { position: relative; height: 420px; }
.float-card {
  position: absolute; background: white; border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: 0 8px 40px rgba(26,26,46,0.12);
  transition: transform .3s;
}
.float-card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.fc-1 { width: 280px; left: 60px; top: 20px;  transform: rotate(2deg); }
.fc-2 { width: 260px; left: 0;    top: 180px; transform: rotate(-3deg); z-index: 2; }
.fc-3 { width: 220px; left: 140px;top: 240px; transform: rotate(1.5deg); z-index: 3; }
.fc-emoji { font-size: 32px; margin-bottom: 8px; }
.fc-title { font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fc-meta  { font-size: 12px; color: var(--muted); }
.fc-tag {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; margin-bottom: 8px;
}
.tag-violet { background: var(--violet-light); color: var(--violet); }
.tag-sky    { background: var(--sky-light);    color: #0080B3; }
.tag-coral  { background: var(--coral-light);  color: var(--coral); }
.fc-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px;
}

/* ══════════════════════════════
   TIMELINE
══════════════════════════════ */
.timeline-section { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem 0; }
.timeline-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
}
.timeline-title {
  font-family: var(--font-d); font-size: 14px; font-weight: 900;
  display: flex; align-items: center; gap: 8px;
}
.timeline-title-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200,241,53,0.3); animation: pulse-dot 2s infinite;
}
.timeline-reset {
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 4px 10px;
  border-radius: var(--r-sm); transition: color .15s; display: none;
}
.timeline-reset.show { display: block; }
.timeline-reset:hover { color: var(--violet); }
.timeline-track-wrap {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}
.timeline-track {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 20px 16px; scrollbar-width: none; cursor: grab; scroll-behavior: smooth;
}
.timeline-track::-webkit-scrollbar { display: none; }
.timeline-track.dragging { cursor: grabbing; scroll-behavior: auto; }
.tday { flex-shrink: 0; width: 80px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform .15s; }
.tday:active { transform: scale(.94); }
.tday-pill {
  width: 100%; padding: 10px 8px 8px; border-radius: var(--r-lg);
  background: white; border: 1.5px solid var(--ink-12);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tday:hover .tday-pill { border-color: var(--violet); box-shadow: 0 4px 16px rgba(123,79,255,0.12); }
.tday.active .tday-pill { background: var(--violet); border-color: var(--violet); box-shadow: 0 6px 20px rgba(123,79,255,0.3); }
.tday.today .tday-pill { border-color: var(--lime); border-width: 2px; }
.tday-name { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; transition: color .15s; }
.tday.active .tday-name { color: rgba(255,255,255,0.7); }
.tday.today .tday-name { color: var(--violet); }
.tday.today.active .tday-name { color: rgba(255,255,255,0.7); }
.tday-num { font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1; transition: color .15s; }
.tday.active .tday-num { color: white; }
.tday-count {
  min-width: 22px; height: 22px; border-radius: 99px;
  background: var(--violet-light); color: var(--violet);
  font-size: 11px; font-weight: 900; font-family: var(--font-d);
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  transition: background .15s, color .15s; margin-top: 2px;
}
.tday.active .tday-count { background: rgba(255,255,255,0.22); color: white; }
.tday-count.zero { background: var(--ink-06); color: var(--muted); }
.tday-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 54px; margin-top: 4px; min-height: 8px; }
.tday-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; transition: opacity .15s; }
.tday.active .tday-dot { opacity: .65; }
.tday-line { width: 1.5px; height: 14px; background: var(--ink-06); margin: 0 auto; transition: background .15s; }
.tday.active .tday-line { background: var(--violet); opacity: .4; }
.tday-today-label {
  font-size: 9px; font-weight: 900; color: var(--ink);
  background: var(--lime); border-radius: 99px; padding: 1px 7px; margin-top: 1px;
  display: none; letter-spacing: .04em;
}
.tday.today .tday-today-label { display: block; }
.tday.today.active .tday-today-label { background: rgba(255,255,255,0.28); color: white; }
.timeline-selected-label {
  max-width: 1200px; margin: 0 auto 20px; padding: 0 2rem;
  display: none; align-items: center; gap: 10px;
}
.timeline-selected-label.show { display: flex; }
.tsl-text {
  font-family: var(--font-d); font-size: 14px; font-weight: 900; color: var(--violet);
  background: var(--violet-light); padding: 6px 14px; border-radius: 99px;
}
.tsl-count { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ══════════════════════════════
   FILTER BAR
══════════════════════════════ */
.filter-section {
  max-width: 1200px; margin: 0 auto 24px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.filter-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title { font-family: var(--font-d); font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.pill-filter {
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 99px;
  border: 1.5px solid var(--ink-12); background: white; color: var(--muted);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.pill-filter:hover  { border-color: var(--violet); color: var(--violet); }
.pill-filter.active { background: var(--violet); color: white; border-color: var(--violet); }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: white; border: 1.5px solid var(--ink-12); border-radius: 99px;
  padding: 8px 16px; min-width: 220px; transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--violet); }
.search-box input {
  border: none; outline: none; font-size: 14px; color: var(--ink);
  background: transparent; width: 100%;
}
.search-box input::placeholder { color: var(--muted); }

/* ══════════════════════════════
   EVENT CARDS
══════════════════════════════ */
.events-section { max-width: 1200px; margin: 0 auto; padding: 0 2rem 5rem; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.event-card {
  background: white; border-radius: var(--r-xl); overflow: hidden;
  border: 1.5px solid var(--ink-06); transition: transform .2s, box-shadow .2s; cursor: pointer;
  animation: card-in .4s ease backwards;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(26,26,46,0.13); }
@keyframes card-in { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }

.card-cover { position: relative; height: 220px; overflow: hidden; background: var(--surface); }
.card-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.event-card:hover .card-cover-img { transform: scale(1.04); }
.card-cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.card-cover-emoji { font-size: 80px; line-height: 1; }
.card-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,0.58) 100%);
}
.card-date-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-radius: var(--r-sm); padding: 7px 13px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
.card-date-day   { font-family: var(--font-d); font-size: 24px; font-weight: 900; line-height: 1; }
.card-date-month { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-cat-chip {
  position: absolute; top: 16px; left: 16px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 11px; border-radius: 99px; backdrop-filter: blur(8px);
}
.card-host-row { position: absolute; bottom: 14px; left: 16px; display: flex; align-items: center; gap: 9px; }
.card-host-av {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid white; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.card-host-name { font-size: 12px; font-weight: 700; color: white; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.card-body { padding: 18px 20px 20px; }
.card-title { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.card-meta-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.card-meta-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1.5px solid var(--ink-06); }
.spots-text { font-size: 12px; color: var(--muted); font-weight: 600; }
.btn-join { font-size: 13px; font-weight: 700; padding: 9px 20px; border-radius: 99px; border: none; transition: all .15s; }
.btn-join-default { background: var(--violet-light); color: var(--violet); }
.btn-join-default:hover { background: var(--violet); color: white; }
.btn-join-lime { background: var(--lime); color: var(--ink); box-shadow: 0 2px 10px var(--lime-sh); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1/-1; }
.empty-state .es-emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* CTA Banner */
.cta-banner { background: var(--violet); padding: 60px 2rem; text-align: center; margin-top: 40px; }
.cta-banner h2 { font-family: var(--font-d); font-size: clamp(24px,3vw,36px); font-weight: 900; color: white; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }

/* ══════════════════════════════
   СТРАНИЦА СОБЫТИЯ
══════════════════════════════ */
.hero { position: relative; }
.hero-img { width: 100%; height: 560px; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%);
}
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 2rem 2.5rem; max-width: 900px; }
.hero-cat {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(10px);
  color: white; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 99px; margin-bottom: 14px;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(10px);
  color: white; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.2);
}
.page-layout { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.host-block { display: flex; align-items: center; gap: 16px; background: white; border-radius: var(--r-xl); padding: 20px 24px; margin-bottom: 28px; border: 1px solid var(--ink-06); }
.host-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 18px; font-weight: 900; border: 3px solid var(--surface); outline: 2px solid var(--violet); }
.host-info { flex: 1; }
.host-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.host-name { font-family: var(--font-d); font-size: 16px; font-weight: 900; margin-bottom: 2px; }
.host-meta { font-size: 13px; color: var(--muted); }
.host-badge { background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; display: inline-block; }
.section-block { background: white; border-radius: var(--r-xl); padding: 28px; margin-bottom: 24px; border: 1px solid var(--ink-06); animation: fadeUp .5s ease backwards; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.block-title { font-family: var(--font-d); font-size: 16px; font-weight: 900; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.block-title-icon { width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.desc-text { font-size: 15px; line-height: 1.75; color: #3A3A52; }
.info-rows { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; align-items: flex-start; gap: 14px; }
.info-icon { width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
.info-value { font-size: 15px; font-weight: 600; color: var(--ink); }
.attendees-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 12px; }
.attendee-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.attendee-av { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 14px; font-weight: 900; border: 2.5px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.attendee-name { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 54px; }
.spots-bar-wrap { margin-top: 20px; }
.spots-bar-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.spots-bar { height: 8px; background: var(--ink-06); border-radius: 99px; overflow: hidden; }
.spots-bar-fill { height: 100%; background: var(--violet); border-radius: 99px; transition: width .6s cubic-bezier(.34,1.4,.64,1); }
.comment-input-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.comment-self-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--violet); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 12px; font-weight: 900; }
.comment-input-box { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--ink-12); border-radius: 99px; padding: 10px 16px; transition: border-color .15s; }
.comment-input-box:focus-within { border-color: var(--violet); background: white; }
.comment-input-box input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font-b); font-size: 14px; color: var(--ink); }
.comment-input-box input::placeholder { color: var(--muted); }
.comment-send { width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: transform .12s; }
.comment-send:hover { transform: scale(1.1); }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; }

/* Своё сообщение — справа */
.comment.comment-own { flex-direction: row-reverse; }
.comment.comment-own .comment-bubble {
  background: var(--violet-light);
  border-color: transparent;
  border-radius: var(--r-lg) 4px var(--r-lg) var(--r-lg);
}
.comment.comment-own .comment-head { flex-direction: row-reverse; }
.comment.comment-own .comment-text { text-align: right; }
.comment-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 11px; font-weight: 900; }
.comment-bubble { background: white; border: 1px solid var(--ink-06); border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); padding: 10px 16px; flex: 1; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 700; }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; line-height: 1.55; color: #3A3A52; }

/* Sidebar */
.sidebar { position: sticky; top: 88px; }
.join-card { background: white; border-radius: var(--r-xl); padding: 28px; margin-bottom: 20px; border: 1px solid var(--ink-06); box-shadow: 0 4px 30px rgba(26,26,46,0.06); }
.join-card-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--violet); background: var(--violet-light); padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.join-card-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: pulse-dot 1.5s ease-in-out infinite; }
.join-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.join-price { font-family: var(--font-d); font-size: 28px; font-weight: 900; color: var(--ink); }
.join-price-label { font-size: 13px; color: var(--muted); }
.join-spots-text { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.join-spots-text b { color: var(--coral); }
.btn-join-main { width: 100%; padding: 16px; margin-bottom: 10px; font-family: var(--font-d); font-size: 15px; font-weight: 900; color: var(--ink); background: var(--lime); border-radius: 99px; box-shadow: 0 4px 20px var(--lime-sh); transition: transform .12s, box-shadow .15s; }
.btn-join-main:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px var(--lime-sh); }
.btn-join-main.joined { background: var(--violet); color: white; box-shadow: 0 4px 20px rgba(123,79,255,0.3); }
.btn-share { width: 100%; padding: 13px; font-size: 14px; font-weight: 700; color: var(--muted); background: transparent; border-radius: 99px; border: 1.5px solid var(--ink-12); display: flex; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s, color .15s; }
.btn-share:hover { border-color: var(--violet); color: var(--violet); }
.join-guarantee { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-06); }

/* ══════════════════════════════
   АВТОРИЗАЦИЯ
══════════════════════════════ */
.auth-page-wrap { display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1rem 5rem; min-height: calc(100vh - 64px); }
.auth-card { background: white; border-radius: var(--r-xl); width: 100%; max-width: 440px; padding: 40px 36px; border: 1px solid var(--ink-06); box-shadow: 0 4px 40px rgba(26,26,46,0.07); animation: fadeUp .3s ease; }
.auth-mark { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.auth-title { font-family: var(--font-d); font-size: 24px; font-weight: 900; margin-bottom: 6px; line-height: 1.2; }
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }
.auth-error { background: var(--coral-light); color: var(--coral); border: 1px solid var(--coral); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ink-12); }
.auth-divider span { font-size: 12px; color: var(--muted); font-weight: 600; }
.btn-auth { width: 100%; padding: 14px; margin-top: 6px; font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--ink); background: var(--lime); border: none; border-radius: 99px; box-shadow: 0 4px 20px var(--lime-sh); transition: transform .12s, box-shadow .12s; }
.btn-auth:hover  { transform: translateY(-1px); box-shadow: 0 6px 28px var(--lime-sh); }
.btn-auth:active { transform: scale(.98); }
.auth-footer-text { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
.auth-link { color: var(--violet); font-weight: 700; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }

/* ══════════════════════════════
   ФОРМА (общие элементы)
══════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--ink-12); border-radius: var(--r-md);
  font-family: var(--font-b); font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123,79,255,0.12); background: white; }
.form-input::placeholder { color: var(--muted); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ══════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ
══════════════════════════════ */
.dash-layout { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 5rem; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.profile-card { background: white; border-radius: var(--r-xl); border: 1px solid var(--ink-06); overflow: hidden; position: sticky; top: 88px; }
.profile-header { background: var(--violet); padding: 28px 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.profile-edit-btn { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); color: white; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.profile-edit-btn:hover { background: rgba(255,255,255,0.3); }
.avatar-wrap { position: relative; }
.avatar-main { width: 88px; height: 88px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.4); background: var(--lime); color: var(--ink); font-family: var(--font-d); font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; position: relative; }
.avatar-main img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-hint { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; font-size: 18px; }
.avatar-main:hover .avatar-upload-hint { opacity: 1; }
.avatar-online { width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--violet); position: absolute; bottom: 2px; right: 2px; }
.profile-name { font-family: var(--font-d); font-size: 16px; font-weight: 900; color: white; text-align: center; }
.profile-handle { font-size: 12px; color: rgba(255,255,255,0.65); }
.profile-verified { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.15); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.profile-stats { display: flex; border-bottom: 1px solid var(--ink-06); }
.pstat { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--ink-06); cursor: pointer; transition: background .12s; }
.pstat:last-child { border-right: none; }
.pstat:hover { background: var(--surface); }
.pstat-num { font-family: var(--font-d); font-size: 18px; font-weight: 900; color: var(--ink); }
.pstat-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.profile-info { padding: 20px 20px 6px; }
.pinfo-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ink-06); font-size: 14px; }
.pinfo-row:last-child { border-bottom: none; }
.pinfo-icon { width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.pinfo-val { font-weight: 600; color: var(--ink); }
.pinfo-muted { color: var(--muted); }
.profile-edit-form { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.profile-edit-form.open { max-height: 500px; padding: 0 20px 20px; }
.btn-save { width: 100%; padding: 11px; background: var(--lime); color: var(--ink); font-family: var(--font-d); font-size: 13px; font-weight: 700; border-radius: 99px; box-shadow: 0 2px 10px var(--lime-sh); transition: transform .12s; margin-top: 4px; }
.btn-save:hover { transform: translateY(-1px); }
.profile-logout { margin: 16px 20px 20px; display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px; border-radius: var(--r-md); border: 1.5px solid var(--ink-12); transition: color .15s, border-color .15s; }
.profile-logout:hover { color: var(--coral); border-color: var(--coral-light); }
.dash-right { animation: fadeUp .4s .06s ease backwards; }
.tab-bar { display: flex; gap: 4px; background: white; border: 1px solid var(--ink-06); border-radius: var(--r-xl); padding: 6px; margin-bottom: 24px; box-shadow: 0 1px 6px rgba(26,26,46,0.04); }
.tab-btn { flex: 1; padding: 10px 8px; border-radius: var(--r-lg); font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tab-btn:hover { color: var(--ink); background: var(--ink-06); }
.tab-btn.active { background: var(--violet); color: white; box-shadow: 0 3px 12px rgba(123,79,255,0.3); }
.tab-badge { min-width: 18px; height: 18px; border-radius: 99px; background: var(--coral-light); color: var(--coral); font-size: 10px; font-weight: 900; padding: 0 5px; display: flex; align-items: center; justify-content: center; }
.tab-btn.active .tab-badge { background: rgba(255,255,255,0.25); color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease backwards; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title { font-family: var(--font-d); font-size: 16px; font-weight: 900; }
.btn-panel-action { font-size: 13px; font-weight: 700; color: var(--violet); background: var(--violet-light); padding: 7px 16px; border-radius: 99px; transition: background .15s, color .15s; display: inline-block; }
.btn-panel-action:hover { background: var(--violet); color: white; }
.event-list { display: flex; flex-direction: column; gap: 14px; }
.ev-item { background: white; border-radius: var(--r-lg); border: 1px solid var(--ink-06); display: flex; overflow: hidden; transition: transform .18s, box-shadow .18s; cursor: pointer; }
.ev-item:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(26,26,46,0.09); }
.ev-cover { width: 120px; flex-shrink: 0; position: relative; overflow: hidden; }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; }
.ev-cover-fallback { width: 100%; height: 100%; min-height: 100px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.ev-status-badge { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(6px); }
.status-published { background: var(--green-light); color: var(--green); }
.status-pending   { background: var(--amber-light); color: var(--amber); }
.status-rejected  { background: var(--coral-light); color: var(--coral); }
.status-going     { background: var(--lime); color: var(--ink); }
.ev-body { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ev-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ev-title { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-meta-item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--ink-06); }
.ev-guest-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.ev-actions { display: flex; gap: 6px; }
.ev-btn { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; transition: all .12s; }
.ev-btn-ghost { color: var(--muted); background: var(--ink-06); }
.ev-btn-ghost:hover { color: var(--ink); background: var(--ink-12); }
.ev-btn-chat { color: var(--violet); background: var(--violet-light); }
.ev-btn-chat:hover { background: var(--violet); color: white; }
.panel-empty { text-align: center; padding: 48px 24px; background: white; border-radius: var(--r-xl); border: 1px solid var(--ink-06); color: var(--muted); }
.panel-empty-icon { font-size: 40px; margin-bottom: 12px; }
.panel-empty p { font-size: 14px; margin-bottom: 20px; }
.btn-empty-action { display: inline-block; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--lime); padding: 11px 24px; border-radius: 99px; box-shadow: 0 2px 12px var(--lime-sh); }

/* ── Чат ── */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; background: white; border-radius: var(--r-xl); border: 1px solid var(--ink-06); overflow: hidden; height: 600px; }
.chat-sidebar { border-right: 1px solid var(--ink-06); display: flex; flex-direction: column; }
.chat-sidebar-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--ink-06); font-family: var(--font-d); font-size: 13px; font-weight: 900; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-conv { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; transition: background .12s; border-bottom: 1px solid var(--ink-06); }
.chat-conv:hover { background: var(--surface); }
.chat-conv.active { background: var(--violet-light); }
.chat-conv-cover { width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-preview { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-unread { min-width: 18px; height: 18px; border-radius: 99px; background: var(--violet); color: white; font-size: 10px; font-weight: 900; padding: 0 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-window { display: flex; flex-direction: column; }
.chat-window-head { padding: 14px 20px; border-bottom: 1px solid var(--ink-06); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chat-window-title { font-family: var(--font-d); font-size: 13px; font-weight: 900; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.own { flex-direction: row-reverse; }
.msg-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.msg-body { max-width: 72%; }
.msg-name { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.msg.own .msg-name { text-align: right; }
.msg-bubble { background: white; border: 1px solid var(--ink-06); border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); padding: 9px 14px; font-size: 14px; line-height: 1.55; }
.msg.own .msg-bubble { background: var(--violet); color: white; border-color: transparent; border-radius: var(--r-lg) 4px var(--r-lg) var(--r-lg); }
.msg-system { text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 99px; padding: 5px 14px; width: fit-content; margin: 0 auto; border: 1px solid var(--ink-06); }
.msg-time { font-size: 10px; color: var(--muted); margin-top: 3px; }
.msg.own .msg-time { text-align: right; }
.chat-input-row { padding: 12px 16px; border-top: 1px solid var(--ink-06); display: flex; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.chat-input-box { flex: 1; background: var(--surface); border: 1.5px solid var(--ink-12); border-radius: var(--r-lg); padding: 10px 14px; font-family: var(--font-b); font-size: 14px; color: var(--ink); outline: none; resize: none; line-height: 1.5; transition: border-color .15s; }
.chat-input-box:focus { border-color: var(--violet); background: white; }
.chat-input-box::placeholder { color: var(--muted); }
.chat-send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--violet); color: white; font-size: 17px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(123,79,255,0.35); transition: transform .12s; flex-shrink: 0; }
.chat-send-btn:hover { transform: scale(1.08); }

/* ══════════════════════════════
   ВИДЕООБРАЩЕНИЕ
══════════════════════════════ */
.video-appeal-block { background: white; border-radius: var(--r-xl); border: 1px solid var(--ink-06); padding: 24px 28px; margin-bottom: 24px; }
.video-appeal-layout { display: flex; align-items: flex-start; gap: 24px; }
.vcircle-wrap { position: relative; flex-shrink: 0; width: 148px; height: 148px; }
.vcircle-ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; z-index: 2; }
.vcircle-ring-track { fill: none; stroke: var(--ink-06); stroke-width: 3.5; }
.vcircle-ring-fill { fill: none; stroke: var(--violet); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0 1000; transition: stroke-dasharray .1s linear; }
.vcircle-ring.recording .vcircle-ring-fill { stroke: var(--coral); }
.vcircle { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 0 0 3px var(--violet), 0 6px 24px rgba(123,79,255,0.25); transition: box-shadow .2s, transform .15s; }
.vcircle:hover { transform: scale(1.04); }
.vcircle.recording { box-shadow: 0 0 0 3px var(--coral), 0 6px 24px rgba(255,92,92,0.3); animation: vcircle-pulse 1.2s ease-in-out infinite; }
@keyframes vcircle-pulse { 0%,100%{box-shadow:0 0 0 3px var(--coral),0 6px 24px rgba(255,92,92,0.3)} 50%{box-shadow:0 0 0 7px var(--coral),0 8px 32px rgba(255,92,92,0.5)} }
.vcircle.has-video { box-shadow: 0 0 0 3px var(--lime), 0 6px 24px var(--lime-sh); }
.vcircle video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcircle-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(145deg,#2D2D44 0%,#1A1A2E 100%); }
.vcircle-placeholder-icon { font-size: 34px; opacity: .65; }
.vcircle-placeholder-text { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.45); text-align: center; text-transform: uppercase; letter-spacing: .07em; line-height: 1.35; padding: 0 14px; }
.vcircle-rec-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--coral); color: white; font-size: 9px; font-weight: 900; letter-spacing: .1em; padding: 3px 9px; border-radius: 99px; display: none; align-items: center; gap: 4px; white-space: nowrap; z-index: 3; }
.vcircle-rec-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:white; flex-shrink:0; animation:blink .8s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.vcircle.recording .vcircle-rec-badge { display: flex; }
.vcircle-timer { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.55); color: white; font-size: 11px; font-weight: 700; font-family: var(--font-d); padding: 3px 9px; border-radius: 99px; display: none; white-space: nowrap; z-index: 3; }
.vcircle.recording .vcircle-timer { display: block; }
.vcircle-play-hint { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.42); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; z-index: 3; font-size: 32px; color: white; }
.vcircle.has-video:hover .vcircle-play-hint { opacity: 1; }
/* Скрываем play hint когда видео играет — управляется JS классом */
.vcircle.playing .vcircle-play-hint { opacity: 0 !important; }
.video-appeal-right { flex: 1; min-width: 0; }
.video-appeal-title { font-family: var(--font-d); font-size: 15px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.video-appeal-sub { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.video-controls { display: flex; flex-direction: column; gap: 8px; }
.btn-vc { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 99px; font-size: 14px; font-weight: 700; transition: all .15s; }
.btn-vc-record { background: var(--coral-light); color: var(--coral); border: 1.5px solid transparent; }
.btn-vc-record:hover { background: var(--coral); color: white; }
.btn-vc-stop { background: var(--coral); color: white; box-shadow: 0 2px 12px rgba(255,92,92,0.3); display: none; }
.btn-vc-stop.show { display: flex; }
.btn-vc-delete { background: transparent; color: var(--muted); border: 1.5px solid var(--ink-12); display: none; }
.btn-vc-delete:hover { border-color: var(--coral); color: var(--coral); }
.btn-vc-delete.show { display: flex; }
.btn-vc-play { display: flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--lime); box-shadow: 0 2px 14px var(--lime-sh); border: none; transition: all .15s; width: fit-content; }
.btn-vc-play:hover { transform: translateY(-1px); box-shadow: 0 5px 20px var(--lime-sh); }

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: white;
  font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 99px;
  z-index: 400; transition: transform .35s cubic-bezier(.34,1.4,.64,1);
  box-shadow: 0 8px 32px rgba(26,26,46,0.3); white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
  .dash-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { border-right: none; border-bottom: 1px solid var(--ink-06); max-height: 280px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; }
  .hero-visual { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .filter-section, .events-section { padding: 0 1rem; }
  .timeline-section { padding: 1.5rem 0 0; }
  .events-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .tab-btn span { display: none; }
  .video-appeal-layout { flex-direction: column; align-items: center; }
}

/* ── Архивные и удалённые события ── */
.status-archived { background: #E8E8F0; color: #5A5A7A; }
.status-deleted  { background: var(--coral-light); color: var(--coral); }
.ev-item-archived { opacity: .75; }
.ev-item-deleted  { opacity: .5; cursor: default !important; }
.ev-btn-archive {
  color: #5A5A7A; background: #E8E8F0;
  transition: background .12s;
}
.ev-btn-archive:hover { background: #D0D0E8; }

/* ══════════════════════════════
   EVENT HERO — страница события
   3 режима: горизонтальное фото / вертикальное / эмодзи+градиент
══════════════════════════════ */
.event-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  /* фон = градиент по категории (всегда задан из PHP) */
}

/* ── Горизонтальное фото — на весь блок ── */
.event-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Вертикальное фото — по центру поверх размытого фона ── */
.event-hero-portrait-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Размытая копия фото как фон */
.event-hero-portrait-blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.55) saturate(1.3);
  transform: scale(1.1);
  z-index: 0;
}

/* Само вертикальное фото */
.event-hero-portrait-img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ── Эмодзи на градиенте (нет фото) ── */
.event-hero-emoji-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* лёгкий шум через псевдоэлемент */
}
.event-hero-emoji-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(0px);
}
.event-hero-emoji {
  font-size: 110px;
  line-height: 1;
  filter: drop-shadow(0 6px 32px rgba(0,0,0,0.35));
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Оверлей градиент снизу — общий для всех режимов ── */
.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0)    25%,
    rgba(0,0,0,0)    38%,
    rgba(0,0,0,0.55) 65%,
    rgba(0,0,0,0.82) 100%
  );
  z-index: 2;
}

/* ── Текст поверх ── */
.event-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 2rem 2rem;
  z-index: 3;
}

/* Категория — маленький чип */
.event-hero-content .hero-cat {
  display: inline-flex;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 99px;
  margin-bottom: 10px;
}

/* Заголовок — белый с тенью */
.event-hero-content .hero-title {
  font-family: var(--font-d);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Чипы — стеклянные пилюли */
.event-hero-content .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-hero-content .hero-chip {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 99px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── Адаптив ── */
@media (max-width: 860px) {
  .event-hero { height: 400px; }
  .event-hero-emoji { font-size: 80px; }
  .event-hero-portrait-img { max-width: 75%; }
}
@media (max-width: 600px) {
  .event-hero { height: 300px; }
  .event-hero-content { padding: 0 1rem 1.5rem; }
  .event-hero-emoji { font-size: 64px; }
  .event-hero-portrait-img { max-width: 85%; }
}

/* ══════════════════════════════
   CITY BANNER + PICKER
══════════════════════════════ */
.city-banner {
  background: var(--violet); padding: 10px 2rem;
  display: flex; align-items: center; justify-content: center;
}
.city-banner-inner {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: white; flex-wrap: wrap; justify-content: center;
}
.city-banner-icon { font-size: 16px; }
.city-banner-text b { font-weight: 700; }
.city-banner-ok {
  background: var(--lime); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 5px 14px;
  border-radius: 99px; border: none; cursor: pointer;
  transition: transform .12s;
}
.city-banner-ok:hover { transform: scale(1.05); }
.city-banner-change {
  background: rgba(255,255,255,0.18); color: white;
  font-size: 13px; font-weight: 600; padding: 5px 14px;
  border-radius: 99px; border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer; transition: background .12s;
}
.city-banner-change:hover { background: rgba(255,255,255,0.28); }

/* Кнопка города в навбаре */
.nav-city-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--ink-12);
  border-radius: 99px; padding: 6px 12px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.nav-city-btn:hover { color: var(--violet); border-color: var(--violet); }

/* Попап выбора города */
.city-picker-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,26,46,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.city-picker-modal {
  background: white; border-radius: var(--r-xl);
  width: 100%; max-width: 440px; padding: 28px;
  animation: fadeUp .25s cubic-bezier(.34,1.4,.64,1);
}
.city-picker-title { font-family: var(--font-d); font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.city-picker-search input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--ink-12); border-radius: var(--r-md);
  font-family: var(--font-b); font-size: 15px; outline: none;
  transition: border-color .15s;
}
.city-picker-search input:focus { border-color: var(--violet); }
.city-popular-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 16px 0 10px;
}
.city-popular-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-popular-item {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink-12);
  border-radius: 99px; padding: 7px 15px; cursor: pointer;
  transition: all .12s;
}
.city-popular-item:hover { border-color: var(--violet); color: var(--violet); }
.city-popular-item.active { background: var(--violet); color: white; border-color: var(--violet); }

/* Удалённое событие — зачёркнутый заголовок */
.ev-title-deleted {
  text-decoration: line-through;
  color: var(--muted) !important;
}
/* Плавное скрытие карточки */
.ev-item {
  transition: max-height .5s ease, opacity .5s ease, margin .5s ease;
  overflow: visible;
}
