:root {
  --ink: #080808;
  --coal: #111111;
  --panel: #181817;
  --panel-2: #22201d;
  --cream: #f4efe5;
  --muted: #b9afa0;
  --soft: rgba(244, 239, 229, 0.72);
  --gold: #d4aa4a;
  --gold-strong: #edc86b;
  --terracotta: #b8553d;
  --teal: #3b8c82;
  --line: rgba(244, 239, 229, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border-radius: 8px;
}

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

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 76px;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(8, 8, 8, 0.88);
  border-bottom: 1px solid rgba(212, 170, 74, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.08);
  border: 1px solid rgba(212, 170, 74, 0.28);
  padding: 0.12rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--gold);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(244, 239, 229, 0.14);
  border-radius: 8px;
  background: rgba(244, 239, 229, 0.06);
}

.lang-switcher button {
  min-width: 34px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.lang-switcher button:hover,
.lang-switcher button.active {
  background: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0.55rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
}

.page {
  display: none;
  min-height: 100vh;
  padding-top: 76px;
}

.page.active {
  display: block;
}

.hero {
  min-height: calc(88svh - 76px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--coal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.54) 48%, rgba(8, 8, 8, 0.18)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.18), rgba(8, 8, 8, 0.78));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100% - 1160px) / 2));
  padding: 4rem 0;
}

.hero-logo {
  width: clamp(96px, 14vw, 148px);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.46));
}

.animated-logo {
  display: inline-flex;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1.4rem;
  overflow: hidden;
}

.animated-logo span {
  display: inline-block;
  animation: logoLift 1.1s ease both;
}

.animated-logo span + span {
  color: var(--cream);
  animation-delay: 0.18s;
}

@keyframes logoLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: 4.8rem;
  max-width: 820px;
  margin-bottom: 1.3rem;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.hero-copy {
  max-width: 650px;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn.primary {
  background: var(--gold);
  color: var(--ink);
}

.btn.secondary {
  background: rgba(244, 239, 229, 0.08);
  color: var(--cream);
  border-color: rgba(244, 239, 229, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--gold-strong);
  border-color: rgba(212, 170, 74, 0.42);
}

.btn.full {
  width: 100%;
}

.btn.compact {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(212, 170, 74, 0.2);
  border-bottom: 1px solid rgba(212, 170, 74, 0.16);
  background: var(--panel);
}

.metrics-band div {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid rgba(244, 239, 229, 0.08);
}

.metrics-band strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.metrics-band span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.intro-grid,
.split,
.bureau-layout,
.partner-layout,
.reservation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3.2rem;
  align-items: start;
}

.section p,
.page-hero p {
  color: var(--soft);
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.photo-stack figure {
  margin: 0;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.photo-stack figure:first-child {
  grid-row: span 2;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.photo-stack figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(8, 8, 8, 0.74);
  color: var(--cream);
  border: 1px solid rgba(244, 239, 229, 0.16);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.page-hero {
  min-height: 300px;
  padding: 4rem max(1rem, calc((100% - 1160px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.58)),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1600&q=80") center / cover;
  border-bottom: 1px solid rgba(212, 170, 74, 0.2);
}

.page-hero.compact {
  min-height: 260px;
}

#page-activities .page-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.48)),
    url("assets/activities/tff-theatre.jpg?v=20260522") center / cover;
}

.page-hero.membership-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.46)),
    url("https://images.unsplash.com/photo-1518929458119-e5bf444c30f4?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.page-hero h1 {
  font-size: 3.4rem;
  max-width: 880px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.05rem;
}

.quote-panel {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 170, 74, 0.16), rgba(59, 140, 130, 0.14));
  border: 1px solid rgba(212, 170, 74, 0.26);
  border-radius: 8px;
}

.quote-panel p {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.partner-close p {
  font-size: 1.7rem;
}

.cards-grid,
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.partner-benefits {
  padding-top: 0;
}

.global-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 2.2rem 0 0;
}

.global-connect[hidden],
body[data-page="membership"] .global-connect,
body[data-page="reservation"] .global-connect {
  display: none;
}

.global-social-panel,
.global-contact-panel {
  min-height: 100%;
  padding: 0.95rem 1.05rem;
  background: rgba(24, 24, 23, 0.82);
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.global-social-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.global-social-panel .eyebrow,
.global-contact-panel .eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.66rem;
}

.global-social-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
}

.social-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.social-link {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: #0d0d0d;
  border: 1px solid rgba(244, 239, 229, 0.14);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.social-link svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  filter: brightness(1.08);
}

