/* ==========================================================================
   Concert Ticket System — Main Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

/* ────────────────────────────────────────────────────────── CSS Variables */
:root {
  /* Colors */
  --bg:           #0A0404;
  --surface:      #110606;
  --card:         #160808;
  --card-hover:   #1C0808;
  --border:       rgba(255,255,255,0.07);
  --border-glow:  rgba(220,38,38,0.4);

  --primary:        #DC2626;
  --primary-light:  #F87171;
  --primary-dark:   #991B1B;
  --secondary:      #EF4444;
  --accent:         #06B6D4;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;

  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-faint:   #475569;

  --gradient-primary:  linear-gradient(135deg, #991B1B 0%, #DC2626 50%, #EF4444 100%);
  --gradient-title:    linear-gradient(135deg, #DC2626 0%, #F87171 50%, #FCA5A5 100%);
  --gradient-accent:   linear-gradient(135deg, #06B6D4 0%, #DC2626 100%);
  --gradient-warm:     linear-gradient(135deg, #991B1B 0%, #EF4444 100%);
  --gradient-hero:     linear-gradient(135deg, #0A0404 0%, #1C0505 50%, #0A0202 100%);
  --gradient-glass:    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

  --radius-xs:  0.25rem;
  --radius-sm:  0.5rem;
  --radius-md:  0.875rem;
  --radius-lg:  1.25rem;
  --radius-xl:  1.75rem;
  --radius-2xl: 2.5rem;
  --radius-full: 9999px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --shadow-xl:    0 16px 64px rgba(0,0,0,0.7);
  --shadow-glow:       0 0 40px rgba(220,38,38,0.25);
  --shadow-glow-pink:  0 0 40px rgba(239,68,68,0.25);
  --shadow-glow-cyan:  0 0 40px rgba(6,182,212,0.25);

  --transition:      250ms cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 500ms cubic-bezier(0.4,0,0.2,1);

  --navbar-h: 72px;
  --sidebar-w: 260px;
  --container: 1200px;
}

/* ────────────────────────────────────────────────────── Light Theme Overrides */
[data-theme="light"] {
  --bg:           #faf5f5;
  --surface:      #ffffff;
  --card:         #ffffff;
  --card-hover:   #fef2f2;
  --border:       rgba(0,0,0,0.08);
  --border-glow:  rgba(220,38,38,0.25);

  --text:         #1a0808;
  --text-muted:   #64748b;
  --text-faint:   #94a3b8;

  --gradient-hero:  linear-gradient(135deg, #fff5f5 0%, #fde8e8 50%, #fef3f3 100%);
  --gradient-glass: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.005));
  --gradient-title: linear-gradient(135deg, #991B1B 0%, #DC2626 50%, #EF4444 100%);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:   0 16px 64px rgba(0,0,0,0.12);
  --shadow-glow:      0 0 40px rgba(220,38,38,0.12);
  --shadow-glow-pink: 0 0 40px rgba(239,68,68,0.12);
  --shadow-glow-cyan: 0 0 40px rgba(6,182,212,0.12);
}

/* ── Light: App Shell Sidebar ── */
[data-theme="light"] .app-sidebar {
  background: linear-gradient(180deg, #fff5f5 0%, #fef2f2 60%, #fafafa 100%);
  border-right-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .app-sidebar::before {
  background: radial-gradient(circle, rgba(220,38,38,0.05) 0%, transparent 65%);
}
[data-theme="light"] .sidebar-logo { border-bottom-color: rgba(0,0,0,0.07); }
[data-theme="light"] .sidebar-logo-link { color: #1a0808; }
[data-theme="light"] .sidebar-logo-link .logo-sub {
  color: rgba(0,0,0,0.35);
  -webkit-text-fill-color: rgba(0,0,0,0.35);
}
[data-theme="light"] .sidebar-nav-label { color: rgba(0,0,0,0.3); }
[data-theme="light"] .sidebar-nav-item {
  color: rgba(0,0,0,0.5);
}
[data-theme="light"] .sidebar-nav-item i { color: rgba(0,0,0,0.3); }
[data-theme="light"] .sidebar-nav-item:hover {
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.8);
}
[data-theme="light"] .sidebar-nav-item:hover i { color: rgba(0,0,0,0.5); }
[data-theme="light"] .sidebar-nav-item.active {
  background: rgba(220,38,38,0.08);
  color: #DC2626;
  font-weight: 600;
}
[data-theme="light"] .sidebar-nav-item.active i { color: #DC2626; }
[data-theme="light"] .sidebar-nav-divider { background: rgba(0,0,0,0.07); }
[data-theme="light"] .sidebar-footer { border-top-color: rgba(0,0,0,0.07); }
[data-theme="light"] .sidebar-user-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .sidebar-user-card:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .sidebar-user-avatar::after { border-color: #fef2f2; }
[data-theme="light"] .sidebar-user-name { color: rgba(0,0,0,0.85); }
[data-theme="light"] .sidebar-user-role { color: rgba(0,0,0,0.4); }
[data-theme="light"] .sidebar-overlay { background: rgba(0,0,0,0.35); }

/* ── Light: App Topbar ── */
[data-theme="light"] .app-topbar {
  background: rgba(255,248,248,0.96);
  border-bottom-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 0 rgba(220,38,38,0.05), 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .app-topbar-title { color: rgba(0,0,0,0.72); }
[data-theme="light"] .sidebar-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.55);
}
[data-theme="light"] .sidebar-toggle:hover {
  background: rgba(0,0,0,0.07);
  color: #1a0808;
  border-color: rgba(0,0,0,0.15);
}

/* ── Light: Bottom Nav & Mobile Bar ── */
[data-theme="light"] .app-bottom-nav {
  background: rgba(255,248,248,0.97);
  border-top-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .mobile-bottom-bar {
  background: rgba(255,248,248,0.97);
  border-top-color: rgba(0,0,0,0.07);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

/* ── Light: Navbar (legacy .navbar) ── */
[data-theme="light"] .navbar {
  background: rgba(255,248,248,0.95) !important;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
[data-theme="light"] .mobile-menu {
  background: #ffffff;
  border-bottom-color: rgba(0,0,0,0.07);
}

/* ── Light: sp-nav (index.html hero navbar) ── */
[data-theme="light"] .sp-nav.solid {
  background: rgba(255,248,248,0.95);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .sp-nav-links a { color: rgba(0,0,0,0.65); }
[data-theme="light"] .sp-nav-links a:hover { color: #DC2626; }
[data-theme="light"] .sp-logo-wordmark .logo-sub {
  color: rgba(0,0,0,0.35);
  -webkit-text-fill-color: rgba(0,0,0,0.35);
}
[data-theme="light"] .sp-icon-btn {
  color: rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .sp-icon-btn:hover { background: rgba(0,0,0,0.08); color: #1a0808; }
[data-theme="light"] .sp-fmenu {
  background: rgba(255,248,248,0.98);
}
[data-theme="light"] .sp-fmenu-link { color: rgba(0,0,0,0.75); }
[data-theme="light"] .sp-fmenu-link:hover { color: #DC2626; }
[data-theme="light"] .sp-hbg-bar { background: rgba(0,0,0,0.65); }

/* ── Light: Forms ── */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: rgba(0,0,0,0.025);
  color: var(--text);
}
[data-theme="light"] .form-select option { background: #ffffff; color: #1a0808; }
[data-theme="light"] .app-search-input input {
  background: rgba(0,0,0,0.03);
  color: var(--text);
}

/* ── Light: Buttons ── */
[data-theme="light"] .btn-outline { color: #1a0808; border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .btn-outline:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.25); }
[data-theme="light"] .btn-ghost { color: rgba(0,0,0,0.55); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.05); color: #1a0808; }
[data-theme="light"] .btn::after { background: rgba(0,0,0,0); }
[data-theme="light"] .btn:hover::after { background: rgba(0,0,0,0.03); }
[data-theme="light"] .btn:active::after { background: rgba(0,0,0,0.06); }

/* ── Light: Cards & Modals ── */
[data-theme="light"] .card-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .modal-close {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.5);
}
[data-theme="light"] .modal-close:hover { background: rgba(239,68,68,0.08); }
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.45); }

/* ── Light: Tables ── */
[data-theme="light"] .table th { background: rgba(0,0,0,0.025); }
[data-theme="light"] .table tbody tr:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .table-container { border-color: rgba(0,0,0,0.07); }

/* ── Light: Loading / Skeleton ── */
[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

/* ── Light: Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f5efef; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ── Light: Filter / Sort selects ── */
[data-theme="light"] .sort-select,
[data-theme="light"] .filter-btn {
  background-color: rgba(0,0,0,0.025);
  color: var(--text);
}
[data-theme="light"] .sort-select option { background: #ffffff; color: #1a0808; }
[data-theme="light"] .view-btn {
  background: transparent;
  color: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .view-btn.active,
[data-theme="light"] .view-btn:hover { background: rgba(0,0,0,0.05); color: #1a0808; }

/* ── Light: Notification Bell ── */
[data-theme="light"] .notif-bell {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.55);
}
[data-theme="light"] .notif-bell:hover { background: rgba(0,0,0,0.07); color: #1a0808; }

/* ── Light: User Avatar / User Menu ── */
[data-theme="light"] .dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
[data-theme="light"] .dropdown-item { color: rgba(0,0,0,0.7); }
[data-theme="light"] .dropdown-item:hover { background: rgba(0,0,0,0.04); color: #1a0808; }
[data-theme="light"] .dropdown-divider { background: rgba(0,0,0,0.07); }

/* ── Light: Theme toggle button ── */
[data-theme="light"] .theme-toggle-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.6);
}
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(0,0,0,0.08); color: #DC2626; }

/* ── Light: Pricing / eTicket ── */
[data-theme="light"] .eticket-banner-overlay {
  background: linear-gradient(to bottom, transparent 30%, rgba(255,245,245,0.95));
}
[data-theme="light"] .eticket-qr-section { background: rgba(0,0,0,0.01); }

/* ────────────────────────────────────────────────────── Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ────────────────────────────────────────────────────── Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display { font-family: 'Playfair Display', Georgia, serif; }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-6xl  { font-size: 3.75rem; }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.text-primary{ color: var(--primary-light); }
.text-secondary{ color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success{ color: var(--success); }
.text-warning{ color: var(--warning); }
.text-danger { color: var(--danger); }

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

/* ────────────────────────────────────────────────────── Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ────────────────────────────────────────────────────── Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(16,4,4,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.navbar-logo .logo-icon {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
  background: linear-gradient(135deg, #DC2626 0%, #F87171 50%, #FCA5A5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 7px rgba(220,38,38,0.55));
}

.navbar-logo .logo-text {
  background: linear-gradient(135deg, #DC2626 0%, #F87171 50%, #FCA5A5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-logo .logo-text span { color: inherit; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

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

.user-menu {
  position: relative;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.user-avatar:hover { border-color: var(--primary-light); box-shadow: var(--shadow-glow); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 300;
}

.dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.375rem 0; }

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile menu is hidden by default on desktop */
.mobile-menu { display: none; }

/* ────────────────────────────────────────────────────── Button animation */
@keyframes rdm-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ────────────────────────────────────────────────────── Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.18s ease, background-position 0.45s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s ease;
  pointer-events: none;
}

.btn:hover::after  { background: rgba(255,255,255,0.07); }
.btn:active::after { background: rgba(255,255,255,0.14); }
.btn:active        { transform: scale(0.97) !important; }

.btn-primary {
  background: linear-gradient(135deg, #7F1D1D 0%, #DC2626 35%, #EF4444 65%, #DC2626 100%);
  background-size: 250% 250%;
  color: #fff;
  box-shadow: 0 4px 18px rgba(127,29,29,0.5), 0 0 0 1px rgba(239,68,68,0.18);
  animation: rdm-shimmer 5s ease infinite;
}
.btn-primary:hover {
  animation-duration: 1.5s;
  box-shadow: 0 6px 28px rgba(220,38,38,0.65), 0 0 0 1px rgba(248,113,113,0.3);
}

.btn-secondary {
  background: rgba(220,38,38,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(220,38,38,0.3);
}
.btn-secondary:hover { background: rgba(220,38,38,0.25); border-color: var(--primary-light); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-success {
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-lg { padding: 0.72rem 1.4rem; font-size: 0.92rem; }
.btn-xl { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-icon { padding: 0.625rem; width: 38px; height: 38px; }
.btn-full { width: 100%; }

.btn[disabled], .btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

/* ────────────────────────────────────────────────────── Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.card-hover:hover {
  border-color: rgba(220,38,38,0.3);
  box-shadow: var(--shadow-glow);
}

.card-glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ────────────────────────────────────────────────────── Concert Cards */
.concert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.concert-card:hover {
  border-color: rgba(220,38,38,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--shadow-glow);
}

.concert-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.concert-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.concert-card-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.concert-card-wishlist {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 34px;
  height: 34px;
  background: rgba(16,4,4,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  z-index: 1;
}

.concert-card-wishlist:hover, .concert-card-wishlist.active {
  background: rgba(239,68,68,0.2);
  border-color: var(--secondary);
  color: var(--secondary);
}

.concert-card-body {
  padding: 1.25rem;
}

.concert-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.concert-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.concert-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-row i { color: var(--text-faint); font-size: 0.75rem; width: 14px; }

.concert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-label { font-size: 0.72rem; color: var(--text-faint); margin-bottom: 0.125rem; }
.price-value {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seat-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.seat-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.seat-dot.available { background: var(--success); box-shadow: 0 0 6px var(--success); }
.seat-dot.limited   { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.seat-dot.sold-out  { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* ────────────────────────────────────────────────────── Ticket Card */
.ticket-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}

.ticket-card:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(220,38,38,0.3);
}

.ticket-header {
  background: var(--gradient-primary);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ticket-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.ticket-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 20%;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.ticket-perforated {
  position: relative;
  height: 28px;
  overflow: visible;
}

.ticket-perforated::before, .ticket-perforated::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 2;
}

.ticket-perforated::before { left: -14px; }
.ticket-perforated::after  { right: -14px; }

.ticket-perforated .dashes {
  position: absolute;
  top: 50%;
  left: 14px;
  right: 14px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0px,
    var(--border) 8px,
    transparent 8px,
    transparent 14px
  );
  transform: translateY(-50%);
}

.ticket-body { padding: 1.25rem; }

.ticket-qr {
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  margin: 0.75rem 0;
}

.ticket-id {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-align: center;
}

/* ────────────────────────────────────────────────────── Forms */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-label .required { color: var(--danger); margin-left: 0.25rem; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-light);
  background: rgba(220,38,38,0.05);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option { background: var(--card); color: var(--text); }

.form-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.375rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.375rem; }

.input-with-icon {
  position: relative;
}

.input-with-icon .form-input { padding-left: 2.75rem; }
.input-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.9rem;
  pointer-events: none;
}

.input-group {
  display: flex;
  gap: 0;
}
.input-group .form-input { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.toggle-password:hover { color: var(--text-muted); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 1px;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────── Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-primary { background: rgba(220,38,38,0.15); color: var(--primary-light); border: 1px solid rgba(220,38,38,0.3); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-info    { background: rgba(6,182,212,0.15); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ────────────────────────────────────────────────────── Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
  position: relative;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-lg { max-width: 720px; }
.modal-xl { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.modal-header h3 { font-size: 1.125rem; }

.modal-close {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover { background: rgba(239,68,68,0.1); color: var(--danger); border-color: rgba(239,68,68,0.3); }

.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ────────────────────────────────────────────────────── Toast Notifications */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-h) + 1rem);
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toastIn 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.toast.success::before { background: var(--success); }
.toast.error::before   { background: var(--danger); }
.toast.warning::before { background: var(--warning); }
.toast.info::before    { background: var(--accent); }

.toast-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon   { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon    { color: var(--accent); }

.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.125rem; }
.toast-message { font-size: 0.8rem; color: var(--text-muted); }

.toast-close {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

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

/* ────────────────────────────────────────────────────── Steps / Progress */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  transition: background var(--transition);
}

.step.completed::after { background: var(--primary); }

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}

.step.active .step-dot {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.step.completed .step-dot {
  background: var(--success);
  border-color: transparent;
  color: #fff;
}

.step-label { font-size: 0.8rem; font-weight: 500; color: var(--text-faint); white-space: nowrap; }
.step.active .step-label   { color: var(--primary-light); }
.step.completed .step-label{ color: var(--success); }

/* ────────────────────────────────────────────────────── Seat Map */
.seat-map-container {
  overflow: auto;
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-height: none;
  min-height: 240px;
  -webkit-overflow-scrolling: touch;
}

.seat-map-scaler {
  transform-origin: top center;
  transition: transform 0.2s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  align-self: flex-start;
}

.seat-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 600px;
}

.stage {
  width: 60%;
  padding: 0.75rem;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.row-label {
  width: 46px;
  text-align: right;
  font-size: 0.6rem;
  color: var(--text-faint);
  margin-right: 0.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

.seat-row.header {
  margin-bottom: 0.25rem;
}

.col-label {
  width: 24px;
  text-align: center;
  font-size: 0.55rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.seat.blocked,
.seat.empty {
  background: transparent !important;
  border: none !important;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.seat {
  width: 26px;
  height: 24px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  position: relative;
}

.seat.available {
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--success);
}

.seat.available:hover {
  background: rgba(16,185,129,0.4);
  transform: scale(1.15);
  z-index: 2;
}

.seat.selected {
  background: linear-gradient(135deg, #F87171 0%, #DC2626 100%) !important;
  border: 1px solid #FECACA !important;
  color: #fff;
  transform: scale(1.22);
  z-index: 10;
  box-shadow:
    0 0 0 2px rgba(220,38,38,0.35),
    0 0 20px 6px rgba(248,113,113,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 800;
  animation: rdm-seat-pulse 2s ease-in-out infinite;
}
.seat.selected::after { display: none; }
.seat.selected .seat-timer { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.seat.occupied {
  background: rgba(71,85,105,0.3);
  border: 1px solid rgba(71,85,105,0.3);
  color: var(--text-faint);
  cursor: not-allowed;
}

.seat.held {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.45);
  color: #FDE68A;
  animation: rdm-held-pulse 2.2s ease-in-out infinite;
}
.seat.held .seat-timer { color: #FDE68A !important; }

@keyframes rdm-seat-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220,38,38,0.35), 0 0 18px 5px rgba(248,113,113,0.5); }
  50% { box-shadow: 0 0 0 4px rgba(220,38,38,0.2), 0 0 32px 12px rgba(248,113,113,0.75); }
}

@keyframes rdm-held-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245,158,11,0.25); }
  50% { box-shadow: 0 0 0 3px rgba(245,158,11,0.15), 0 0 12px 2px rgba(245,158,11,0.25); }
}

.seat.vip {
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--warning);
}

.seat.vip:hover {
  background: rgba(245,158,11,0.4);
  transform: scale(1.15);
}

.seat-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 18px;
  height: 16px;
  border-radius: 3px 3px 0 0;
}

.seat-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  margin-bottom: 1rem;
  min-width: 420px;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.seat-section-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.seat-section-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ────────────────────────────────────────────────────── Stats Cards */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 var(--radius-lg) 0 80px;
  background: rgba(255,255,255,0.02);
}

.stat-card:hover { border-color: rgba(220,38,38,0.3); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-icon.purple { background: rgba(220,38,38,0.15); color: var(--primary-light); }
.stat-icon.pink   { background: rgba(239,68,68,0.15); color: var(--secondary); }
.stat-icon.cyan   { background: rgba(6,182,212,0.15); color: var(--accent); }
.stat-icon.green  { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-icon.amber  { background: rgba(245,158,11,0.15); color: var(--warning); }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat-label { font-size: 0.875rem; color: var(--text-muted); }

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

.stat-change.up   { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-change.down { background: rgba(239,68,68,0.12); color: var(--danger); }

/* ────────────────────────────────────────────────────── Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.02);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover { background: rgba(255,255,255,0.02); }

.table-avatar {
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────── Loading States */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ────────────────────────────────────────────────────── Page Header */
.page-header {
  padding: calc(var(--navbar-h) + 3rem) 0 3rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 80% at 20% 50%, rgba(220,38,38,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(239,68,68,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; }

/* ────────────────────────────────────────────────────── Section */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-header { margin-bottom: 2.5rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 0.625rem;
}
.section-title { font-size: 2rem; font-weight: 800; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); margin-top: 0.625rem; max-width: 600px; }

/* ────────────────────────────────────────────────────── Filters / Search */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--primary-light); color: var(--text); }
.filter-btn.active {
  background: rgba(220,38,38,0.15);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.search-input-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.9rem;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-wrapper input:focus {
  border-color: var(--primary-light);
  background: rgba(220,38,38,0.05);
}

/* ────────────────────────────────────────────────────── KYC Upload */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary-light);
  background: rgba(220,38,38,0.04);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-faint);
}

.upload-text { font-size: 0.9rem; color: var(--text-muted); }
.upload-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.375rem; }

.upload-preview {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
}

/* ────────────────────────────────────────────────────── QR Styles */
.qr-scanner-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
}

.qr-scanner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-scanner-frame {
  width: 220px;
  height: 220px;
  position: relative;
}

.qr-scanner-frame::before,
.qr-scanner-frame::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--primary-light);
  border-style: solid;
}

.qr-scanner-frame::before { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: var(--radius-sm) 0 0 0; }
.qr-scanner-frame::after  { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 var(--radius-sm) 0; }

.qr-scanner-corners span {
  position: absolute;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-color: var(--primary-light);
}

.qr-scanner-corners span:nth-child(1) { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 var(--radius-sm) 0 0; }
.qr-scanner-corners span:nth-child(2) { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 var(--radius-sm); }

.qr-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0%   { top: 8px; opacity: 1; }
  90%  { top: calc(100% - 10px); opacity: 1; }
  100% { top: calc(100% - 10px); opacity: 0; }
}

/* ────────────────────────────────────────────────────── Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-link {
  font-size: 0.875rem;
  color: var(--text-faint);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-faint);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(220,38,38,0.1);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ────────────────────────────────────────────────────── Pricing Tiers */
.pricing-tier {
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-tier:hover { border-color: rgba(220,38,38,0.3); }
.pricing-tier.selected {
  background: rgba(220,38,38,0.1);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.tier-name { font-weight: 600; font-size: 0.875rem; }
.tier-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; }
.tier-price { font-size: 0.95rem; font-weight: 700; }

/* ────────────────────────────────────────────────────── Countdown */
.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 64px;
  text-align: center;
  padding: 0.5rem;
  background-color: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-md);
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* ────────────────────────────────────────────────────── Misc Utilities */
.page-content { padding-top: var(--navbar-h); }
.pt-nav { padding-top: var(--navbar-h); }

.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.hidden { display: none !important; }
.invisible { visibility: hidden; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ────────────────────────────────────────────────────── Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in  { animation: fadeIn 0.4s ease; }
.animate-slide-up { animation: slideUp 0.4s ease; }
.animate-pulse    { animation: pulse 2s ease-in-out infinite; }
.animate-float    { animation: float 3s ease-in-out infinite; }

/* ────────────────────────────────────────────────────── Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ────────────────────────────────────────────────────── Mobile Bottom Bar (legacy event-detail) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(14, 14, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 0.875rem 1rem;
  padding-bottom: calc(0.875rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.mobile-bottom-bar .mbb-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--container);
  margin: 0 auto;
}
.mobile-bottom-bar .mbb-info { flex: 1; min-width: 0; }
.mobile-bottom-bar .mbb-label { font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; line-height: 1; margin-bottom: 0.2rem; }
.mobile-bottom-bar .mbb-price { font-size: 1.15rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bottom-bar .mbb-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.mobile-bottom-bar .mbb-btn { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   APP SHELL — Webapp Layout
════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.app-sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(180deg, #140606 0%, #0e0303 60%, #090202 100%);
  border-right: 1px solid rgba(255,255,255,0.055);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
  transition: transform var(--transition);
}

/* Subtle red ambient glow top-left */
.app-sidebar::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(220,38,38,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1.125rem;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.sidebar-logo-link .logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #F87171;
  box-shadow: 0 0 16px rgba(220,38,38,0.2), inset 0 1px 0 rgba(255,255,255,0.07);
}

.sidebar-logo-link .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.sidebar-logo-link .logo-text .logo-abbr {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #DC2626 0%, #F87171 50%, #FCA5A5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo-link .logo-text .logo-sub {
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  -webkit-text-fill-color: rgba(255,255,255,0.32);
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.sidebar-nav::-webkit-scrollbar { width: 0; }

.sidebar-nav-label {
  font-size: 0.575rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.2);
  padding: 0.9rem 0.625rem 0.3rem;
  user-select: none;
}

.sidebar-nav-label:first-child { padding-top: 0.3rem; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.845rem;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  position: relative;
  letter-spacing: -0.01em;
  border: none;
}

/* Left accent bar indicator */
.sidebar-nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2.5px;
  border-radius: 0 2px 2px 0;
  background: #F87171;
  transform: scaleY(0);
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
}

.sidebar-nav-item:hover i { color: rgba(255,255,255,0.52); }

.sidebar-nav-item.active {
  background: rgba(220,38,38,0.1);
  color: #F87171;
  font-weight: 600;
}

.sidebar-nav-item.active::before { transform: scaleY(1); }

.sidebar-nav-item.active i { color: #F87171; }

.sidebar-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
  transition: color 0.15s;
}

.sidebar-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.055);
  margin: 0.375rem 0;
}

.sidebar-footer {
  padding: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.055);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.sidebar-user-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.12);
}

.sidebar-user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #7F1D1D, #DC2626);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.28);
  position: relative;
}

/* Online indicator */
.sidebar-user-avatar::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #0e0303;
}

.sidebar-user-name {
  font-size: 0.845rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: rgba(255,255,255,0.85);
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.32);
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

/* ── Main area ── */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 58px;
}

/* ── Top bar ── */
.app-topbar {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  z-index: 150;
  height: 58px;
  background: rgba(12,3,3,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.055);
  box-shadow: 0 1px 0 rgba(220,38,38,0.07), 0 2px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
  transition: height .25s cubic-bezier(0.22,1,0.36,1), background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-topbar.is-scrolled {
  height: 48px;
  padding: 0 1rem;
  background: rgba(12,3,3,0.98);
  box-shadow: 0 10px 34px rgba(0,0,0,0.45), 0 1px 0 rgba(220,38,38,0.12);
  border-bottom-color: rgba(255,255,255,0.12);
}
.app-topbar.is-scrolled .app-topbar-title { font-size: 0.82rem; }
.app-topbar.is-scrolled .sidebar-toggle {
  width: 32px; height: 32px;
  transform: scale(0.92);
}
.app-topbar.is-scrolled .btn {
  height: 32px; min-height: 32px;
  padding: 0 0.75rem;
  font-size: 0.78rem;
}
.app-topbar.is-scrolled .notif-bell {
  width: 32px; height: 32px;
  font-size: 0.8rem;
}
.app-topbar.is-scrolled .user-avatar {
  width: 32px; height: 32px;
  font-size: 0.75rem;
}

/* Topbar buttons match sidebar-toggle (36 px) at all viewport widths */
.app-topbar .btn { height: 36px; min-height: 36px; box-sizing: border-box; }

.app-topbar-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  letter-spacing: -0.01em;
}

.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.09); color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ── Content ── */
.app-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1200px;
  width: 100%;
}

.app-page-header {
  margin-bottom: 1.5rem;
}

.app-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-page-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.app-section {
  margin-bottom: 2rem;
}

.app-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.app-section-title {
  font-size: 1rem;
  font-weight: 700;
}

.app-section-link {
  font-size: 0.8rem;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.app-section-link:hover { opacity: 0.8; }

/* ── App search bar ── */
.app-search {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.app-search-input {
  flex: 1;
  position: relative;
}

.app-search-input i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.875rem;
  pointer-events: none;
}

.app-search-input input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.app-search-input input:focus {
  border-color: var(--primary-light);
  background: rgba(220,38,38,0.05);
}

/* ── Featured cards (horizontal) ── */
.app-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Compact event card for app */
.app-event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.app-event-card:hover {
  border-color: rgba(220,38,38,0.35);
  box-shadow: var(--shadow-glow);
}

.app-event-card-img {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.app-event-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.app-event-card-badge {
  position: absolute;
  top: 0.625rem; left: 0.625rem;
  padding: 0.2rem 0.625rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.app-event-card-body {
  padding: 0.875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-event-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-event-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  margin-bottom: 0.75rem;
}

.app-event-card-meta i { color: var(--text-faint); width: 12px; margin-right: 3px; }

.app-event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}

/* ── Featured banner (compact) ── */
.app-featured-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.app-featured-banner-bg {
  position: absolute;
  inset: 0;
}

.app-featured-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.app-featured-banner:hover .app-featured-banner-bg img { transform: scale(1.02); }

.app-featured-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,4,4,0.95) 0%, rgba(16,4,4,0.5) 40%, transparent 70%);
}

.app-featured-banner-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
}

/* ── Quick stats ── */
.app-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.app-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.app-stat-val { font-size: 1.25rem; font-weight: 800; line-height: 1; margin-bottom: 0.125rem; }
.app-stat-lbl { font-size: 0.72rem; color: var(--text-muted); }

/* ── Bottom Nav ── */
.app-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(10, 10, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.app-bottom-nav-inner {
  display: flex;
  align-items: stretch;
}

.app-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.625rem 0.25rem;
  text-decoration: none;
  color: var(--text-faint);
  transition: color var(--transition-fast);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  background: none;
  cursor: pointer;
}

.app-tab-item i { font-size: 1.125rem; }
.app-tab-item.active { color: var(--primary-light); }

/* ── Sidebar overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
}

@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  .sidebar-overlay.open { display: block; }
  .app-main {
    margin-left: 0;
  }
  .app-bottom-nav { display: block; }
  .sidebar-toggle { display: flex; }
  .app-topbar { left: 0; padding: 0 1.25rem; }
  .app-content { padding: 1.25rem; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .has-mobile-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .mobile-bottom-bar { display: block; }
}

@media (min-width: 901px) {
  .mobile-bottom-bar { display: none !important; }
}

/* ────────────────────────────────────────────────────── Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  .navbar { height: var(--navbar-h); }
  .navbar-logo .logo-icon { font-size: 1.25rem; }
  .navbar-logo .logo-text { font-size: 1.1rem; }
  .navbar-nav { display: none; }
  .navbar-hamburger { display: flex; }
  .navbar-actions .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }

  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { flex-wrap: wrap; }
  .page-title { font-size: 1.6rem; }
  .page-subtitle { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Buttons — bigger touch targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }

  /* Cards */
  .card { border-radius: var(--radius-lg); }

  /* Concert card grid */
  .concert-card-image { aspect-ratio: 16/9; }

  /* Page header */
  .page-header { padding: calc(var(--navbar-h) + 1.5rem) 0 1.75rem; }

  /* Countdown */
  .countdown-value { font-size: 1.75rem; min-width: 48px; }

  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-100%);
    transition: transform var(--transition);
    z-index: 199;
  }
  .mobile-menu.open { transform: translateY(0); }

  /* Stats row */
  .stats-row { gap: 0.75rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.5rem; }

  /* Form inputs */
  .form-input, .form-textarea, .form-select {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* Section spacing */
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }

  /* Hero section */
  .hero { padding-top: calc(var(--navbar-h) + 2rem); }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .countdown { gap: 0.5rem; }
  .countdown-value { font-size: 1.5rem; min-width: 40px; }
  .countdown-label { font-size: 0.58rem; }

  /* Tighter container */
  .container { padding-left: 0.875rem; padding-right: 0.875rem; }

  /* Smaller page title */
  .page-title { font-size: 1.4rem; }

  /* Step wizard compact */
  .wizard-step span { display: none; }
  .wizard-step { padding: 0.5rem; }

  /* Badge sizing */
  .badge { font-size: 0.68rem; padding: 0.2rem 0.5rem; }

  /* Ticket card info row stack */
  .ticket-info-row { flex-direction: column; gap: 0.75rem; }

  /* Filter tabs scroll */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { white-space: nowrap; flex-shrink: 0; }
}

/* ══════════════════ SPA / Web App Enhancements ══════════════════ */

/* Smooth page transitions */
body {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS bounce scroll on fixed pages */
@supports (-webkit-touch-callout: none) {
  body {
    overscroll-behavior-y: none;
  }
}

/* Mobile: prevent horizontal overflow */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Smooth touch scrolling */
.app-content,
.app-main,
.modal-body,
.ev-sidebar-filter {
  -webkit-overflow-scrolling: touch;
}

/* Mobile: larger hit targets for interactive elements */
@media (max-width: 768px) {
  .concert-card, .app-event-card, .card-hover {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.12);
  }

  /* Checkout on mobile: stack layout */
  .checkout-layout {
    flex-direction: column !important;
    padding: 0 !important;
  }
  .checkout-sidebar {
    order: -1;
    margin-bottom: 1rem;
  }

  /* Event detail: full-width hero on mobile */
  .event-hero {
    height: 220px !important;
    min-height: 220px !important;
  }

  /* Better event detail layout on mobile */
  .event-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .event-sticky-sidebar {
    position: static !important;
    margin-top: 1.5rem;
  }

  /* Auth: center form on mobile */
  .auth-card {
    margin: 1rem !important;
    padding: 1.5rem !important;
  }

  /* KYC steps on mobile */
  .kyc-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  /* My tickets: full width cards */
  .tickets-grid {
    grid-template-columns: 1fr !important;
  }

  /* Seat map on mobile */
  .seat-map-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Page content spacing */
  .page-content, .app-page-content {
    padding-bottom: 1.5rem;
  }

  /* Hide non-essential sidebar items on mobile */
  .app-sidebar { display: none !important; }
  .app-sidebar.open { display: block !important; }
}

/* Safe area for notched phones (iPhone X+) */
@supports (padding: max(0px)) {
  .app-bottom-nav {
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
  }
  .app-bottom-nav-inner {
    padding-bottom: 0;
  }
}

/* Fix: ensure body has enough bottom padding */
@media (max-width: 900px) {
  .app-shell,
  .app-content {
    padding-bottom: 1rem !important;
  }
}

/* ════════════════════════════════════════════════════════════
   NOTIFICATION BELL
   ════════════════════════════════════════════════════════════ */
.notif-bell {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.notif-bell:hover { background: var(--card-hover); color: var(--text); border-color: rgba(255,255,255,0.14); }

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(220,38,38,0.1);
  z-index: 1000;
  overflow: hidden;
}
@media (max-width: 420px) { .notif-dropdown { width: 300px; right: -60px; } }

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.875rem;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}
.notif-mark-all:hover { text-decoration: none; }

