@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --primary: #F59E0B;
  --primary-hover: #D97706;
  --primary-light: rgba(245, 158, 11, 0.1);
  --primary-glow: rgba(245, 158, 11, 0.25);
  
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.demo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: #0F172A;
  min-width: 0;
}

.nav-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 3px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  font-family: inherit;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ---------- HERO & PILLS ---------- */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-wrapper {
  padding-top: 28px;
  padding-bottom: 60px;
}

/* ---------- EVENT HERO CARD ---------- */
.event-hero-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.event-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}

.event-hero-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-hero-media {
  position: relative;
  min-height: 280px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.event-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.5rem;
}

.meta-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- EVENT MAIN LAYOUT ---------- */
.event-layout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.event-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-ticket-col {
  position: sticky;
  top: 86px;
}

.event-panel-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.event-rules-card {
  background: #FFFBEB;
  border-radius: var(--radius-xl);
  border: 1px solid #FDE68A;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ticket-selection-box {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.ticket-tier-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color .2s;
}

.ticket-tier-row:hover {
  border-color: var(--border-hover);
}

/* ---------- FORM CONTROLS & CHECKOUT ---------- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all .2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.checkout-form-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-summary-col {
  position: sticky;
  top: 86px;
}

.checkout-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.checkout-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.attendee-item {
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-methods-grid {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.payment-method-label {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  background: #fff;
  transition: all .2s;
  user-select: none;
}

.payment-method-label.active,
.payment-method-label:has(input:checked) {
  border: 2px solid var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

/* ---------- QUANTITY STEPPER ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-subtle);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.qty-btn:hover {
  background: #E2E8F0;
}

.qty-btn:active {
  background: #CBD5E1;
}

.qty-input {
  width: 44px;
  height: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background: #fff;
  outline: none;
  color: var(--text-main);
}

/* ---------- TICKET PASS & DIGITAL PASS ---------- */
.digital-ticket-pass {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.pass-header {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}

.pass-notch-divider {
  position: relative;
  height: 1px;
  border-top: 1px dashed var(--border);
  background: transparent;
  margin: 0;
}

.pass-notch-left, .pass-notch-right {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-page);
  top: -11px;
  z-index: 2;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.08);
}
.pass-notch-left { left: -11px; }
.pass-notch-right { right: -11px; }

.pass-body {
  padding: 24px 20px;
}

.pass-qr-wrap {
  text-align: center;
  padding: 18px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.pass-qr-wrap img {
  display: inline-block;
  max-width: 180px;
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  text-align: left;
}

/* ---------- VERIFY PAGE ---------- */
.verify-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.verify-form {
  display: flex;
  gap: 10px;
}

/* ---------- LEGAL & CONTENT PAGE ---------- */
.legal-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.legal-article-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar {
  position: sticky;
  top: 86px;
}

.legal-sidebar-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ---------- FOOTER ---------- */
.demo-footer {
  margin-top: auto;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr 1.3fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--text-light);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FIRST & DESKTOP BREAKPOINTS)
   ========================================================================== */

/* Tablet (max-width: 960px) */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Tablet / Large Phone (max-width: 860px) */
@media (max-width: 860px) {
  .event-hero-grid {
    grid-template-columns: 1fr;
  }

  .event-hero-media {
    min-height: 220px;
    max-height: 320px;
    order: -1; /* Place image above text on mobile for impactful visual */
  }

  .event-hero-content {
    padding: 24px 20px;
  }

  .event-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-ticket-col {
    position: static;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-summary-col {
    position: static;
  }

  .legal-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-article-card {
    padding: 24px 20px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .page-wrapper {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .nav-links {
    display: none;
  }

  .nav-brand {
    font-size: 1.15rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-panel-card,
  .event-rules-card,
  .ticket-selection-box,
  .checkout-card,
  .legal-sidebar-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .event-hero-card {
    border-radius: var(--radius-lg);
  }

  /* Prevent iOS auto-zoom on form inputs by guaranteeing 16px minimum font */
  .form-control, .form-select, .qty-input {
    font-size: 16px;
  }
}

/* Small Phones (max-width: 580px) */
@media (max-width: 580px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .attendee-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }

  .payment-methods-grid {
    flex-direction: column;
    gap: 10px;
  }

  .verify-form {
    flex-direction: column;
  }

  .verify-form button {
    width: 100%;
    padding: 14px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .ticket-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 0.74rem;
  }
}

