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

/* ── Variables ─────────────── */
:root {
  --primary:        #4CAF50;
  --primary-dark:   #388E3C;
  --primary-light:  #E8F5E9;
  --primary-grad:   linear-gradient(135deg, #4CAF50, #2E7D32);
  --bg:             #F2F3F5;
  --bg-card:        #FFFFFF;
  --bg-input:       #F7F8FA;
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.06);
  --shadow:         0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.14);
  --radius-xs:      6px;
  --radius:         14px;
  --radius-lg:      22px;
  --radius-xl:      28px;
  --header-h:       64px;
  --nav-h:          68px;
  --danger:         #EF4444;
  --warning:        #F59E0B;
  --success:        #22C55E;
  --transition:     .22s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --primary:        #66BB6A;
  --primary-dark:   #4CAF50;
  --primary-light:  #1B2E1C;
  --primary-grad:   linear-gradient(135deg, #66BB6A, #388E3C);
  --bg:             #0A0A0A;
  --bg-card:        #161616;
  --bg-input:       #1E1E1E;
  --text:           #F9FAFB;
  --text-muted:     #9CA3AF;
  --text-light:     #6B7280;
  --border:         #262626;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.4);
  --shadow:         0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.6);
}

/* ── Loading Splash ────────── */
.vogo-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity .42s ease;
}
.vogo-splash.is-hiding { opacity: 0; pointer-events: none; }
.vogo-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.vogo-splash-mark {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--primary-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(76,175,80,.35);
  opacity: 0;
  transform: scale(.6) rotate(-8deg);
  animation: vogoSplashMarkIn .6s cubic-bezier(.22,1.2,.36,1) .05s forwards,
             vogoSplashMarkPulse 1.6s ease-in-out .7s infinite;
}
.vogo-splash-word {
  display: flex;
  gap: 2px;
  font-family: 'Inter', 'Tajawal', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
}
.vogo-splash-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: vogoSplashLetterIn .5s cubic-bezier(.22,1,.36,1) forwards;
}
.vogo-splash-word span:nth-child(1) { animation-delay: .15s; }
.vogo-splash-word span:nth-child(2) { animation-delay: .25s; }
.vogo-splash-word span:nth-child(3) { animation-delay: .35s; }
.vogo-splash-word span:nth-child(4) { animation-delay: .45s; color: var(--primary); }
.vogo-splash-bar {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  opacity: 0;
  animation: vogoSplashFadeIn .4s ease .6s forwards;
}
.vogo-splash-bar-fill {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-grad);
  animation: vogoSplashBar 1.2s ease-in-out .6s infinite;
}
@keyframes vogoSplashMarkIn {
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes vogoSplashMarkPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes vogoSplashLetterIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vogoSplashFadeIn {
  to { opacity: 1; }
}
@keyframes vogoSplashBar {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}
[dir="rtl"] @keyframes vogoSplashBar {
  0%   { transform: translateX(110%); }
  100% { transform: translateX(-260%); }
}
html.vogo-splash-on,
html.vogo-splash-on body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .vogo-splash-mark,
  .vogo-splash-word span,
  .vogo-splash-bar,
  .vogo-splash-bar-fill { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Reset ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + 8px);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'calt';
}
[dir="rtl"] body,
body[dir="rtl"] {
  font-family: 'Tajawal', 'Segoe UI', 'Tahoma', system-ui, sans-serif;
  font-weight: 500;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  z-index: 200;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  max-width: 520px;
  margin: 0 auto;
  left: 0; right: 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
  border-bottom-color: transparent;
}
[data-theme="dark"] .site-header {
  background: rgba(17, 24, 39, .7);
  border-bottom-color: rgba(255, 255, 255, .06);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(17, 24, 39, .9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

/* ── Logo mark ────────────── */
.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', 'Tajawal', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  user-select: none;
  text-decoration: none;
}
.header-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(76, 175, 80, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.header-logo-mark .icon { stroke-width: 2.4; }
.header-logo-text { line-height: 1; }
.header-logo-text span { color: var(--primary); }

/* Back / title variant (checkout) */
.header-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  text-align: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Segmented action group ── */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(17, 24, 39, .04);
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 999px;
}
[data-theme="dark"] .header-actions {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .08);
}