.notif-list { max-height: 380px; overflow-y: auto; }

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.notif-item:hover { background: var(--card-hover); }
.notif-item.unread { background: rgba(220,38,38,0.05); }
.notif-item:last-child { border-bottom: none; }

.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.notif-item-icon.success { background:rgba(16,185,129,0.15); color:var(--success); }
.notif-item-icon.info    { background:rgba(6,182,212,0.15);  color:var(--accent); }
.notif-item-icon.warning { background:rgba(245,158,11,0.15); color:var(--warning); }
.notif-item-icon.error   { background:rgba(239,68,68,0.15);  color:var(--danger); }

.notif-item-body { flex:1; min-width:0; }
.notif-item-title { font-size:0.825rem; font-weight:600; margin-bottom:0.15rem; }
.notif-item-msg   { font-size:0.75rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-item-time  { font-size:0.7rem; color:var(--text-faint); margin-top:0.2rem; }

.notif-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-faint);
}
.notif-empty i { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.notif-empty p { font-size: 0.825rem; margin: 0; }

#navbar-actions { position: relative; }

/* ════════════════════════════════════════════════════════════
   WISHLIST PAGE
   ════════════════════════════════════════════════════════════ */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.wishlist-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.wishlist-empty > i { font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--text-faint); }
.wishlist-empty h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.wishlist-empty p { font-size: 0.9rem; margin-bottom: 1.5rem; }

