/* ============================================
   LYFE - MIDNIGHT PRESTIGE LUXURY THEME
   Design Tokens & CSS Variables
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  color-scheme: light;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  /* Typography Scale */
  --text-xxl: clamp(2.6rem, 3.6vw, 3.4rem);
  --text-xl: clamp(2.1rem, 2.6vw, 2.6rem);
  --text-lg: clamp(1.4rem, 2vw, 1.75rem);
  --text-md: 1rem;
  --text-sm: 0.95rem;
  --text-xs: 0.85rem;

  /* Spacing Scale */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-9: 5.5rem;

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 16px;

  /* Premium Shadows */
  --shadow-sm: 0 4px 16px rgba(10, 22, 40, 0.08), 0 1px 4px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12), 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.16), 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2), 0 2px 8px rgba(212, 175, 55, 0.1);
  --shadow-gold-lg: 0 12px 48px rgba(212, 175, 55, 0.3), 0 4px 16px rgba(212, 175, 55, 0.15);

  /* Midnight Prestige Color Palette */
  --navy-deep: #0A1628;
  --navy-accent: #1E3A5F;
  --gold-primary: #D4AF37;
  --gold-light: #F4E5C2;
  --gold-dark: #B8935C;

  /* Semantic Colors */
  --bg: #FAFBFD;
  --surface: #ffffff;
  --surface-muted: #F8FAFE;
  --text: #0A1628;
  --muted: #475569;
  --primary: #1E3A5F;
  --primary-dark: #0A1628;
  --border: #E8ECF4;
  --focus: rgba(212, 175, 55, 0.35);

  /* Layout */
  --max-width: 1120px;
  --header-height: 72px;
  --section-padding: clamp(3rem, 6vw, 4.5rem);

  /* Animation Timings */
  --timing-base: 300ms;
  --timing-slow: 500ms;
  --timing-slower: 700ms;
  --ease-elegant: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
    --section-padding: 2.75rem;
    /* Faster animations on mobile for better performance */
    --timing-base: 250ms;
    --timing-slow: 400ms;
    --timing-slower: 500ms;
  }
}

/* ============================================
   BASE STYLES & RESETS
   ============================================ */

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: var(--text-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

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

.section a,
.page-hero a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section a:hover,
.page-hero a:hover {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  background: var(--surface);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 0 var(--gold-primary), 0 4px 12px rgba(10, 22, 40, 0.04);
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  grid-column: 1;
}

.brand__logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand__text {
  font-weight: 700;
}

.nav-controls {
  display: none;
  align-items: center;
  gap: var(--space-3);
  grid-column: 3;
  justify-self: end;
}

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

.auth-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  grid-column: 3;
  justify-self: end;
}

.mobile-auth {
  display: none;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.auth-skeleton {
  background: var(--surface-muted);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.skeleton-pill {
  width: 110px;
  height: 38px;
}

.auth-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

.auth-skeleton-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-muted);
}

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

.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
}

body.is-loading [data-auth],
body.is-loading [data-role] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading [data-auth-skeleton] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

[data-auth],
[data-role],
[data-auth-skeleton] {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.nav-overlay {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  grid-column: 2;
  justify-self: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 0.15rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity var(--timing-base) var(--ease-elegant),
              transform var(--timing-base) var(--ease-elegant);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--navy-accent);
}

.nav-links a.is-active {
  color: var(--navy-deep);
  font-weight: 600;
}

.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  display: block;
}

.hero {
  padding: var(--space-9) 0 var(--space-7);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(30, 58, 95, 0.12), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(10, 22, 40, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(248, 243, 232, 0.3) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGradient 20s ease-in-out infinite alternate;
}

@keyframes heroGradient {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--text-xxl);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero p {
  color: var(--muted);
  margin-bottom: var(--space-5);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--navy-deep);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--timing-base) var(--ease-elegant),
              box-shadow var(--timing-base) var(--ease-elegant);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--timing-slow) var(--ease-elegant);
  pointer-events: none;
}

