/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors - Camp Flyer Theme (dark teal + burnt orange + cream) */
  --color-bg: #f5ead6;
  --color-surface: #ffffff;
  --color-surface-2: #efe4d0;
  --color-surface-offset: #f2e8d5;
  --color-divider: #ddd2be;
  --color-border: #d1c5ae;

  --color-primary: #1b3c3c;
  --color-primary-hover: #15302f;
  --color-primary-active: #0f2424;
  --color-primary-highlight: rgba(27, 60, 60, 0.12);
  --color-primary-light: #d0e8e8;

  --color-accent: #d97b2a;
  --color-accent-hover: #c26c22;
  --color-accent-highlight: rgba(217, 123, 42, 0.12);

  --color-text: #1a1a1a;
  --color-text-muted: #5c5347;
  --color-text-faint: #9a8e7f;
  --color-text-inverse: #f5ead6;

  --color-success: #1b3c3c;
  --color-error: #c0392b;
  --color-warning: #d97b2a;

  /* Typography */
  --font-display: 'Cabin', 'Helvetica Neue', sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-script: 'Satisfy', cursive;

  /* Shadows (light theme) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

/* ===== BODY ===== */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ===== VIEW TOGGLING ===== */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-divider);
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--transition-base);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding: var(--space-sm) 0;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--admin {
  color: var(--color-text-faint);
  font-size: 0.75rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #0f2424 0%, #1b3c3c 30%, #1f4e4e 60%, #2a5f5f 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45, 106, 79, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(82, 183, 136, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(27, 67, 50, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.hero-logo {
  height: 130px;
  object-fit: contain;
}

.hero-logo:first-child {
  height: 95px;
}

@media (max-width: 480px) {
  .hero-logos { gap: var(--space-md); }
  .hero-logo { width: 100px; height: 100px; }
}

.hero-scripture {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-overline {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-title-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #b7e4c7;
  display: block;
  margin-bottom: var(--space-sm);
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.1;
}

.hero-date {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-sm);
  font-weight: 300;
  letter-spacing: 2px;
}

.hero-venue {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-2xl);
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-deadline {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-white {
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-white:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-danger {
  background: var(--color-error);
  color: white;
}

.btn-danger:hover {
  background: #a93226;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== DETAILS GRID ===== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.detail-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.detail-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.detail-card-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.detail-card-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ===== ACTIVITIES SECTION ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.activity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.activity-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.activity-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.activity-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== NO PHONES BANNER ===== */
.no-phones-banner {
  background: linear-gradient(135deg, #fef3e2, #fff8f0);
  border: 2px solid #e67e22;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.no-phones-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.no-phones-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #c0392b;
  margin-bottom: var(--space-xs);
}

.no-phones-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.no-phones-text strong {
  color: #c0392b;
}

/* ===== WHAT TO BRING ===== */
.packing-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.packing-category {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.packing-category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary-light);
}

.packing-category ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.packing-category li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding-left: var(--space-lg);
  position: relative;
}

.packing-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ===== ITINERARY ===== */
.itinerary-placeholder {
  background: var(--color-surface);
  border: 2px dashed var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  color: var(--color-text-muted);
}

.itinerary-placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.itinerary-placeholder-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.itinerary-placeholder-sub {
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

/* ===== PERMISSION FORM ===== */
.permission-card {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.permission-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.permission-content {
  flex: 1;
}

.permission-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.permission-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ===== PHOTO GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty {
  background: var(--color-surface);
  border: 2px dashed var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  color: var(--color-text-muted);
}

.gallery-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

/* ===== LOCATION ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.location-info {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.location-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.location-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  background: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  font-weight: 300;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== REGISTRATION FORM ===== */
.register-section {
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-input::placeholder {
  color: var(--color-text-faint);
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* Camper entries */
.camper-entry {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
}

.camper-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.camper-entry-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.camper-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-faint);
  transition: all var(--transition-fast);
}

.camper-remove-btn:hover {
  background: rgba(192, 57, 43, 0.1);
  color: var(--color-error);
}

.year-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-top: var(--space-xs);
}

.year-badge.ineligible {
  background: rgba(192, 57, 43, 0.1);
  color: var(--color-error);
}

.add-camper-btn {
  width: 100%;
  padding: var(--space-md);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.add-camper-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.checkbox-text strong {
  color: var(--color-text);
}

/* Order Summary */
.order-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.order-summary-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary-light);
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.order-line.total {
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--color-divider);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.order-line .fee-label {
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Notices */
.deadline-notice {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-primary-highlight);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.permission-reminder {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-accent-highlight);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.permission-reminder a {
  text-decoration: underline;
  font-weight: 600;
}

.deadline-closed {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-surface);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  color: var(--color-error);
}

.deadline-closed h2 {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
}

/* ===== ADMIN ===== */
.admin-section {
  padding-top: calc(64px + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  min-height: 100vh;
}

.admin-login {
  max-width: 400px;
  margin: var(--space-4xl) auto;
  text-align: center;
}

.admin-login-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.admin-login .form-input {
  margin-bottom: var(--space-md);
}

.admin-dashboard {
  display: none;
}

.admin-dashboard.active {
  display: block;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

/* Breakdown cards */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.breakdown-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.breakdown-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary-light);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-surface-2);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row-label {
  color: var(--color-text-muted);
}

.breakdown-row-value {
  font-weight: 700;
  color: var(--color-text);
}

/* Filters */
.admin-filters {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.admin-filters .form-input,
.admin-filters .form-select {
  max-width: 200px;
}

.admin-search {
  flex: 1;
  min-width: 200px;
}

/* Table */
.admin-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  background: var(--color-surface-2);
  padding: var(--space-md);
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-divider);
}

.admin-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-surface-2);
  white-space: nowrap;
  color: var(--color-text);
}

