/**
 * styles.css - Стили для приложения "В городе"
 * 
 * Дизайн-система:
 * - Тёмная тема с неоновыми акцентами
 * - Градиенты в стиле городских огней
 * - Плавные анимации и переходы
 * - Mobile-first подход
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Основные цвета */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --bg-elevated: #222230;
  
  /* Текст */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Неоновые акценты */
  --neon-pink: #ff6b9d;
  --neon-purple: #a855f7;
  --neon-blue: #3b82f6;
  --neon-cyan: #22d3ee;
  --neon-green: #4ade80;
  --neon-orange: #fb923c;
  --neon-yellow: #fbbf24;
  --neon-red: #ef4444;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #ff6b9d, #a855f7, #3b82f6);
  --gradient-sunset: linear-gradient(135deg, #ff6b6b, #ff8e53, #ffc93c);
  --gradient-ocean: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  --gradient-forest: linear-gradient(135deg, #11998e, #38ef7d, #56CCF2);
  --gradient-fire: linear-gradient(135deg, #f093fb, #f5576c, #ff6b6b);
  --gradient-sky: linear-gradient(135deg, #4facfe, #00f2fe, #43e97b);
  --gradient-party: linear-gradient(135deg, #fa709a, #fee140, #ffc93c);
  
  /* Тени с неоновым свечением */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-neon-pink: 0 0 20px rgba(255, 107, 157, 0.4);
  --shadow-neon-purple: 0 0 20px rgba(168, 85, 247, 0.4);
  --shadow-neon-blue: 0 0 20px rgba(59, 130, 246, 0.4);
  
  /* Размеры */
  --header-height: 60px;
  --bottom-nav-height: 70px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  
  /* Анимации */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Безопасные зоны для мобильных устройств */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  
  /* Отступы для платформ (по умолчанию - iPhone/браузер) */
  --platform-top: 90px;
  --platform-bottom: 0px;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Платформо-зависимые отступы */
body.platform-android {
  --platform-top: 60px;   /* +20px сверху */
  --platform-bottom: 30px; /* +10px снизу */
}

body.platform-ios,
body.platform-browser {
  --platform-top: 90px;
  --platform-bottom: 0px;
}

/* Скрытие скроллбара, но сохранение прокрутки */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ==================== SPLASH SCREEN ==================== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  padding: 20px;
}

.splash-logo {
  margin-bottom: 40px;
}

/* Анимированный силуэт города */
.city-skyline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 120px;
  margin-bottom: 20px;
}

.building {
  border-radius: 4px 4px 0 0;
  animation: buildingGrow 1s ease-out forwards, buildingGlow 2s ease-in-out infinite alternate;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
}

.building.b1 { width: 16px; height: 60px; background: linear-gradient(to top, #3b82f6, #22d3ee); animation-delay: 0.1s; }
.building.b2 { width: 20px; height: 90px; background: linear-gradient(to top, #a855f7, #f093fb); animation-delay: 0.2s; }
.building.b3 { width: 24px; height: 75px; background: linear-gradient(to top, #ff6b9d, #fb923c); animation-delay: 0.3s; }
.building.b4 { width: 28px; height: 110px; background: linear-gradient(to top, #fbbf24, #f59e0b); animation-delay: 0.4s; }
.building.b5 { width: 22px; height: 85px; background: linear-gradient(to top, #4ade80, #22d3ee); animation-delay: 0.5s; }
.building.b6 { width: 18px; height: 70px; background: linear-gradient(to top, #f093fb, #a855f7); animation-delay: 0.6s; }
.building.b7 { width: 14px; height: 55px; background: linear-gradient(to top, #3b82f6, #6366f1); animation-delay: 0.7s; }

@keyframes buildingGrow {
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes buildingGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

.splash-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.splash-loader {
  width: 200px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: loadProgress 1.5s ease-out forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

.splash-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 0.5s ease 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ==================== APP CONTAINER ==================== */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: var(--platform-top);
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg-primary) 60%, transparent);
  padding-bottom: 20px;
}

/* Фоновая заливка над хедером (чтобы контент не вылезал при скролле) */
.header::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: var(--platform-top);
  background: var(--bg-primary);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.header-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  transition: var(--transition-normal);
}

.header-btn:hover,
.header-btn:focus {
  background: var(--bg-elevated);
  transform: scale(1.05);
}

.header-btn:active {
  transform: scale(0.95);
}

.header-btn svg {
  width: 20px;
  height: 20px;
}

.favorites-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--neon-pink);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn {
  padding: 0;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Индикаторы категорий */
.category-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
}

.category-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition-normal);
}

.category-indicator.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gradient-primary);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  padding-top: calc(var(--header-height) + var(--platform-top) + 20px);
  padding-bottom: calc(var(--bottom-nav-height) + var(--platform-bottom));
}

.categories-swiper {
  height: 100%;
  width: 100%;
}

.swiper-slide {
  height: auto;
  overflow-y: auto;
  padding-bottom: 20px;
}

/* ==================== CATEGORY SLIDE ==================== */
.category-slide {
  padding: 0 16px;
}

.category-header {
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, var(--bg-primary) 80%, transparent);
  padding: 10px 0 20px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-card);
}

.category-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.category-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Подкатегории - фильтры (горизонтальный скролл) */
.subcategories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  /* Разрешаем только горизонтальный скролл, блокируем свайп между категориями */
  touch-action: pan-x;
}

.subcategories::-webkit-scrollbar {
  display: none;
}

.subcategory-chip {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  transition: var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.subcategory-chip.active {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-neon-pink);
}

.subcategory-chip:not(.active):hover {
  background: var(--bg-elevated);
}

/* ==================== EVENT CARDS ==================== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.event-card:active {
  transform: scale(0.98);
}

.event-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card-image img {
  transform: scale(1.05);
}

/* Оверлей с градиентом */
.event-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

/* Тег рекомендации */
.event-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-tag.hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.event-tag.new {
  background: linear-gradient(135deg, #22c55e, #10b981);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.event-tag.popular {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.event-tag.exclusive {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Кнопка избранного на карточке */
.event-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.event-favorite-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.event-favorite-btn svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-normal);
}

.event-favorite-btn.active svg {
  fill: var(--neon-pink);
  stroke: var(--neon-pink);
}

/* Плашка с количеством дат на карточке */
.event-dates-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.event-dates-badge svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

/* Контент карточки */
.event-card-content {
  padding: 16px;
}

.event-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.event-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Город в карточке мероприятия */
.event-meta-city {
  color: var(--neon-cyan);
  font-weight: 500;
}

.event-meta-city svg {
  opacity: 1;
  stroke: var(--neon-cyan);
}

.event-card-price {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-green);
}

.event-card-price.free {
  color: var(--neon-cyan);
}

/* Теги мероприятия */
.event-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.event-mini-tag {
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==================== EVENT MODAL ==================== */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.event-modal.visible {
  transform: translateX(0);
}

.event-modal-content {
  height: 100%;
  overflow-y: auto;
}

.modal-header {
  position: fixed;
  top: var(--platform-top);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.modal-close-btn:hover {
  background: var(--bg-elevated);
}

.modal-close-btn svg {
  width: 24px;
  height: 24px;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.modal-action-btn:hover {
  background: var(--bg-elevated);
}

.modal-action-btn svg {
  width: 22px;
  height: 22px;
}

.modal-action-btn.active svg {
  fill: var(--neon-pink);
  stroke: var(--neon-pink);
}

.modal-body {
  padding-top: calc(var(--platform-top) + 60px);
}

/* Галерея изображений */
.modal-gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
}

.modal-gallery-swiper {
  height: 100%;
}

.modal-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-pagination {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition-normal);
}

.gallery-dot.active {
  width: 24px;
  border-radius: 4px;
  background: white;
}

/* Контент модального окна */
.modal-content-body {
  padding: 0 20px 40px;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Информация о дате и времени */
.modal-datetime {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
}

.modal-datetime-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modal-datetime-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-datetime-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Цена */
.modal-price-section {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
}

.modal-price-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-price-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-green);
}

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

/* Описание */
.modal-description {
  margin-bottom: 24px;
}

.modal-description h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.modal-description p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Место проведения */
.modal-venue {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
}

.modal-venue-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-venue-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-venue-icon svg {
  width: 24px;
  height: 24px;
  color: var(--neon-cyan);
}

.modal-venue-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-venue-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-venue-city {
  font-size: 0.9rem;
  color: var(--neon-cyan);
  font-weight: 500;
}

.modal-venue-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neon-cyan);
  transition: var(--transition-normal);
}

.modal-venue-map:hover {
  background: var(--bg-primary);
}

.modal-venue-map svg {
  width: 18px;
  height: 18px;
}

/* Контакты */
.modal-contacts {
  margin-bottom: 24px;
}

.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  margin-bottom: 8px;
  transition: var(--transition-normal);
}

.modal-contact-item:hover {
  background: var(--bg-elevated);
}

.modal-contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--neon-purple);
}

.modal-contact-item span {
  flex: 1;
  font-size: 0.95rem;
}

.modal-contact-item .arrow {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

/* Ссылки */
.modal-links {
  margin-bottom: 24px;
}

.modal-links h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.modal-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  margin-bottom: 8px;
  transition: var(--transition-normal);
}

.modal-link-item:hover {
  background: var(--bg-elevated);
}

.modal-link-item svg {
  width: 20px;
  height: 20px;
  color: var(--neon-blue);
}

.modal-link-item span {
  flex: 1;
  font-size: 0.95rem;
}

/* Организатор в модальном окне */
.modal-organizer {
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-elevated);
}