.button:hover::before {
  left: 100%;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

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

/* Ensure anchor buttons work correctly as clickable links */
a.button {
  text-decoration: none;
  color: var(--navy-deep);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.button.secondary {
  background: transparent;
  color: var(--navy-accent);
  border: 2px solid var(--gold-primary);
}

.button.secondary::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(212, 175, 55, 0.05);
  box-shadow: var(--shadow-gold);
}

.button.ghost {
  background: var(--surface);
  color: var(--navy-accent);
  border: 1px solid var(--border);
}

.button.ghost::before {
  display: none;
}

.button.ghost:hover,
.button.ghost:focus {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.section {
  padding: var(--section-padding) 0;
  scroll-margin-top: calc(var(--header-height) + var(--space-3));
}

.section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.section p.lead {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: var(--space-5);
}

.card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--timing-base) var(--ease-elegant),
              box-shadow var(--timing-base) var(--ease-elegant),
              border-color var(--timing-base) var(--ease-elegant);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--timing-base) var(--ease-elegant);
  pointer-events: none;
}

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

.card:hover::after {
  opacity: 1;
}

.page-hero {
  padding: var(--space-6) 0 var(--space-4);
}

.footer {
  padding: var(--space-7) 0 var(--space-6);
  color: var(--muted);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.footer h4 {
  color: var(--text);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom {
  margin-top: var(--space-5);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

@media (max-width: 860px) {
  .navbar {
    grid-template-columns: auto 1fr;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .nav-controls {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 90;
  }

  .nav-overlay.open {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-height) + var(--space-2));
    right: var(--space-4);
    left: var(--space-4);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.35rem 0;
    font-size: 1rem;
  }

  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .mobile-auth .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .card,
  [data-auth],
  [data-role],
  [data-auth-skeleton] {
    transition: none;
  }

  .auth-skeleton::after {
    animation: none;
  }
}

.page-hero h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--text-lg);
}

.muted {
  color: var(--muted);
}

.surface-muted {
  background: var(--surface-muted);
}

.stack {
  display: grid;
  gap: var(--space-3);
}

.form {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: grid;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  transition: border-color var(--timing-base) var(--ease-elegant),
              box-shadow var(--timing-base) var(--ease-elegant);
}

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

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-muted);
}

.notice {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  font-weight: 500;
}

.notice.success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
}

.notice.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}

.notice.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.3);
}

.section-header {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.venue-card {
  display: grid;
  gap: var(--space-4);
}

.venue-logo {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: var(--space-3);
}

.venue-logo.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.venue-summary {
  position: relative;
  z-index: 1;
}

.venue-summary h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.venue-meta {
  display: grid;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  margin: var(--space-3) 0 var(--space-4);
}

.booking-list {
  display: grid;
  gap: var(--space-3);
}

.booking-draft {
  margin-top: var(--space-4);
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}

.draft-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.draft-value {
  font-weight: 600;
  font-size: var(--text-md);
}

.draft-status {
  margin-top: var(--space-4);
}

.booking-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  border: 1px solid var(--border);
  display: grid;
  gap: var(--space-3);
}

.booking-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.status-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(248, 243, 232, 0.2));
  color: var(--navy-deep);
  border: 1px solid var(--gold-primary);
}

.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.booking-actions {
  display: flex;
  justify-content: flex-end;
}

/* Button row - flexbox layout for inline action buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.button-row .button {
  flex: 0 0 auto;
}

/* Venue card - cleaner card layout for venue listings */
.venue-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.venue-info h3 {
  margin-bottom: var(--space-2);
}

.venue-info p {
  margin: 0;
  line-height: 1.5;
}

.venue-info p + p {
  margin-top: var(--space-1);
}

/* Section header with action button */
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.section-header-row h2 {
  margin-bottom: var(--space-1);
}

/* Hours row for opening hours form */
.hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.hours-row input[type="time"] {
  flex: 0 0 auto;
  width: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: normal;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.login-prompt {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  background: var(--surface-muted);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-muted);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
}

.profile-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
}

.profile-list dt {
  font-weight: 600;
  color: var(--muted);
  font-size: var(--text-sm);
}

.profile-list dd {
  color: var(--text);
  font-size: var(--text-md);
}

@media (max-width: 700px) {
  .nav-actions {
    display: none;
  }
}

/* ============================================
   LUXURY ANIMATIONS & ENHANCEMENTS
   ============================================ */

/* CSS Custom Properties for Animations */
@property --gradient-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@property --shimmer-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -100%;
}

