:root {
  /* Spacing and radii */
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --border-radius: 30px;

  /* Colors */
  --brand-bg: #490025;
  --accent-color: #FFE5B2;
  --accent-2: #ffe9c7; /* outline */
  --highlight: #ffd27b;
  --text-primary: #ffffff;
  --muted-text: rgba(255, 255, 255, 0.9);

  /* Surfaces */
  --section-bg: rgba(255, 255, 255, 0.10);
  --input-bg: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* Base */
html, body {
  margin: 0;
  min-height: 100vh;
}

body {
  background: var(--brand-bg);
  color: var(--text-primary);
  line-height: 1.5;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
}

/* Headings & logo wordmark */
.logo, .title, .about-title, .thank-you, .schmingle-app-name {
  font-family: 'Lily Script One', cursive;
  color: var(--accent-color);
  text-shadow: 2px 2px 8px #3a0020;
}

/* Logo sizing inside form layouts */
.form-side .logo {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-md);
}

h1, h2, h3, h4 {
  color: var(--accent-color);
}

/* ===== SHARED CARD SYSTEM ===== */
/* Base card - used across all pages */
.card {
  background: var(--section-bg);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
}

/* Card with more rounded corners (legacy support) */
.card-rounded {
  border-radius: var(--border-radius);
}

/* Interactive card (for clickable items like events) */
.card-interactive {
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  padding: 1.2rem 1.4rem;
}

.card-interactive:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 229, 178, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-interactive.selected,
.card-interactive:focus-visible {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 229, 178, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Card for centered page layouts (about, confirmation) */
.card-centered {
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  padding: 3rem 2.5rem 2.5rem;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Legacy class support - map old classes to new system */
.glass-card, .form-section, .about-card, .confirmation-card, .store-links-text-view {
  background: var(--section-bg);
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
}

.page-card {
  background: var(--section-bg);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  padding: 3rem 2.5rem 2.5rem;
  backdrop-filter: blur(2px);
}

.form-card {
  /* Inherits .card base styles when used with .card class */
}

.event-card {
  /* Inherits .card and .card-interactive styles when used with those classes */
}

/* Card title styling */
.card h2, .card h3 {
  font-size: 1.3rem;
  margin: 0 0 1.2rem 0;
  color: var(--accent-color);
}

.card-centered h2 {
  font-family: 'Lily Script One', cursive;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 8px #3a0020;
  letter-spacing: 0.02em;
}

/* Spacing between consecutive sections */
.form-section + .form-section {
  margin-top: var(--spacing-lg);
}

/* Match spacing between last section and submit button */
.form-section + .submit-button {
  margin-top: var(--spacing-lg);
}

/* Forms */
label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.9;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  box-sizing: border-box;
  height: 2.75rem;
}

textarea {
  height: auto;
  min-height: 5rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 229, 178, 0.2);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-sm) center;
  background-size: 1em;
  padding-right: calc(var(--spacing-lg) + var(--spacing-sm));
}

option { background: var(--brand-bg); color: var(--text-primary); }

.submit-button {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--input-bg);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  height: 3.5rem;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.submit-button:hover { background: rgba(255, 229, 178, 0.15); }
.submit-button:disabled { opacity: 0.7; cursor: not-allowed; }

.submit-button .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 229, 178, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s linear infinite;
  margin-left: var(--spacing-md);
}
.submit-button:disabled .spinner { display: inline-block; }

/* Form layout helpers */
.form-group { 
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
}
.form-group:last-child { margin-bottom: 0; }

.form-card-compact .form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group > label {
  min-width: 130px;
  margin-bottom: 0;
  text-align: right;
  flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
}
.checkbox-group { display: grid; gap: var(--spacing-sm); margin-top: var(--spacing-sm); }
.checkbox-group label { display: flex; align-items: center; margin: 0; cursor: pointer; }
.checkbox-group input[type="checkbox"] { margin: 0 var(--spacing-sm) 0 0; }

/* Chip/segmented controls */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  flex: 1;
}
.form-group .chip-group {
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.05s ease-in-out;
  user-select: none;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto;
}
.chip:hover { background: rgba(255,255,255,0.12); }
.chip input { display: none; }
.chip[aria-checked="true"],
.chip:has(input:checked) {
  background: rgba(255, 229, 178, 0.15);
  border-color: var(--accent-color);
}

