@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b1f3a;
  --navy-2: #142c52;
  --gold: #c9a44c;
  --gold-light: #e4c77a;
  --cream: #f6f2e8;
  --card: #ffffff;
  --ink: #12203b;
  --muted: #67718a;
  --route: #8ea2c4;
  --danger: #b8433a;
  --success: #2f7d5c;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; }
button { font-family: var(--font-body); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.topbar { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(201,164,76,0.25); }
.brand { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: #fff; }
.brand span { color: var(--gold); }
.nav-link { font-size: 13px; color: #dbe3f2; text-decoration: none; font-weight: 500; }

.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; min-height: 220px; }
.hero.hidden { display: none; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(201,164,76,0.12), transparent 40%), radial-gradient(circle at 85% 60%, rgba(201,164,76,0.10), transparent 45%); pointer-events: none; }
.route-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; border-top: 2px dashed var(--route); opacity: 0.35; pointer-events: none; }
.hero-slide { display: none; padding: 48px 24px 56px; max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-slide.active { display: block; }
.hero-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; margin-bottom: 10px; }
.hero-title { font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
.hero-sub { color: #cbd6ec; font-size: 15px; margin: 0; }
.hero-dots { display: flex; justify-content: center; gap: 6px; padding-bottom: 16px; position: relative; z-index: 1; }
.hero-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,0.3); padding: 0; cursor: pointer; }
.hero-dots button.active { background: var(--gold); width: 20px; border-radius: 4px; }

.container { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
h1 { font-size: 26px; margin: 0 0 4px; }
.sub { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 13px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.chip { border: 1px solid #ddd4c0; background: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--ink); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ticket { background: var(--card); border-radius: var(--radius); display: flex; box-shadow: 0 2px 10px rgba(11,31,58,0.08); position: relative; overflow: hidden; }
.ticket-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ticket-stub { width: 92px; flex-shrink: 0; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; padding: 8px; }
.ticket-stub::before { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); }
.ticket-stub::after { content: ''; position: absolute; left: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); }
.ticket-perf { position: absolute; left: 92px; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(255,255,255,0.5); }
.ticket-stub .price { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--gold-light); text-align: center; }
.ticket-stub .price-label { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: #b9c6de; }
.ticket-category { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.ticket-main h3 { font-size: 16px; margin: 0; }
.ticket-main .desc { font-size: 12.5px; color: var(--muted); flex: 1; }
.ticket-stock { font-size: 11.5px; color: var(--muted); }
.ticket-stock.low { color: var(--danger); font-weight: 600; }

button, .btn-primary { background: var(--navy); color: #fff; border: none; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
button:hover, .btn-primary:hover { opacity: 0.9; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-link { background: none; color: var(--navy); text-decoration: underline; padding: 0; font-weight: 500; }
.small-btn { padding: 5px 10px; font-size: 12px; margin: 2px; }

.overlay { position: fixed; inset: 0; background: rgba(11,19,36,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.overlay.hidden { display: none; }
.modal { background: #fff; border-radius: var(--radius); padding: 24px; width: 100%; max-width: 440px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal .close { position: absolute; top: 12px; right: 12px; background: none; color: #999; font-size: 22px; padding: 0; }
.modal label { display: block; font-size: 12.5px; color: var(--muted); margin-top: 12px; font-weight: 600; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: var(--radius-sm); margin-top: 4px; font-size: 14px; font-family: inherit; }
.modal .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.modal .row input { width: 80px; }
.total-line { font-size: 18px; font-weight: 700; margin: 12px 0; color: var(--navy); font-family: var(--font-display); }
.modal .btn-primary { width: 100%; margin-top: 16px; padding: 12px; font-size: 15px; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.success-text { color: var(--success); font-size: 13px; margin-top: 8px; }
.hidden { display: none !important; }

.coupon-row { display: flex; gap: 6px; margin-top: 14px; }
.coupon-row input { flex: 1; }
.pay-methods { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pay-method { flex: 1; min-width: 100px; border: 1px solid #ddd; border-radius: var(--radius-sm); padding: 10px; text-align: center; font-size: 12.5px; font-weight: 600; cursor: pointer; background: #fff; }
.pay-method.active { border-color: var(--navy); background: #eef2f8; }
.upi-box { text-align: center; padding: 16px; background: #f7f8fa; border-radius: var(--radius-sm); margin-top: 12px; }
.upi-box img { width: 160px; height: 160px; object-fit: contain; margin: 8px 0; }
.upi-id { font-family: monospace; font-size: 15px; font-weight: 700; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 0; }

/* Admin */
.admin-nav { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-nav button { background: #e5e7eb; color: var(--ink); }
.admin-nav button.active { background: var(--navy); color: #fff; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 13px; vertical-align: top; }
th { background: #f0f2f5; }
.badge { padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-block; }
.badge.paid { background: #dcfce7; color: #166534; }
.badge.pending { background: #fef9c3; color: #854d0e; }
.badge.pending_verification { background: #ffedd5; color: #9a3412; }
.badge.failed, .badge.rejected { background: #fee2e2; color: #991b1b; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #fff; padding: 16px; border-radius: var(--radius); margin-bottom: 20px; }
.form-grid.full { grid-template-columns: 1fr; }
.form-grid label { font-size: 13px; color: var(--muted); font-weight: 600; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: var(--radius-sm); margin-top: 4px; font-family: inherit; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 16px; border-radius: var(--radius); }
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.stat-card .label { font-size: 12px; color: var(--muted); }
.login-box { max-width: 360px; margin: 80px auto; background: #fff; padding: 24px; border-radius: var(--radius); }
.section { margin-bottom: 32px; }
.section h2 { font-size: 16px; border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
textarea { width: 100%; min-height: 90px; font-family: monospace; font-size: 13px; }
.order-detail-box { background: #fff; padding: 16px; border-radius: var(--radius); margin-top: 10px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #eef2f8; color: var(--navy); font-weight: 600; }

/* Wallet + auth (v3) */
.wallet-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.wallet-card .balance { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold-light); }
.wallet-card .label { font-size: 12px; color: #cbd6ec; }
.topnav-links { display: flex; gap: 14px; align-items: center; }
.legal-content { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.search-row input { flex: 1; min-width: 160px; padding: 8px; border: 1px solid #ddd; border-radius: 8px; }

/* Auth forms - one field per line */
.order-detail-box label {
    display: block;
    width: 100%;
    margin-top: 14px;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}

.order-detail-box label:first-child {
    margin-top: 0;
}

.order-detail-box input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid #cfd5df;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}

