:root {
  --gold: #D4AF37;
  --dark: #0A0A0A;
  --cream: #FAF8F3;
  --accent: #8B7355;
  --shadow: rgba(212, 175, 55, 0.15);
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
  --sand: #E8D5B0;
  --dusk: #C4956A;
  --deep: #1C1410;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  padding-top: calc(60px + env(safe-area-inset-top));
  padding-bottom: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .app-container {
    max-width: 1080px;
  }

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

  .tech-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .graph-module {
    grid-column: 1 / -1;
  }
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-top));
  background: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  z-index: 100;
}

@media (min-width: 768px) {
  .nav-bar {
    padding-left: max(32px, calc((100% - 1080px) / 2 + 32px));
    padding-right: max(32px, calc((100% - 1080px) / 2 + 32px));
  }
}

.nav-brand {
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  /* align image */
  align-items: center;
}

.nav-brand-img {
  height: 34px;
  width: auto;
  /* Removed multiply mode as we now have a transparent PNG */
  filter: contrast(1.1);
  display: block;
}

.nav-brand:hover {
  transform: scale(1.1) rotate(10deg);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px 20px;
  border-radius: 24px;
  position: relative;
}

.nav-item:hover {
  background: rgba(212, 175, 55, 0.08);
}

.nav-item.active {
  background: var(--dark);
}

.nav-item.active:hover {
  background: #1a1a1a;
}

.nav-item-icon {
  padding: 10px 12px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: var(--dark);
}

.nav-item:hover .nav-icon {
  stroke: var(--gold);
}

.nav-item.active .nav-icon {
  stroke: var(--gold);
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.3px;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-label {
  color: var(--gold);
}

.nav-item.active .nav-label {
  color: var(--cream);
}

.favorite-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

@media (max-width: 767px) {
  .nav-brand {
    font-size: 22px;
  }

  .nav-items {
    gap: 2px;
  }

  .nav-item {
    padding: 8px 10px;
  }

  .nav-item-icon {
    padding: 8px 8px;
  }

  .nav-label {
    font-size: 12px;
  }
}

/* ============================================================
   HERO — Editorial luxury header (homepage only)
   ============================================================ */

.hero {
  position: relative;
  padding: 12px 28px 20px;
  overflow: visible;
}

/* Landing hero — compact centered layout (only on home view) */
.view-home .hero.hero-landing {
  padding: 16px 24px 12px;
}

.view-home .hero.hero-landing .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.view-home .hero.hero-landing .hero-title-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.view-home .hero.hero-landing .hero-rule {
  margin-bottom: 8px;
}

.view-home .hero.hero-landing .hero-title {
  font-size: 64px;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 6px;
}

.view-home .hero.hero-landing .hero-title-logo {
  height: 50px;
  margin-top: 10px;
}

.view-home .hero.hero-landing .hero-sub {
  font-size: 18px;
  max-width: 340px;
  margin-bottom: 10px;
}

.view-home .hero.hero-landing .hero-location-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

@media (min-width: 768px) {
  .view-home .hero.hero-landing .hero-title {
    font-size: 80px;
    letter-spacing: -4px;
  }
  .view-home .hero.hero-landing .hero-title-logo {
    height: 60px;
    margin-top: 12px;
  }
  .view-home .hero.hero-landing .hero-sub {
    font-size: 20px;
    max-width: 400px;
  }
}

@media (max-width: 380px) {
  .view-home .hero.hero-landing .hero-title {
    font-size: 52px;
    letter-spacing: -2px;
  }
  .view-home .hero.hero-landing .hero-title-logo {
    height: 38px;
  }
}

/* Scroll indicator — hidden (compact hero doesn't need it) */
.hero-scroll-hint {
  display: none;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--dusk), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* Warm Côte d'Azur gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #FAF8F3 0%, #F4EAD8 40%, #EDD9BC 75%, #E5CCA8 100%);
  z-index: 0;
}

/* Faint vignette at the bottom edge */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(250, 248, 243, 0.85));
}

/* Grain / linen texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero panel transitions */
.hero-title-panel {
  transition: opacity 0.2s ease, transform 0.35s ease;
}

/* Region picker — dark immersive full-screen overlay */
.hero-region-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-region-panel .region-panel-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #1C1410 0%, #2A1D14 40%, #1A1612 100%);
  z-index: 0;
}

.hero-region-panel .region-panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.region-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(20px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hero--picking .hero-title-panel {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.hero--picking .hero-region-panel {
  opacity: 1;
  pointer-events: auto;
}

/* Panel hero area */
.region-panel-hero {
  text-align: center;
  padding: 20px 0 28px;
}

.region-panel-pin {
  width: 36px;
  height: 36px;
  color: var(--dusk);
  margin-bottom: 14px;
  opacity: 0.8;
}

.region-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.region-panel-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  letter-spacing: 0.2px;
}

/* Close button */
.region-panel-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
  z-index: 2;
}
.region-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Staggered entrance for mobile panel content */
.region-panel-hero,
.region-panel-list .region-panel-option,
.region-panel-list .region-panel-group-label,
.region-panel-list .region-panel-divider {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s var(--transition);
}