/* Icon-only round button inside the header group */
.btn-icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform .12s;
  flex-shrink: 0;
}
.btn-icon:hover { background: rgba(17, 24, 39, .06); color: var(--text); }
.btn-icon:active { transform: scale(.93); }
[data-theme="dark"] .btn-icon:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Theme toggle — swap moon/sun based on current theme */
#theme-toggle .icon-sun { display: none; }
[data-theme="dark"] #theme-toggle .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun  { display: block; }

/* Standalone btn-icon outside header (e.g. sheet close) keeps pill bg */
.btn-icon-solo {
  width: 38px; height: 38px;
  background: var(--bg-input);
  color: var(--text);
  border-radius: 50%;
}

/* Language pill inside segmented group */
.lang-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { background: rgba(17, 24, 39, .06); color: var(--text); }
[data-theme="dark"] .lang-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Currency select inside segmented group */
.currency-btn {
  height: 32px;
  padding: 0 10px;
  padding-inline-end: 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background var(--transition), color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3e%3cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: right 6px center;
}
[dir="rtl"] .currency-btn {
  padding-inline-end: 10px;
  padding-inline-start: 24px;
  background-position: left 6px center;
}
.currency-btn:hover { background-color: rgba(17, 24, 39, .06); color: var(--text); }
[data-theme="dark"] .currency-btn:hover { background-color: rgba(255, 255, 255, .08); color: #fff; }
.currency-btn option { background: var(--bg-card); color: var(--text); }

/* ══════════════════════════════
   BOTTOM NAV
══════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}
[data-theme="dark"] .bottom-nav {
  box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 8px 4px;
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color var(--transition);
  position: relative;
  cursor: pointer;
}
.nav-item:active { opacity: .7; }

/* Active pill indicator */
.nav-item.active { color: var(--primary); }
.nav-item.active .nav-icon-wrap {
  background: var(--primary-light);
}
[data-theme="dark"] .nav-item.active .nav-icon-wrap {
  background: rgba(76,175,80,.18);
}

/* Icon wrapper — pill shape on active */
.nav-icon-wrap {
  width: 52px; height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.nav-icon-wrap svg {
  width: 24px; height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

/* Filled variant for active state */
.nav-item.active .nav-icon-wrap svg.icon-fill {
  fill: currentColor;
  stroke: none;
}
.nav-item .nav-icon-wrap svg.icon-fill { display: none; }
.nav-item .nav-icon-wrap svg.icon-outline { display: block; }
.nav-item.active .nav-icon-wrap svg.icon-outline { display: none; }
.nav-item.active .nav-icon-wrap svg.icon-fill { display: block; }

/* ══════════════════════════════
   PAGE WRAPPER
══════════════════════════════ */
.page-wrapper { max-width: 520px; margin: 0 auto; }

/* ══════════════════════════════
   HERO BANNER (Homepage)
══════════════════════════════ */
.home-hero {
  margin: 16px 16px 0;
  border-radius: var(--radius-lg);
  background: var(--primary-grad);
  padding: 22px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '🎟️';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 72px;
  opacity: .15;
}
[dir="rtl"] .home-hero::before { right: auto; left: 20px; }
.home-hero-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.25;
}
.home-hero-sub {
  font-size: 13px;
  opacity: .85;
}

/* ══════════════════════════════
   SEARCH BAR
══════════════════════════════ */
.search-bar {
  margin: 14px 16px 0;
  position: relative;
}
.search-bar input {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 0 48px 0 20px;
  font-size: 14px;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
[dir="rtl"] .search-bar input { padding: 0 20px 0 48px; }
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}
.search-bar input::placeholder { color: var(--text-light); }
.search-icon {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

/* ══════════════════════════════
   SECTION LABEL
══════════════════════════════ */
.section-label {
  padding: 18px 16px 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.2px;
}
.section-label span {
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--primary);
  border-radius: 2px;
  vertical-align: middle;
  margin-inline-end: 8px;
  margin-bottom: 2px;
}

/* ══════════════════════════════
   CATEGORY TABS
══════════════════════════════ */
.tabs-container {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-container::-webkit-scrollbar { display: none; }
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.tab-btn .icon { stroke-width: 2.2; }
.tab-btn.active {
  background: var(--primary-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(76,175,80,.35);
}

/* Country filter dropdown (below tabs) */
.country-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
}
.country-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.country-filter-icon { display: inline-flex; }
.country-filter-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.country-select {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text);
  font-family: 'Inter', 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3e%3cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 12px center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
[dir="rtl"] .country-select {
  padding: 0 14px 0 36px;
  background-position: left 12px center;
}
.country-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}
.country-select option { background: var(--bg-card); color: var(--text); }

/* ══════════════════════════════
   EVENT CARDS
══════════════════════════════ */
.events-grid {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--border);
}
.event-card:active { transform: scale(.985); box-shadow: var(--shadow-sm); }

/* Cover */
.event-card-cover {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #0F1923, #1A2942);
}
.event-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
}
.event-card-vs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: normal;
  justify-content: center;
  gap: 14px;
  /* Soft gradient — lets the stadium cover image show through while keeping
     enough contrast for team logos + VS text to pop. */
  background: linear-gradient(160deg, rgba(10,20,30,.55) 0%, rgba(15,30,55,.65) 100%);
  backdrop-filter: blur(1px);
}
.team-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.team-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
}
.event-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.22);
  color: #fff;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.15));
}
.info-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
}
.team-name {
  font-size: 10px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  max-width: 70px;
  text-align: center;
  line-height: 1.2;
}
.vs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.vs-text {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,.45);
  letter-spacing: 1px;
}
.event-date-chip {
  background: rgba(76,175,80,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: .3px;
}

/* Concert cover */
.concert-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0533, #3d1a78, #0d2b52);
}
.concert-icon { font-size: 52px; filter: drop-shadow(0 0 20px rgba(168,85,247,.6)); }