.social-link.instagram {
  background: linear-gradient(135deg, #6d2bd9, #d83d7c 48%, #f2b344);
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.youtube {
  background: #ff0000;
}

.global-contact-list {
  display: grid;
  gap: 0.15rem;
}

.global-contact-list a,
.global-contact-list span {
  display: block;
  min-width: 0;
  color: var(--soft);
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.global-contact-list a {
  color: var(--gold-strong);
  font-weight: 900;
  text-decoration: none;
}

.press-archive {
  display: grid;
  gap: 1.5rem;
}

.press-archive-heading {
  max-width: 860px;
}

.press-archive-heading h2 {
  margin-bottom: 0.45rem;
}

.press-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  background: rgba(24, 24, 23, 0.82);
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 8px;
}

.press-stats,
.press-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.press-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  color: var(--cream);
  background: rgba(244, 239, 229, 0.06);
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 8px;
}

.press-stats strong {
  color: var(--gold-strong);
  font-size: 1.2rem;
}

.press-stats small {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.press-filter {
  min-height: 2.35rem;
  padding: 0 0.85rem;
  color: var(--soft);
  background: #0d0d0d;
  border: 1px solid rgba(244, 239, 229, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.press-filter:hover,
.press-filter:focus-visible,
.press-filter.active {
  color: #080808;
  background: var(--gold);
  outline: none;
  transform: translateY(-1px);
}

.press-featured-grid,
.press-grid {
  display: grid;
  gap: 1rem;
}

.press-featured-grid {
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.75fr));
}

.press-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.press-card {
  display: grid;
  min-height: 100%;
  color: var(--cream);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(24, 24, 23, 0.98), rgba(18, 22, 20, 0.94)),
    var(--panel);
  border: 1px solid rgba(212, 170, 74, 0.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.press-card:hover,
.press-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212, 170, 74, 0.62);
  outline: none;
}

.press-card.featured {
  min-height: 440px;
}

.press-card.featured:first-child {
  grid-row: span 2;
}

.press-card-media {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(217, 178, 76, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(30, 52, 46, 0.9), rgba(11, 11, 11, 0.98));
}

.press-card.featured .press-card-media {
  min-height: 260px;
}

.press-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.35s ease;
}

.press-card:hover .press-card-media img,
.press-card:focus-visible .press-card-media img {
  transform: scale(1.045);
}

.press-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58));
}

.press-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(244, 239, 229, 0.38);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: 0;
}

.press-card-media:not(.image-missing) .press-placeholder {
  display: none;
}

.press-type {
  position: absolute;
  z-index: 1;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.55rem;
  color: #080808;
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.press-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(244, 239, 229, 0.22);
  backdrop-filter: blur(8px);
}

.press-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-top: 0.62rem solid transparent;
  border-bottom: 0.62rem solid transparent;
  border-left: 0.95rem solid var(--gold);
}

.press-card-body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.05rem;
}

.press-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.press-card-kicker span + span {
  color: var(--muted);
}

.press-card-body strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 0.98;
}

.press-card-desc {
  color: var(--soft);
  line-height: 1.55;
}

.press-open {
  width: max-content;
  max-width: 100%;
  color: var(--gold-strong);
  font-weight: 900;
  border-bottom: 2px solid rgba(217, 178, 76, 0.5);
}

.info-card,
.benefit-card {
  min-height: 100%;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card.wide {
  grid-column: span 2;
}

.info-card span,
.benefit-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.info-card p,
.benefit-card p {
  color: var(--soft);
  margin-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  margin-top: 1rem;
}

.people-list,
.committee-grid {
  display: grid;
  gap: 0.8rem;
}

.people-list article,
.committee-grid article {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.people-list span,
.committee-grid span {
  display: block;
  color: var(--gold-strong);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.people-list strong,
.committee-grid strong {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
}

.committee-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-list {
  display: grid;
  gap: 1.5rem;
}

.activity-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 6px;
}

.festival-copy,
.monthly-copy,
.training-copy,
.school-copy {
  display: grid;
  gap: 0.85rem;
}

.festival-copy p,
.monthly-copy p,
.training-copy p,
.school-copy p {
  margin: 0;
  color: var(--soft);
}

.training-feature img {
  object-fit: contain;
  background: #d8f4ff;
}

.festival-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
}

.festival-gallery figure {
  min-height: 220px;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.festival-gallery figure:nth-child(1),
.festival-gallery figure:nth-child(2) {
  min-height: 340px;
}

.festival-gallery figure:nth-child(1) {
  grid-row: span 2;
}

.festival-gallery img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.festival-gallery figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.38rem 0.6rem;
  border-radius: 6px;
  color: var(--cream);
  background: rgba(8, 8, 8, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.activities-index {
  display: grid;
  gap: 1.8rem;
}

.activities-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.activities-intro h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.activity-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.15rem;
}

.activity-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 285px 1fr;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 170, 74, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(28, 27, 24, 0.96), rgba(12, 12, 11, 0.98));
  border: 1px solid rgba(212, 170, 74, 0.2);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(212, 170, 74, 0.68);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.34);
  outline: none;
}

.activity-card-media {
  position: relative;
  display: block;
  min-height: 285px;
  overflow: hidden;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(212, 170, 74, 0.24);
}

.activity-card-media::before,
.activity-card-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.activity-card-media::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.4)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 48%, rgba(0, 0, 0, 0.62));
}

.activity-card-media::after {
  inset: 12px;
  border: 1px solid rgba(244, 239, 229, 0.18);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(212, 170, 74, 0.12);
}

.activity-card-track {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.activity-card-track.single {
  width: 100%;
}

.activity-card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(100%);
  animation: activityCardSlideMove var(--activity-carousel-duration, 18s) infinite;
  animation-delay: var(--activity-slide-delay, 0s);
  will-change: transform, opacity;
}

.activity-card-slide:first-child {
  opacity: 1;
  transform: translateX(0);
}