.hero--picking .region-panel-hero {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero--picking .region-panel-list .region-panel-option:nth-child(1),
.hero--picking .region-panel-list .region-panel-group:nth-child(1),
.hero--picking .region-panel-list .region-panel-divider:nth-child(1),
.hero--picking .region-panel-list > :nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.hero--picking .region-panel-list > :nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.hero--picking .region-panel-list > :nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.hero--picking .region-panel-list > :nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.21s; }
.hero--picking .region-panel-list > :nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.hero--picking .region-panel-list > :nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.27s; }
.hero--picking .region-panel-list > :nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }

.hero--picking .region-panel-list .region-panel-group-label,
.hero--picking .region-panel-list .region-panel-divider {
  opacity: 1;
  transform: translateY(0);
}

/* Region backdrop */
.region-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(28, 20, 16, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.region-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop: constrained inline panel */
@media (min-width: 768px) {
  .hero-region-panel {
    position: absolute;
    inset: unset;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .hero-region-panel .region-panel-bg {
    display: none;
  }
  .region-panel-inner {
    padding: 0;
    height: auto;
    overflow: visible;
  }
  .region-panel-hero {
    display: none;
  }
  .hero--picking .hero-region-panel {
    transform: translateY(0);
  }
  .region-panel-close {
    display: none;
  }
  .region-backdrop {
    display: none;
  }
  /* Reset stagger animations on desktop */
  .region-panel-list .region-panel-option,
  .region-panel-list .region-panel-group-label,
  .region-panel-list .region-panel-divider {
    opacity: 1;
    transform: none;
    transition: color 0.18s ease, padding-left 0.18s ease;
  }
}

/* Region panel content — hidden eyebrow (replaced by panel hero) */
.region-panel-eyebrow {
  display: none;
}

.region-panel-list {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Chevron rotates when picking */
.region-chevron {
  transition: transform 0.3s ease;
}

.hero--picking .region-chevron {
  transform: rotate(180deg);
}

/* Thin gold rule */
.hero-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 12px;
  opacity: 0;
  animation: heroRuleGrow 1s ease-out 0.3s forwards;
}

/* Main title */
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 1000;
  color: var(--deep);
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 10px;
  opacity: 0;
  isolation: isolate;
  animation: heroFadeUp 0.9s var(--transition) 0.2s forwards;
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 52px;
  }
}

/* Soirée logo replacing the brand word — sits behind the rotating text */
.hero-title-logo {
  display: block;
  height: 44px;
  width: auto;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

@media (max-width: 380px) {
  .hero-title-logo {
    height: 36px;
  }
}

/* Rotating title text — layered above logo */
.title-rotating {
  display: inline-block;
  position: relative;
  overflow: visible;
  vertical-align: bottom;
  height: 1.05em;
  z-index: 2;
  /* clip sides + top but let descenders bleed through the bottom */
  clip-path: inset(0 0 -0.3em 0);
}

.title-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.45s var(--transition), opacity 0.3s ease;
  white-space: nowrap;
}

.title-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.title-word.exit {
  opacity: 0;
  transform: translateY(-100%);
}

/* Subtitle */
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--dusk);
  letter-spacing: 0.2px;
  line-height: 1.5;
  margin-bottom: 14px;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--transition) 0.35s forwards;
}

/* Region selector row */
.hero-location-row {
  opacity: 0;
  animation: heroFadeUp 0.9s var(--transition) 0.45s forwards;
}

/* Hero keyframes */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRuleGrow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 48px;
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy .header for other views (favorites, about) */
.header {
  padding: max(30px, env(safe-area-inset-top)) 25px 20px;
  position: relative;
}

.greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 400;
}

.location::before {
  content: '◆';
  font-size: 8px;
  color: var(--gold);
}

/* Region toggle pill (original) */
.region-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  font-family: 'Jost', sans-serif;
}

.region-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero--picking .region-toggle {
  opacity: 0;
  pointer-events: none;
}

.region-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.region-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.region-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero--picking .region-chevron {
  transform: rotate(180deg);
}

/* ── Region picker panel ─────────────────────────────────────── */

.region-panel-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.region-panel-list {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 260px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.region-panel-group {
  margin-bottom: 4px;
}

.region-panel-group-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dusk);
  opacity: 0.5;
  padding: 14px 0 6px;
}

.region-panel-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 149, 106, 0.12), transparent 70%);
  margin: 6px 0;
}

.region-panel-option {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  margin: 2px 0;
  cursor: pointer;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  transition: all 0.2s var(--transition);
}

.region-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.region-option-arrow {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--dusk);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s var(--transition);
}

.region-panel-option:hover,
.region-panel-option:active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 1);
}

.region-panel-option:hover .region-option-arrow,
.region-panel-option:active .region-option-arrow {
  opacity: 1;
  transform: translateX(0);
}

.region-panel-option.active {
  background: rgba(196, 149, 106, 0.12);
  color: var(--dusk);
}

.region-panel-option.active .region-option-arrow {
  content: '';
  opacity: 1;
  transform: translateX(0);
}

/* Auto-detect row */
.region-panel-option--auto {
  font-style: italic;
  color: var(--dusk);
}

.region-panel-option--auto:hover {
  background: rgba(196, 149, 106, 0.08);
}

