/*
 * Sur o Suroor - Mystical Qawwali Ticketing System
 * Palette: Midnight Obsidian, Rich Indigo, Champagne Gold, Emerald Jade, Ruby Rose
 */

:root {
  --bg-primary: #060a12;
  --bg-secondary: #0a1120;
  --bg-card: rgba(12, 21, 38, 0.78);
  --bg-card-hover: rgba(16, 28, 52, 0.9);
  --bg-card-solid: #0d172a;
  --bg-glass: rgba(9, 16, 30, 0.7);
  --bg-input: rgba(6, 11, 20, 0.85);

  --gold-primary: #d4af37;
  --gold-light: #f5e29f;
  --gold-dark: #a17c1a;
  --gold-muted: rgba(212, 175, 55, 0.15);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e6b4 50%, #b88a1b 100%);
  --gold-glow: rgba(212, 175, 55, 0.22);

  --emerald-dark: #04241d;
  --emerald-medium: #064e3b;
  --emerald-bright: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.15);

  --ruby-bright: #f43f5e;
  --ruby-soft: rgba(244, 63, 94, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-gold: #f6e6b4;

  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-strong: rgba(212, 175, 55, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-serif: 'Cinzel', 'Georgia', serif;
  --font-urdu: 'Amiri', 'Jameel Noori Nastaleeq', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 78, 59, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(212, 175, 55, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 10% 65%, rgba(136, 19, 55, 0.1) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.025'%3E%3Cpath d='M40 0l10 30h30l-25 18 10 32-25-20-25 20 10-32-25-18h30z'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.55;
}

/* -----------------------------------------------------------------------------
 * Typography & Utilities
 * ----------------------------------------------------------------------------- */
.font-serif { font-family: var(--font-serif); }
.font-urdu { font-family: var(--font-urdu); }
.text-gold { color: var(--gold-light); }
.text-emerald { color: var(--emerald-bright); }
.text-muted { color: var(--text-muted); }

.arabesque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto;
  max-width: 480px;
}
.arabesque-divider::before,
.arabesque-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.arabesque-divider .ornament {
  color: var(--gold-primary);
  font-size: 13px;
  letter-spacing: 4px;
}

/* -----------------------------------------------------------------------------
 * Navigation Header (Responsive & Clean)
 * ----------------------------------------------------------------------------- */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  object-fit: contain;
  background: #081222;
  box-shadow: 0 0 14px var(--gold-glow);
  flex-shrink: 0;
}

.brand-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-urdu {
  font-family: var(--font-urdu);
  font-size: 13px;
  color: #c9b07a;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 38px;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
}

.nav-tab-btn.active {
  background: var(--gold-gradient);
  color: #060b14;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 15px var(--gold-glow);
}

.music-toggle-btn {
  background: rgba(4, 36, 29, 0.7);
  border: 1px solid var(--emerald-bright);
  color: #a7f3d0;
  padding: 7px 12px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.music-toggle-btn:hover {
  background: rgba(6, 78, 59, 0.9);
  box-shadow: 0 0 12px var(--emerald-glow);
}

.music-toggle-btn.playing {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  box-shadow: 0 0 14px var(--gold-glow);
}

.soundwave-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.soundwave-bars span {
  display: block;
  width: 2px;
  background-color: currentColor;
  border-radius: 1px;
}
.soundwave-bars.active span:nth-child(1) { height: 9px;  animation: bounce 0.6s infinite ease-in-out; }
.soundwave-bars.active span:nth-child(2) { height: 12px; animation: bounce 0.8s infinite ease-in-out 0.2s; }
.soundwave-bars.active span:nth-child(3) { height: 6px;  animation: bounce 0.7s infinite ease-in-out 0.4s; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* -----------------------------------------------------------------------------
 * Hero Section (Refined & Balanced)
 * ----------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 36px 16px 28px 16px;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.hero-logo-wrap {
  margin-bottom: 12px;
  display: inline-block;
}

.hero-brand-calligraphy {
  max-width: 280px;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.35));
}

.hero-urdu-title {
  font-family: var(--font-urdu);
  font-size: 38px;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 1px;
}

.hero-verse {
  font-style: italic;
  font-size: 15px;
  color: #cfbb90;
  max-width: 600px;
  margin: 12px auto;
  line-height: 1.6;
}
.hero-verse em {
  font-size: 13px;
  color: #a89a7f;
  display: block;
  margin-top: 4px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-badge {
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
}
.hero-badge i {
  color: var(--gold-primary);
  font-size: 12px;
}

/* -----------------------------------------------------------------------------
 * Layout & Main Wrapper
 * ----------------------------------------------------------------------------- */
.main-wrapper {
  max-width: 980px;
  margin: 0 auto 50px auto;
  padding: 0 16px;
}

.view-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.06);
}

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

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

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 21px;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.section-heading p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Form Section Header Dividers */
.form-section-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.form-section-title:first-of-type {
  margin-top: 0;
}

/* -----------------------------------------------------------------------------
 * Form Controls (Clean & Touch-friendly)
 * ----------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input,
.form-select {
  background: var(--bg-input);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  background: rgba(10, 18, 34, 0.95);
}

.form-helper {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.input-with-button {
  display: flex;
  gap: 8px;
  width: 100%;
}
.input-with-button .form-input {
  flex: 1;
  min-width: 0;
}

.btn-secondary {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background: var(--gold-primary);
  color: #060b14;
}

/* -----------------------------------------------------------------------------
 * Pass Summary Card (Moved Below Attendee Info)
 * ----------------------------------------------------------------------------- */