.modal-organizer h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-organizer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
}

.modal-organizer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.modal-organizer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-organizer-avatar span {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.modal-organizer-info {
  flex: 1;
  min-width: 0;
}

.modal-organizer-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-organizer-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-normal);
}

.modal-organizer-phone:hover {
  color: var(--neon-blue);
}

.modal-organizer-phone svg {
  width: 16px;
  height: 16px;
}

/* Теги в модальном окне */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-tag {
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== КАЛЕНДАРЬ ДАТ МЕРОПРИЯТИЯ ==================== */

.event-dates-calendar {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.event-dates-calendar.single-date {
  padding: 0;
  background: transparent;
}

/* Одна дата */
.event-dates-calendar.single-date .event-date-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.event-dates-calendar.single-date .event-date-item:hover {
  background: var(--bg-elevated);
}

.event-dates-calendar.single-date .event-date-item.favorite {
  border-color: var(--neon-pink);
  background: rgba(255, 107, 157, 0.1);
}

.event-date-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-date-day {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.event-date-time {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.event-date-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-date-status {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.event-date-item.favorite .event-date-status {
  background: var(--neon-pink);
  color: white;
}

/* Много дат */
.event-dates-header {
  margin-bottom: 16px;
}

.event-dates-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.event-schedule-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--neon-purple);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
}

.event-dates-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 0 0;
}

.event-dates-time {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: center;
}

.event-dates-month {
  margin-bottom: 16px;
}

.event-dates-month:last-child {
  margin-bottom: 0;
}

.event-dates-month-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.event-dates-calendar.multi-date .event-date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  min-height: 70px;
}

.event-dates-calendar.multi-date .event-date-item:hover:not(.past) {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
}

.event-dates-calendar.multi-date .event-date-item.favorite {
  background: rgba(255, 107, 157, 0.15);
  border-color: var(--neon-pink);
}

.event-dates-calendar.multi-date .event-date-item.past {
  opacity: 0.4;
  cursor: default;
}

.event-date-day-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.event-date-day-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.event-date-heart {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.7rem;
}

.event-dates-summary {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.event-dates-fav-count {
  color: var(--neon-pink);
  font-weight: 500;
}

.event-dates-total {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== ИЗБРАННОЕ (обновлённое) ==================== */

.favorites-section {
  margin-bottom: 24px;
}

.favorites-section.past {
  opacity: 0.6;
}

.favorites-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  padding: 0 4px;
}

.favorites-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 12px;
  transition: all 0.2s ease;
}

.favorite-item:hover {
  background: var(--bg-elevated);
}

.favorite-item.past {
  opacity: 0.5;
}

.favorite-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.favorite-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-item-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.favorite-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-item-date {
  font-size: 0.85rem;
  color: var(--neon-pink);
  margin: 0 0 2px 0;
}

.favorite-item-venue {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-item-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.favorite-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--neon-red);
}