/* Small helper text next to labels */
.field-hint {
  color: var(--muted-text);
  font-size: 0.8rem;
  margin-left: 0.5rem;
  opacity: 0.85;
}
.chip:active { transform: translateY(1px); }

/* Single-column compact layout adjustments */
.form-grid { grid-template-columns: 1fr; gap: var(--spacing-sm); }

/* Compact variant for sections */
.form-section.is-compact { padding: calc(var(--spacing-md) + 0.25rem); }
.form-section.is-compact h2 { margin: 0 0 var(--spacing-sm); }
.form-section.is-compact p { font-size: 0.95rem; }

/* Accordion behavior for form sections */
.form-section h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.form-section h2::after {
  content: '';
  font-size: 1rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}
.form-section.collapsed h2::after { transform: rotate(-90deg); }
.form-section.collapsed .section-body { display: none; }

/* Distinguish permanent vs accordion sections */
.form-section.permanent h2 { cursor: default; }
.form-section.permanent h2::after { content: ''; }
.form-section.accordion.collapsed { cursor: pointer; }

/* Form width within form-side */
.form-side form { max-width: 90%; margin: 0 auto; }

/* Bokeh lights (shared) */
.bokeh-light {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bokeh-light .bokeh-core {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background: var(--highlight);
  opacity: 0.7;
  box-shadow: 0 0 0 0 transparent;
}
.bokeh-light .bokeh-outline {
  position: absolute;
  left: 0;
  top: 0;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 6px solid var(--accent-2);
  opacity: 0.35;
  box-sizing: border-box;
  pointer-events: none;
}
.bokeh-light.big { width: 200px; height: 200px; }
.bokeh-light.small { width: 100px; height: 100px; }

/* Landing page bokeh positioning */
@media (min-width: 700px) {
  .bokeh-light.light-1 {
    left: 15%;
    top: 20%;
  }
  .bokeh-light.light-2 {
    right: 20%;
    top: 30%;
  }
  .bokeh-light.light-3 {
    left: 25%;
    bottom: 25%;
  }
  .bokeh-light.light-4 {
    right: 15%;
    bottom: 20%;
  }
}

/* Hide bokeh lights on mobile */
@media (max-width: 699px) {
  .bokeh-light {
    display: none !important;
  }
}

/* Registration squiggles */
.squiggles {
  position: fixed;
  left: 50%;
  top: 0;
  width: 50vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.squiggle { stroke: var(--accent-color); stroke-width: 1.5; fill: none; opacity: 0.15; }
.morphing-path { animation: morphPath 8s linear infinite; }

/* Multiple squiggle variants with crossfade */
.squiggle-variant { opacity: 0; transition: opacity 800ms ease; }
.squiggle-variant.active { opacity: 1; }
.morphing-path.v2 { animation: morphPath2 9s linear infinite; }
.morphing-path.v3 { animation: morphPath3 10s linear infinite; }

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

@keyframes morphPath {
  0% { d: path("M100,200 C150,100 200,300 150,200 S250,100 300,200 S350,300 400,200"); }
  20% { d: path("M100,200 C200,50 150,250 250,150 S300,250 350,150 S400,250 400,200"); }
  40% { d: path("M100,200 C150,300 250,100 200,250 S300,150 250,300 S350,100 400,200"); }
  60% { d: path("M100,200 C200,100 150,300 250,200 S200,100 300,250 S350,150 400,200"); }
  80% { d: path("M100,200 C150,250 250,150 200,300 S300,100 250,250 S350,200 400,200"); }
  100% { d: path("M100,200 C150,100 200,300 150,200 S250,100 300,200 S350,300 400,200"); }
}

@keyframes morphPath2 {
  0% { d: path("M80,220 C140,120 220,320 160,220 S260,120 320,220 S360,320 420,220"); }
  25% { d: path("M90,210 C210,60 160,260 260,160 S320,260 360,160 S410,260 410,210"); }
  50% { d: path("M100,200 C140,300 260,100 210,260 S320,160 260,310 S360,110 410,210"); }
  75% { d: path("M90,210 C210,110 160,310 260,210 S210,110 310,260 S360,160 410,210"); }
  100% { d: path("M80,220 C140,120 220,320 160,220 S260,120 320,220 S360,320 420,220"); }
}

@keyframes morphPath3 {
  0% { d: path("M120,180 C170,80 220,280 170,180 S270,80 320,180 S370,280 420,180"); }
  20% { d: path("M130,190 C230,40 180,240 280,140 S330,240 380,140 S430,240 430,190"); }
  40% { d: path("M120,200 C170,300 270,120 220,260 S330,160 280,300 S370,120 420,200"); }
  60% { d: path("M130,190 C230,90 180,290 280,190 S230,90 330,240 S380,140 430,190"); }
  80% { d: path("M120,185 C170,235 270,145 220,295 S330,95 280,245 S370,195 420,185"); }
  100% { d: path("M120,180 C170,80 220,280 170,180 S270,80 320,180 S370,280 420,180"); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

/* Page-specific card content styling */
.page-card {
  position: relative;
  z-index: 10;
}

.page-title {
  font-family: 'Lily Script One', cursive;
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 8px #3a0020;
  letter-spacing: 0.02em;
}

.page-text {
  color: var(--accent-2);
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 2.2rem;
  line-height: 1.3;
}

.page-text.justified {
  text-align: justify;
}

.page-highlight {
  color: var(--highlight);
  font-weight: 600;
  opacity: 0.95;
}

.page-contact {
  color: var(--accent-2);
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 2.2rem;
  margin-top: 0;
  text-align: right;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  line-height: 1.3;
}

.page-contact a {
  color: #fff;
  text-decoration: underline;
}

.page-rights {
  color: var(--accent-2);
  font-size: 0.92rem;
  opacity: 0.68;
  letter-spacing: 0.01em;
  position: fixed;
  right: 2vw;
  bottom: 1.5vh;
  margin: 0;
  z-index: 20;
  background: rgba(73,0,37,0.85);
  padding: 0.38em 0.89em;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.09);
  text-align: right;
  line-height: 1.2;
}

/* Store buttons for confirmation/promo */
.store-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.store-link {
  display: block;
  width: 90px;
  height: auto;
  transition: transform 0.3s ease;
  background: none;
  border-radius: 12px;
}

.store-link:hover {
  transform: scale(1.07);
}

.store-link img {
  width: 100%;
  height: auto;
}

/* Confirmation page specific bokeh positioning */
@media (min-width: 700px) {
  .bokeh-light.light-top-left {
    left: 4vw;
    top: 3vh;
  }
  .bokeh-light.light-bottom-left {
    left: 21vw;
    bottom: 12vh;
  }
  .bokeh-light.light-top-right {
    right: 1vw;
    top: 18vh;
  }
}

@media (max-width: 699px) {
  .bokeh-light.light-top-left {
    left: 6vw;
    top: 8vh;
  }
  .bokeh-light.light-bottom-left {
    left: 1vw;
    bottom: 16vh;
  }
  .bokeh-light.light-top-right {
    right: 4vw;
    top: 22vh;
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Mobile: < 700px */
@media (max-width: 700px) {
  .content-wrapper {
    padding: var(--spacing-md) var(--spacing-md) 1rem;
  }
  
  a.logo, .logo {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.2rem 1.3rem;
  }
  
  .card-interactive {
    padding: 1rem 1.1rem;
  }
  
  .card h2 {
    font-size: 1.2rem;
  }
  
  .form-side { 
    padding: var(--spacing-md); 
  }
  
  .form-section { 
    padding: var(--spacing-md); 
  }
  
  .form-grid { 
    grid-template-columns: 1fr; 
    gap: var(--spacing-sm); 
  }
}

/* Small mobile: < 500px */
@media (max-width: 500px) {
  .card-centered, .page-card {
    padding: 2rem 0.7rem 1.5rem 0.7rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-text, .page-contact {
    font-size: 1rem;
    line-height: 1.25;
  }
  
  .schmingle-app-name {
    font-size: 1.1em;
  }
  
  .store-link {
    width: 70px;
  }
  
  .page-rights {
    font-size: 0.83rem;
    right: 2vw;
    bottom: 1vh;
    padding: 0.21em 0.52em;
    line-height: 1.13;
  }
}

/* ===== SHARED CONTAINERS & WRAPPERS ===== */
/* Content wrapper - used by most pages */
.content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-lg) 2rem;
}

/* Centered page container (for about, confirmation, etc.) */
.page-container {
  margin: 0;
  overflow: hidden;
  min-height: 100vh;
  background: var(--brand-bg);
  position: relative;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo styling - consistent across all pages */
a.logo, .logo {
  text-decoration: none;
  font-family: 'Lily Script One', cursive;
  font-size: 2.4rem;
  display: inline-block;
  letter-spacing: 0.04em;
  margin: 0 0 1rem 0;
  color: var(--accent-color);
  text-shadow: 2px 2px 8px #3a0020;
}

/* List container for items */
.list-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* Utilities */
.floating { animation: float 4s ease-in-out infinite; }
.container { display: flex; min-height: 100vh; }
.form-side { width: 50%; padding: var(--spacing-lg); overflow-y: auto; }

/* Responsive two-column grid for form sections */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}
.form-grid .full-width { grid-column: 1 / -1; }

/* Responsive */
@media (max-width: 1200px) {
  .squiggles { display: none; }
  .container { display: block; }
  .form-side { width: auto; max-width: 600px; margin: 0 auto; padding: var(--spacing-lg); }
  .logo { text-align: center; }
}

@media (max-width: 700px) {
  .form-side { padding: var(--spacing-md); }
  .form-section { padding: var(--spacing-md); }
  .form-grid { grid-template-columns: 1fr; gap: var(--spacing-sm); }
}

/* ===== LANDING PAGE STYLES ===== */
body.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

body.landing-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 229, 178, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 210, 123, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero .title {
  font-size: clamp(4rem, 15vw, 10rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.description {
  max-width: 650px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted-text);
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.description .line {
  display: block;
  margin-bottom: 0.4em;
}

.cta-button {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: rgba(109, 106, 102, 0.12);
  color: var(--accent-color);
  border: 1.5px solid rgba(158, 139, 103, 0.5);
  border-radius: 30px;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
}

.cta-button:hover {
  background: rgba(255, 229, 178, 0.2);
  border-color: rgba(255, 229, 178, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(0);
}

.site-footer {
  background: none;
  color: rgba(207, 173, 144, 0.85);
  font-size: 1rem;
  text-align: center;
  padding: 1.5rem 2rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  z-index: 200;
  position: relative;
}

.site-footer a {
  color: #ceb179;
  margin: 0 1rem;
  font-weight: 400;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.85;
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 1;
  color: var(--accent-color);
}

@media (max-width: 699px) {
  .hero {
    padding: 3rem 1.5rem 2rem;
  }
  .hero .title {
    margin-bottom: 1.2rem;
  }
  .description {
    margin-bottom: 2.5rem;
    line-height: 1.65;
  }
  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    width: 80%;
    max-width: 320px;
  }
  .site-footer {
    font-size: 0.9rem;
    padding: 1.2rem 1rem;
  }
  .site-footer a {
    margin: 0 0.6rem;
  }
  
  /* Form groups: stack labels above fields on mobile */
  .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .form-group > label {
    text-align: left;
    margin-bottom: 0.25rem;
  }
  
  /* Autosizing textareas in prompts on mobile */
  #prompts-container textarea {
    min-height: 4rem;
    height: auto;
    resize: vertical;
    overflow-y: auto;
  }
}

@media (max-width: 400px) {
  .site-footer {
    font-size: 0.85rem;
  }
  .site-footer a {
    display: inline-block;
    margin: 0.3rem 0.5rem;
  }
}

/* ===== INDEX0 / ALTERNATE LANDING STYLES ===== */
.index0-page body {
  margin: 0;
  overflow: hidden;
  height: 100vh;
}

.index0-page .title {
  position: fixed;
  top: 10%;
  left: 10%;
  font-size: 3rem;
  z-index: 100;
}

.store-links {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(50%);
  z-index: 100;
  text-align: center;
}

.store-links-text {
  color: #FFE5B2;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  font-family: 'Helvetica';
  font-weight: 600;
}

@media (min-width: 700px) {
  .store-links {
    left: 75%;
    bottom: 15%;
    transform: translateX(-50%);
  }
  .bokeh-light.light-diag1 {
    left: 28%;
    top: 65%;
  }
  .bokeh-light.light-diag2 {
    left: 12%;
    top: 48%;
  }
  .bokeh-light.light-diag3 {
    left: 52%;
    top: 32%;
  }
  .bokeh-light.light-diag4 {
    left: 70%;
    top: 15%;
  }
}

@media (max-width: 699px) {
  .store-links {
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
  }
}

/* ===== PRIVACY PAGE STYLES ===== */
.privacy-page body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  color: #999;
  background-color: #333;
}

/* ===== JOIN EVENT PAGE STYLES ===== */
.join-event-page body {
  padding-bottom: 120px;
}

.content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-lg) 2rem;
}

a.logo {
  text-decoration: none;
  font-family: 'Lily Script One', cursive;
  font-size: 2.4rem;
  display: inline-block;
  letter-spacing: 0.04em;
  margin: 0 0 1rem 0;
}

.welcome-title {
  font-family: 'Lily Script One', cursive;
  font-size: 2.4rem;
  margin: 0 0 1rem 0;
  color: var(--accent-color);
  text-shadow: 2px 2px 8px #3a0020;
  letter-spacing: 0.04em;
}

.welcome-section {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.welcome-section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
  color: var(--accent-color);
}

.welcome-section p {
  font-size: 1rem;
  color: var(--muted-text);
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

.region-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--section-bg);
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
}

.region-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.95;
}

