@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  /* Colors - Authentic Dark/Yellow Scheme */
  --app-bg: #1f2227;
  --card-bg: #1f2227;
  --header-bg: #1b1d22;
  --primary: #ffe600;
  --primary-hover: #e6cf00;
  --primary-light: rgba(255, 230, 0, 0.1);
  --secondary: #0054e9;
  --success: #2dd55b;
  --text-main: #ffffff;
  --text-muted: #8e929a;
  --border-color: rgba(255, 255, 255, 0.07);
  --hover-bg: rgba(255, 255, 255, 0.04);
  --search-bg: #15171b;
  
  /* Fonts */
  --font-family: 'Inter', 'Tajawal', sans-serif;
  
  /* Layout & Spacing */
  --sidebar-width: 260px;
  --header-height: 60px;
  --bottom-nav-height: 60px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
}

[dir="rtl"] {
  --font-family: 'Tajawal', 'Inter', sans-serif;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--app-bg);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  padding: 0 20px;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #000000;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(255, 230, 0, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--border-radius-sm);
  display: block;
  margin-top: 15px;
}

/* ===== MOBILE HEADER (hidden on desktop) ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  position: relative;
  /* Force LTR so flag is always on LEFT and hamburger on RIGHT regardless of page direction */
  direction: ltr;
}

/* Flag + Profile: always left side */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Logo: always centered */
.nav-logo-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Hamburger: always right side */
.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.country-flag-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.country-flag-btn:hover {
  border-color: var(--primary);
}

.profile-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.profile-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* ===== LOGO ===== */
.logo {
  cursor: pointer;
  display: inline-block;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.menu-btn {
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-btn:hover {
  color: var(--primary);
  background-color: var(--hover-bg);
}

/* ===== APP LAYOUT (Sidebar + Main) ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--header-bg);
  border-inline-start: 1px solid var(--border-color);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 100;
}

[dir="rtl"] .sidebar {
  border-left: 1px solid var(--border-color);
  border-right: none;
  order: 2; /* Sidebar on right in RTL */
}

[dir="ltr"] .sidebar {
  border-right: 1px solid var(--border-color);
  border-left: none;
  order: 2; /* Sidebar on right in LTR too for this design */
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 24px 30px;
  order: 1;
}

main {
  margin-top: 0;
}

/* ===== DESKTOP TOP HEADER ===== */
.main-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 0 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  /* Always LTR: flag+profile on left, logo centered */
  direction: ltr;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  /* Placeholder to center logo */
  width: 80px;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  height: 340px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(20, 22, 28, 0.98) 0%, rgba(20, 22, 28, 0.5) 60%, transparent 100%);
  color: #ffffff;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.carousel-badge {
  background-color: var(--primary);
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.carousel-meta svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Carousel Side Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--primary);
  color: var(--primary);
}

.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

[dir="rtl"] .carousel-arrow.prev { left: auto; right: 14px; }
[dir="rtl"] .carousel-arrow.next { right: auto; left: 14px; }

/* Carousel Dots */
.carousel-nav {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 24px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--primary);
  width: 16px;
  border-radius: 3px;
}

/* ===== SEARCH RIBBON ===== */
.search-ribbon {
  background-color: var(--search-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  overflow: hidden;
  height: 48px;
}

.ribbon-search-side {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  height: 100%;
}

.ribbon-search-side svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.ribbon-search-side input {
  color: var(--text-main);
  font-size: 13.5px;
  width: 100%;
  background: none;
}

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

.ribbon-divider {
  width: 1px;
  height: 55%;
  background-color: var(--border-color);
}

.ribbon-date-side {
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  height: 100%;
  user-select: none;
  min-width: 140px;
  transition: var(--transition);
}

.ribbon-date-side:hover {
  background-color: var(--hover-bg);
  color: var(--text-main);
}

.ribbon-date-side svg {
  color: var(--text-muted);
}

/* ===== CATEGORY PILLS ===== */
.categories-section {
  margin-bottom: 24px;
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background-color: var(--search-bg);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}

.category-card svg {
  width: 16px;
  height: 16px;
}

.category-card:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-card.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #000000;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

/* ===== HORIZONTAL SCROLL ROWS ===== */
.events-section {
  margin-bottom: 32px;
}

.horizontal-row-wrapper {
  position: relative;
}

.horizontal-row-wrapper:hover .row-arrow {
  opacity: 1;
}

.row-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(26, 28, 34, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: var(--transition);
}

.row-arrow:hover {
  background: #1b1d22;
  border-color: var(--primary);
  color: var(--primary);
}

.row-arrow.prev { left: -12px; }
.row-arrow.next { right: -12px; }

[dir="rtl"] .row-arrow.prev { left: auto; right: -12px; }
[dir="rtl"] .row-arrow.next { right: auto; left: -12px; }

.horizontal-scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px 2px;
}

.horizontal-scroll-row::-webkit-scrollbar {
  display: none;
}

/* ===== EVENT CARDS ===== */
.event-card {
  flex: 0 0 175px;
  width: 175px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-2px);
}