.favorite-item-remove svg {
  width: 18px;
  height: 18px;
}

/* Кнопки действий */
.modal-actions-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  position: sticky;
  bottom: 0;
}

.modal-action-button {
  padding: 16px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.modal-action-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-neon-pink);
}

.modal-action-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.modal-action-button.primary.active {
  background: linear-gradient(135deg, var(--neon-green), #22c55e);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.modal-action-button.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-action-button.secondary:hover {
  background: var(--bg-elevated);
}

.modal-action-button svg {
  width: 20px;
  height: 20px;
}

/* ==================== SEARCH MODAL ==================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.search-modal.visible {
  transform: translateY(0);
}

.search-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-elevated);
}

.search-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.search-close-btn:hover {
  background: var(--bg-card);
}

.search-close-btn svg {
  width: 24px;
  height: 24px;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
}

.search-input-wrapper svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.search-clear-btn svg {
  width: 20px;
  height: 20px;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.search-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.search-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.search-no-results-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ==================== FAVORITES MODAL ==================== */
.favorites-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.favorites-modal.visible {
  transform: translateX(0);
}

.favorites-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.favorites-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-elevated);
}

.favorites-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.favorites-close-btn:hover {
  background: var(--bg-card);
}

.favorites-close-btn svg {
  width: 24px;
  height: 24px;
}