.region-panel-auto-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--dusk);
  opacity: 0.7;
}

/* Desktop: lighter inline region panel */
@media (min-width: 768px) {
  .region-panel-eyebrow {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
  }
  .region-panel-list {
    max-height: 260px;
    flex: unset;
  }
  .region-panel-option {
    font-size: 26px;
    padding: 3px 0;
    margin: 0;
    border-radius: 0;
    color: var(--deep);
    background: none;
  }
  .region-panel-option--auto {
    font-size: 26px;
    padding: 3px 0 4px;
    color: var(--dusk);
  }
  .region-panel-option:hover {
    background: none;
    color: var(--dusk);
    padding-left: 5px;
  }
  .region-panel-option.active {
    background: none;
    color: var(--dusk);
  }
  .region-option-arrow {
    display: none;
  }
  .region-panel-option::after {
    content: '›';
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--dusk);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .region-panel-option:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  .region-panel-option.active::after {
    content: '✓';
    font-size: 13px;
    opacity: 1;
    transform: translateX(0);
  }
  .region-panel-group-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    letter-spacing: 3px;
    color: rgba(196, 149, 106, 0.55);
    padding: 10px 0 5px;
  }
  .region-panel-divider {
    background: linear-gradient(90deg, rgba(196, 149, 106, 0.22), transparent);
    margin: 6px 0;
  }
  .region-panel-group {
    margin-bottom: 2px;
  }
}



/* Coming Soon State */
.coming-soon-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.coming-soon-icon {
  font-size: 72px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.coming-soon-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.coming-soon-text {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 30px;
  max-width: 400px;
  line-height: 1.6;
}

.decorative-line {
  position: absolute;
  top: 120px;
  left: 25px;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  animation: lineGrow 1s ease-out 0.6s both;
}

@keyframes lineGrow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 40px;
    opacity: 0.4;
  }
}

/* Search */
.search-container {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top));
  z-index: 90;
  padding: 8px 24px 6px;
  background: linear-gradient(to bottom, var(--cream) 65%, rgba(250, 248, 243, 0));
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hide search/filters on home (gallery) view */
#discover-view.view-home .event-controls {
  display: none !important;
}

/* Hide editorial sections on non-home views */

.search-box {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 11px 44px 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.18);
  background: white;
}

.search-input::placeholder {
  color: var(--accent);
  opacity: 0.55;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--accent);
  pointer-events: none;
  opacity: 0.6;
}

.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.visible {
  display: flex;
}

/* Free Events Toggle - Premium Design */
.free-toggle-container {
  flex-shrink: 0;
}

.free-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.free-toggle-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
  border-radius: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active/Checked State */
.toggle-input:checked+.toggle-slider {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(16, 185, 129, 0.4),
    0 0 0 3px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.toggle-input:checked+.toggle-slider::before {
  transform: translateX(24px);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-input:checked+.toggle-slider .toggle-icon {
  opacity: 1;
  right: 28px;
}

/* Hover States */
.free-toggle-label:hover .toggle-slider {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.free-toggle-label:hover .toggle-input:checked+.toggle-slider {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 3px 12px rgba(16, 185, 129, 0.5),
    0 0 0 3px rgba(16, 185, 129, 0.15);
}

.free-toggle-label:hover .free-toggle-text {
  color: var(--gold);
}

/* Focus State for Accessibility */
.toggle-input:focus+.toggle-slider {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .free-toggle-text {
    font-size: 13px;
  }

  .toggle-switch {
    width: 48px;
    height: 26px;
  }

  .toggle-slider::before {
    height: 20px;
    width: 20px;
  }

  .toggle-input:checked+.toggle-slider::before {
    transform: translateX(22px);
  }
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 24px 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 28px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: rgba(28, 28, 30, 0.05);
  color: var(--accent);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.filter-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color, var(--accent));
  opacity: 0.35;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-chip.active {
  background: #1C1C1E;
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transform: scale(1.02);
}

.filter-chip.active::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--chip-color, var(--gold));
}

.filter-chip:hover:not(.active) {
  background: rgba(28, 28, 30, 0.10);
  border-color: rgba(0, 0, 0, 0.15);
  transform: scale(1.01);
}

.filter-chip:active:not(.active) {
  transform: scale(0.97);
}

/* Pop animation on selection */
@keyframes chipPop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1.02);
  }
}