.activity-card-track.single .activity-card-slide {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

.activity-card-slide[src*="courts-entre-2-rives"],
.activity-detail-main-image img[src*="courts-entre-2-rives"],
.activity-detail-gallery img[src*="courts-entre-2-rives"] {
  object-fit: contain;
  background: #d8f4ff;
}

.activity-card-body {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.25rem;
}

.activity-card-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.activity-card-body > span:not(.eyebrow):not(.activity-partner-strip) {
  display: -webkit-box;
  min-height: 4.8rem;
  overflow: hidden;
  color: var(--soft);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.activity-card-body em {
  justify-self: start;
  padding-top: 0.3rem;
  color: var(--gold-strong);
  font-style: normal;
  font-weight: 900;
}

.activity-partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.activity-partner-strip.compact {
  margin-top: -0.1rem;
}

.activity-partner-logo {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 44px;
  padding: 0.35rem 0.45rem;
  color: var(--cream);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 8px;
}

.activity-partner-logo img {
  max-width: 54px;
  max-height: 30px;
  object-fit: contain;
  padding: 0.2rem;
  background: #fff;
  border-radius: 5px;
}

.activity-partner-logo span {
  display: none;
}

.activity-partner-strip.detail {
  gap: 0.75rem;
}

.activity-partner-strip.detail .activity-partner-logo {
  width: 150px;
  min-height: 96px;
  padding: 0.75rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.activity-partner-strip.detail .activity-partner-logo:hover,
.activity-partner-strip.detail .activity-partner-logo:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212, 170, 74, 0.62);
  background: rgba(212, 170, 74, 0.08);
  outline: none;
}

.activity-partner-strip.detail .activity-partner-logo img {
  max-width: 118px;
  max-height: 56px;
}

.activity-partner-strip.detail .activity-partner-logo span {
  display: block;
  margin-top: 0.5rem;
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.activity-detail-view {
  display: grid;
  gap: 1rem;
}

.activity-back {
  justify-self: start;
}

.activity-detail-card {
  display: grid;
  gap: 1.4rem;
}

.activity-detail-shell {
  display: grid;
  gap: 1.3rem;
}

.activity-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(0.8rem, 2vw, 1.1rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 170, 74, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(26, 25, 22, 0.98), rgba(10, 10, 9, 0.98));
  border: 1px solid rgba(212, 170, 74, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.activity-detail-main-image {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 8px;
}

.activity-detail-main-image::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 170, 74, 0.22);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.activity-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-detail-main-image figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.75rem;
  color: var(--cream);
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 6px;
  font-weight: 800;
}

.activity-detail-heading {
  align-self: center;
  padding: clamp(0.5rem, 3vw, 1.8rem);
}

.activity-detail-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.activity-detail-lede {
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.activity-detail-copy {
  display: grid;
  gap: 0.95rem;
  max-width: 980px;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--soft);
  background: rgba(244, 239, 229, 0.035);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.activity-detail-copy p {
  margin: 0;
}

.activity-detail-section {
  display: grid;
  gap: 0.9rem;
}

.activity-detail-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.activity-detail-point {
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(28, 27, 24, 0.98), rgba(15, 15, 14, 0.96));
  border: 1px solid rgba(212, 170, 74, 0.18);
  border-radius: 8px;
}

.activity-detail-point h3 {
  color: var(--cream);
}

.activity-detail-point p {
  margin: 0;
  color: var(--soft);
}

.activity-detail-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.activity-detail-gallery figure {
  position: relative;
  grid-column: span 2;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(212, 170, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.activity-detail-gallery figure.featured {
  grid-column: span 3;
  min-height: 330px;
}

.activity-detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.activity-detail-gallery figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.38rem 0.6rem;
  color: var(--cream);
  background: rgba(8, 8, 8, 0.74);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes activityCardSlideMove {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  7%,
  24% {
    opacity: 1;
    transform: translateX(0);
  }

  31%,
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-card {
  background: linear-gradient(145deg, rgba(24, 24, 23, 1), rgba(34, 32, 29, 0.9));
}

.benefit-card h2 {
  font-size: 2rem;
}

.closing-cta {
  text-align: center;
  padding-top: 1rem;
}

.closing-cta h2,
.closing-cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.closing-cta p:empty {
  display: none;
}

.form-panel,
.member-modal {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reservation-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding-top: 0;
}

.reservation-event-selector {
  display: grid;
  gap: 1.2rem;
  padding-top: 0;
}

.reservation-event-heading {
  max-width: 720px;
}

.reservation-event-heading h2 {
  margin-bottom: 0.4rem;
}

.reservation-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.reservation-event-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.2rem;
  align-items: stretch;
  width: 100%;
  min-height: 260px;
  padding: 1rem;
  color: var(--cream);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(27, 25, 22, 0.96), rgba(20, 32, 28, 0.9)),
    var(--panel);
  border: 1px solid rgba(212, 170, 74, 0.34);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.reservation-event-card:hover,
.reservation-event-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 170, 74, 0.78);
  outline: none;
}

.reservation-event-poster {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 1rem;
  overflow: hidden;
  color: #fff8e8;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(217, 178, 76, 0.12), rgba(255, 255, 255, 0.025)),
    #10100f;
  border: 1px solid rgba(217, 178, 76, 0.4);
  border-radius: 8px;
}

.reservation-event-poster::before,
.reservation-event-poster::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(217, 178, 76, 0.32);
  border-radius: 6px;
}