.favorites-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.favorites-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.favorites-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.favorites-empty p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.favorites-empty small {
  font-size: 0.85rem;
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
  position: fixed;
  bottom: var(--platform-bottom);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--bottom-nav-height);
  background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
  padding: 0 8px;
}

/* Заливка нижнего отступа для Android (цвет как у фона) */
.bottom-nav::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--platform-bottom));
  left: 0;
  right: 0;
  height: var(--platform-bottom);
  background: var(--bg-primary);
  pointer-events: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  transition: var(--transition-normal);
}

.nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.nav-item.active svg {
  color: var(--neon-pink);
}

.nav-item.active span {
  color: var(--text-primary);
}

.nav-item:hover:not(.active) {
  background: var(--bg-card);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--platform-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 24px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
}

.toast.success {
  background: linear-gradient(135deg, #059669, #10b981);
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.toast.info {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-md);
}

/* ==================== PROFILE MODAL ==================== */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.profile-modal.visible {
  transform: translateX(0);
}

.profile-modal-content {
  height: 100%;
  overflow-y: auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-elevated);
}

.profile-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.profile-close-btn:hover {
  background: var(--bg-card);
}

.profile-close-btn svg {
  width: 24px;
  height: 24px;
}

.profile-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-body {
  padding: 20px 16px;
}

/* Аватар и ID */
.profile-user-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  margin-bottom: 20px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-neon-pink);
}

.profile-user-id {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Форма профиля */
.profile-form {
  margin-bottom: 24px;
}

.profile-form-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-input-group {
  margin-bottom: 16px;
}

.profile-input-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-normal);
}

.profile-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.profile-input::placeholder {
  color: var(--text-muted);
}

/* Select в профиле пользователя */
.profile-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.profile-save-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-neon-pink);
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.profile-save-btn:active {
  transform: scale(0.98);
}

/* Плашка избранного */
.profile-favorites-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.profile-favorites-card:hover {
  background: var(--bg-elevated);
}

.profile-favorites-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, #ff6b9d, #f093fb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.profile-favorites-info {
  flex: 1;
}

.profile-favorites-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-favorites-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-favorites-arrow {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

/* Кнопка организатора */
.profile-organizer-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-elevated);
}

.profile-organizer-btn {
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  border: 1px dashed var(--text-muted);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-organizer-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

.profile-organizer-btn svg {
  width: 20px;
  height: 20px;
}

/* ==================== ORGANIZER AUTH MODAL ==================== */
.org-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.org-auth-modal.visible {
  transform: translateX(0);
}

.org-auth-modal-content {
  height: 100%;
  overflow-y: auto;
}

.org-auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-elevated);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.org-auth-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.org-auth-close-btn:hover {
  background: var(--bg-card);
}

.org-auth-close-btn svg {
  width: 24px;
  height: 24px;
}

.org-auth-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.org-auth-body {
  padding: 20px 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* Табы */
.org-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--border-radius-lg);
}

.org-auth-tab {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.org-auth-tab.active {
  background: var(--gradient-primary);
  color: white;
}

.org-auth-tab:not(.active):hover {
  background: var(--bg-elevated);
}

/* Формы */
.org-auth-form {
  animation: fadeIn 0.3s ease;
}

.org-form-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-elevated);
}