.admin-table tr:hover td {
  background: var(--color-surface-offset);
}

.admin-table .actions {
  display: flex;
  gap: var(--space-xs);
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.checked-in {
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
}

.status-badge.not-checked-in {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

/* QR Scanner */
.qr-section {
  margin-bottom: var(--space-xl);
}

.qr-scanner-container {
  display: none;
  max-width: 400px;
  margin: var(--space-lg) auto;
}

.qr-scanner-container.active {
  display: block;
}

.qr-reader {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scan-result {
  display: none;
  margin-top: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.scan-result.success {
  display: block;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.scan-result.error {
  display: block;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

/* Photo Management (Admin) */
.photo-management {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.photo-management-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.photo-upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-upload-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.photo-upload-zone input[type="file"] {
  display: none;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

.admin-photo-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
}

.admin-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-photo-card .photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.admin-photo-card:hover .photo-delete-btn {
  opacity: 1;
}

/* ===== SUCCESS VIEW ===== */
.success-section {
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.success-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.success-campers {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.success-camper-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-divider);
}

.success-camper-row:last-child {
  border-bottom: none;
}

.success-qr {
  margin: var(--space-lg) auto;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  display: inline-block;
}

.success-reminder {
  background: var(--color-accent-highlight);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: var(--space-lg);
}

.success-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary-active);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: #b7e4c7;
  text-decoration: underline;
}

.footer-brand {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

/* ===== PAYMENT MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.modal-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-divider);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-lg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.modal-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-divider);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: 85vh;
    padding: var(--space-3xl) var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .breakdown-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .permission-card {
    flex-direction: column;
    text-align: center;
  }

  .admin-filters {
    flex-direction: column;
  }

  .admin-filters .form-input,
  .admin-filters .form-select {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .success-actions {
    flex-direction: column;
  }
}

/* ===== PAYMENT INSTRUCTIONS ===== */
.payment-instructions {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(45, 106, 79, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.payment-instructions p {
  margin: var(--space-xs) 0;
}

/* ===== ALLERGY FLAGS (Admin) ===== */
.allergy-severe {
  color: #c0392b;
  font-weight: 700;
}

.allergy-moderate {
  color: #e67e22;
  font-weight: 600;
}

/* ===== TEXTAREA IN FORMS ===== */
textarea.form-input {
  resize: vertical;
  min-height: 60px;
}