/* Overlay gradient */
.cover-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}

/* Badges overlay */
.cover-badges {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Body */
.event-card-body {
  padding: 14px 16px;
}
.event-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.event-meta-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
}

/* Demand bar */
.demand-mini {
  margin-top: 12px;
}
.demand-mini-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 5px;
}
.demand-mini-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, #22C55E, #F59E0B, #EF4444);
}
.demand-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demand-pct { font-size: 11px; color: var(--text-light); }
.demand-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.demand-tag.high   { background: #FEE2E2; color: #B91C1C; }
.demand-tag.medium { background: #FEF3C7; color: #92400E; }
.demand-tag.low    { background: #DCFCE7; color: #166534; }
[data-theme="dark"] .demand-tag.high   { background: rgba(239,68,68,.2); color: #FCA5A5; }
[data-theme="dark"] .demand-tag.medium { background: rgba(245,158,11,.2); color: #FCD34D; }
[data-theme="dark"] .demand-tag.low    { background: rgba(34,197,94,.2);  color: #86EFAC; }

/* Footer */
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
}
.event-price-block {}
.event-price-from {
  font-size: 10.5px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 1px;
}
.event-price-amount {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.event-price-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}
.event-avail-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.event-avail-chip.sold { background: #FEE2E2; color: #B91C1C; }
[data-theme="dark"] .event-avail-chip { background: rgba(76,175,80,.15); color: var(--primary); }
[data-theme="dark"] .event-avail-chip.sold { background: rgba(239,68,68,.15); color: #FCA5A5; }

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2px;
}
.badge-danger  { background: rgba(239,68,68,.92);  color: #fff; }
.badge-warning { background: rgba(245,158,11,.92); color: #fff; }
.badge-success { background: rgba(34,197,94,.92);  color: #fff; }
.badge-dark    { background: rgba(0,0,0,.65); color: #fff; backdrop-filter: blur(4px); }
.badge-today   { background: var(--primary); color: #fff; }

/* ══════════════════════════════
   EVENT DETAIL PAGE
══════════════════════════════ */
.page-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.back-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Event Hero */
.event-hero {
  margin: 0 16px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #0F1923, #1A2942);
  position: relative;
  min-height: 180px;
}
.event-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.event-hero.has-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.82) 100%);
  z-index: 1;
}
.event-hero.has-cover { min-height: 260px; }
/* single-image chip on index cards (same style as the date chip on VS) */
.single-cover-chip {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(255,255,255,.92);
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.event-hero-inner {
  position: relative;
  z-index: 2;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.event-hero-teams {
  display: flex;
  align-items: center;
  gap: 16px;
}
.event-hero .team-logo { width: 60px; height: 60px; }
.event-hero-vs {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,.4);
}
.event-hero-name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.event-hero-meta {
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.event-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-hero-meta .icon { color: rgba(255,255,255,.6); }

/* Demand Section */
.demand-section {
  margin: 0 16px 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.demand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.demand-label-text {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.demand-level-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  letter-spacing: .3px;
}
.demand-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  position: relative;
  overflow: visible;
}
.demand-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, #22C55E, #F59E0B, #EF4444);
  transition: width .6s ease;
}
.demand-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--bg-card);
  position: absolute;
  top: 50%; transform: translate(-50%,-50%);
  box-shadow: 0 0 0 2px currentColor;
}

/* Map Section */
.map-section {
  margin: 0 16px 14px;
}
.map-section-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.map-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}
#map-svg-container {
  width: 100%;
  overflow: hidden;
  display: block;
  padding: 8px;
  line-height: 0;
  touch-action: none;       /* let JS handle all touch */
  cursor: grab;
  border-radius: var(--radius);
  background: var(--bg-input);
  min-height: 300px;
}
#map-svg-container:active { cursor: grabbing; }
#map-svg-container svg {
  width: 100% !important;
  height: auto !important;
  min-height: 300px;
  display: block;
  will-change: transform;
}

.map-controls {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}
.map-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.map-btn:hover { background: var(--bg-input); }

/* SVG Interactive */
.svg-section { cursor: pointer; transition: filter .2s, opacity .2s; }
.svg-section:hover { filter: brightness(1.15); }
.svg-section.active-section { filter: brightness(1.25) drop-shadow(0 0 8px rgba(255,255,255,.95)); stroke: #fff; stroke-width: 1.5px; }
.svg-section.dimmed { /* opacity managed by _injectColorCSS via fill-opacity */ }
.svg-price-label { fill: #fff; text-anchor: middle; pointer-events: none; font-weight: 700; }

/* Tickets */
.tickets-section { margin: 0 16px 14px; }
.tickets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title { font-size: 15px; font-weight: 800; color: var(--text); }
.tickets-count { font-size: 12px; color: var(--text-light); font-weight: 600; }

.ticket-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform .12s;
  gap: 12px;
}
.ticket-card:active { transform: scale(.98); }
.ticket-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76,175,80,.12); }
.ticket-card.sold-out { opacity: .5; cursor: not-allowed; }
.ticket-card.sold-out:hover { border-color: var(--border); box-shadow: none; }
.ticket-card.paginated-hidden { display: none !important; }

.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 10px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px dashed var(--primary);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.load-more-btn:hover  { background: rgba(76,175,80,.08); }
.load-more-btn:active { transform: scale(.98); }
.load-more-btn .load-more-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.ticket-info { flex: 1; }
.ticket-block { font-size: 14.5px; font-weight: 800; color: var(--text); }
.ticket-row   { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }
.ticket-features {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ticket-feat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 500;
}
.ticket-price-col { text-align: end; flex-shrink: 0; }
.ticket-price     { font-size: 20px; font-weight: 900; color: var(--primary); line-height: 1; }
.ticket-per       { font-size: 10.5px; color: var(--text-light); margin-top: 2px; }
.ticket-arrow     { font-size: 11px; color: var(--primary); font-weight: 700; margin-top: 6px; }

.ticket-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 6px;
}
.pill-limited  { background: #FEF3C7; color: #92400E; }
.pill-sold-out { background: #FEE2E2; color: #B91C1C; }
[data-theme="dark"] .pill-limited  { background: rgba(245,158,11,.2); color: #FCD34D; }
[data-theme="dark"] .pill-sold-out { background: rgba(239,68,68,.2);  color: #FCA5A5; }

/* ══════════════════════════════
   BOTTOM SHEET
══════════════════════════════ */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(2px);
}
.sheet-overlay.open { opacity: 1; pointer-events: all; }

.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  z-index: 301;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  max-height: 92vh;
  overflow-y: auto;
  max-width: 520px;
  margin: 0 auto;
}
.bottom-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 38px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}
.sheet-content { padding: 16px 20px 24px; }
.sheet-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

/* Sheet info rows */
.sheet-info-box {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.sheet-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.sheet-info-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.sheet-info-label { color: var(--text-muted); }
.sheet-info-val   { font-weight: 700; color: var(--text); }

/* ══════════════════════════════
   QTY MODAL
══════════════════════════════ */
.qty-modal {
  position: fixed; inset: 0;
  z-index: 400;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.qty-modal.open { opacity: 1; pointer-events: all; }
.qty-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.qty-modal-box {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom,0px));
  width: 100%;
  max-width: 520px;
  transform: translateY(20px);
  transition: transform .3s;
}
.qty-modal.open .qty-modal-box { transform: translateY(0); }
.qty-modal-title {
  font-size: 18px; font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

.qty-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.qty-input-row:focus-within { border-color: var(--primary); }
.qty-input-row input,
.qty-input-row select {
  flex: 1;
  border: none;
  background: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  text-align: end;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-inline-end: 20px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23999'%3e%3cpath d='M5 8l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 4px center;
  background-size: 14px;
}
[dir="rtl"] .qty-input-row input,
[dir="rtl"] .qty-input-row select {
  text-align: start;
  background-position: right 4px center;
  padding-inline-end: 0;
  padding-inline-start: 20px;
}
.qty-input-row input { cursor: text; background-image: none; padding-inline-end: 0; }
[dir="rtl"] .qty-input-row input { padding-inline-start: 0; }
.qty-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.qty-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 20px;
}
.toggle-label-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}

/* Toggle Switch */
.toggle-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 26px;
  cursor: pointer;
  transition: background .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  left: 3px; top: 3px;
  transition: transform .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Modal buttons grid */
.modal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ══════════════════════════════
   CHECKOUT
══════════════════════════════ */
.page-title {
  font-size: 19px;
  font-weight: 800;
  padding: 14px 16px 8px;
}

/* Timer */
.checkout-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF8E7;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 16px 14px;
  border: 1px solid #FBBF24;
}
[data-theme="dark"] .checkout-timer {
  background: rgba(251,191,36,.1);
  border-color: rgba(251,191,36,.3);
}
.timer-lock { font-size: 22px; }
.timer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(180,83,9,.12);
  color: #B45309;
  flex-shrink: 0;
}
.timer-info { flex: 1; }
.timer-info-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
#checkout-timer {
  font-size: 18px;
  font-weight: 900;
  color: #B45309;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