.wishlist-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}
.wishlist-card:hover { box-shadow: var(--shadow-lg); }

.wishlist-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.wishlist-card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.wishlist-card:hover .wishlist-card-img img { transform: scale(1.05); }
.wishlist-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}
.wishlist-card-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  background: rgba(239,68,68,0.8);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wishlist-card-remove:hover { background: var(--danger); transform: scale(1.1); }

.wishlist-card-body { padding: 1rem 1.125rem 1.125rem; }
.wishlist-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.wishlist-card-meta  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.wishlist-card-footer { display:flex; align-items:center; justify-content:space-between; }
.wishlist-card-price { font-size:0.925rem; font-weight:700; color:var(--primary-light); }

/* ════════════════════════════════════════════════════════════
   TICKET DETAIL (E-TICKET)
   ════════════════════════════════════════════════════════════ */
.eticket-wrap { max-width: 460px; margin: 0 auto; }
.eticket-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.eticket-banner { position: relative; height: 230px; overflow: hidden; }
.eticket-banner img { width:100%; height:100%; object-fit:cover; }
.eticket-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(22,8,8,0.92) 80%);
}
.eticket-banner-title { position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem; }
.eticket-banner-title h2 { font-size: 1.4rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.3rem; }
.eticket-banner-title .eticket-artist { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Ticket perforation tear between banner and QR */
.eticket-tear {
  height: 22px;
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.eticket-tear::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  right: -8px;
  height: 0;
  border-top: 2px dashed var(--border);
  transform: translateY(-50%);
}
.eticket-tear .tear-dot {
  position: absolute; top: 50%; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg); transform: translateY(-50%);
  border: 1px solid var(--border);
}
.eticket-tear .tear-dot.left  { left: -11px; }
.eticket-tear .tear-dot.right { right: -11px; }