@property --gold-glow {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* Page Entry Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Apply page entry animations */
.hero-grid > * {
  animation: fadeInUp var(--timing-slower) var(--ease-elegant) backwards;
}

.hero-grid > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-grid > *:nth-child(2) {
  animation-delay: 0.2s;
}

/* Card stagger animations */
.card-grid .card {
  animation: fadeInUp var(--timing-slow) var(--ease-elegant) backwards;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.2s; }
.card-grid .card:nth-child(3) { animation-delay: 0.3s; }
.card-grid .card:nth-child(4) { animation-delay: 0.4s; }

/* Pure CSS Scroll Progress (scroll-driven animation) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transform-origin: left;
  animation: scroll-progress-fill auto linear;
  animation-timeline: scroll(root);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes scroll-progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Section reveal on scroll */
.section {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity var(--timing-slow) var(--ease-elegant),
              transform var(--timing-slow) var(--ease-elegant),
              filter var(--timing-slow) var(--ease-elegant);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Rotating gradient animation */
@keyframes rotateGradient {
  from {
    --gradient-angle: 0deg;
  }
  to {
    --gradient-angle: 360deg;
  }
}

/* Gold shimmer effect for skeleton loaders */
@keyframes goldShimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.auth-skeleton::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.2),
    transparent
  );
  background-size: 1000px 100%;
  animation: goldShimmer 2s infinite;
}

/* Success animations */
@keyframes checkmarkDraw {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  animation: scaleIn 0.5s var(--ease-bounce);
}

/* Glass Panel Utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Enhancements */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-primary);
  opacity: 0;
}

.hero-title-char {
  display: inline-block;
  opacity: 0;
}

/* Enhanced hero gradient with rotation */
@media (min-width: 1024px) {
  .hero::before {
    background: conic-gradient(
      from var(--gradient-angle),
      rgba(212, 175, 55, 0.15),
      transparent 30%,
      transparent 70%,
      rgba(212, 175, 55, 0.15)
    );
    animation: rotateGradient 20s linear infinite;
  }

  .hero .card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* Venue Page Enhancements */
.venue-card img.venue-logo {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s var(--ease-elegant), transform 0.4s var(--ease-elegant);
}

.venue-card.is-revealed img.venue-logo {
  clip-path: inset(0);
}

.venue-card:hover .venue-logo {
  transform: scale(1.05);
}

/* Filter dropdown animation */
@keyframes filterSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-dropdown {
  animation: filterSlideDown 0.3s var(--ease-elegant);
}

/* Enhanced search input focus */
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15),
              0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Booking Page Enhancements */
@keyframes draftPulse {
  0% {
    color: var(--gold-primary);
    transform: scale(1.1);
  }
  100% {
    color: inherit;
    transform: scale(1);
  }
}

.draft-value.pulse {
  animation: draftPulse 0.4s ease-out;
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  color: var(--gold-primary);
}

.confetti-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
}

/* User Pages Enhancements */
.booking-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s var(--ease-elegant),
              transform 0.4s var(--ease-elegant);
}

.booking-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Status badge gold pulse for confirmed bookings */
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
  }
}

.badge.confirmed {
  animation: badgePulse 2s infinite;
}

/* Cancel button shake */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.btn-cancel:hover {
  animation: shake 0.3s ease-in-out;
}

/* Owner/Admin Dashboard Enhancements */
.stat-counter {
  font-variant-numeric: tabular-nums;
}

/* Filter tab sliding underline */
@keyframes slideInUnderline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.filter-tab.active::after {
  animation: slideInUnderline 0.3s var(--ease-elegant);
}

/* Table rows initial state */
.table tbody tr {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s var(--ease-elegant),
              transform 0.3s var(--ease-elegant);
}

.table tbody tr.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Chart container reveal */
.admin-chart-grid .card {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.6s var(--ease-elegant),
              transform 0.6s var(--ease-elegant);
}

.admin-chart-grid .card.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* View Transition API Support */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.3s ease-out both vt-fade-out;
}

::view-transition-new(root) {
  animation: 0.3s ease-in both vt-fade-in;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
}

/* Static Pages Animations */
[data-stagger-sections] .card,
.content-narrow > .card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-elegant),
              transform 0.6s var(--ease-elegant);
}

