/* ==========================================================================
   MIRADA 2026 - Festival Ibero-americano de Artes Cênicas
   Style Sheet (Dark & Light Theme + Responsive Mobile + Compact List View)
   ========================================================================== */

/* Dark Theme Variables (Default) */
:root {
  --bg-dark: #0b0d14;
  --bg-card: #151824;
  --bg-card-hover: #1c2030;
  --bg-header: rgba(11, 13, 20, 0.88);
  --bg-surface: #1e2235;
  --bg-input: #121420;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #ff5252;

  --accent-primary: #ff5252;
  --accent-gradient: linear-gradient(135deg, #ff5252 0%, #ff7b00 100%);
  --accent-secondary: #00e5ff;
  --accent-gold: #ffb703;
  --accent-green: #00e676;

  --text-main: #f0f3f8;
  --text-muted: #9da8be;
  --text-dim: #64748b;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(255, 82, 82, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-surface: #ffffff;
  --bg-input: #f1f5f9;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #e63946;

  --accent-primary: #e63946;
  --accent-gradient: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
  --accent-secondary: #0284c7;
  --accent-gold: #d97706;
  --accent-green: #10b981;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(230, 57, 70, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Header & Banner */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent-primary);
}

/* Header Navigation & View Toggle */
.nav-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.3);
}

.badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.nav-tab.active .badge-count {
  background: #fff;
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(255, 82, 82, 0.12), transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.06), transparent 50%);
  padding: 2rem 1.25rem 1.25rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 82, 82, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 82, 82, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-val {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

/* Controls & Filters Section */
.controls-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Search Bar & Mobile Filter Toggle */
.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.search-wrapper {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 2.8rem 0.85rem 2.8rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  min-height: 46px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.clear-search-btn:hover {
  background: rgba(255, 82, 82, 0.2);
  color: var(--accent-primary);
}

/* Mobile Filter Collapse Button */
.btn-toggle-filters {
  display: none;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-height: 46px;
  transition: var(--transition);
}

.btn-toggle-filters:hover, .btn-toggle-filters.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Date Chips Slider */
.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-chips-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  touch-action: manipulation;
}

.date-chip span.day-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.date-chip span.day-name {
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-chip:hover {
  border-color: rgba(255, 82, 82, 0.4);
  color: var(--text-main);
}

.date-chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.3);
}

.date-chip.active span.day-num,
.date-chip.active span.day-name {
  color: #fff;
}

/* Secondary Filter Grid */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  align-items: end;
  transition: all 0.3s ease;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  min-height: 42px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.btn-reset-filters {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
}

.btn-reset-filters:hover {
  background: rgba(255, 82, 82, 0.15);
  color: var(--accent-primary);
  border-color: rgba(255, 82, 82, 0.3);
}

/* Active Filter Summary Info & Layout Switcher */
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-count {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.results-count span {
  color: var(--accent-primary);
}

.layout-switcher {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 3px;
}

.btn-layout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-layout.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

/* Events Grid View */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

/* Events Grid View - Compact Layout Mode */
.events-grid.compact-mode {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Event Card (Normal Grid) */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 82, 82, 0.3);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  width: 100%;
  height: 190px;
  background: #191c2b;
  overflow: hidden;
}

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

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

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-input));
  color: var(--text-dim);
  font-size: 3rem;
}

.card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.card-top-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.card-rating-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.rating-AL, .rating-L { background: #00c853; }
.rating-A10 { background: #0288d1; }
.rating-A12 { background: #f57c00; }
.rating-A14 { background: #e64a19; }
.rating-A16 { background: #d32f2f; }
.rating-A18 { background: #880e4f; }

.btn-favorite {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  touch-action: manipulation;
}

.btn-favorite:hover {
  transform: scale(1.15);
  background: rgba(255, 82, 82, 0.3);
}

.btn-favorite.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.5);
}

.card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sessions inside card */
.card-sessions {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-color);
  margin-bottom: 0.85rem;
}

.session-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.session-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.session-chip.free {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-price {
  font-size: 0.825rem;
  font-weight: 700;
}

.price-free {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.price-paid {
  color: var(--accent-gold);
}

.btn-details {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
}

.btn-details:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
}

.btn-ticket-link {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  min-height: 38px;
}

.btn-ticket-link:hover {
  background: var(--accent-green);
  color: #000;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Event Card (COMPACT LIST MODE) */
.event-card.compact {
  flex-direction: row;
  align-items: center;
  padding: 0.85rem;
  gap: 1rem;
  border-radius: var(--radius-md);
}

.event-card.compact .card-media {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.event-card.compact .card-top-badges {
  top: 4px;
  left: 4px;
  right: 4px;
}

.event-card.compact .card-top-badges .btn-favorite {
  display: none; /* Display favorite button in content body for compact mode */
}

.event-card.compact .card-body {
  padding: 0;
  flex: 1;
}

.event-card.compact .card-title {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.event-card.compact .card-subtitle {
  margin-bottom: 0.4rem;
  -webkit-line-clamp: 1;
}

.event-card.compact .card-sessions {
  padding-top: 0;
  border-top: none;
  margin-bottom: 0;
}

.event-card.compact .compact-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Day Timeline View */
.timeline-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.day-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-primary);
}

.day-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.day-title-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.timeline-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 82, 82, 0.3);
}

.timeline-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-secondary);
  min-width: 75px;
}

.timeline-info {
  flex: 1;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.timeline-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* My Schedule (Roteiro) View */
.schedule-view {
  max-width: 900px;
  margin: 0 auto;
}

.schedule-date-separator {
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.25);
  letter-spacing: -0.01em;
}

.schedule-date-separator:first-child {
  margin-top: 0;
}

.schedule-date-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.775rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.schedule-header-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.schedule-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-action {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
}

.btn-action:hover {
  border-color: var(--text-muted);
}

.btn-action.primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.3);
}

.btn-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 82, 82, 0.4);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.25rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3.2rem;
  margin-bottom: 0.85rem;
  color: var(--text-dim);
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.empty-desc {
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto 1.25rem auto;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-primary);
}

.modal-header-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.modal-body {
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  background: var(--bg-card);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 1.25rem 0 0.65rem 0;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.sessions-table th, .sessions-table td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.sessions-table th {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.725rem;
}

.btn-buy {
  background: var(--accent-green);
  color: #000;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-buy:hover {
  transform: scale(1.05);
}

.modal-desc-content {
  color: var(--text-main);
  font-size: 0.925rem;
  line-height: 1.65;
}

.modal-desc-content p {
  margin-bottom: 0.75rem;
}

.modal-desc-content hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 1.25rem 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 90vw;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--accent-primary);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

/* Footer */
footer.app-footer {
  margin-top: 3.5rem;
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .nav-tab {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.4rem 0.75rem;
  }

  .btn-toggle-filters {
    display: flex;
  }

  /* Collapsible Filters on Mobile */
  .filters-grid.collapsed {
    display: none;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  /* Compact Mode on Mobile */
  .event-card.compact {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .event-card.compact .card-media {
    width: 75px;
    height: 75px;
  }

  .event-card.compact .card-title {
    font-size: 0.95rem;
  }

  .event-card.compact .card-subtitle {
    font-size: 0.775rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .timeline-actions {
    width: 100%;
    justify-content: space-between;
  }

  .schedule-header-box {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-actions {
    flex-direction: column;
  }

  .btn-action {
    justify-content: center;
    width: 100%;
  }

  .modal-dialog {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