[data-theme="dark"] #checkout-timer { color: #FCD34D; }
.timer-note { font-size: 11px; color: var(--text-light); }

/* Order Summary */
.checkout-summary {
  margin: 0 16px 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.summary-cover {
  background: linear-gradient(150deg, #0F1923, #1A2942);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-cover-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.1);
  padding: 5px;
  border: 1px solid rgba(255,255,255,.15);
}
.summary-event-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  line-height: 1.3;
}
.summary-body { padding: 14px 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-val { font-weight: 700; color: var(--text); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-input);
}
.summary-total-label { font-size: 13px; color: var(--text-muted); }
.summary-total-amount { font-size: 24px; font-weight: 900; color: var(--primary); }
.summary-total-note { font-size: 10.5px; color: var(--text-light); margin-top: 3px; text-align: end; }

/* Payment Methods */
.payment-section { margin: 0 16px 14px; }
.payment-title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }

.payment-method {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.payment-method.selected { border-color: var(--primary); }

.payment-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
}
.payment-method-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.payment-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text);
  flex-shrink: 0;
}
.radio-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.radio-circle.checked { border-color: var(--primary); background: var(--primary); }
.radio-circle.checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Card inputs */
.card-form { padding: 0 16px 16px; }
.form-input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text);
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}
.form-input::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-with-icon { position: relative; }
.input-icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.input-with-icon .form-input { padding-inline-end: 44px; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn-primary {
  display: flex;
  width: 100%;
  height: 52px;
  background: var(--primary-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(76,175,80,.35);
  transition: opacity var(--transition), transform .1s;
  text-decoration: none;
  letter-spacing: .2px;
}
.btn-primary:hover  { opacity: .92; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-outline {
  display: flex;
  width: 100%;
  height: 52px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--primary-light); }

/* ══════════════════════════════
   OTP MODAL
══════════════════════════════ */
.otp-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.otp-modal.open { display: flex; }
.otp-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.otp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  margin: 0 auto 14px;
}
.otp-title     { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.otp-subtitle  { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.otp-inputs    { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.otp-input {
  width: 52px; height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,175,80,.2);
}

/* ══════════════════════════════
   SUCCESS PAGE
══════════════════════════════ */
.success-page {
  min-height: calc(100vh - var(--header-h) - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}
.success-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #DCFCE7;
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
  margin-bottom: 20px;
  animation: successPop .5s cubic-bezier(.36,1.56,.64,1);
}
.success-icon .icon { stroke-width: 2.4; }
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title    { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.success-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.5; }

.order-card {
  width: 100%; max-width: 360px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  text-align: start;
}
.order-ref-label { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.order-ref-value {
  font-size: 17px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: var(--primary-light);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  text-align: center;
}

/* ══════════════════════════════
   TRUST BADGES
══════════════════════════════ */
/* Info / Terms accordion on the event page */
.info-section {
  margin: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.info-block[open] { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.info-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}
.info-summary::-webkit-details-marker { display: none; }
.info-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary-dark);
  flex-shrink: 0;
}
.info-summary-title { flex: 1; }
.info-summary-chev {
  display: inline-flex;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.info-block[open] .info-summary-chev { transform: rotate(180deg); }
.info-body {
  padding: 0 16px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  margin-top: 2px;
  padding-top: 14px;
}
.info-body p { margin: 0 0 10px; }
.info-body p:last-child { margin-bottom: 0; }
.info-list {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-list li { padding-inline-start: 2px; }
.info-list li::marker { color: var(--primary); }

.trust-section { margin: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
}
.trust-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.trust-icon svg { stroke: currentColor; fill: none; }
.trust-icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.trust-title { font-size: 13.5px; font-weight: 800; margin-bottom: 2px; }
.trust-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ══════════════════════════════
   FLOATING BANNER
══════════════════════════════ */
.floating-banner {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: linear-gradient(90deg, #EF4444, #DC2626);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: .2px;
}

/* ══════════════════════════════
   SKELETON
══════════════════════════════ */
@keyframes shimmer {
  from { background-position: -300% 0; }
  to   { background-position:  300% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-input) 50%, var(--border) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 6px;
}

/* ══════════════════════════════
   EMPTY STATE
══════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}
.empty-state-icon  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-light);
  margin: 0 auto 14px;
}
.empty-state-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.empty-state-text  { font-size: 13.5px; line-height: 1.5; }

/* ══════════════════════════════
   ADMIN PANEL
══════════════════════════════ */
.admin-body { padding-top: 0; padding-bottom: 0; }
/* ── Lucide icon base ────── */
.icon {
  flex-shrink: 0;
  vertical-align: middle;
  color: currentColor;
}

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-inline-end: 1px solid var(--border);
  position: fixed;
  top: 0; inset-inline-start: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-logo .icon { stroke-width: 2.2; }
.admin-nav { padding: 10px 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.admin-nav-item:hover  { background: var(--bg-input); color: var(--text); }
.admin-nav-item:hover .icon { color: var(--primary); }
.admin-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.admin-nav-item.active .icon { color: var(--primary); }
.admin-nav-item .icon { color: var(--text-light); transition: color var(--transition); }
.admin-main { margin-inline-start: 240px; flex: 1; padding: 24px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.admin-title .icon { color: var(--primary); }
.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.admin-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.admin-card-title .icon { color: var(--primary); }
.map-zoom-btn {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,20,35,.82);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.map-zoom-btn:hover { background: rgba(76,175,80,.9); border-color: transparent; transform: translateY(-1px); }
.stat-card { padding: 22px 18px; }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.admin-table th { font-weight: 700; color: var(--text-muted); background: var(--bg-input); }
.admin-table tr:last-child td { border-bottom: none; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text);
  padding: 0 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; }
select.form-control { cursor: pointer; }

.btn-sm {
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--transition);
}
.btn-sm:hover { opacity: .85; }
.btn-sm.primary { background: var(--primary); color: #fff; }
.btn-sm.danger  { background: var(--danger); color: #fff; }
.btn-sm.outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.pill-success { background: #DCFCE7; color: #166534; }
.pill-warning { background: #FEF3C7; color: #92400E; }
.pill-danger  { background: #FEE2E2; color: #B91C1C; }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════
   RTL FIXES
══════════════════════════════ */
[dir="rtl"] .search-bar input { padding: 0 20px 0 48px; }
[dir="rtl"] .cover-badges { inset-inline-start: auto; inset-inline-end: 10px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (min-width: 520px) {
  body { background: var(--bg); }
  .page-wrapper,
  .site-header,
  .bottom-nav,
  .floating-banner { max-width: 480px; margin-inline: auto; }
  .site-header { left: 50%; right: auto; transform: translateX(-50%); }
  .bottom-nav  { left: 50%; right: auto; transform: translateX(-50%); }
}