[data-stagger-sections] .card.is-visible,
.content-narrow > .card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Page Animations */
.contact-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-elegant),
              transform 0.5s var(--ease-elegant);
}

.contact-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DESKTOP ENHANCEMENTS (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  /* 3D Card Tilt Effect */
  .card {
    transform-style: preserve-3d;
    transition: transform var(--timing-base) var(--ease-elegant),
                box-shadow var(--timing-base) var(--ease-elegant),
                border-color var(--timing-base) var(--ease-elegant);
  }

  .card:hover {
    transform: translateY(-8px) rotateX(2deg);
  }

  /* Floating animation for decorative elements */
  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  /* Enhance hero background on desktop */
  .hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03), transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
  }

  /* Enhanced button hover effects */
  .button:hover {
    transform: translateY(-3px) scale(1.02);
  }

  /* Smooth cursor transitions */
  .button,
  .card,
  a {
    cursor: pointer;
  }
}

/* ============================================
   MOBILE OPTIMIZATIONS (< 860px)
   ============================================ */

@media (max-width: 860px) {
  /* Disable heavy animations */
  .hero::before {
    animation: none;
  }

  .hero::after {
    display: none;
  }

  /* Simplify card animations */
  .card {
    animation: fadeIn var(--timing-base) var(--ease-elegant) backwards;
  }

  .card-grid .card:nth-child(n) {
    animation-delay: 0.05s;
  }

  /* Touch-friendly tap states */
  .button:active {
    transform: scale(0.97);
  }

  .card:active {
    transform: translateY(-2px);
  }

  /* Ensure minimum touch target size */
  .button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Larger gold border on focus for better visibility */
  input:focus,
  select:focus,
  textarea:focus {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
  }

  /* Disable hover-only effects on mobile */
  .button::before {
    display: none;
  }

  .card::after {
    opacity: 0.3;
  }

  /* Optimize font sizes */
  body {
    line-height: 1.7;
  }

  h1, h2, h3 {
    line-height: 1.2;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

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

  .hero::before,
  .hero::after,
  .hero-particle,
  .scroll-progress,
  .confetti-dot {
    animation: none !important;
  }

  .section,
  .card,
  .booking-item,
  .contact-item,
  .table tbody tr {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .badge.confirmed,
  .btn-cancel:hover,
  .draft-value.pulse {
    animation: none !important;
  }
}

/* ============================================
   GSAP READY STATE - Disable CSS animations when GSAP controls
   ============================================ */

body.gsap-ready .section,
body.gsap-ready .card-grid .card,
body.gsap-ready .hero-title-char,
body.gsap-ready .hero-particle,
body.gsap-ready .hero .eyebrow,
body.gsap-ready .hero .lead,
body.gsap-ready .booking-item,
body.gsap-ready .contact-item {
  /* Remove CSS animation properties - GSAP controls these */
  animation: none !important;
  /* Reset to visible - GSAP will set initial hidden state */
  opacity: 1;
  transform: none;
  filter: none;
}

/* Hero buttons that DON'T have auth attributes - GSAP controls these */
body.gsap-ready .hero .btn:not([data-auth]):not([data-action]) {
  animation: none !important;
  opacity: 1;
  transform: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fade-in {
  animation: fadeIn var(--timing-slow) var(--ease-elegant);
}

.slide-up {
  animation: fadeInUp var(--timing-slow) var(--ease-elegant);
}

.gold-accent {
  color: var(--gold-primary);
}

.gold-border {
  border-color: var(--gold-primary) !important;
}

.navy-bg {
  background: var(--navy-deep);
  color: white;
}

/* ============================================
   SEARCH & FILTER COMPONENTS
   ============================================ */

.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.search-box input[type="search"] {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-md);
  font-family: var(--font-sans);
}

.search-box input[type="search"]:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.filter-group {
  position: relative;
}

.filter-group summary {
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  transition: all var(--timing-base) var(--ease-elegant);
}

.filter-group summary:hover {
  background: var(--gold-wash);
  border-color: var(--gold-primary);
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--gold-primary);
}

.filter-options {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--gold-primary);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: var(--space-1);
  border-radius: var(--radius-xs);
  transition: background var(--timing-base);
}

.filter-options label:hover {
  background: var(--gold-wash);
}

.filter-options input[type="checkbox"] {
  cursor: pointer;
}

