/* ==============================================================================
   KTICKETS — MODERN EVENT TICKETING DESIGN SYSTEM
   Professional, High-Contrast UI with Vibrant Coral Accents
   ============================================================================== */

:root,
html[data-theme="dark"] {
  /* Brand Colors - KTickets Palette */
  --kt-coral: #ff4820;
  --kt-coral-hover: #e03612;
  --kt-coral-light: rgba(255, 72, 32, 0.12);
  --kt-coral-glow: rgba(255, 72, 32, 0.35);
  --kt-accent: #ff8a00;
  --kt-gradient: linear-gradient(135deg, #ff4820 0%, #ff8a00 100%);
  --kt-gradient-hover: linear-gradient(135deg, #e03612 0%, #e67c00 100%);

  /* Dark Theme Surfaces */
  --bg-body: #0a0d14;
  --bg-surface: #111622;
  --bg-card: #151c2c;
  --bg-card-hover: #1a2338;
  --bg-input: #0d121d;
  --border: #1e283d;
  --border-focus: #ff4820;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0d14;

  /* Status Tokens */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.14);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 16px -2px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  --shadow-coral: 0 8px 24px -4px rgba(255, 72, 32, 0.35);

  --backdrop-blur: blur(14px);
}

html[data-theme="light"] {
  --kt-coral: #ff4820;
  --kt-coral-hover: #e03612;
  --kt-coral-light: rgba(255, 72, 32, 0.08);
  --kt-coral-glow: rgba(255, 72, 32, 0.25);
  --kt-accent: #ff8a00;
  --kt-gradient: linear-gradient(135deg, #ff4820 0%, #ff8a00 100%);
  --kt-gradient-hover: linear-gradient(135deg, #e03612 0%, #e67c00 100%);

  /* Light Theme Surfaces */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #ff4820;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.1);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 30px -4px rgba(0, 0, 0, 0.12);
  --shadow-coral: 0 8px 20px -4px rgba(255, 72, 32, 0.25);

  --backdrop-blur: blur(14px);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

.text-success {
  color: var(--success);
  font-weight: 700;
}

.font-bold {
  font-weight: 700;
}

.gradient-text {
  background: var(--kt-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================================================================
   TOP ANNOUNCEMENT BAR
   ============================================================================== */
.top-announcement {
  background: linear-gradient(90deg, #111622 0%, #1e1112 50%, #111622 100%);
  border-bottom: 1px solid rgba(255, 72, 32, 0.25);
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.announcement-badge {
  background: var(--kt-coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ==============================================================================
   HEADER & NAVBAR
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--backdrop-blur);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-symbol {
  width: 40px;
  height: 40px;
  background: var(--kt-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: var(--shadow-coral);
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-symbol {
  transform: rotate(-4deg) scale(1.05);
}

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

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-accent {
  color: var(--kt-coral);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-btn.active {
  color: #ffffff;
  background: var(--kt-gradient);
  box-shadow: 0 4px 14px var(--kt-coral-glow);
}

.badge-counter {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--kt-coral);
  border-color: var(--kt-coral);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
html[data-theme="light"] .theme-toggle .sun-icon { display: block; }
html[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* Donate Button in Nav */
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(255, 72, 32, 0.12);
  color: var(--kt-coral);
  border: 1px solid rgba(255, 72, 32, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-donate:hover {
  background: var(--kt-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--kt-coral-glow);
}

.donate-heart-icon {
  color: #ff3366;
  transition: transform 0.2s ease;
}

.btn-donate:hover .donate-heart-icon {
  color: #ffffff;
  transform: scale(1.15);
}

/* ==============================================================================
   BUTTON DESIGN SYSTEM
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.62rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--kt-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px var(--kt-coral-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--kt-gradient-hover);
  box-shadow: 0 6px 20px var(--kt-coral-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--kt-coral);
}

.btn-secondary-compact {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-secondary-compact:hover {
  color: var(--text-primary);
  border-color: var(--kt-coral);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==============================================================================
   HERO BANNER
   ============================================================================== */
.hero-section {
  position: relative;
  background-image: url('images/background.webp');
  background-size: cover;
  background-position: center 25%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 72, 32, 0.2);
  box-shadow: var(--shadow-lg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(10, 13, 20, 0.72) 0%,
    rgba(10, 13, 20, 0.94) 85%
  );
  backdrop-filter: blur(2px);
}

html[data-theme="light"] .hero-overlay {
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(15, 23, 42, 0.96) 85%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.5rem 2.5rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 72, 32, 0.2);
  color: #ff9179;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 72, 32, 0.35);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--kt-coral);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 72, 32, 0.8);
  animation: pulse-anim 1.8s infinite;
}

@keyframes pulse-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 72, 32, 0.8); }
  70% { transform: scale(1); box-shadow: 0 0 0 9px rgba(255, 72, 32, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 72, 32, 0); }
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-subline {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Floating Hero Search Bar */
.hero-search-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 840px;
  margin: 0 auto;
}

html[data-theme="light"] .hero-search-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.search-field {
  flex: 1.4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-input);
  padding: 0.65rem 1rem;
  border-radius: 10px;
}

.search-field.venue-field {
  flex: 1;
}

.search-field svg {
  color: var(--kt-coral);
  flex-shrink: 0;
}

.search-field input,
.search-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.search-field select {
  cursor: pointer;
}

.search-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.btn-search {
  padding: 0.85rem 1.65rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==============================================================================
   CATEGORIES QUICK BAR
   ============================================================================== */
.categories-container {
  margin-bottom: 2.25rem;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

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

.category-pill {
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-pill:hover {
  color: var(--text-primary);
  border-color: var(--kt-coral);
  background: var(--bg-card-hover);
}

.category-pill.active {
  background: var(--kt-coral);
  color: #ffffff;
  border-color: var(--kt-coral);
  box-shadow: 0 4px 12px var(--kt-coral-glow);
}

/* ==============================================================================
   CATALOG HEADER & SORTING
   ============================================================================== */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-heading {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.catalog-subtext {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* ==============================================================================
   EVENTS GRID & EVENT CARDS
   ============================================================================== */
.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 4rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-section.active {
  display: block;
}

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

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.85rem;
}

/* Event Card */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 72, 32, 0.45);
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.4), 0 6px 16px -2px var(--kt-coral-glow);
}

/* Image Banner */
.event-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #0d121d;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Badges Over Image */
.event-badge-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.event-badge-availability {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.event-badge-availability.available {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.event-badge-availability.low-stock {
  background: rgba(245, 158, 11, 0.95);
  color: #ffffff;
}

.event-badge-availability.sold-out {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
}

.event-badge-price {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(10, 13, 20, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 72, 32, 0.3);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-curr {
  font-size: 0.75rem;
  color: var(--kt-coral);
  font-weight: 800;
}

.price-val {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Event Content Details */
.event-body {
  padding: 1.35rem 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--kt-coral);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.event-venue-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.event-venue-row svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.event-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Seat Availability Gauge */
.seat-inventory-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.seat-inventory-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.seat-inventory-label {
  color: var(--text-muted);
}

.seat-inventory-val {
  font-weight: 700;
  color: var(--text-primary);
}

.seat-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.seat-progress-fill {
  height: 100%;
  background: var(--kt-gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.seat-progress-fill.low {
  background: var(--warning);
}

.seat-progress-fill.empty {
  background: var(--danger);
}

/* Card Action Footer */
.event-card-footer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.qty-btn:hover:not(:disabled) {
  background: rgba(255, 72, 32, 0.15);
  color: var(--kt-coral);
}

.qty-display {
  width: 34px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  -moz-appearance: textfield;
}

.qty-display::-webkit-outer-spin-button,
.qty-display::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-get-tickets {
  flex: 1;
  background: var(--kt-gradient);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px var(--kt-coral-glow);
  transition: all 0.2s ease;
}

.btn-get-tickets:hover:not(:disabled) {
  background: var(--kt-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--kt-coral-glow);
}

/* ==============================================================================
   MODAL COMMON SHARED STYLES
   ============================================================================== */
.order-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.order-content {
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.order-cat-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--kt-coral);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.security-guarantee-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.security-guarantee-note svg {
  color: var(--success);
}

/* ==============================================================================
   ULTRA-COMPACT DONATION & COMMUNITY CONTRIBUTION MODAL STYLES
   ============================================================================== */
.modal-donate-compact {
  max-width: 400px;
  max-height: min(90vh, 520px);
  display: flex;
  flex-direction: column;
}

.compact-header {
  padding: 1.1rem 1.35rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.donate-tag {
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.25);
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.compact-donate-content {
  padding: 1.15rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.compact-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compact-group label,
.form-label-bold {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.compact-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.compact-pills .amount-pill {
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.compact-pills .amount-pill:hover {
  border-color: var(--kt-coral);
  background: rgba(255, 72, 32, 0.08);
}

.compact-pills .amount-pill.active {
  background: var(--kt-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px var(--kt-coral-glow);
}

.compact-currency-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.compact-currency-wrap .currency-prefix {
  position: absolute;
  left: 0.9rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--kt-coral);
  pointer-events: none;
  z-index: 2;
}

.compact-currency-wrap input {
  padding-left: 1.85rem !important;
  padding-right: 3.5rem !important;
  font-weight: 800;
  font-size: 1.05rem;
  height: 42px;
}

.compact-amount-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.compact-total-pill {
  font-weight: 800;
  color: var(--kt-coral);
  font-size: 0.82rem;
}

.compact-submit-btn {
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.compact-security-note {
  margin-top: -0.25rem;
  font-size: 0.74rem;
}

/* ==============================================================================
   STRIPE CHECKOUT MODAL STYLES
   ============================================================================== */
.stripe-order-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stripe-order-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.15rem 0 0.25rem;
  line-height: 1.35;
}

.stripe-order-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==============================================================================
   MY BOOKINGS — DIGITAL TICKET PASS STYLES
   ============================================================================== */
.badge-sub {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--kt-coral);
  margin-bottom: 0.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.ticket-passes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Guest Passes Lookup Card */
.passes-lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lookup-text-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.lookup-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 320px;
  flex: 1;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

.required-star {
  color: var(--kt-coral);
  font-weight: 800;
}

.optional-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Ticket Stub Card with Perforated Notch */
.ticket-pass-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ticket-pass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 72, 32, 0.4);
}

.ticket-cover {
  width: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ticket-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.ticket-main {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--kt-coral);
  margin-bottom: 0.35rem;
}

.ticket-event-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.ticket-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.ticket-meta-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

/* Perforated Divider & Notches */
.ticket-divider {
  position: relative;
  width: 0px;
  border-left: 2px dashed var(--border);
  margin: 0 0.5rem;
}

.ticket-divider::before,
.ticket-divider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--bg-body);
  border-radius: 50%;
  left: -11px;
}

.ticket-divider::before {
  top: -10px;
}

.ticket-divider::after {
  bottom: -10px;
}

/* Right Stub */
.ticket-stub {
  width: 190px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.barcode-graphic {
  display: flex;
  gap: 3px;
  height: 38px;
  align-items: center;
  margin-bottom: 0.75rem;
}

.barcode-line {
  height: 100%;
  background: var(--text-primary);
  width: 2px;
  border-radius: 1px;
}

.barcode-line.thick {
  width: 5px;
}

.barcode-line.thin {
  width: 1px;
}

.ticket-status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

.ticket-status-pill.confirmed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticket-status-pill.pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ticket-status-pill.failed {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ticket-stub-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.35rem;
}

/* ==============================================================================
   ALERTS, TOASTS & MODALS
   ============================================================================== */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  border: 1px solid transparent;
  animation: slideDown 0.3s ease;
}

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

.alert-banner.success {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--text-primary);
}

.alert-banner.danger {
  background: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--text-primary);
}

.alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  flex-shrink: 0;
}

.alert-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-error {
  border-left: 4px solid var(--danger);
}

.toast.toast-info {
  border-left: 4px solid var(--kt-coral);
}

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

/* Modal Window */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: var(--backdrop-blur);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: auto;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-compact {
  padding: 3rem 2rem;
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-error {
  margin: 0.75rem 1.75rem 0;
  padding: 0.75rem 1rem;
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  border-radius: 10px;
  font-size: 0.86rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input:focus {
  border-color: var(--kt-coral);
  box-shadow: 0 0 0 3px rgba(255, 72, 32, 0.15);
}

/* Spinner */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 72, 32, 0.2);
  border-top-color: var(--kt-coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.spinner-lg {
  width: 52px;
  height: 52px;
  border-width: 4px;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 18px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.empty-state p {
  margin-bottom: 1.75rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.app-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.75rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-links-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links-col a:hover {
  color: var(--kt-coral);
}

.badge-tag {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--bg-card);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copy {
  font-size: 0.85rem;
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pay-chip {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: var(--text-muted);
}

/* ==============================================================================
   NATIVE-FEEL MOBILE BOTTOM NAVIGATION
   ============================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 400;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--kt-coral);
  }

  .mobile-nav-item svg {
    transition: transform 0.2s ease;
  }

  .mobile-nav-item:active svg {
    transform: scale(0.9);
  }

  .mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .badge-counter-mini {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--kt-gradient);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    line-height: 1.2;
    box-shadow: 0 2px 6px var(--kt-coral-glow);
  }
}

/* ==============================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================================== */
.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-headline {
    font-size: 2.25rem;
  }
  .hero-search-card {
    flex-direction: column;
  }
  .search-field {
    width: 100%;
  }
  .search-divider {
    display: none;
  }
  .btn-search {
    width: 100%;
    justify-content: center;
  }
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0.75rem 1rem;
  }
  .brand-title {
    font-size: 1.25rem;
  }
  .brand-tagline {
    display: none;
  }
  .nav-links {
    display: none;
  }
  #navMyTicketsBtn {
    display: none; /* Handled via mobile bottom nav */
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .btn-donate {
    padding: 0.42rem 0.8rem;
    font-size: 0.82rem;
  }

  .main-content {
    padding: 1rem 1rem 5.5rem; /* Room for mobile bottom nav */
  }

  .hero-section {
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  .hero-inner {
    padding: 2.75rem 1.15rem 2.25rem;
  }
  .hero-headline {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-subline {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .catalog-heading {
    font-size: 1.5rem;
  }
  .catalog-actions {
    width: 100%;
    justify-content: space-between;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .event-card {
    border-radius: 16px;
  }
  .event-image-wrap {
    height: 195px;
  }

  .ticket-pass-card {
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
  }
  .ticket-cover {
    width: 100%;
    height: 180px;
  }
  .ticket-divider {
    width: 100%;
    height: 0;
    border-left: none;
    border-top: 2px dashed var(--border);
    margin: 0;
    position: relative;
  }
  .ticket-divider::before {
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
  }
  .ticket-divider::after {
    top: -10px;
    right: -10px;
    left: auto;
    width: 20px;
    height: 20px;
  }
  .ticket-stub {
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 1.25rem;
  }

  .modal-backdrop {
    padding: 0.75rem;
  }
  .modal-card {
    max-height: calc(100vh - 1.5rem);
    border-radius: 16px;
  }

  .toast-container {
    bottom: 74px; /* Sits above mobile bottom nav */
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }

  .app-footer {
    padding: 2.5rem 1.25rem 6.5rem; /* Room for mobile bottom nav */
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 2.25rem 0.85rem 1.75rem;
  }
  .hero-headline {
    font-size: 1.55rem;
  }
  .hero-subline {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .event-card-footer {
    padding: 0.75rem 1rem 0.85rem;
    gap: 0.5rem;
  }
  .btn-get-tickets {
    font-size: 0.86rem;
    padding: 0.6rem 0.75rem;
  }
  .qty-btn {
    width: 28px;
    height: 36px;
  }
  .qty-display {
    width: 28px;
    font-size: 0.88rem;
  }
  .ticket-cover {
    height: 160px;
  }
  .ticket-main {
    padding: 1rem;
  }
  .ticket-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