.event-image-wrapper {
  width: 100%;
  padding-top: 130%;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--search-bg);
  border: 1px solid var(--border-color);
}

.event-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.event-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.event-card-price {
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary, #ffe600);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ===== EVENTS GRID (search/filter results) ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

/* ===== ORGANIZER BANNER ===== */
.organizer-banner {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.06) 0%, rgba(0, 84, 233, 0.06) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 28px 24px;
  margin-top: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.organizer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.organizer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.organizer-desc {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 480px;
  line-height: 1.6;
}

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: var(--header-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 800;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 3px;
  width: 70px;
  height: 100%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: var(--transition);
}

.bottom-nav-item.active svg,
.bottom-nav-item.active {
  color: var(--primary);
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background-color: var(--app-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  background-color: var(--hover-bg);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  background-color: var(--header-bg);
  flex-shrink: 0;
}

/* ===== BOOKING STEPS ===== */
.step-guide {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  background-color: var(--header-bg);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}
.step-guide::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 2px;
  background-color: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  z-index: 2;
  position: relative;
}
.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--app-bg);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.step-item.active .step-number {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.4);
}
.step-item.completed .step-number {
  border-color: var(--success);
  background-color: var(--success);
  color: #000000;
}
.step-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.step-item.active .step-text { color: var(--primary); }
.step-item.completed .step-text { color: var(--success); }

.step-panel { display: none; }
.step-panel.active { display: block; }

/* ===== BOOKING FORM ELEMENTS ===== */
.booking-event-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  background-color: var(--header-bg);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.booking-event-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.showtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.showtime-btn {
  background-color: var(--header-bg);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.showtime-btn:hover { border-color: var(--text-muted); }
.showtime-btn.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.showtime-date { font-weight: 700; font-size: 13px; }
.showtime-time { font-size: 11px; color: var(--text-muted); }

/* ===== SEAT MAP ===== */
.screen-indicator {
  width: 60%;
  height: 8px;
  background-color: var(--primary);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  margin: 0 auto 35px auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.5);
}
.screen-indicator::after {
  content: 'STAGE / المسرح';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  white-space: nowrap;
}
.seat-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  padding: 24px;
  margin-bottom: 20px;
  background-color: var(--search-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}
