@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0B0710;
  --bg-elevated: #170F1F;
  --bg-elevated-2: #1F1428;
  --accent-red: #FF3B5C;
  --accent-red-dim: #B9203C;
  --accent-gold: #FFB238;
  --accent-violet: #6B2FA0;
  --text: #F5F0EC;
  --text-muted: #B8A9C2;
  --border: rgba(245, 240, 236, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(11, 7, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand .display {
  font-size: 28px;
  color: var(--text);
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red);
  display: inline-block;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--text); }

.header-actions a.btn { margin-left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dim));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 59, 92, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-google {
  background: var(--bg-elevated-2);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 40px 80px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 30% 0%, rgba(107, 47, 160, 0.45), transparent 60%),
              radial-gradient(ellipse 60% 50% at 70% 0%, rgba(255, 59, 92, 0.25), transparent 60%),
              var(--bg);
}

.hero .eyebrow {
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  margin: 14px 0 18px;
}
.hero h1 .accent { color: var(--accent-red); }

.hero p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Marquee bulb divider */
.marquee-divider {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 48px 0 0;
}
.marquee-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  opacity: 0.85;
}
.marquee-divider span:nth-child(3n) { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }

/* ---------- Sections ---------- */
.section {
  padding: 56px 40px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  margin-bottom: 24px;
}
.section-title .bar {
  width: 4px;
  height: 22px;
  background: var(--accent-red);
  border-radius: 2px;
}

.card-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

/* ---------- Ticket-stub card (signature element) ---------- */
.ticket-card {
  position: relative;
  flex: 0 0 200px;
  background: var(--bg-elevated);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ticket-card:hover { transform: translateY(-4px); border-color: var(--accent-red); }

.ticket-card .thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-red-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.ticket-card .tear {
  position: relative;
  height: 0;
  border-top: 1px dashed var(--border);
  margin: 0 14px;
}
.ticket-card .tear::before,
.ticket-card .tear::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border-radius: 50%;
}
.ticket-card .tear::before { left: -22px; }
.ticket-card .tear::after { right: -22px; }

.ticket-card .info {
  padding: 14px;
}
.ticket-card .info .title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.ticket-card .info .price {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 700;
}

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(107, 47, 160, 0.35), transparent 60%), var(--bg);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
}

/* ticket notch on the auth card */
.auth-card::before,
.auth-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 50%;
  transform: translateY(-50%);
}
.auth-card::before { left: -12px; }
.auth-card::after { right: -12px; }

.auth-card h1 {
  font-size: 32px;
  margin-bottom: 6px;
}
.auth-card .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-red);
}
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.auth-submit {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent-red); font-weight: 700; }

.error-box {
  background: rgba(255, 59, 92, 0.1);
  border: 1px solid rgba(255, 59, 92, 0.3);
  color: #ffb3c0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}
.error-box ul { margin: 0; padding-left: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .site-header, .hero, .section { padding-left: 20px; padding-right: 20px; }
  .site-nav { display: none; }
}

/* ---------- User menu dropdown ---------- */
.user-menu {
  position: relative;
}
.user-menu-trigger {
  cursor: pointer;
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.user-menu.open .user-menu-panel {
  display: flex;
}
.user-menu-panel a,
.user-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: rgba(255, 59, 92, 0.1);
  color: var(--accent-red);
}
.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* ---------- Header: mobile nav toggle + overflow fix ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions a.btn {
  margin-left: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.chevron-icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  transition: transform 0.2s ease;
}
.user-menu.open .chevron-icon {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand .display { font-size: 22px; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    order: 10;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; }

  .header-actions .btn { padding: 9px 16px; font-size: 13px; }

  .user-menu-panel { right: 0; min-width: 180px; }
}