.pass-summary-card {
  background: radial-gradient(circle at top right, rgba(16, 29, 52, 0.8) 0%, rgba(9, 16, 30, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0 24px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pass-summary-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pass-info-meta {
  flex: 1;
  min-width: 260px;
}

.tier-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #060b14;
  margin-bottom: 6px;
}

.pass-summary-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 8px;
}

.pass-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.pass-features-chips span {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pass-features-chips span i {
  color: var(--emerald-bright);
  font-size: 10px;
}

.pass-price-box {
  text-align: right;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pass-price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pass-price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.original-price-strike {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
  opacity: 0.7;
  margin-right: 6px;
  font-weight: 600;
}

.pass-price-sub {
  font-size: 11px;
  color: var(--emerald-bright);
  font-weight: 600;
  margin-top: 2px;
}

/* Promo Code Box inside Pass Section */
.promo-code-container {
  margin-top: 16px;
  padding-top: 14px;
}

.referral-feedback-box {
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
 * Payment Instructions Card (Clean & Responsive)
 * ----------------------------------------------------------------------------- */
.payment-box {
  background: radial-gradient(circle at top right, rgba(4, 36, 29, 0.45) 0%, rgba(8, 15, 28, 0.85) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0 24px 0;
}

.payment-box-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-qr-frame {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--gold-glow);
  border: 2px solid var(--gold-primary);
  max-width: 100%;
  margin: 8px auto;
}

.payment-qr-frame img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.due-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--gold-light);
}

.payment-accounts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.account-pill {
  background: rgba(4, 9, 18, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 7px;
}

.official-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-bright);
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.account-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.account-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
  font-size: 12px;
}

.detail-value {
  color: #ffffff;
  font-weight: 600;
}

.account-number-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.mono-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  word-break: break-all;
}

.iban-text {
  letter-spacing: 0.5px;
}

.copy-pill-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.copy-pill-btn:hover {
  background: var(--gold-primary);
  color: #060b14;
}

/* -----------------------------------------------------------------------------
 * File Upload Zone (Receipt)
 * ----------------------------------------------------------------------------- */
.dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  background: rgba(6, 11, 20, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}
.dropzone i {
  font-size: 28px;
  color: var(--gold-primary);
  margin-bottom: 6px;
}
.dropzone-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-container {
  display: none;
  margin-top: 12px;
  position: relative;
  text-align: center;
}
.preview-image {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  object-fit: contain;
}

/* -----------------------------------------------------------------------------
 * Action Buttons
 * ----------------------------------------------------------------------------- */
.btn-primary {
  width: 100%;
  background: var(--gold-gradient);
  color: #060b14;
  border: none;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px var(--gold-glow);
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* -----------------------------------------------------------------------------
 * Pass Status Card & QR Code Display
 * ----------------------------------------------------------------------------- */
.pass-result-card {
  background: radial-gradient(circle at top, #122038 0%, #08111e 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.pass-status-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-approved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-bright);
  color: #6ee7b7;
}
.status-pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #fcd34d;
}
.status-declined {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--ruby-bright);
  color: #fda4af;
}

.pass-qr-frame {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 12px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}
.pass-qr-frame img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.pass-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.pass-meta-item .label {
  font-size: 10px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pass-meta-item .val {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

/* -----------------------------------------------------------------------------
 * Modals
 * ----------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0d172a;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close-btn:hover { color: #ffffff; }

/* -----------------------------------------------------------------------------
 * Site Footer
 * ----------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 30px 16px;
  border-top: 1px solid var(--border-gold);
  background: rgba(4, 8, 16, 0.95);
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  background: rgba(18, 30, 49, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}
.footer-instagram-link i {
  font-size: 16px;
  color: #f43f5e;
  transition: transform 0.25s ease;
}
.footer-instagram-link:hover {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.footer-instagram-link:hover i {
  color: var(--bg-primary);
  transform: scale(1.15);
}

.nav-instagram-link:hover {
  border-color: #f43f5e !important;
  color: #fda4af !important;
}

/* -----------------------------------------------------------------------------
 * Mobile Responsive Breakpoints
 * ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    padding: 26px 12px 20px 12px;
  }
  .hero-urdu-title {
    font-size: 32px;
  }
  .hero-title {
    font-size: 26px;
    letter-spacing: 1.5px;
  }
  .hero-verse {
    font-size: 14px;
  }
  .hero-brand-calligraphy {
    max-width: 220px;
  }
  
  .view-card {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pass-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pass-price-box {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pass-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-container {
    padding: 8px 10px;
    gap: 6px;
  }
  .brand-logo-img {
    width: 34px;
    height: 34px;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-urdu {
    font-size: 11px;
  }

  .nav-tab-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 36px;
  }
  .nav-tab-btn span.nav-text {
    font-size: 11px;
  }

  .music-toggle-btn {
    padding: 6px 8px;
    font-size: 11px;
    min-height: 36px;
  }
  .music-toggle-btn span.nav-text {
    display: none;
  }

  .main-wrapper {
    padding: 0 10px;
  }

  .view-card {
    padding: 16px 12px;
  }

  .input-with-button {
    flex-direction: column;
    gap: 8px;
  }
  .input-with-button .btn-secondary {
    width: 100%;
  }

  .account-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .account-number-copy {
    width: 100%;
    justify-content: space-between;
  }

  .hero-badges-row {
    gap: 6px;
  }
  .hero-badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  .pass-summary-card {
    padding: 14px 12px;
  }
  .payment-box {
    padding: 14px 12px;
  }
}