.region-select {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--accent-color);
  border-radius: 20px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFE5B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
  min-width: 240px;
  transition: all 0.2s;
  margin-bottom: 1.2rem;
}

.region-select:hover {
  background: rgba(255, 229, 178, 0.1);
  border-color: var(--highlight);
}

.region-select:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(255, 229, 178, 0.25);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.event-card {
  /* When used with .card.card-interactive, provides event-specific layout */
  outline: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--section-bg);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  border: 2px solid var(--border-color);
  margin-bottom: 0;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 229, 178, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.event-card.selected {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 229, 178, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.event-card:focus-visible {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.event-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted-text);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-meta-icon {
  opacity: 0.8;
  font-style: normal;
}

.event-datetime {
  font-weight: 500;
  color: var(--text-primary);
}

.event-location {
  font-weight: 400;
  color: var(--muted-text);
}

.event-description {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  margin-top: 0.3rem;
}

.events-loading,
.events-error,
.events-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  color: var(--muted-text);
}

.events-error {
  color: var(--highlight);
}

.events-empty {
  padding: 3rem 1rem;
}

.events-empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

#bottom-register-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  padding: var(--spacing-md) 0;
  z-index: 1000;
  pointer-events: none;
  background: linear-gradient(to top, var(--brand-bg) 70%, transparent);
}