.filter-chip-pop {
  animation: chipPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.filter-count {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.4;
  margin-left: -2px;
}

.filter-chip.active .filter-count {
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .filters {
    padding: 4px 28px 22px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .filter-chip {
    padding: 8px 14px;
    font-size: 12px;
    gap: 5px;
  }

  .filter-chip::before {
    width: 5px;
    height: 5px;
  }
}

/* Events */
.events {
  padding: 8px 24px 60px;
}

.event-card {
  background: #1C1C1E;
  border-radius: 36px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
  animation: cardAppear 0.7s var(--transition) both;
  border: 3px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.event-card:nth-child(1) {
  animation-delay: 0.4s;
}

.event-card:nth-child(2) {
  animation-delay: 0.5s;
}

.event-card:nth-child(3) {
  animation-delay: 0.6s;
}

.event-card:nth-child(n+4) {
  animation-delay: 0.7s;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.event-card.hidden {
  display: none;
}

.event-card-header {
  height: 120px;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #3a3a3a 0%, #555 100%);
}

/* Category gradients with unique textures */
.event-card[data-category="art"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(139, 69, 69, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(160, 104, 107, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #8B4545 0%, #A0686B 100%);
}

.event-card[data-category="art"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1561214115-f2f134cc4912?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="art"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1547826039-bfc35e0f1ea8?w=800&q=80');
  background-size: 250px 250px;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-card[data-category="music"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(74, 74, 74, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(107, 107, 107, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #4A4A4A 0%, #6B6B6B 100%);
}

.event-card[data-category="music"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1578301978162-7aae4d755744?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="music"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1550859492-d5da9d8e45f3?w=800&q=80');
  background-size: 280px 280px;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-card[data-category="culinary"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(139, 111, 71, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(168, 144, 110, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #8B6F47 0%, #A8906E 100%);
}

.event-card[data-category="culinary"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="culinary"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1557672172-298e090bd0f1?w=800&q=80');
  background-size: 300px 300px;
  background-position: center;
  opacity: 0.24;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-card[data-category="fashion"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(44, 44, 44, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(77, 77, 77, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #2C2C2C 0%, #4D4D4D 100%);
}

.event-card[data-category="fashion"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1604076913837-52ab5629fba9?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="fashion"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1533158326339-7f3cf2404354?w=800&q=80');
  background-size: 260px 260px;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-card[data-category="perks"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(107, 68, 35, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(139, 99, 71, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #6B4423 0%, #8B6347 100%);
}

.event-card[data-category="perks"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1541961017774-22349e4a1262?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.21;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="perks"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1576020799627-aeac74d58064?w=800&q=80');
  background-size: 280px 280px;
  background-position: center;
  opacity: 0.23;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-card[data-category="lifestyle"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(184, 130, 107, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(201, 161, 142, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #B8826B 0%, #C9A18E 100%);
}

.event-card[data-category="lifestyle"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.17;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="lifestyle"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?w=800&q=80');
  background-size: 270px 270px;
  background-position: center;
  opacity: 0.23;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-card[data-category="community"] .event-card-header {
  background:
    linear-gradient(165deg, rgba(107, 139, 123, 0.9) 0%, transparent 70%),
    linear-gradient(345deg, rgba(139, 168, 155, 0.9) 0%, transparent 70%),
    linear-gradient(135deg, #6B8B7B 0%, #8BA89B 100%);
}

.event-card[data-category="community"] .event-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1515405295579-ba7b45403062?w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.event-card[data-category="community"] .event-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1549887534-1541e9326642?w=800&q=80');
  background-size: 310px 310px;
  background-position: center;
  opacity: 0.19;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.capacity-indicator {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.capacity-indicator.low {
  background: rgba(231, 76, 60, 0.95);
  color: white;
  animation: capacity-pulse 2s ease-in-out infinite;
}

@keyframes capacity-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
  }
}

.capacity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.favorite-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.favorite-btn:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.6);
}

.favorite-btn.favorited {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  transition: all 0.3s ease;
}

.favorite-btn.favorited svg {
  fill: var(--gold);
  stroke: var(--gold);
}

.favorite-btn.fav-pulse {
  animation: favPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes favPulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

/* Event name — positioned in header, right-aligned */
.event-name {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-align: right;
  line-height: 1.2;
  z-index: 5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 65%;
}

/* Overlapping label tab */
.event-card-label {
  background: #1C1C1E;
  padding: 14px 20px;
  margin-top: -10px;
  position: relative;
  z-index: 6;
  border-radius: 0 24px 0 0;
  align-self: flex-start;
  max-width: 75%;
}

.event-label-title {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-label-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* Dark body spacer */
.event-card-body {
  flex: 1;
  min-height: 20px;
}

/* Footer stats */
.event-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 24px 20px;
}

.event-footer-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.event-footer-big {
  font-family: 'Jost', sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
}

.event-footer-small {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.event-footer-right {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: right;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile card scaling */
@media (max-width: 480px) {
  .event-name {
    font-size: 15px;
  }

  .event-card-label {
    padding: 10px 16px;
  }

  .event-label-title {
    font-size: 13px;
  }

  .event-label-subtitle {
    font-size: 11px;
  }

  .event-card-footer {
    padding: 0 18px 16px;
  }

  .event-footer-big {
    font-size: 22px;
  }

  .event-footer-small {
    font-size: 12px;
  }

  .event-footer-right {
    font-size: 12px;
  }
}

/* ============================================================
   PREMIUM EVENT DETAIL MODAL — Bottom Sheet Design
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.modal-overlay.active {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: all;
}

/* The sheet itself */
.modal {
  background: #F5F0E8;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.35);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal::-webkit-scrollbar {
  display: none;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

/* Desktop: centered card */
@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .modal {
    border-radius: 28px;
    max-height: 88dvh;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.35s ease;
  }

  .modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Drag handle */
.modal-handle {
  width: 36px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .modal-handle {
    display: none;
  }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s ease;
  color: white;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: rotate(90deg) scale(1.05);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2.5;
}

/* ---- Hero Image ---- */
.modal-hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .modal-hero {
    height: 300px;
    border-radius: 28px 28px 0 0;
  }
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.modal-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.modal-overlay.active .modal-hero-bg {
  transform: scale(1.04);
}

/* Gradient overlays on hero */
.modal-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 8, 5, 0.88) 0%, rgba(10, 8, 5, 0.3) 45%, transparent 75%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 30%);
  pointer-events: none;
}

/* Category badge on hero */
.modal-hero-category {
  position: absolute;
  top: 56px;
  left: 20px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 20px;
}

/* Title block on hero */
.modal-hero-title-block {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.modal-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin: 0 0 8px;
}

@media (min-width: 600px) {
  .modal-hero-title {
    font-size: 34px;
  }
}

/* Source badge */
.modal-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.2px;
}

.modal-source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
  flex-shrink: 0;
}

/* ---- Quick Actions Bar ---- */
.modal-actions-bar {
  display: flex;
  gap: 10px;
  padding: 16px 20px 0;
  align-items: center;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 40px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.modal-action-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--accent);
  transition: stroke 0.2s ease;
}

.modal-action-btn:hover {
  background: var(--dark);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.modal-action-btn:hover svg {
  stroke: white;
}

.modal-action-btn:active {
  transform: scale(0.96);
}

.modal-action-btn.favorited {
  background: #FFF5E0;
  border-color: rgba(212, 175, 55, 0.3);
  color: #B8860B;
}

.modal-action-btn.favorited svg {
  stroke: #D4AF37;
  fill: #D4AF37;
}

.modal-action-btn.favorited:hover {
  background: #D4AF37;
  color: white;
  border-color: transparent;
}

.modal-action-btn.favorited:hover svg {
  stroke: white;
  fill: white;
}

/* ---- Info Pills ---- */
.modal-info-pills {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
  flex-wrap: wrap;
}

.modal-info-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  min-width: 0;
  flex-shrink: 1;
}

.modal-info-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--gold);
  stroke-width: 2;
}

.modal-pill-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-pill-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}

.modal-pill-value {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-pill-sub {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Free badge pill */
.modal-free-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #F0F9E8 0%, #E8F5E0 100%);
  border: 1.5px solid rgba(76, 175, 80, 0.2);
  border-radius: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2E7D32;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 4px rgba(76, 175, 80, 0.1);
  flex-shrink: 0;
}

.modal-free-pill::before {
  content: '✦';
  font-size: 9px;
  color: #4CAF50;
}

/* ---- Body Content ---- */
.modal-body-content {
  padding: 20px 20px 0;
}

.modal-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 10px;
  display: block;
}

.modal-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--deep);
  margin: 0;
}

/* ---- Highlights ---- */
.modal-highlights-section {
  padding: 20px 20px 0;
  margin-top: 4px;
}

.modal-highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: white;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.modal-highlight-item:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.1);
  transform: translateX(2px);
}

.modal-highlight-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #C4956A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.modal-highlight-check svg {
  width: 11px;
  height: 11px;
  stroke: white;
  stroke-width: 2.5;
}

.modal-highlight-text {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.45;
  flex: 1;
}

/* ---- CTA Section ---- */
.modal-cta-section {
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.modal-cta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  margin-bottom: 16px;
}

.modal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 28px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.modal-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #111;
}

.modal-cta-btn:active {
  transform: scale(0.98);
}

.modal-cta-btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.modal-cta-btn.rsvp-btn {
  background: linear-gradient(135deg, var(--deep) 0%, #2C1810 100%);
}

.modal-cta-btn.rsvp-btn:hover {
  background: linear-gradient(135deg, #1C1410 0%, #3C2820 100%);
}

/* Shared btn classes kept for compatibility */
.btn {
  padding: 18px 28px;
  border-radius: 14px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-block {
  flex: 1;
  width: 100%;
}

.btn-icon {
  width: 54px;
  height: 54px;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
}

.btn-primary {
  background: var(--dark);
  color: white;
  box-shadow: 0 4px 12px rgba(10, 10, 10, 0.15);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.25);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  background: white;
  color: var(--dark);
  border: 1px solid rgba(10, 10, 10, 0.12);
}

.btn-secondary:hover {
  background: var(--cream);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Legacy modal meta (kept for safety) */
.modal-image {
  display: none;
}

.modal-content {
  display: none;
}

.modal-meta-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(10, 10, 10, 0.06);
}

.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

.meta-sublabel {
  font-size: 12px;
  color: var(--accent);
  margin-top: 2px;
}

.modal-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.6), transparent);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 40px;
  color: var(--accent);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--cream);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

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

/* Skeleton Loader — matches dark event card */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: #1C1C1E;
  border-radius: 36px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  animation: cardAppear 0.5s ease both;
}

.skeleton-card:nth-child(1) {
  animation-delay: 0s;
}

.skeleton-card:nth-child(2) {
  animation-delay: 0.1s;
}

.skeleton-card:nth-child(3) {
  animation-delay: 0.2s;
}

.skeleton-header {
  height: 120px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-label {
  padding: 14px 20px;
  margin-top: -10px;
  position: relative;
  z-index: 6;
  border-radius: 0 24px 0 0;
  align-self: flex-start;
  max-width: 55%;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 6px;
}

.skeleton-line.short {
  width: 45%;
}

.skeleton-line.medium {
  width: 65%;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 20px;
}

.skeleton-footer .skeleton-line {
  margin-bottom: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  margin-bottom: 20px;
  color: var(--gold);
  opacity: 0.35;
}

.empty-state-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 10px;
}

.empty-state-text {
  color: var(--accent);
  font-size: 14px;
}

.empty-state-cta {
  margin-top: 20px;
}

/* Scroll behavior */
.app-container {
  scrollbar-width: none;
}

.app-container::-webkit-scrollbar {
  display: none;
}

.modal {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  max-width: 90%;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* View transitions */
#discover-view,
#favorites-view,
#about-view {
  transition: opacity 0.3s ease;
}

.view-fade-out {
  opacity: 0 !important;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles */
button:focus-visible,
.filter-chip:focus-visible,
.event-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ================================================
   About Page — Premium Redesign
   Consistent with discover/favorites hero style.
   Apple/Airbnb-level typography & layout.
   ================================================ */

/* ── Live Stats Row ───────────────────────────── */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 24px 0;
}

.about-stat-card {
  background: #1C1C1E;
  border-radius: 18px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 2px solid rgba(255,255,255,0.06);
  animation: cardAppear 0.7s var(--transition) both;
}

.about-stat-card:nth-child(1) { animation-delay: 0.15s; }
.about-stat-card:nth-child(2) { animation-delay: 0.25s; }
.about-stat-card:nth-child(3) { animation-delay: 0.35s; }

.about-stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: white;
  line-height: 1;
  letter-spacing: -0.5px;
}

.about-stat-lbl {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.2px;
}

/* ── Content Flow ─────────────────────────────── */
.about-flow {
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Generic Section ──────────────────────────── */
.about-section {
  padding: 36px 0;
  border-bottom: 1px solid rgba(28, 20, 16, 0.06);
}

.about-section:last-child {
  border-bottom: none;
}

.about-overline {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.about-overline--light {
  color: rgba(255,255,255,0.35);
}

.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.about-heading em {
  font-style: italic;
  color: var(--accent);
}

.about-heading--light {
  color: white;
}

.about-heading--light em {
  color: var(--sand);
}

.about-body {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(28, 20, 16, 0.55);
}

/* ── Process Row (horizontal scroll on mobile) ── */
.about-process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-process-card {
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid rgba(28,20,16,0.07);
  transition: transform 0.3s var(--transition), box-shadow 0.3s ease;
}

.about-process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(28,20,16,0.08);
}

.about-process-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 14px;
}

.about-process-title {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}

.about-process-desc {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(28, 20, 16, 0.48);
}

/* ── Architecture Section ─────────────────────── */
.about-arch-section {
  padding-bottom: 0;
}

.about-arch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 0;
}

.about-arch-header-left .about-overline {
  margin-bottom: 6px;
}

.about-arch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-arch-tag {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: rgba(28, 20, 16, 0.4);
  background: rgba(28, 20, 16, 0.05);
  border-radius: 4px;
  padding: 2px 7px;
}

.about-arch-status {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(28, 20, 16, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
}

.about-arch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  display: inline-block;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.about-arch-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(139, 115, 85, 0.08);
  border-radius: 20px;
  padding: 8px 14px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.about-arch-toggle-btn:hover {
  background: rgba(139, 115, 85, 0.14);
}

.about-arch-toggle-label {
  display: inline;
}

.tech-chevron {
  transition: transform 0.25s var(--transition);
}

/* ── Subscribe Section ────────────────────────── */
.about-subscribe-section {
  background: transparent;
}

/* ── GitHub CTA Section — dark card ──────────── */
.about-gh-section {
  background: #1C1C1E;
  border-radius: 24px;
  padding: 44px 28px;
  border: none;
  margin-top: 16px;
  text-align: center;
}

.about-gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--deep);
  background: white;
  border-radius: 24px;
  padding: 11px 22px;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.about-gh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* ── Subscription Form ────────────────────────── */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscribe-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subscribe-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(28, 20, 16, 0.35);
}

.subscribe-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(28, 20, 16, 0.22);
}

.subscribe-input,
.subscribe-select {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--deep);
  background: white;
  border: 1.5px solid rgba(28, 20, 16, 0.09);
  border-radius: 12px;
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.subscribe-input::placeholder {
  color: rgba(28, 20, 16, 0.2);
}

.subscribe-input:focus,
.subscribe-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.subscribe-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23B0A090' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Chips — match main filter chips */
.subscribe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subscribe-chip {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(28, 28, 30, 0.04);
  border: 1.5px solid rgba(28, 28, 30, 0.08);
  border-radius: 20px;
  padding: 7px 15px;
  cursor: pointer;
  transition: all 0.25s var(--transition);
  user-select: none;
}

.subscribe-chip:hover {
  background: rgba(28, 28, 30, 0.08);
  border-color: rgba(28, 28, 30, 0.14);
}

.subscribe-chip.active {
  background: #1C1C1E;
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
}

/* Submit Button */
.subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  background: #1C1C1E;
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  letter-spacing: 0.2px;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

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

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

/* Success State */
.subscribe-success {
  text-align: center;
  padding: 20px 0;
}

.subscribe-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1C1C1E;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
  font-weight: 600;
  animation: successPop 0.4s var(--transition);
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.subscribe-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 6px;
}

.subscribe-success-text {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(28, 20, 16, 0.45);
  margin: 0 0 16px;
}

.subscribe-again-btn {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent, #8B7355);
  background: none;
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscribe-again-btn:hover {
  background: rgba(139, 115, 85, 0.06);
}

/* ── About Mobile ─────────────────────────────── */
@media (max-width: 600px) {
  .about-stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 16px 0; }
  .about-stat-val { font-size: 22px; }
  .about-stat-lbl { font-size: 10px; }
  .about-flow { padding: 24px 16px 36px; }
  .about-heading { font-size: 26px; }
  .about-process-row { grid-template-columns: 1fr; gap: 10px; }
  .about-process-card { padding: 20px 18px; }
  .about-arch-toggle-label { display: none; }
  .about-gh-section { padding: 36px 20px; border-radius: 20px; }
}


/* ---- Tech Dashboard ---- */

.tech-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tech-toggle {
  cursor: pointer;
  margin-bottom: 0;
}

.tech-chevron {
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.version-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  margin-left: 8px;
  font-weight: normal;
}

.status-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
  animation: tech-pulse 2s infinite;
}

@keyframes tech-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.tech-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.tech-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.graph-module {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  background: #080d18;
  border-color: #1a2035;
}

@media (max-width: 480px) {
  .graph-module {
    min-height: 280px;
  }
}

.module-header {
  padding: 8px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}

.graph-module .module-header {
  color: rgba(212, 175, 55, 0.70);
  background: #0c1220;
  border-bottom-color: #1a2035;
}

.module-id {
  color: rgba(0, 0, 0, 0.2);
}

.graph-wrapper-refined {
  position: relative;
  flex: 1;
  background: #080d18;
  border-radius: 0 0 12px 12px;
}

.graph-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 20px;
}