.reservation-event-poster::after {
  display: none;
}

.reservation-event-poster span {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--soft);
  text-shadow: none;
}

.reservation-event-body {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.reservation-event-body strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
  color: var(--cream);
}

.reservation-event-meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--soft);
  font-weight: 800;
}

.reservation-event-meta span {
  padding: 0.4rem 0.65rem;
  background: rgba(244, 239, 229, 0.08);
  border: 1px solid rgba(244, 239, 229, 0.11);
  border-radius: 999px;
}

.reservation-event-action {
  width: max-content;
  max-width: 100%;
  color: var(--gold-strong);
  font-weight: 900;
  border-bottom: 2px solid rgba(217, 178, 76, 0.55);
}

.reservation-selected-event {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 0.85rem 1rem;
  background: rgba(25, 33, 29, 0.84);
  border: 1px solid rgba(212, 170, 74, 0.32);
  border-radius: 8px;
}

.reservation-selected-event span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-selected-event strong {
  flex: 1;
  color: var(--gold-strong);
}

html[dir="rtl"] .reservation-event-card {
  text-align: right;
}

.reservation-event-selector {
  padding-top: 0.8rem;
}

.reservation-event-heading {
  max-width: 780px;
}

.reservation-event-card {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: 0;
  min-height: 360px;
  padding: 0;
  background:
    linear-gradient(145deg, rgba(15, 15, 14, 0.98), rgba(25, 35, 31, 0.95)),
    var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.reservation-event-poster {
  min-height: 360px;
  border: 0;
  border-right: 1px solid rgba(217, 178, 76, 0.22);
  border-radius: 8px 0 0 8px;
}

.reservation-event-poster img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.reservation-event-card:hover .reservation-event-poster img,
.reservation-event-card:focus-visible .reservation-event-poster img {
  transform: scale(1.035);
}

.reservation-event-poster.has-image img {
  opacity: 1;
}

.reservation-event-poster.has-image::before,
.reservation-event-poster.has-image::after {
  display: none;
}

.reservation-event-poster.has-image .reservation-event-poster-fallback {
  display: none;
}

.reservation-event-poster.image-missing img {
  display: none;
}

.reservation-event-body {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.reservation-event-summary {
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.reservation-event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0 1rem;
  color: #080808;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(217, 178, 76, 0.16);
}

html[dir="rtl"] .reservation-event-poster {
  border-right: 0;
  border-left: 1px solid rgba(217, 178, 76, 0.22);
  border-radius: 0 8px 8px 0;
}

.reservation-card {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reservation-card h2 {
  margin-bottom: 0;
}

.reservation-card .eyebrow {
  color: var(--gold-strong);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: none;
  width: max-content;
  max-width: 100%;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--gold);
}

.flow-steps {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--soft);
}

.flow-steps li::marker {
  color: var(--gold);
  font-weight: 900;
}

html[dir="rtl"] .flow-steps {
  padding-left: 0;
  padding-right: 1.25rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(244, 239, 229, 0.16);
  border-radius: 8px;
  background: #0d0d0d;
  color: var(--cream);
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
}

[hidden] {
  display: none !important;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  color: var(--gold-strong);
  font-weight: 800;
}

.form-message.error {
  color: #f2a8a8;
}

.form-message.success {
  color: #9ed8b4;
}

.reservation-complete {
  display: grid;
  place-items: center;
  min-height: min(68vh, 620px);
}

.reservation-complete-card {
  width: min(100%, 680px);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(217, 178, 76, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(217, 178, 76, 0.12), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.reservation-complete-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  color: #071108;
  background: #9ed8b4;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.reservation-complete-card h2 {
  max-width: 13ch;
  margin-inline: auto;
}

.reservation-complete-card p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  color: var(--cream);
  font-size: 1.18rem;
  line-height: 1.7;
}

.scanner-hero {
  background:
    linear-gradient(120deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.74)),
    var(--coal);
}

.scanner-shell {
  display: grid;
  gap: 1.15rem;
}

.scanner-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  border: 1px solid rgba(217, 178, 76, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(217, 178, 76, 0.12), rgba(244, 239, 229, 0.025)),
    rgba(22, 22, 20, 0.9);
}

.scanner-heading h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.scanner-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.scanner-live-chip,
.scanner-result-status,
.scanner-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  background: rgba(217, 178, 76, 0.16);
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.scanner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.scanner-panel,
.scanner-history-panel {
  border: 1px solid rgba(217, 178, 76, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 239, 229, 0.055), rgba(244, 239, 229, 0.015)),
    rgba(22, 22, 20, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.scanner-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.scanner-video-frame {
  position: relative;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(217, 178, 76, 0.08), transparent 45%),
    #080808;
}

.scanner-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #080808;
}

.scanner-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.55), rgba(8, 8, 8, 0.7)),
    rgba(8, 8, 8, 0.72);
}

.scanner-video-frame.is-live .scanner-video-placeholder {
  display: none;
}