.org-form-section-title:first-child {
  margin-top: 0;
}

.org-input-group {
  margin-bottom: 16px;
}

.org-input-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.org-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-normal);
}

.org-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.org-input::placeholder {
  color: var(--text-muted);
}

.org-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.org-submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.org-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.org-submit-btn:active {
  transform: scale(0.98);
}

.org-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.org-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* Успешная регистрация */
.org-success-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 16px;
}

.org-success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.org-success-text {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.org-credentials-box {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.org-credential {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-elevated);
}

.org-credential:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.org-credential:first-child {
  padding-top: 0;
}

.org-credential-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 70px;
}

.org-credential-value {
  flex: 1;
  font-family: 'Montserrat', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--neon-cyan);
  word-break: break-all;
}

.org-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.org-copy-btn:hover {
  background: var(--neon-purple);
}

.org-warning-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--neon-orange);
  margin-bottom: 16px;
}

/* ==================== ORGANIZER PROFILE MODAL ==================== */
.org-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.org-profile-modal.visible {
  transform: translateX(0);
}

.org-profile-modal-content {
  height: 100%;
  overflow-y: auto;
}

.org-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-elevated);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.org-profile-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.org-profile-close-btn:hover {
  background: var(--bg-card);
}

.org-profile-close-btn svg {
  width: 24px;
  height: 24px;
}

.org-profile-header h2 {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.org-logout-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  color: var(--neon-red);
}

.org-logout-btn:hover {
  background: var(--neon-red);
  color: white;
}

.org-logout-btn svg {
  width: 22px;
  height: 22px;
}

.org-profile-body {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Карточка организации */
.org-profile-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.org-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-neon-purple);
  overflow: hidden;
}

.org-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.org-profile-login {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Секции данных */
.org-data-section {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.org-data-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-elevated);
}

.org-data-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-elevated);
}

.org-data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.org-data-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* ==================== ORGANIZER DASHBOARD ==================== */
.org-dashboard {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.org-dashboard.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header дашборда */
.org-dash-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-elevated);
}

.org-dash-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.org-dash-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.org-dash-logo .logo-icon {
  font-size: 1.5rem;
}

.org-dash-logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.org-dash-org-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 50%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Основной контент */
.org-dash-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 100px; /* Место для тап-бара */
}

.org-screen {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.org-screen-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===== НИЖНИЙ ТАП-БАР ===== */
.org-tabbar {
  position: fixed;
  bottom: var(--platform-bottom);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-elevated);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 16px 12px;
  z-index: 100;
}

/* Заливка нижнего отступа для Android */
.org-tabbar::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--platform-bottom));
  left: 0;
  right: 0;
  height: var(--platform-bottom);
  background: var(--bg-primary);
  pointer-events: none;
}

.org-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.org-tab-btn svg {
  width: 24px;
  height: 24px;
}

.org-tab-btn span {
  font-size: 0.75rem;
  font-weight: 500;
}

.org-tab-btn.active {
  color: var(--neon-cyan);
}

.org-tab-btn:not(.active):hover {
  color: var(--text-secondary);
  background: var(--bg-card);
}

/* Центральная кнопка + */
.org-tab-btn-add {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  transition: var(--transition-normal);
}

.org-tab-btn-add:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 107, 157, 0.6);
}

.org-tab-btn-add:active {
  transform: scale(0.95);
}

.org-tab-plus {
  font-size: 2rem;
  font-weight: 300;
  color: white;
  line-height: 1;
}

/* ===== СПИСОК ИВЕНТОВ ОРГАНИЗАТОРА ===== */
.org-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка ивента организатора */
.org-event-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.org-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.org-event-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--bg-elevated);
}

.org-event-card-body {
  padding: 16px;
}

.org-event-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.org-event-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.org-event-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-elevated);
}

.org-event-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.org-event-stat svg {
  width: 18px;
  height: 18px;
}

.org-event-stat.favorites {
  color: var(--neon-pink);
}

.org-event-stat.favorites.clickable {
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: var(--border-radius-sm);
  transition: background 0.2s;
}

.org-event-stat.favorites.clickable:hover {
  background: rgba(236, 72, 153, 0.15);
}