.eticket-qr-section {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px dashed var(--border);
  background: rgba(255,255,255,0.015);
}
.eticket-qr-wrap {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-lg);
  margin-bottom: 0.875rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.1);
}
.eticket-qr-wrap img,
.eticket-qr-wrap canvas { width: 180px; height: 180px; display: block; }
.eticket-order-id { font-family: monospace; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.625rem; text-align: center; }
.eticket-status-badge {
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eticket-status-badge.confirmed { background:rgba(16,185,129,0.15); color:var(--success); border:1px solid rgba(16,185,129,0.3); }
.eticket-status-badge.used      { background:rgba(100,116,139,0.15); color:var(--text-muted); border:1px solid rgba(100,116,139,0.2); }
.eticket-status-badge.cancelled { background:rgba(239,68,68,0.15); color:var(--danger); border:1px solid rgba(239,68,68,0.3); }
.eticket-status-badge.pending   { background:rgba(245,158,11,0.15); color:var(--warning); border:1px solid rgba(245,158,11,0.3); }

.eticket-countdown { display:flex; gap:0.75rem; margin-top:0.875rem; }
.eticket-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.625rem;
}
.eticket-countdown-num { font-size:1.4rem; font-weight:800; line-height:1; color:var(--primary-light); }
.eticket-countdown-label { font-size:0.58rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-faint); margin-top:0.2rem; }