.scanner-video-placeholder span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(217, 178, 76, 0.42);
  border-radius: 8px;
  color: var(--gold-strong);
  font-weight: 900;
  letter-spacing: 0.12em;
  background: rgba(217, 178, 76, 0.1);
}

.scanner-video-placeholder strong {
  color: var(--cream);
  font-size: 1.25rem;
}

.scanner-reticle {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(217, 178, 76, 0.72);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.scanner-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.scanner-help {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.scanner-manual-form {
  display: grid;
  gap: 0.95rem;
}

.scanner-result-card {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.28);
}

.scanner-result-card h3 {
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.scanner-result-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.scanner-result-card.valid {
  border-color: rgba(158, 216, 180, 0.36);
  background:
    linear-gradient(145deg, rgba(65, 147, 92, 0.16), rgba(244, 239, 229, 0.02)),
    rgba(8, 8, 8, 0.3);
}

.scanner-result-card.pending {
  border-color: rgba(217, 178, 76, 0.44);
  background:
    linear-gradient(145deg, rgba(217, 178, 76, 0.16), rgba(244, 239, 229, 0.02)),
    rgba(8, 8, 8, 0.3);
}

.scanner-result-card.invalid {
  border-color: rgba(242, 168, 168, 0.44);
  background:
    linear-gradient(145deg, rgba(120, 38, 38, 0.2), rgba(244, 239, 229, 0.02)),
    rgba(8, 8, 8, 0.32);
}

.scanner-result-card.valid .scanner-result-status,
.scanner-status-pill.valid {
  background: rgba(65, 147, 92, 0.22);
  color: #9ed8b4;
}

.scanner-result-card.invalid .scanner-result-status,
.scanner-status-pill.invalid {
  background: rgba(120, 38, 38, 0.24);
  color: #f2a8a8;
}

.scanner-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.scanner-result-details div {
  padding: 0.78rem;
  border: 1px solid rgba(244, 239, 229, 0.08);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.24);
}

.scanner-result-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scanner-result-details dd {
  margin: 0.25rem 0 0;
  color: var(--cream);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.scanner-seat-highlight {
  color: var(--gold-strong);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1;
}

.scanner-history-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.scanner-panel-heading {
  margin-bottom: 0.9rem;
}

.scanner-panel-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.scanner-history-list {
  display: grid;
  gap: 0.7rem;
}

.scanner-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(244, 239, 229, 0.08);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.24);
}

.scanner-history-item strong {
  display: block;
  color: var(--cream);
}

.scanner-history-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.scanner-history-empty {
  margin: 0;
  color: var(--muted);
}

/* New scanner access controls keep the existing scanner UI protected until PIN login succeeds. */
.scanner-login-panel {
  display: grid;
  place-items: center;
}

.scanner-login-card {
  width: min(100%, 520px);
}

.scanner-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* New public ticket status page uses safe status colors without exposing private reservation details. */
.ticket-status-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.78fr);
  gap: 1rem;
  align-items: stretch;
}

.ticket-status-card,
.ticket-status-result,
.admin-reservation-card {
  border: 1px solid rgba(217, 178, 76, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 239, 229, 0.06), rgba(244, 239, 229, 0.015)),
    rgba(22, 22, 20, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.ticket-status-card,
.ticket-status-result {
  padding: clamp(1.15rem, 2.6vw, 1.7rem);
}

.ticket-status-card h2,
.ticket-status-result h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
}

.ticket-status-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.ticket-status-result {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.ticket-status-result p {
  color: var(--muted);
}

.ticket-status-result dl,
.admin-reservation-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.ticket-status-result dl div,
.admin-reservation-card dl div {
  padding: 0.78rem;
  border: 1px solid rgba(244, 239, 229, 0.08);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.24);
}

.ticket-status-result dt,
.admin-reservation-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-status-result dd,
.admin-reservation-card dd {
  margin: 0.25rem 0 0;
  color: var(--cream);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ticket-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(217, 178, 76, 0.16);
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.ticket-status-badge.confirmed,
.ticket-status-result.confirmed {
  border-color: rgba(158, 216, 180, 0.34);
}

.ticket-status-badge.confirmed {
  background: rgba(65, 147, 92, 0.22);
  color: #9ed8b4;
}

.ticket-status-badge.canceled,
.ticket-status-result.canceled,
.ticket-status-result.not-found {
  border-color: rgba(242, 168, 168, 0.4);
}

.ticket-status-badge.canceled {
  background: rgba(120, 38, 38, 0.24);
  color: #f2a8a8;
}

.ticket-status-badge.attended {
  background: rgba(139, 150, 166, 0.24);
  color: #d7dce5;
}

.ticket-status-badge.pending {
  background: rgba(217, 178, 76, 0.18);
  color: var(--gold-strong);
}

/* New admin dashboard controls reuse the member dashboard rhythm with denser reservation cards. */
.admin-dashboard {
  display: grid;
  gap: 1.1rem;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 0.9rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(217, 178, 76, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.26);
}

.admin-search-label {
  display: grid;
  gap: 0.45rem;
}

.admin-search-label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.admin-filter {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(217, 178, 76, 0.28);
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.05);
  color: var(--soft);
  font-weight: 800;
  cursor: pointer;
}