/* Модалка статистики лайков */
.favorites-stats-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.favorites-stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.favorites-stats-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  max-width: 360px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.favorites-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.favorites-stats-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.favorites-stats-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.favorites-stats-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.favorites-stats-title {
  padding: 16px 20px 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.favorites-stats-total {
  padding: 0 20px 16px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.favorites-stats-total strong {
  color: var(--neon-pink);
  font-size: 1.2rem;
}

.favorites-stats-list {
  padding: 12px 20px;
  overflow-y: auto;
  flex: 1;
}

.favorites-stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.favorites-stats-item:last-child {
  border-bottom: none;
}

.favorites-stats-date {
  font-size: 0.95rem;
  font-weight: 500;
}

.favorites-stats-count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--neon-pink);
  font-weight: 600;
  font-size: 0.95rem;
}

.favorites-stats-count svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.favorites-stats-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.org-event-card-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.org-event-edit-btn {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.org-event-edit-btn:hover {
  background: var(--neon-purple);
  color: white;
}

/* Пустое состояние */
.org-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.org-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.org-empty-state h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.org-empty-state p {
  color: var(--text-muted);
}

/* ===== ФОРМА СОЗДАНИЯ/РЕДАКТИРОВАНИЯ ИВЕНТА ===== */
.org-event-form {
  animation: fadeIn 0.3s ease;
}

.org-textarea {
  resize: vertical;
  min-height: 100px;
}

.org-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.org-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.org-links-container,
.org-photos-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.org-link-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}

.org-add-link-btn {
  align-self: flex-start;
  padding: 8px 16px;
  margin-top: 8px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.org-add-link-btn:hover {
  background: var(--neon-purple);
  color: white;
}

/* Checkbox */
.org-checkbox-group {
  margin: 16px 0;
}

.org-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.org-checkbox input {
  display: none;
}

.org-checkbox-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--bg-elevated);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.org-checkbox-mark::after {
  content: '✓';
  font-size: 14px;
  color: white;
  opacity: 0;
  transition: var(--transition-fast);
}

.org-checkbox input:checked + .org-checkbox-mark {
  background: var(--gradient-primary);
  border-color: var(--neon-pink);
}

.org-checkbox input:checked + .org-checkbox-mark::after {
  opacity: 1;
}

/* Кнопки формы */
.org-form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-elevated);
}

.org-cancel-btn {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.org-cancel-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Кнопка выхода */
.org-logout-full-btn {
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--neon-red);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--neon-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.org-logout-full-btn:hover {
  background: var(--neon-red);
  color: white;
}

.org-logout-full-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== МОДАЛЬНОЕ ОКНО РЕДАКТИРОВАНИЯ ===== */
.org-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--platform-top);
  padding-bottom: var(--platform-bottom);
}

.org-edit-modal.visible {
  transform: translateX(0);
}

.org-edit-modal-content {
  height: 100%;
  overflow-y: auto;
}

.org-edit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-elevated);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.org-edit-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.org-edit-close-btn:hover {
  background: var(--bg-card);
}

.org-edit-close-btn svg {
  width: 24px;
  height: 24px;
}

.org-edit-header h2 {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.org-delete-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-red);
  transition: var(--transition-normal);
}

.org-delete-btn:hover {
  background: var(--neon-red);
  color: white;
}

.org-delete-btn svg {
  width: 22px;
  height: 22px;
}

.org-edit-body {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== ARCHIVE SCREEN ==================== */
.org-archive-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
}

.org-archive-filter {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition-normal);
}

.org-archive-filter.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.org-archive-filter:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
}

.org-archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка архивного мероприятия */
.org-archive-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  opacity: 0.85;
  transition: var(--transition-normal);
}

.org-archive-card:hover {
  opacity: 1;
}

.org-archive-card-header {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.org-archive-card-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  background: var(--bg-elevated);
}

.org-archive-card-info {
  flex: 1;
  min-width: 0;
}

.org-archive-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-archive-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Статус-бейджи */
.org-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.org-status-badge.completed {
  background: rgba(34, 197, 94, 0.15);
  color: var(--neon-green);
}

.org-status-badge.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--neon-red);
}

.org-archive-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--bg-elevated);
}

.org-archive-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.org-archive-actions {
  display: flex;
  gap: 8px;
}