/* ============================================
   CONTENT LAYOUT UTILITIES
   ============================================ */

.content-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.admin-chart-grid {
  margin-top: var(--space-5);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table thead {
  background: rgba(255, 255, 255, 0.03);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.table th {
  font-weight: 600;
  color: var(--text);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-end;
}

.filter-row input,
.filter-row select {
  min-width: 160px;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-md);
  font-family: var(--font-sans);
  transition: all var(--timing-base) var(--ease-elegant);
}

.filter-row input:focus,
.filter-row select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-end;
}

.toast-container {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 1000;
}

.toast {
  background: rgba(12, 20, 36, 0.95);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  min-width: 240px;
  box-shadow: 0 12px 24px rgba(6, 12, 22, 0.5);
  animation: toast-in 0.3s ease;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

.toast-exit {
  opacity: 0;
  transform: translateX(8px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.content-stack h2 {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.content-stack h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-stack h3 {
  margin-top: var(--space-4);
  color: var(--text);
}

.content-stack ul,
.content-stack ol {
  margin-left: var(--space-5);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.content-stack li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* ============================================
   CONTACT & FORM COMPONENTS
   ============================================ */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-md);
  font-family: var(--font-sans);
  transition: all var(--timing-base) var(--ease-elegant);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.form-status {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item {
  padding: var(--space-4);
  background: var(--gold-wash);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-item h3 {
  margin-bottom: var(--space-2);
  color: var(--text);
}

.contact-item p {
  margin: var(--space-1) 0;
}

.contact-item a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ============================================
   VENUE SWITCHER (Admin "View As" Feature)
   ============================================ */

.venue-switcher {
  position: relative;
  margin-right: var(--space-3);
}

.venue-switcher__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--text);
  transition: all var(--timing-base) var(--ease-elegant);
}

.venue-switcher__trigger:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.venue-switcher__trigger[aria-expanded="true"] {
  border-color: var(--gold-primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.venue-switcher__label {
  color: var(--muted);
  font-weight: 500;
}

.venue-switcher__value {
  font-weight: 600;
  color: var(--text);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-switcher__value.is-viewing-as {
  color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(248, 243, 232, 0.15));
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  animation: viewAsBadgeIn 0.3s var(--ease-bounce);
}

@keyframes viewAsBadgeIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.venue-switcher__icon {
  flex-shrink: 0;
  transition: transform var(--timing-base) var(--ease-elegant);
}

.venue-switcher__trigger[aria-expanded="true"] .venue-switcher__icon {
  transform: rotate(180deg);
}

.venue-switcher__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--gold-primary);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 150;
  animation: venueSwitcherSlide 0.25s var(--ease-elegant);
}

@keyframes venueSwitcherSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.venue-switcher__search {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.venue-switcher__search input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--surface-muted);
}

.venue-switcher__search input:focus {
  border-color: var(--gold-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.venue-switcher__results {
  max-height: 240px;
  overflow-y: auto;
  padding: var(--space-2);
}

.venue-switcher__hint,
.venue-switcher__loading,
.venue-switcher__error,
.venue-switcher__empty {
  padding: var(--space-3);
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.venue-switcher__error {
  color: #b91c1c;
}

.venue-switcher__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: background var(--timing-base) var(--ease-elegant);
}

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

.venue-switcher__item.is-selected {
  background: rgba(212, 175, 55, 0.15);
  border-left: 2px solid var(--gold-primary);
}

.venue-switcher__item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
}

.venue-switcher__item-meta {
  font-size: var(--text-xs);
  color: var(--muted);
}

.venue-switcher__actions {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border);
}

.venue-switcher__clear {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  justify-content: center;
  padding: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.venue-switcher__clear:hover {
  color: var(--text);
  background: rgba(239, 68, 68, 0.08);
}

/* Mobile venue switcher adjustments */
@media (max-width: 860px) {
  .venue-switcher {
    display: none;
  }

  /* Show venue switcher in mobile nav when open */
  .nav-links.open .venue-switcher {
    display: block;
    width: 100%;
    margin: 0;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open .venue-switcher__trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links.open .venue-switcher__dropdown {
    position: relative;
    top: var(--space-2);
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-switcher__value.is-viewing-as,
  .venue-switcher__dropdown {
    animation: none;
  }
}

/* Safe area support for iOS */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