#bottom-register-btn {
  width: calc(100vw - var(--spacing-lg) - var(--spacing-lg));
  max-width: 480px;
  font-size: 1.05rem;
  padding: 1rem var(--spacing-md);
  height: auto;
  margin: 0;
  pointer-events: auto;
  font-weight: 600;
}

#bottom-register-bar[hidden] {
  display: none;
}

/* ===== REGISTER PAGE STYLES ===== */
.register-page body {
  padding-bottom: 2rem;
}

.form-card {
  /* Extends .card base styles */
}

.sms-optin {
  margin-top: 1rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sms-optin input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.sms-optin a {
  color: var(--accent-color);
  text-decoration: underline;
  opacity: 0.9;
}

.sms-optin a:hover {
  opacity: 1;
}

/* Page-specific responsive overrides */
@media (max-width: 700px) {
  .join-event-page body {
    padding-bottom: 100px;
  }
  
  .welcome-section h2 {
    font-size: 1.35rem;
  }
  
  .welcome-section p {
    font-size: 0.95rem;
  }
  
  .region-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .region-select {
    min-width: 200px;
    font-size: 0.95rem;
  }
  
  .event-title {
    font-size: 1.05rem;
  }
  
  .event-meta {
    font-size: 0.88rem;
  }
  
  .event-description {
    font-size: 0.88rem;
  }
  
  #bottom-register-bar {
    padding: var(--spacing-sm) 0 var(--spacing-md);
  }
  
  #bottom-register-btn {
    width: calc(100vw - var(--spacing-md) - var(--spacing-md));
    max-width: 320px;
    font-size: 1rem;
  }
  
  .sms-optin {
    padding: 0.85rem;
    font-size: 0.85rem;
  }
}