.org-archive-btn {
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.org-archive-btn.restore {
  background: rgba(34, 197, 94, 0.15);
  color: var(--neon-green);
}

.org-archive-btn.restore:hover {
  background: var(--neon-green);
  color: var(--bg-primary);
}

/* Coming Soon */
.org-coming-soon {
  text-align: center;
  padding: 60px 20px;
}

.org-coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.org-coming-soon h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.org-coming-soon p {
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ==================== АДМИН-ПАНЕЛЬ ==================== */

.admin-panel {
  padding: 20px;
}

.admin-panel-header {
  text-align: center;
  margin-bottom: 32px;
}

.admin-panel-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.admin-panel-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-panel-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-settings-form {
  max-width: 400px;
  margin: 0 auto;
}

.admin-setting-group {
  margin-bottom: 20px;
}

.admin-setting-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.admin-setting-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.admin-setting-input:focus {
  outline: none;
  border-color: var(--neon-purple);
}

.admin-setting-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-setting-divider {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
  gap: 12px;
}

.admin-setting-divider::before,
.admin-setting-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.admin-setting-divider span {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-save-btn {
  width: 100%;
  padding: 14px 24px;
  margin-top: 24px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.admin-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Кнопка удаления в карточке */
.org-event-delete-btn {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neon-red);
  transition: var(--transition-normal);
}

.org-event-delete-btn:hover {
  background: var(--neon-red);
  color: white;
}

/* Кнопка "Реализовано" */
.org-event-complete-btn {
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neon-green);
  transition: var(--transition-normal);
}

.org-event-complete-btn:hover {
  background: var(--neon-green);
  color: var(--bg-primary);
}

/* ==================== PHOTO UPLOADER ==================== */
.org-photos-uploader {
  margin-bottom: 16px;
}

/* Превью фото */
.org-photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.org-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.org-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-photo-item.main::after {
  content: '★';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.org-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 1;
  transition: var(--transition-fast);
  border: none;
  z-index: 2;
}

.org-photo-remove:hover {
  background: var(--neon-red);
}

.org-photo-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

/* Зона загрузки */
.org-upload-zone {
  border: 2px dashed var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.org-upload-zone:hover,
.org-upload-zone.dragover {
  border-color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.05);
}

.org-upload-zone.dragover {
  border-style: solid;
  transform: scale(1.01);
}

.org-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.org-upload-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.org-upload-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.org-upload-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.org-upload-btn {
  padding: 10px 20px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: var(--transition-normal);
}

.org-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-pink);
}

.org-url-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
}

.org-url-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Поле для URL */
.org-url-input-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.org-url-input-wrapper .org-input {
  flex: 1;
}

.org-url-add-btn {
  padding: 14px 20px;
  background: var(--neon-cyan);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-primary);
  white-space: nowrap;
  transition: var(--transition-normal);
}

.org-url-add-btn:hover {
  background: var(--neon-green);
}

/* ==================== CALCULATOR ==================== */

.calc-container {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.calc-section {
  margin-bottom: 20px;
}

.calc-section:last-child {
  margin-bottom: 0;
}

/* Schedule Type Selector */
.calc-schedule-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-schedule-type-btn {
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  padding: 12px 10px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.calc-schedule-type-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--neon-purple);
}

.calc-schedule-type-btn.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-neon-purple);
}

.calc-type-icon {
  font-size: 24px;
}

.calc-type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-type-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Apple-style Calendar */
.calc-calendar {
  background: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  padding: 16px;
}

.calc-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calc-calendar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-calendar-nav {
  background: var(--bg-card);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.calc-calendar-nav:hover {
  background: var(--neon-purple);
  color: var(--text-primary);
}

.calc-calendar-nav svg {
  width: 16px;
  height: 16px;
}

.calc-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calc-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calc-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: default;
}

.calc-calendar-day.empty {
  visibility: hidden;
}

.calc-calendar-day.today {
  /* убрана яркая подсветка сегодня - не нужна */
}

.calc-calendar-day.past {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Даты мероприятий — ЯРКИЕ ФИОЛЕТОВЫЕ */
.calc-calendar-day.event-date {
  background: var(--neon-purple);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  cursor: pointer;
}

/* Дни показа в афише — ТУСКЛЫЕ */
.calc-calendar-day.show-period {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text-secondary);
}