.g-stat {
  display: flex;
  flex-direction: column;
}

.g-val {
  font-size: 20px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.g-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.5px;
}

.tech-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.specs-list {
  padding: 14px 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-key {
  color: var(--accent);
}

.spec-val {
  font-family: ui-monospace, monospace;
  font-weight: 500;
  color: var(--deep);
}

.tech-log-refined {
  height: 140px;
  overflow-y: hidden;
  padding: 12px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fafafa;
}

.tech-log-entry {
  display: flex;
  gap: 8px;
}

.tech-log-ts {
  color: #ccc;
}

.tech-log-msg.success {
  color: #4CAF50;
}

.tech-log-msg.info {
  color: #777;
}

.tech-legend-refined {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #1a2035;
  background: #0c1220;
}

.tech-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Traffic module — dark card */
.traffic-module {
  background: #0e1525;
  border-color: #1a2035;
}

.traffic-module .module-header {
  background: #0c1220;
  border-bottom-color: #1a2035;
  color: rgba(255, 255, 255, 0.45);
}

.traffic-module .module-id {
  color: rgba(255, 255, 255, 0.22);
}


#network-graph {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   VALUE LINE — transition between hero and content
   ============================================================ */

.value-line {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4A3C32;
  text-align: center;
  padding: 16px 24px;
  margin: 0;
  background: transparent;
  position: relative;
}

.value-line-num {
  font-weight: 600;
  color: var(--dusk);
}

/* Hide on non-home views */
#discover-view:not(.view-home) .value-line {
  display: none;
}