.eticket-info { padding: 1rem 1.5rem; }
.eticket-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.eticket-info-row:last-child { border-bottom: none; }
.eticket-info-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.eticket-info-content { flex: 1; }
.eticket-info-label { font-size:0.65rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.06em; }
.eticket-info-value { font-size:0.875rem; font-weight:600; margin-top:0.1rem; }

.eticket-actions {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.eticket-actions .btn { flex: 1; min-width: 0; justify-content: center; font-size: 0.82rem; padding: 0.5rem 0.75rem; }

/* Countdown chips on my-tickets cards */
.ticket-countdown { display:flex; gap:0.5rem; align-items:center; font-size:0.75rem; color:var(--text-muted); margin-top:0.5rem; flex-wrap:wrap; }
.ticket-countdown-chip {
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 600;
}

/* ══ WEB APP STYLE — Page transitions & Bottom nav pill ═══════════════════ */

/* Page entrance animation */
@keyframes appViewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-view-enter {
  animation: appViewIn 0.22s cubic-bezier(0.2, 0, 0.1, 1) both;
}

/* Bottom nav: pill/capsule active indicator on icon */
.app-tab-icon {
  position: relative;
  width: 48px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: background 0.2s ease;
}
.app-tab-item {
  padding: 0.45rem 0.2rem 0.4rem;
  gap: 0.18rem;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}
.app-tab-item i {
  font-size: 1.2rem;
  transition: transform 0.18s ease, color 0.15s ease;
}
.app-tab-item.active .app-tab-icon {
  background: rgba(248, 113, 113, 0.15);
}
.app-tab-item.active i {
  color: var(--primary-light);
  transform: scale(1.1);
}
.app-tab-item.active span:last-child {
  color: var(--primary-light);
  font-weight: 700;
}

/* ==========================================================================
   Image Fallback / Placeholder Gradients
   ========================================================================== */

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

.rdm-img-fallback,
.rdm-cover-fallback,
.rdm-poster-fallback,
.rdm-card-fallback {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 40%, #450f0f 50%, #2d0a0a 60%, #1a0505 100%);
  background-size: 200% 200%;
  animation: rdm-shimmer 2.5s ease infinite;
}

.rdm-poster-fallback {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 50%, #1e1b4b 60%, #0f172a 100%);
  background-size: 200% 200%;
}

.rdm-card-fallback {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 40%, #450f0f 50%, #2d0a0a 60%, #1a0505 100%);
  background-size: 200% 200%;
}

/* Make sure images that fail to load don't show the broken-image icon */
img.rdm-img-hidden,
.rdm-img-fallback img,
.rdm-cover-fallback > img,
.rdm-poster-fallback > img,
.rdm-card-fallback > img {
  display: none !important;
}

/* Optional centered icon on large fallbacks */
.rdm-cover-fallback,
.rdm-poster-fallback {
  position: relative;
}
.rdm-cover-fallback::after,
.rdm-poster-fallback::after {
  content: '\f001'; /* fa-music */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-size: 2.5rem;
  pointer-events: none;
}
.rdm-poster-fallback::after {
  font-size: 1.8rem;
}

/* ── Site-wide scroll lock helper (used by App.scrollLock) ── */
body.is-scroll-locked {
  overflow: hidden !important;
  touch-action: none;
}
html.is-scroll-locked,
html:has(body.is-scroll-locked) {
  overflow: hidden !important;
}

/* ────────────────────────────────────────────────────── Disable modal/dialog motion (site-wide) */
.modal-overlay,
.modal,
.rdm-modal-overlay,
.rdm-modal,
.rdm-seatmap-overlay,
.fs-overlay,
.fs-wrap,
.rdm-fmenu,
.app-sidebar,
#sp-chat-fab,
#sp-chat-window,
.toast {
  transition: none !important;
  animation: none !important;
}

/* Keep overlays display-managed so they appear/disappear instantly without invisible blocking layers */
.modal-overlay { display: none; }
.modal-overlay.open { display: flex; }

.rdm-fmenu { display: none; }
.rdm-fmenu.open { display: flex; }
