:root {
  color-scheme: light;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: #ff6a00;
  --brand-strong: #d9480f;
  --brand-dark: #09121b;
  --accent: #0f172a;
  --accent-strong: #1e293b;
  --accent-soft: #e2e8f0;
  --accent-muted: #475569;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-strong: #e2e8f0;
  --border: #d1d5db;
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--surface-muted);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
}

.footer-links {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

a:hover,
a:focus {
  text-decoration: none;
}

::selection {
  background: rgba(255, 106, 0, 0.18);
  color: var(--brand-dark);
}

.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-content {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}

.site-logo {
  height: 2rem;
  width: auto;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-button:hover,
.site-button:focus-visible {
  background: var(--surface-muted);
}

.site-button-secondary {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-muted);
}

.site-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-input::placeholder {
  color: #94a3b8;
}

.site-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.16);
}

.nav-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link-strong {
  font-weight: 700;
  color: var(--text);
}

.text-muted {
  color: #64748b;
}

.text-xs-strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* preserve existing brand-button for any current calls */
.brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.brand-button:hover,
.brand-button:focus-visible {
  background: var(--brand-strong);
}

.text-emerald-300,
.text-emerald-400,
.text-emerald-700,
.text-emerald-800,
.text-emerald-900,
.text-emerald-800\/80,
.text-emerald-700\/80 {
  color: var(--accent) !important;
}

.text-emerald-800,
.text-emerald-900 {
  color: var(--accent-strong) !important;
}

.hover\:text-emerald-700:hover,
.hover\:text-emerald-700:focus-visible,
.hover\:text-emerald-800:hover,
.hover\:text-emerald-800:focus-visible {
  color: var(--accent-strong) !important;
}

.bg-emerald-50 {
  background: #eef2ff !important;
}

.bg-emerald-200 {
  background: #c7d2fe !important;
}

.bg-emerald-600 {
  background: var(--accent) !important;
}

.hover\:bg-emerald-700:hover,
.hover\:bg-emerald-700:focus-visible {
  background: var(--accent-strong) !important;
}

.border-emerald-200 {
  border-color: #cbd5e1 !important;
}

.border-emerald-600 {
  border-color: var(--accent) !important;
}

.focus\:ring-emerald-500:focus,
.focus\:ring-emerald-500:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.16) !important;
}


/* True success greens (not remapped to brand accent) */
.success-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.success-banner-icon {
  background: #059669;
  color: #fff;
}
.success-banner-title {
  color: #064e3b;
  font-weight: 600;
}
.success-banner-text {
  color: rgba(6, 78, 59, 0.85);
}
.success-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.success-soft-icon {
  background: #ecfdf5;
  color: #059669;
}
.success-link {
  color: #047857;
  font-weight: 600;
}
.success-link:hover,
.success-link:focus-visible {
  color: #065f46;
}
.success-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.success-btn-outline:hover,
.success-btn-outline:focus-visible {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }
}

/* Print: hide chrome / wallet / account / share */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #0f172a !important;
  }

  header,
  .site-header,
  footer,
  .site-footer {
    display: none !important;
  }

  .site-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-card {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* One ticket per printed page */
  #ticket-cards {
    display: block !important;
  }

  .ticket-card {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: page;
    page-break-after: always;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    margin: 0 0 0 0 !important;
  }

  .ticket-card:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .ticket-card img,
  .ticket-card canvas {
    max-width: 200px !important;
    height: auto !important;
  }

  .success-banner {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