.admin-filter.active,
.admin-filter:hover,
.admin-filter:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.admin-reservation-list {
  display: grid;
  gap: 0.85rem;
}

.admin-reservation-card {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.admin-reservation-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.admin-reservation-card-head strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.member-space-hero {
  background:
    linear-gradient(120deg, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.72)),
    var(--coal);
}

.dashboard-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.68fr);
  gap: 1.1rem;
  align-items: stretch;
}

.member-login-card,
.dashboard-access-card,
.dashboard-profile-card,
.dashboard-priority-card,
.dashboard-panel {
  border: 1px solid rgba(217, 178, 76, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 239, 229, 0.06), rgba(244, 239, 229, 0.015)),
    rgba(22, 22, 20, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.member-login-card,
.dashboard-access-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.member-login-card h2,
.dashboard-access-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.member-login-card p:not(.eyebrow),
.dashboard-access-card p:not(.eyebrow) {
  color: var(--muted);
}

.dashboard-login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn.full {
  width: 100%;
}

.dashboard-access-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.dashboard-access-list span {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(244, 239, 229, 0.11);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(8, 8, 8, 0.26);
}

.member-dashboard {
  display: grid;
  gap: 1.15rem;
}

.dashboard-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-topbar h2 {
  margin-bottom: 0.35rem;
}

.dashboard-topbar p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.dashboard-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.72fr);
  gap: 1rem;
}

.dashboard-profile-card,
.dashboard-priority-card,
.dashboard-panel {
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
}

.dashboard-profile-card h3,
.dashboard-priority-card h3,
.dashboard-panel h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.dashboard-profile-card dl,
.dashboard-reservation-card dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.dashboard-profile-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.dashboard-profile-card dt,
.dashboard-reservation-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-profile-card dd,
.dashboard-reservation-card dd {
  margin: 0;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.member-status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(217, 178, 76, 0.16);
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.status-member,
.status-confirmed,
.status-attended {
  border-color: rgba(158, 216, 180, 0.35);
  background: rgba(65, 147, 92, 0.16);
  color: #9ed8b4;
}

.status-pending,
.status-unknown {
  border-color: rgba(217, 178, 76, 0.35);
  background: rgba(217, 178, 76, 0.15);
  color: var(--gold-strong);
}

.status-rejected,
.status-canceled {
  border-color: rgba(242, 168, 168, 0.35);
  background: rgba(120, 38, 38, 0.2);
  color: #f2a8a8;
}

.dashboard-priority-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(217, 178, 76, 0.2), rgba(244, 239, 229, 0.035)),
    rgba(22, 22, 20, 0.92);
}

.dashboard-priority-card p:not(.eyebrow) {
  color: var(--soft);
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat-grid article {
  min-height: 116px;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(217, 178, 76, 0.11), rgba(244, 239, 229, 0.025)),
    var(--panel);
}

.dashboard-stat-grid strong {
  color: var(--gold-strong);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}

.dashboard-stat-grid span {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

.dashboard-panel-heading {
  margin-bottom: 1rem;
}

.dashboard-panel-heading h3 {
  margin-bottom: 0;
}

.dashboard-reservation-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-reservation-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.28);
}

.dashboard-reservation-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.dashboard-reservation-card strong {
  color: var(--cream);
  overflow-wrap: anywhere;
}

.dashboard-reservation-card > div:first-child span {
  flex: 0 0 auto;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(217, 178, 76, 0.15);
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.dashboard-reservation-card.status-confirmed > div:first-child span,
.dashboard-reservation-card.status-attended > div:first-child span {
  background: rgba(65, 147, 92, 0.18);
  color: #9ed8b4;
}

.dashboard-reservation-card.status-canceled > div:first-child span {
  background: rgba(120, 38, 38, 0.22);
  color: #f2a8a8;
}

.dashboard-reservation-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-empty {
  padding: 1rem;
  border: 1px dashed rgba(217, 178, 76, 0.3);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(8, 8, 8, 0.2);
}

.dashboard-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-benefit-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid rgba(217, 178, 76, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(217, 178, 76, 0.18), rgba(244, 239, 229, 0.03)),
    rgba(8, 8, 8, 0.22);
}

.dashboard-benefit-grid article span {
  width: 34px;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--gold-strong);
}

.dashboard-benefit-grid h4 {
  margin: 0 0 0.5rem;
  color: var(--cream);
  font-size: 1rem;
}

.dashboard-benefit-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.seat-selection {
  display: grid;
  gap: 1.1rem;
  margin-top: 0;
  padding-top: 0;
}

.seat-selection-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.seat-selection-header h2 {
  margin-bottom: 0.35rem;
}

.seat-selection-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.cinema-stage {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #070707;
  font-weight: 900;
  letter-spacing: 0.18em;
  border-radius: 8px 8px 32px 32px;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  box-shadow: 0 18px 44px rgba(221, 177, 73, 0.18);
}

.seat-map-shell {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 239, 229, 0.04), rgba(244, 239, 229, 0.01)),
    var(--panel);
}

.seat-map {
  min-width: 760px;
  display: grid;
  gap: 0.45rem;
}

.seat-row {
  display: grid;
  grid-template-columns: 2rem repeat(20, minmax(30px, 1fr));
  gap: 0.35rem;
  align-items: center;
}

.seat-row-label {
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}

