/* ============================================
   DESIGN TOKENS — Sugar Sweet Prom 2026
   Dark glamour / disco / nightlife
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Font families */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-script: 'Great Vibes', cursive;
}

/* ============================================
   DARK MODE ONLY — No light mode
   ============================================ */
:root, [data-theme="dark"] {
  /* Surfaces */
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-2: #1e1e1e;
  --color-surface-offset: #1a1a1a;
  --color-divider: #222222;
  --color-border: #2a2a2a;

  /* Primary — hot pink / magenta */
  --color-primary: #e63462;
  --color-primary-hover: #d12a55;
  --color-primary-active: #b82249;
  --color-primary-highlight: rgba(230, 52, 98, 0.15);

  /* Gold accent */
  --color-gold: #c9a84c;
  --color-gold-hover: #b8973f;
  --color-gold-active: #a68636;
  --color-gold-highlight: rgba(201, 168, 76, 0.15);

  /* Text */
  --color-text: #f0ece6;
  --color-text-muted: #9a9590;
  --color-text-faint: #5a5550;
  --color-text-inverse: #0a0a0a;

  /* Semantic */
  --color-success: #4ade80;
  --color-success-hover: #22c55e;
  --color-success-highlight: rgba(74, 222, 128, 0.12);
  --color-error: #ef4444;
  --color-error-hover: #dc2626;
  --color-error-highlight: rgba(239, 68, 68, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) var(--space-4);
}

.nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-brand {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
  white-space: nowrap;
  cursor: pointer;
}
.nav-brand:hover { color: var(--color-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  cursor: pointer;
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav-link.active {
  color: var(--color-gold);
}
.nav-link--admin {
  font-size: var(--text-xs);
  opacity: 0.5;
}
.nav-link--admin:hover { opacity: 1; }

.theme-toggle-btn {
  display: none;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
  border-radius: 2px;
}
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding-top: calc(var(--space-16) + var(--space-8));
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-link {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 40%, rgba(230, 52, 98, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 30% 60%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 70% 70%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-default);
}

.hero-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-title .script-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-primary);
  font-size: 1.1em;
  display: block;
  line-height: 0.7;
  text-shadow: 0 0 40px rgba(230, 52, 98, 0.4);
}

.hero-title .block-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: -0.05em;
  text-shadow: 0 0 30px rgba(230, 52, 98, 0.2);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-inline: auto;
}

/* Hero stars / sparkles */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-stars .star {
  position: absolute;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
.hero-stars .star.large-sparkle {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 6px 1px rgba(201, 168, 76, 0.5);
  animation: sparkle-pulse 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1); }
}
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--color-gold);
  color: #0a0a0a;
}
.btn-gold:hover {
  background: var(--color-gold-hover);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  color: #0a0a0a;
}

.btn-navy {
  background: var(--color-primary);
  color: #fff;
}
.btn-navy:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 20px rgba(230, 52, 98, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-faint);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-success {
  background: var(--color-success);
  color: #0a0a0a;
}
.btn-success:hover {
  background: var(--color-success-hover);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
}

.btn-error {
  background: var(--color-error);
  color: #fff;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */
.section {
  padding: clamp(var(--space-8), 6vw, var(--space-24)) var(--space-4);
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
}

.container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============================================
   EVENT DETAILS
   ============================================ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.detail-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.detail-card:hover {
  border-color: var(--color-text-faint);
}

.detail-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-gold-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-gold);
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.detail-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.pricing-card {
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
  cursor: pointer;
}
.pricing-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(230, 52, 98, 0.15), 0 0 40px rgba(230, 52, 98, 0.06);
}
.pricing-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 52, 98, 0.25);
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.pricing-card .price-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pricing-card .price-desc {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-5) 0;
}

.faq-question {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
}
.faq-question:hover { color: var(--color-primary); }

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
  color: var(--color-text-muted);
}
.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 300ms cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 0;
}
.faq-item.is-open .faq-answer {
  max-height: 200px;
  padding-top: var(--space-3);
}

/* ============================================
   REGISTRATION FORM
   ============================================ */
.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .form-section { padding: var(--space-5); }
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.form-input::placeholder { color: var(--color-text-faint); }
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 52, 98, 0.15);
}
.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* Ticket Type Toggle */
.ticket-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.ticket-option {
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-interactive),
              background var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.ticket-option:hover {
  border-color: var(--color-gold);
}
.ticket-option.selected {
  border-color: var(--color-gold);
  background: var(--color-gold-highlight);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.ticket-option .ticket-type-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.ticket-option .ticket-type-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Cover fee checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  cursor: pointer;
  background: var(--color-surface-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.checkbox-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Order summary */
.order-summary {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}
.order-summary h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.order-line.total {
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

/* Person sections */
.person-section {
  margin-bottom: var(--space-6);
}
.person-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}

/* ============================================
   PAYMENT / CONFIRMATION
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-visible .modal-content {
  transform: scale(1);
}

@media (max-width: 480px) {
  .modal-content { padding: var(--space-5); }
}

/* Loading spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  margin: var(--space-6) auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--color-success-highlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-success);
}

.confirmation-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

/* QR code container: WHITE bg for scannability */
.qr-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: inline-block;
  margin: var(--space-4) auto;
}

.confirmation-details {
  text-align: left;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
.confirmation-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  color: var(--color-text);
}
.confirmation-details .detail-row .label {
  color: var(--color-text-muted);
}

.confirmation-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gold-highlight);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.admin-login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-card .stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}

/* Admin Search */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
}
.search-input::placeholder { color: var(--color-text-faint); }
.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 52, 98, 0.15);
}

/* Admin Table */
.table-wrapper {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.admin-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}
.admin-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
  color: var(--color-text);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--color-surface-2); }

.badge-checked {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge-checked.checked-in {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.badge-checked.not-checked {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--color-divider);
  text-align: center;
  background: var(--color-bg);
}
.footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
  margin-inline: auto;
}
.footer a {
  color: var(--color-gold);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.hidden { display: none !important; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gold);
  color: #0a0a0a;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-2);
}

/* View visibility */
.view { display: none; }
.view.active { display: block; }

/* QR Scanner overrides */
#qr-reader {
  border: none !important;
}
#qr-reader video {
  border-radius: var(--radius-lg);
}
#qr-reader__scan_region {
  background: var(--color-surface) !important;
}
#qr-reader__dashboard {
  background: transparent !important;
  padding: var(--space-3) !important;
}
#qr-reader__dashboard button {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-2) var(--space-4) !important;
  font-size: var(--text-sm) !important;
  cursor: pointer !important;
}
#qr-reader__dashboard select {
  background: var(--color-surface-2) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-2) !important;
  font-size: var(--text-sm) !important;
}
#qr-reader__dashboard span, #qr-reader__dashboard a {
  color: var(--color-text-muted) !important;
  font-size: var(--text-xs) !important;
}
#qr-reader__header_message {
  display: none !important;
}
#qr-reader__status_span {
  display: none !important;
}