.seat-grid {
  display: grid;
  grid-template-columns: 30px repeat(3, 26px) 16px repeat(6, 26px) 16px repeat(3, 26px) 30px;
  gap: 8px 6px;
  justify-content: center;
  align-items: center;
}
.seat {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  transition: var(--transition);
}
.seat.vip {
  background-color: rgba(255, 230, 0, 0.08);
  border: 1.5px solid rgba(255, 230, 0, 0.35);
  color: #ffe600;
}
.seat.vip:hover {
  background-color: var(--primary);
  color: #000000;
  box-shadow: 0 0 8px rgba(255, 230, 0, 0.5);
}
.seat.gold {
  background-color: rgba(0, 84, 233, 0.08);
  border: 1.5px solid rgba(0, 84, 233, 0.35);
  color: #6fa1ff;
}
.seat.gold:hover {
  background-color: var(--secondary);
  color: #ffffff;
}
.seat.silver {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.seat.silver:hover {
  background-color: #ffffff;
  color: #000000;
}
.seat.selected {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #000000 !important;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.6) !important;
  transform: scale(1.1);
}
.seat.occupied {
  background-color: #15171b !important;
  border: 1px solid rgba(255,255,255,0.03) !important;
  color: rgba(255, 255, 255, 0.08) !important;
  cursor: not-allowed;
  pointer-events: none;
}
.row-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  user-select: none;
}
.seat-aisle { width: 16px; height: 26px; }
.seat-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 20px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}
.legend-item:hover { background-color: var(--hover-bg); }
.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.legend-color.available.vip { background-color: rgba(255, 230, 0, 0.08); border: 1.5px solid rgba(255, 230, 0, 0.35); }
.legend-color.available.gold { background-color: rgba(0, 84, 233, 0.08); border: 1.5px solid rgba(0, 84, 233, 0.35); }
.legend-color.available.silver { background-color: rgba(255, 255, 255, 0.03); border: 1.5px solid rgba(255, 255, 255, 0.15); }
.legend-color.selected { background-color: var(--primary); border: 1px solid var(--primary); }
.legend-color.occupied { background-color: #15171b; border: 1px solid rgba(255,255,255,0.03); }

.seat-highlight-active { box-shadow: 0 0 12px currentColor; transform: scale(1.05); }
.seat-dimmed { opacity: 0.2; }

/* ===== SUMMARY BOX ===== */
.booking-summary-box {
  background-color: var(--header-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-main);
  align-items: center;
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input {
  background-color: var(--search-bg);
  border: 1px solid var(--border-color);
  padding: 11px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-size: 13px;
  width: 100%;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(255, 230, 0, 0.2);
}

/* ===== RECEIPT / TICKET ===== */
.receipt-ticket {
  position: relative;
  background-color: var(--header-bg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
}

.receipt-ticket::before,
.receipt-ticket::after {
  content: '';
  position: absolute;
  top: 62px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--app-bg);
  border: 1px solid var(--border-color);
  z-index: 5;
}
.receipt-ticket::before { left: -11px; }
.receipt-ticket::after { right: -11px; }

.ticket-dashed-divider {
  border-top: 2px dashed var(--border-color);
  margin: 20px 0;
}

/* ===== DETAILS PAGES ===== */
.details-hero {
  position: relative;
  height: 360px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.details-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.details-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(31,34,39,1) 0%, rgba(31,34,39,0.5) 70%, transparent 100%);
}

.details-badge {
  background-color: var(--primary);
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.details-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.details-card {
  background-color: var(--header-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.details-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

/* ===== SUCCESS PANEL ===== */
.success-panel {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(45, 213, 91, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}

/* ===== BOOKING STEPS NAV (subpages) ===== */
.booking-steps-nav {
  background-color: var(--header-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
}

/* ===== FILTER TAGS ===== */
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.filter-tag {
  padding: 5px 14px;
  border-radius: 50px;
  background-color: var(--search-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}

.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tag.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #000000;
}

/* ===== DRAWER (legacy fallback for mobile) ===== */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.drawer-container {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--header-bg);
  border-left: 1px solid var(--border-color);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  z-index: 2600;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="ltr"] .drawer-container {
  right: auto;
  left: -300px;
  border-left: none;
  border-right: 1px solid var(--border-color);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active .drawer-container { right: 0; }
[dir="ltr"] .drawer-overlay.active .drawer-container { left: 0; right: auto; }

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

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.drawer-close {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.drawer-close:hover { color: var(--primary); }

.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  font-weight: 500;
  font-size: 13.5px;
}
.drawer-item:hover {
  background-color: var(--hover-bg);
  color: var(--primary);
}

.drawer-select {
  background-color: var(--search-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.drawer-select:focus { border-color: var(--primary); }

/* ===== SIDEBAR ELEMENTS STYLING ===== */
.sidebar-login-wrapper {
  margin-bottom: 24px;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #1a1a1a !important;
  width: 100%;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-login:hover {
  background-color: var(--primary);
  color: #000000 !important;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-menu-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
  color: var(--primary);
  background-color: var(--hover-bg);
}

.sidebar-menu-item:hover svg,
.sidebar-menu-item.active svg {
  color: var(--primary);
}

.sidebar-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 18px 0;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.sidebar-links a:hover { color: var(--primary); }

.sidebar-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.setting-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.setting-select {
  background-color: var(--search-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  max-width: 120px;
}
.setting-select:focus { border-color: var(--primary); }

/* Theme Toggle Switch */
.theme-toggle-switch {
  width: 54px;
  height: 28px;
  background-color: var(--search-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle-switch .switch-handle {
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.theme-toggle-switch.active .switch-handle {
  transform: translateX(26px);
}

[dir="rtl"] .theme-toggle-switch.active .switch-handle {
  transform: translateX(-26px);
}

.theme-toggle-switch svg {
  z-index: 2;
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.theme-toggle-switch.active svg.sun-icon { color: #000000; }
.theme-toggle-switch:not(.active) svg.moon-icon { color: #000000; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-card {
  animation: fadeIn 0.3s ease both;
}

/* ===== RESPONSIVE: DESKTOP (>= 992px) ===== */
@media (min-width: 992px) {
  /* Hide mobile-only elements */
  header {
    display: none !important;
  }

  .bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  .app-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
  }

  .sidebar {
    display: flex !important;
    width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 24px 18px;
  }

  .main-content {
    flex: 1;
    min-width: 0;
    padding: 0 36px 40px 36px;
    overflow-x: hidden;
  }

  main {
    margin-top: 0 !important;
  }

  .main-content-header {
    display: flex;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* ===== RESPONSIVE: MOBILE (< 992px) ===== */
@media (max-width: 991px) {
  body {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + 10px);
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: min(290px, 85vw);
    background-color: var(--header-bg);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.6);
    overflow-y: auto;
  }

  [dir="ltr"] .sidebar {
    right: auto;
    left: -100%;
  }

  .sidebar.active {
    right: 0;
  }

  [dir="ltr"] .sidebar.active {
    left: 0;
    right: auto;
  }

  .main-content {
    max-width: 100%;
    padding: 16px;
  }

  .main-content-header {
    display: none;
  }

  /* Adjust hero carousel for mobile */
  .hero-carousel {
    height: 220px;
    border-radius: 10px;
  }

  .carousel-title {
    font-size: 17px;
  }

  .carousel-content {
    padding: 16px 18px;
  }

  /* Smaller event cards on mobile */
  .event-card {
    flex: 0 0 148px;
    width: 148px;
  }

  /* Stack organizer banner vertically */
  .organizer-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  /* Details grid becomes single column */
  .details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .details-hero {
    height: 260px;
  }

  /* Events grid adjustment */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .event-card {
    flex: 0 0 auto;
  }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 380px) {
  .hero-carousel {
    height: 190px;
  }

  .carousel-title {
    font-size: 15px;
  }

  .event-card {
    flex: 0 0 130px;
    width: 130px;
  }
}