.seat-button {
  min-width: 30px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(244, 239, 229, 0.18);
  border-radius: 7px 7px 12px 12px;
  color: var(--cream);
  background: #17201d;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.seat-button:hover:not(:disabled),
.seat-button:focus-visible:not(:disabled) {
  border-color: var(--gold);
  background: #24352f;
  outline: none;
}

.seat-button.selected {
  color: #070707;
  border-color: var(--gold-strong);
  background: var(--gold-strong);
}

.seat-button.pending {
  color: #080808;
  border-color: #d79b38;
  background: #d79b38;
  cursor: not-allowed;
}

.seat-button.reserved,
.seat-button:disabled {
  color: rgba(244, 239, 229, 0.46);
  border-color: rgba(244, 239, 229, 0.08);
  background: #3a1717;
  cursor: not-allowed;
}

.seat-button.pending:disabled {
  color: #080808;
  border-color: #d79b38;
  background: #d79b38;
}

.seat-entrances {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-weight: 900;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--muted);
  font-weight: 800;
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.seat-swatch {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 5px 5px 8px 8px;
  border: 1px solid rgba(244, 239, 229, 0.18);
}

.seat-swatch.available {
  background: #17201d;
}

.seat-swatch.selected {
  background: var(--gold-strong);
}

.seat-swatch.pending {
  background: #d79b38;
}

.seat-swatch.reserved {
  background: #3a1717;
}

.selected-seat-summary {
  margin: 0;
  color: var(--cream);
  font-weight: 900;
}

.partners-page {
  display: grid;
  gap: 2rem;
}

.partners-group {
  display: grid;
  gap: 1.1rem;
}

.partners-group-heading {
  display: grid;
  gap: 0.45rem;
  max-width: 780px;
}

.partners-group-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.partners-group-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.partner-festival-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.partner-sin-grid,
.partner-residency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-logo-card {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 170, 74, 0.08), rgba(59, 140, 130, 0.1)),
    var(--panel);
}

.partner-logo-card.linked {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.partner-logo-card.linked:hover,
.partner-logo-card.linked:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212, 170, 74, 0.65);
  background:
    linear-gradient(135deg, rgba(212, 170, 74, 0.14), rgba(59, 140, 130, 0.12)),
    var(--panel);
}

.partner-logo-card img {
  width: min(100%, 300px);
  max-height: 120px;
  object-fit: contain;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.partner-logo-card span {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

.partner-logo-card.placeholder {
  min-height: 150px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(212, 170, 74, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.025);
}

.partner-logo-card.placeholder span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem max(1rem, calc((100% - 1160px) / 2));
  background: var(--panel);
  border-top: 1px solid rgba(212, 170, 74, 0.2);
}

.site-footer strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.site-footer p {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 0;
}

.site-footer span {
  display: block;
  color: var(--cream);
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: var(--gold-strong);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 8, 8, 0.82);
}

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

.member-modal {
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.modal-header button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-form-wide {
  grid-column: 1 / -1;
}

.member-upload-field {
  display: grid;
  gap: 0.5rem;
}

.member-upload-field input[type="file"] {
  width: 100%;
  padding: 0.8rem;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(212, 170, 74, 0.45);
  border-radius: 8px;
  cursor: pointer;
}

.member-upload-field input[type="file"]::file-selector-button {
  margin-inline-end: 0.75rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 6px;
  color: #080808;
  background: var(--gold-strong);
  font-weight: 850;
  cursor: pointer;
}

.member-upload-field small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.member-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem;
  color: var(--soft);
  background: rgba(212, 170, 74, 0.08);
  border: 1px solid rgba(212, 170, 74, 0.28);
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.55;
}

.member-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  accent-color: var(--gold-strong);
}

.member-consent span {
  color: var(--soft);
}

.member-verification {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(221, 177, 73, 0.3);
  border-radius: 8px;
  background: rgba(221, 177, 73, 0.08);
}

.member-verification[hidden] {
  display: none;
}

.member-verification input {
  text-align: center;
  letter-spacing: 0.18em;
  font-weight: 800;
}

[dir="rtl"] .member-verification input {
  direction: ltr;
}

.member-verification p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.member-modal input:disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.member-complete {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 6vw, 3.5rem) 0.5rem 0.75rem;
  text-align: center;
}