/* ============================================================
   EDITORIAL HEADINGS
   ============================================================ */

.editorial-overline {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 8px;
}

.editorial-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--deep);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0;
}

.editorial-heading em {
  font-style: italic;
  color: var(--dusk);
}

@media (min-width: 768px) {
  .editorial-heading {
    font-size: 42px;
    letter-spacing: -1px;
  }
}

/* ============================================================
   CATEGORY DISCOVERY GRID (home/All view)
   ============================================================ */

/* ── Category Galleries ── */
.category-galleries {
  padding: 16px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-gallery-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--dusk);
  margin: 3px 0 0;
  line-height: 1.4;
  letter-spacing: 0.2px;
  opacity: 0.8;
}

.cat-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 12px;
  border-bottom: 1px solid rgba(196, 149, 106, 0.15);
  margin: 0 24px 0;
  padding-left: 0;
  padding-right: 0;
}

.cat-gallery-overline {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dusk);
  display: block;
  margin-bottom: 4px;
  opacity: 0.7;
}

.cat-gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.5px;
  line-height: 1.0;
}

.cat-gallery-see-all {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dusk);
  background: none;
  border: 1px solid rgba(196, 149, 106, 0.3);
  border-radius: 100px;
  cursor: pointer;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s var(--transition);
  flex-shrink: 0;
  margin-bottom: 2px;
}
.cat-gallery-see-all:hover {
  color: var(--cream);
  background: var(--deep);
  border-color: var(--deep);
  gap: 8px;
}
.cat-gallery-see-all svg {
  transition: transform 0.3s var(--transition);
}
.cat-gallery-see-all:hover svg {
  transform: translateX(2px);
}