/* Ховер - без анимаций */
.calc-calendar-day:not(.past):not(.empty):hover {
  background: rgba(168, 85, 247, 0.3);
}

/* Легенда календаря */
.calc-calendar-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.event {
  background: var(--neon-purple);
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}

.legend-dot.show {
  background: rgba(168, 85, 247, 0.3);
}

/* Week Days Selector */
.calc-weekdays-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.calc-weekdays-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-weekday-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-weekday-btn:hover {
  border-color: var(--neon-purple);
  color: var(--text-primary);
}

.calc-weekday-btn.active {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
  color: var(--bg-primary);
  box-shadow: var(--shadow-neon-purple);
}

/* Period Selector */
.calc-period-row {
  display: flex;
  gap: 12px;
}

.calc-period-field {
  flex: 1;
}

.calc-period-field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.calc-period-field input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-fast);
}

.calc-period-field input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-neon-purple);
}
/* Кнопка очистки дат */
.calc-clear-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--border-radius-sm);
  color: var(--neon-red);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-clear-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--neon-red);
}

/* Список дат мероприятий */
.calc-dates-list {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--border-radius-md);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.calc-dates-list strong {
  color: var(--neon-purple);
}

.calc-no-dates {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Подсветка строки в итогах */
.calc-summary-row.highlight span:last-child {
  color: var(--neon-pink);
  font-weight: 600;
}

/* Period Info (для режима custom) */
.calc-period-info {
  background: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  padding: 16px;
  text-align: center;
}

.calc-period-info p {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.calc-period-info strong {
  color: var(--neon-purple);
  font-size: 18px;
}

.calc-period-info small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Promoted Checkbox */
.calc-promoted-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.calc-promoted-label:hover {
  border-color: var(--neon-orange);
}

.calc-promoted-label input {
  display: none;
}

.calc-promoted-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.calc-promoted-label input:checked + .calc-promoted-check {
  background: var(--neon-orange);
  border-color: var(--neon-orange);
}

.calc-promoted-label input:checked + .calc-promoted-check::after {
  content: '✓';
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 700;
}

.calc-promoted-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-promoted-text strong {
  font-size: 14px;
  color: var(--text-primary);
}

.calc-promoted-text small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Price Summary */
.calc-summary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--border-radius-md);
  padding: 16px;
}

.calc-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-summary-icon {
  font-size: 20px;
}

.calc-summary-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.calc-summary-row span:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

.calc-summary-row.discount span:last-child {
  color: var(--neon-green);
}

.calc-summary-row.promoted span:last-child {
  color: var(--neon-orange);
}

.calc-summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.calc-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 2px solid rgba(168, 85, 247, 0.3);
}

.calc-summary-total span:first-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-total-price {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc-summary-savings {
  margin-top: 12px;
  padding: 10px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  color: var(--neon-green);
  text-align: center;
}

/* Админский калькулятор */
.calc-summary-total.admin-free {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.calc-summary-total.admin-free .calc-total-price {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc-admin-note {
  margin-top: 12px;
  padding: 10px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  color: var(--neon-purple);
  text-align: center;
}

/* ==================== АВТОКОМПЛИТ ГОРОДА ==================== */

.city-autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.city-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.city-autocomplete-dropdown.visible {
  display: block !important;
}

.city-autocomplete-item {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  min-height: 56px;
  display: flex;
  align-items: center;
}

.city-autocomplete-item:last-child {
  border-bottom: none;
}

.city-autocomplete-item:hover,
.city-autocomplete-item.active {
  background: var(--bg-elevated);
}

.city-autocomplete-item strong {
  color: var(--neon-purple);
  font-weight: 600;
}

.city-autocomplete-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Невалидный город (не выбран из списка) */
input.invalid {
  border-color: var(--neon-red) !important;
  background: rgba(239, 68, 68, 0.05);
}

input.invalid:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
  .events-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .modal-content-body {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 40px 40px;
  }
}

@media (min-width: 1024px) {
  .events-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-slide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }
}

/* ==================== DARK MODE FORCED ==================== */
@media (prefers-color-scheme: light) {
  /* Игнорируем светлую тему, всегда тёмная */
  :root {
    color-scheme: dark;
  }
}