.member-complete h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.member-complete p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select {
  font-family: "Cairo", var(--font-body);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .brand,
html[lang="ar"] .quote-panel p,
html[lang="ar"] .partner-logo-card span,
html[lang="ar"] .site-footer strong {
  font-family: "Cairo", var(--font-body);
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .inline-actions,
html[dir="rtl"] .modal-header {
  direction: rtl;
}

html[dir="rtl"] .hero-content {
  margin-left: 0;
  margin-right: max(1rem, calc((100% - 1160px) / 2));
  text-align: right;
}

html[dir="rtl"] .page-hero,
html[dir="rtl"] .section,
html[dir="rtl"] .site-footer,
html[dir="rtl"] .member-modal {
  text-align: right;
}

html[dir="rtl"] .metrics-band div {
  border-right: 0;
  border-left: 1px solid rgba(244, 239, 229, 0.08);
}

html[dir="rtl"] .photo-stack figcaption {
  left: auto;
  right: 0.8rem;
}

html[dir="rtl"] .festival-gallery figcaption {
  left: auto;
  right: 0.8rem;
}

html[dir="rtl"] .activity-card {
  text-align: right;
}

html[dir="rtl"] .activity-back {
  justify-self: end;
}

html[dir="rtl"] .activity-detail-gallery figcaption {
  left: auto;
  right: 0.8rem;
}

html[dir="rtl"] .activity-detail-main-image figcaption {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .activity-detail-copy {
  border-right: 3px solid var(--gold);
  border-left: 0;
  border-radius: 8px 0 0 8px;
}

html[dir="rtl"] .closing-cta {
  text-align: center;
}

html[dir="rtl"] .seat-row {
  direction: ltr;
}

html[dir="rtl"] .seat-selection-header {
  direction: rtl;
}

@media (max-width: 1120px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(8, 8, 8, 0.96);
    border-bottom: 1px solid rgba(212, 170, 74, 0.18);
  }

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

  .nav-links a {
    display: block;
    border: 1px solid rgba(244, 239, 229, 0.1);
  }

  .press-featured-grid,
  .press-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .press-card.featured:first-child {
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-content {
    width: min(100% - 2rem, 680px);
    margin: 0 auto;
  }

  .metrics-band,
  .intro-grid,
  .split,
  .bureau-layout,
  .partner-layout,
  .reservation-layout,
  .reservation-choice-grid,
  .global-connect,
  .activity-feature,
  .dashboard-auth-grid,
  .dashboard-profile-grid,
  .dashboard-content-grid,
  .scanner-grid,
  .ticket-status-shell,
  .admin-toolbar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .scanner-heading,
  .scanner-history-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .scanner-heading {
    display: grid;
  }

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

  .scanner-heading-actions,
  .admin-filter-tabs,
  .admin-card-actions {
    justify-content: flex-start;
  }

  .ticket-status-result dl,
  .admin-reservation-card dl {
    grid-template-columns: 1fr;
  }

  .admin-reservation-card-head {
    display: grid;
  }

  .reservation-event-card {
    grid-template-columns: 1fr;
  }

  .reservation-card-public {
    order: 1;
  }

  .reservation-card-member {
    order: 2;
  }

  .reservation-event-poster {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 178, 76, 0.22);
    border-radius: 8px 8px 0 0;
  }

  .reservation-selected-event {
    align-items: flex-start;
    flex-direction: column;
  }

  .press-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .press-featured-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .press-card.featured,
  .press-card.featured:first-child {
    min-height: 0;
    grid-row: auto;
  }

  .global-connect {
    padding-top: 1.25rem;
  }

  .global-social-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-icon-grid {
    justify-content: flex-start;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 239, 229, 0.08);
  }

  .cards-grid,
  .mission-grid,
  .benefits-list,
  .partner-logo-grid,
  .partner-sin-grid,
  .partner-residency-grid,
  .partner-festival-grid,
  .activity-card-grid,
  .activity-detail-points,
  .activity-detail-gallery,
  .dashboard-stat-grid,
  .dashboard-benefit-grid {
    grid-template-columns: 1fr;
  }

  .activities-intro,
  .activity-detail-hero {
    grid-template-columns: 1fr;
  }

  .activities-intro {
    display: grid;
  }

  .activity-detail-main-image {
    min-height: 300px;
  }

  .activity-detail-gallery figure,
  .activity-detail-gallery figure.featured {
    grid-column: auto;
  }

  .info-card.wide {
    grid-column: span 1;
  }

  .photo-stack {
    grid-template-columns: 1fr;
  }

  .festival-gallery {
    grid-template-columns: 1fr;
  }

  .festival-gallery figure,
  .festival-gallery figure:nth-child(1),
  .festival-gallery figure:nth-child(2) {
    min-height: 240px;
    grid-row: auto;
  }

  .page-hero {
    min-height: 250px;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }

  .seat-selection-header {
    display: grid;
  }

  .dashboard-topbar {
    display: grid;
  }

  .dashboard-actions {
    justify-content: stretch;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .hero-logo {
    width: 92px;
  }

  .hero {
    min-height: calc(90svh - 76px);
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .activity-card {
    grid-template-rows: 220px 1fr;
  }

  .activity-card-media {
    min-height: 220px;
  }

  .activity-detail-hero {
    padding: 0.75rem;
  }

  .activity-detail-main-image {
    min-height: 240px;
  }

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

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

  .member-modal {
    max-height: 90vh;
    padding: 1.15rem;
  }

  .dashboard-profile-card dl,
  .dashboard-reservation-card dl {
    grid-template-columns: 1fr;
  }

  .dashboard-reservation-card > div:first-child {
    align-items: start;
    flex-direction: column;
  }

  .scanner-controls {
    display: grid;
  }

  .scanner-video-frame {
    min-height: 260px;
  }

  .seat-map-shell {
    padding: 0.75rem;
  }

  .seat-map {
    min-width: 680px;
  }

  .seat-row {
    grid-template-columns: 1.6rem repeat(20, minmax(26px, 1fr));
    gap: 0.25rem;
  }

  .seat-button {
    min-width: 26px;
    min-height: 32px;
    font-size: 0.66rem;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }
}