.cat-gallery-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 24px 16px 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-gallery-row::-webkit-scrollbar { display: none; }

/* Full card centered with peek */
.cat-gallery-row .event-card {
  flex: 0 0 calc(100vw - 48px - 60px);
  scroll-snap-align: start;
  animation: none;
  min-width: 0;
  max-width: 360px;
  margin-bottom: 0;
  border-radius: 24px;
}

@media (min-width: 480px) {
  .cat-gallery-row .event-card {
    flex: 0 0 340px;
    max-width: 360px;
  }
}

@media (min-width: 768px) {
  .cat-gallery-header {
    margin: 0 32px;
    padding: 0 0 14px;
  }
  .cat-gallery-title {
    font-size: 38px;
  }
  .cat-gallery-row {
    padding: 4px 32px 16px 32px;
    gap: 16px;
  }
  .cat-gallery-see-all {
    font-size: 11px;
    padding: 7px 18px;
  }
}

/* Compact header for gallery context */
.cat-gallery-row .event-card-header {
  height: 90px;
  padding: 14px 14px;
}

/* Tighter label */
.cat-gallery-row .event-card-label {
  padding: 10px 14px;
  margin-top: -8px;
}
.cat-gallery-row .event-label-title {
  font-size: 13px;
}
.cat-gallery-row .event-label-subtitle {
  font-size: 11px;
}

