:root {
  --black: #000000;
  --dark1: #131313;
  --dark2: #161616;
  --dark3: #0d0d0d;
  --green: #00CC00;
  --darkgreen: #003300;
  --white: #FFFFFF;
  --muted: #888888;
  --border: #333333;
  --error: #ff4444;
  /* City-switchable theme accent — updated by carousel JS */
  --city-accent: #00CC00;
  --city-dark: #003300;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  background: var(--dark2);
  padding: 0 20px 40px;
  text-align: center;
  overflow: hidden;
}

.tagline {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  padding: 16px 0;
  margin-bottom: 16px;
  background: var(--dark1);
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* CITY CAROUSEL */
.city-carousel {
  position: relative;
  height: 320px;
  width: 100%;
  margin: 20px 0 8px;
  overflow: visible;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.carousel-item img {
  width: 400px;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.carousel-city-name {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--city-accent);
  margin-bottom: 24px;
  transition: color 450ms ease;
}

.header-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-gradient {
  background: linear-gradient(to bottom, var(--city-accent), var(--city-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 150ms;
}

.btn-gradient:hover {
  opacity: 0.9;
}

#user-greeting {
  color: var(--city-accent);
  font-weight: 600;
  font-size: 14px;
}

#btn-signout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 6px;
  margin-left: 12px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

/* REGISTRATION */
.section-registration {
  background: var(--black);
  padding: 48px 20px;
}

.registration-inner {
  max-width: 500px;
  margin: 0 auto;
}

.btn-register {
  width: 100%;
  background: var(--dark2);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 18px 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 200ms;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 3px 0 0 var(--city-accent);
}

.btn-register:hover {
  background: #1e1e1e;
  box-shadow: 0 3px 0 0 var(--city-accent), 0 0 12px rgba(var(--city-accent-rgb, 0,204,0), 0.15);
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid #222222;
  margin: 0;
}

/* QUEST RALLY */
.section-quest {
  background: var(--black);
  padding: 48px 20px;
}

.quest-inner {
  max-width: 900px;
  margin: 0 auto;
}

.quest-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.quest-content {
  text-align: center;
  padding: 16px 0;
}

.quest-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.btn-quest-muted {
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 8px;
  width: 320px;
  cursor: pointer;
  opacity: 0.7;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 3px 0 0 var(--border);
  display: block;
  margin: 0 auto;
}

.btn-quest-active {
  background: #1a1a1a;
  border: 1px solid var(--city-accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 8px;
  width: 320px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 3px 0 0 var(--city-accent);
  display: block;
  margin: 0 auto;
}

/* COLLAB */
.collab-inner {
  text-align: center;
}

.collab-tagline {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.collab-email {
  display: inline-block;
  color: var(--city-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}

.collab-email:hover {
  border-bottom-color: var(--city-accent);
}

/* FOOTER */
.footer {
  background: var(--dark1);
  border-top: 1px solid var(--city-accent);
  padding: 32px 20px;
  margin-top: auto;
  font-family: 'Ambit', 'Inter', system-ui, sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
}

.footer-pax {
  color: var(--city-accent);
}

.footer-bangalore {
  color: var(--white);
}

.footer-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.footer-right {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.footer-link {
  color: var(--muted);
}

.footer-contact {
  color: var(--city-accent);
}

.footer-dot {
  color: var(--muted);
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #222222;
  font-size: 11px;
  color: var(--muted);
}

/* MODAL */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

#modal-box {
  background: #1a1a1a;
  border: 1px solid #222222;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn 200ms ease;
  margin: 16px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#modal-context-msg {
  font-size: 12px;
  color: var(--city-accent);
  margin-bottom: 12px;
  min-height: 16px;
}

.modal-view {
  display: none;
}

.modal-view.active {
  display: block;
}

.modal-view h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* MODAL INPUTS */
.modal-view label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
  transition: border-color 150ms;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: var(--city-accent);
}

/* PHONE INPUT ROW */
.phone-input-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--dark3);
}

.phone-prefix {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
  display: flex;

  align-items: center;
}

.phone-prefix-select {
  padding: 12px 2px 12px 10px;
  color: var(--muted);
  font-size: 14px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  width: 62px;
}
.phone-prefix-select option {
  background: var(--dark1);
  color: var(--white);
}

.phone-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--white);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.phone-input-row:focus-within {
  border-color: var(--city-accent);
}

/* OTP BOXES */
.otp-boxes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.otp-box {
  width: 44px;
  height: 52px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.otp-box:focus {
  border-color: var(--city-accent);
}

/* BUTTON ROW */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-action {
  flex: 1;
  background: linear-gradient(to bottom, var(--city-accent), var(--city-dark));
  border: none;
  color: var(--white);
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-action:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ERROR */
.error-msg {
  color: var(--error);
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}

/* SWITCH LINK */
.switch-link {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.switch-link span {
  color: var(--city-accent);
  cursor: pointer;
  font-weight: 600;
}

/* MOVIE TICKETS ENTRY */
.tickets-book-link {
  text-decoration: none;
  text-align: center;
}

.tickets-my-link {
  display: block;
  text-align: center;
  color: var(--city-accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  text-decoration: none;
  cursor: pointer;
}

.tickets-my-link:hover {
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 600px) {
  .city-carousel {
    height: 150px;
  }

  .carousel-item img {
    width: 180px;
  }

  .header {
    padding: 0 24px 32px;
  }

  .tagline {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .registration-inner {
    max-width: 100%;
    padding: 0;
  }

  .section-registration {
    padding: 32px 24px;
  }

  .quest-inner {
    max-width: 100%;
    padding: 0;
  }

  .section-quest {
    padding: 32px 24px;
  }

  .quest-heading {
    text-align: center;
  }

  .btn-quest-muted,
  .btn-quest-active {
    width: 100%;
    max-width: 320px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .header-buttons {
    flex-wrap: wrap;
  }

  #modal-box {
    margin: 16px 24px;
  }
}