/* Hide the empty body spacer */
.cat-gallery-row .event-card-body {
  display: none;
}

/* Compact footer */
.cat-gallery-row .event-card-footer {
  padding: 6px 14px 14px;
}
.cat-gallery-row .event-footer-big {
  font-size: 22px;
}
.cat-gallery-row .event-footer-small {
  font-size: 11px;
}
.cat-gallery-row .event-footer-right {
  font-size: 12px;
}

.cat-gallery-empty {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  padding: 24px 0;
}

/* ============================================================
   HOW IT WORKS — Editorial home section
   ============================================================ */

.home-how-section {
  padding: 16px 24px 8px;
  text-align: left;
}

.home-how-section .editorial-heading {
  margin-bottom: 24px;
}

.home-how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.home-how-step {
  padding: 24px 20px;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 2px solid var(--dusk);
  text-align: left;
  transition: transform 0.3s var(--transition), box-shadow 0.3s ease;
}

.home-how-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.home-how-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dusk);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.home-how-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.home-how-desc {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 640px) {
  .home-how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .home-how-section {
    padding: 16px 32px 8px;
  }
}

@media (min-width: 768px) {
  .home-how-steps {
    gap: 20px;
  }
  .home-how-step {
    padding: 28px 24px;
  }
  .home-how-title {
    font-size: 26px;
  }
}

/* ============================================================
   SUBSCRIBE SECTION — Full-bleed editorial CTA
   ============================================================ */

.subscribe-section {
  position: relative;
  margin: 0 16px;
  padding: 40px 28px 36px;
  overflow: hidden;
  border-radius: 24px;
}

.subscribe-section-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1C1410 0%, #2C1E14 50%, #1A1612 100%);
  border-radius: 24px;
  z-index: 0;
}

.subscribe-section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  pointer-events: none;
}

.subscribe-section-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  text-align: left;
}

.subscribe-section-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 16px;
}

.subscribe-section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 14px;
}

.subscribe-section-heading em {
  font-style: italic;
  color: var(--dusk);
}

.subscribe-section-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 380px;
}

@media (min-width: 768px) {
  .subscribe-section {
    padding: 48px 40px 44px;
    margin: 0 24px;
    border-radius: 28px;
  }
  .subscribe-section-heading {
    font-size: 44px;
    letter-spacing: -1px;
  }
}

.subscribe-strip-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.subscribe-strip-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subscribe-strip-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: left;
}

.subscribe-strip-select {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.subscribe-strip-select:focus {
  border-color: var(--dusk);
}

.subscribe-strip-select option {
  background: #1C1C1E;
  color: white;
}

.subscribe-strip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.subscribe-strip-chip {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.subscribe-strip-chip.active {
  color: white;
  background: var(--dusk);
  border-color: var(--dusk);
}

.subscribe-strip-chip:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-strip-input {
  flex: 1;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

.subscribe-strip-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.subscribe-strip-input:focus {
  border-color: var(--dusk);
  background: rgba(255, 255, 255, 0.1);
}

.subscribe-strip-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--dusk);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.subscribe-strip-btn:hover {
  background: #b8845a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 149, 106, 0.4);
}

.subscribe-strip-btn:active {
  transform: scale(0.97);
}

.subscribe-strip-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.subscribe-strip-success {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--dusk);
  letter-spacing: 0.3px;
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 480px) {
  .subscribe-form-row {
    flex-direction: column;
  }
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */

.reveal-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children for how-it-works cards */
.reveal-section .home-how-step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.revealed .home-how-step:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal-section.revealed .home-how-step:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal-section.revealed .home-how-step:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

/* Footer */
.app-footer {
  padding: 28px 20px 40px;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(196, 149, 106, 0.1);
}

.footer-logo {
  height: 24px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.35;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.6;
  filter: grayscale(0);
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--dusk);
  opacity: 0.5;
  margin: 8px 0 0;
  letter-spacing: 0.3px;
}

/* Free Mode Toggle (High-End Sub-style) */