/* Seven Tours UK — stage effects, animations, hero composition.
   Tailwind output.css handles utilities; this file owns the cinema. */

/* ============================================================
   Brand accent palette (decorative only — not used for currency)
   ============================================================ */
:root {
  --beam-magenta: 255 60 180;
  --beam-violet: 138 96 255;
  --beam-cyan: 80 220 255;
  --beam-amber: 255 170 60;
  --stage-floor: 12 8 24;
  /* Header total: py-4 (32px) + h-8 logo (32px) + 1px border-b = 65px */
  --header-h: 65px;
}

/* ============================================================
   Live spots pulse
   ============================================================ */
@keyframes pulse-spots {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.spots-live {
  animation: pulse-spots 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(96, 80, 255, 0.15);
}

/* ============================================================
   HERO VIEWPORT — header + hero + marquee fit exactly 1 viewport
   on initial load. We subtract the page header so the marquee
   lands flush with the visible viewport bottom on first paint.
   ============================================================ */
.hero-viewport {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}
.hero-viewport > .hero-stage {
  flex: 1 1 auto;
  min-height: 0;
}
.hero-viewport > .marquee {
  flex: 0 0 auto;
}

/* ============================================================
   HERO STAGE
   ============================================================ */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050309;
  color: #f4f1ff;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.hero-stage > .hero-content {
  flex: 1 1 auto;
  min-height: 0;
}

/* Layered background: photo backdrop → color washes → beams → content */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/the_x_stage.webp");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}
.hero-bg::after {
  /* Multi-stop overlay: lifts violet/magenta wash on top of the photo
     so the photo grounds the scene without overpowering the brand. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(var(--beam-violet) / 0.35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(var(--beam-magenta) / 0.22), transparent 60%),
    linear-gradient(180deg, rgba(7,5,15,0.55) 0%, rgba(12,8,32,0.45) 50%, rgba(5,3,9,0.85) 100%);
}

/* Subtle scanline / film grain */
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,0.02) 2px 3px);
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Concrete stage floor at the bottom */
.hero-stage .stage-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.85) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(var(--beam-violet) / 0.4), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Spotlight beams sweeping behind content */
.hero-beam {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 28%;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
  filter: blur(48px);
  opacity: 0.85;
  mix-blend-mode: screen;
  transform-origin: top center;
}
.hero-beam--magenta {
  left: 8%;
  background: linear-gradient(180deg,
    rgba(var(--beam-magenta) / 0.7) 0%,
    rgba(var(--beam-magenta) / 0.4) 35%,
    transparent 80%);
  animation: beam-sweep 9s ease-in-out infinite alternate;
  animation-delay: 0s;
}
.hero-beam--violet {
  left: 40%;
  background: linear-gradient(180deg,
    rgba(var(--beam-violet) / 0.85) 0%,
    rgba(var(--beam-violet) / 0.45) 35%,
    transparent 80%);
  animation: beam-sweep 11s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.hero-beam--cyan {
  right: 6%;
  background: linear-gradient(180deg,
    rgba(var(--beam-cyan) / 0.55) 0%,
    rgba(var(--beam-cyan) / 0.3) 35%,
    transparent 80%);
  animation: beam-sweep 13s ease-in-out infinite alternate;
  animation-delay: -7s;
}

@keyframes beam-sweep {
  0%   { transform: translateX(-25%) skewX(-8deg); opacity: 0.55; }
  50%  { transform: translateX(0%) skewX(0deg);    opacity: 0.9;  }
  100% { transform: translateX(25%) skewX(8deg);   opacity: 0.55; }
}

/* Haze layer (smoke) */
.hero-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 30% at 20% 70%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,255,255,0.05), transparent 60%);
  filter: blur(12px);
  animation: haze-drift 16s ease-in-out infinite alternate;
}
@keyframes haze-drift {
  0%   { transform: translate3d(-2%, 0, 0); }
  100% { transform: translate3d(2%, -1%, 0); }
}

/* Hero text */
.hero-stage .hero-content {
  position: relative;
  z-index: 5;
}
.hero-title {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #cdbcff 60%, #8a78ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 40px rgba(138, 96, 255, 0.35);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6dfff;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgb(var(--beam-magenta));
  box-shadow: 0 0 12px rgb(var(--beam-magenta));
  animation: pulse-spots 1.6s ease-in-out infinite;
}

/* Co-branding lockup — Seven Tours UK × Melons Music World */
.hero-partners {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-partners__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6acd1;
}
.hero-partners__lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.hero-partners__brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-partners__brand--accent {
  background: linear-gradient(135deg, rgb(var(--beam-magenta)), rgb(var(--beam-cyan)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-partners__amp {
  font-size: 1rem;
  font-weight: 400;
  color: #8a7eb5;
}
@media (min-width: 768px) {
  .hero-partners__brand { font-size: 1.4rem; }
}

/* Hero CTA buttons */
.cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--beam-magenta)), rgb(var(--beam-violet)));
  box-shadow:
    0 10px 40px -10px rgba(var(--beam-magenta) / 0.6),
    0 20px 60px -20px rgba(var(--beam-violet) / 0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 50px -10px rgba(var(--beam-magenta) / 0.75),
    0 24px 70px -20px rgba(var(--beam-violet) / 0.65),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e8e1ff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  transition: background 200ms ease, border-color 200ms ease;
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
}

/* Live spots meter (segmented bar) */
.spots-meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.spots-meter-fill {
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: linear-gradient(90deg,
    rgb(var(--beam-cyan)),
    rgb(var(--beam-violet)),
    rgb(var(--beam-magenta)));
  box-shadow: 0 0 16px rgba(var(--beam-violet) / 0.6);
  transition: width 600ms ease;
}

/* Hero stat tiles */
.hero-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(8px);
}
.hero-stat dt { color: #b6acd1; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-stat dd { color: #fff; font-size: 1.2rem; font-weight: 600; margin-top: 0.2rem; }

/* ============================================================
   STAGE RAIL with lit event cards
   ============================================================ */
.lit-section {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(var(--beam-violet) / 0.18), transparent 70%),
    linear-gradient(180deg, #0a071a 0%, #050309 100%);
  color: #f4f1ff;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
  isolation: isolate;
}
.lit-section .stage-rail {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 1;
  pointer-events: none;
}
.stage-light {
  position: relative;
  justify-self: center;
  margin-top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.95), rgba(255,255,255,0.3) 40%, transparent 70%);
  box-shadow:
    0 0 24px var(--light-color),
    0 0 60px var(--light-color),
    inset 0 -6px 12px rgba(0,0,0,0.5);
}
.stage-light::before {
  /* Mount bracket */
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 4px; height: 12px;
  background: #1a1530;
  transform: translateX(-50%);
  border-radius: 2px;
}
.stage-light::after {
  /* Cone beam shining down */
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 360px;
  height: 540px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 100% at 50% 0%,
    var(--light-color) 0%,
    rgba(0,0,0,0) 70%);
  filter: blur(10px);
  opacity: 0.7;
  z-index: -1;
  animation: light-flicker 4s ease-in-out infinite;
}

.stage-light--magenta { --light-color: rgba(var(--beam-magenta) / 0.85); }
.stage-light--violet  { --light-color: rgba(var(--beam-violet) / 0.85); }
.stage-light--cyan    { --light-color: rgba(var(--beam-cyan) / 0.85); }

@keyframes light-flicker {
  0%, 100% { opacity: 0.6; }
  20% { opacity: 0.75; }
  50% { opacity: 0.55; }
  80% { opacity: 0.8; }
}

/* Lit event card variant — overrides the basic event-card */
.lit-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20,14,40,0.8), rgba(10,7,24,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
  --lit-color: rgba(var(--beam-violet) / 0.7);
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.7),
    0 -8px 40px -10px var(--lit-color);
}
.lit-card::before {
  /* Top-edge spill from the spotlight above */
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 80%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 80% at 50% 0%,
    var(--lit-color) 0%,
    transparent 65%);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}
.lit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
}
.lit-card--magenta { --lit-color: rgba(var(--beam-magenta) / 0.7); }
.lit-card--violet  { --lit-color: rgba(var(--beam-violet) / 0.7); }
.lit-card--cyan    { --lit-color: rgba(var(--beam-cyan) / 0.7); }

.lit-card .card-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  background:
    linear-gradient(180deg, rgba(13,8,32,0.55), rgba(5,3,9,0.92)),
    radial-gradient(ellipse 60% 70% at 50% 40%, var(--lit-color), transparent 70%),
    url("../img/the_x_belek_spotss.jpg") center / cover no-repeat,
    linear-gradient(180deg, #0d0820, #050309);
  background-blend-mode: normal, screen, normal, normal;
}
.lit-card--magenta .card-cover { background-image:
    linear-gradient(180deg, rgba(13,8,32,0.50), rgba(5,3,9,0.92)),
    radial-gradient(ellipse 60% 70% at 50% 40%, var(--lit-color), transparent 70%),
    url("../img/the_x_belek_dark.JPEG"),
    linear-gradient(180deg, #0d0820, #050309);
  background-size: cover, auto, cover, auto;
  background-position: center, center, center 40%, center;
  background-repeat: no-repeat;
}
.lit-card--cyan .card-cover { background-image:
    linear-gradient(180deg, rgba(13,8,32,0.55), rgba(5,3,9,0.95)),
    radial-gradient(ellipse 60% 70% at 50% 40%, var(--lit-color), transparent 70%),
    url("../img/the_x_stage.webp"),
    linear-gradient(180deg, #0d0820, #050309);
  background-size: cover, auto, cover, auto;
  background-position: center, center, center 30%, center;
  background-repeat: no-repeat;
}
.lit-card .card-cover::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,0.025) 14px 15px);
  pointer-events: none;
}

.lit-card .card-body { padding: 1.25rem 1.25rem 1.4rem; }
.lit-card h3 {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 0.4rem;
}
.lit-card .card-meta { color: #b6acd1; font-size: 0.78rem; }

/* ============================================================
   Venue panoramic strip (between marquee and lit section)
   ============================================================ */
.venue-strip {
  position: relative;
  height: clamp(380px, 40vw, 620px);
  background:
    linear-gradient(180deg, rgba(7,5,15,0.55), rgba(7,5,15,0.85)),
    url("../img/the_x_belek_spotss.jpg") center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.venue-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(7,5,15,0.6) 100%);
  pointer-events: none;
}
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.venue-strip-tag {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}

/* ============================================================
   Marquee strip — "selling fast" headline ribbon
   ============================================================ */
.marquee {
  display: flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  padding: 0.6rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
}
.marquee-track span::before { content: "✦"; margin-right: 0.6rem; color: rgb(var(--beam-magenta)); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   USER MENU — icon button + dropdown panel
   ============================================================ */
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #e8e1ff;
  transition: background 180ms ease, border-color 180ms ease;
}
.user-menu-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); }
.user-menu-btn[aria-expanded="true"] {
  background: rgba(var(--beam-violet) / 0.15);
  border-color: rgba(var(--beam-violet) / 0.45);
}
.user-menu-chevron {
  transition: transform 180ms ease;
  color: #b6acd1;
}
.user-menu-btn[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--beam-magenta)), rgb(var(--beam-violet)));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 240px;
  background: linear-gradient(180deg, #120c2c 0%, #0a071a 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.9rem;
  padding: 0.5rem;
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.75),
    0 10px 30px -10px rgba(var(--beam-violet) / 0.4);
  z-index: 50;
  animation: dropdown-in 160ms ease-out;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu-header {
  padding: 0.6rem 0.7rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.35rem;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  color: #e8e1ff;
  font-size: 0.88rem;
  transition: background 140ms ease, color 140ms ease;
}
.user-menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.user-menu-item--primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--beam-magenta) / 0.20), rgba(var(--beam-violet) / 0.20));
  border: 1px solid rgba(var(--beam-violet) / 0.40);
}
.user-menu-item--primary:hover {
  background: linear-gradient(135deg, rgba(var(--beam-magenta) / 0.35), rgba(var(--beam-violet) / 0.35));
}
.user-menu-item--danger { color: #fca5a5; }
.user-menu-item--danger:hover { background: rgba(239, 68, 68, 0.12); color: #fecaca; }
.user-menu-item--muted { color: #b6acd1; font-size: 0.82rem; }
.user-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.4rem 0;
}

/* ============================================================
   FOOTER — multi-office, dark with subtle glow
   ============================================================ */
.footer-stage {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #0a071a 0%, #050309 100%);
  color: #f4f1ff;
}
.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 18% 0%, rgba(var(--beam-magenta) / 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 82% 0%, rgba(var(--beam-cyan) / 0.10), transparent 60%);
}

.office-card {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 200ms ease, background 200ms ease;
}
.office-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}
.office-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--beam-magenta) / 0.85), rgba(var(--beam-violet) / 0.85));
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px -4px rgba(var(--beam-magenta) / 0.5);
}
.office-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6acd1;
}
.office-city {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.office-address {
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cdc4ef;
}
.office-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.55rem;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.office-tel:hover {
  background: rgba(var(--beam-magenta) / 0.18);
  border-color: rgba(var(--beam-magenta) / 0.45);
  transform: translateY(-1px);
}
.office-tel span[aria-hidden="true"] {
  color: rgb(var(--beam-magenta));
}

/* ============================================================
   Accessibility — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-beam,
  .hero-haze,
  .stage-light::after,
  .marquee-track,
  .spots-live {
    animation: none !important;
  }
  .cta-primary { transition: none; }
  .lit-card { transition: none; }
}

/* ============================================================
   Event card — horizontal layout on listing page
   ============================================================ */
.event-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-card__inner {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .event-card__inner {
    flex-direction: row;
  }
}

.event-card__media {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .event-card__media {
    width: 40%;
    aspect-ratio: auto;
    min-height: 220px;
  }
}
.dark .event-card__media {
  background: #0a0a0a;
}

.event-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.event-card:hover .event-card-title { transform: translateY(-2px); }
.event-card-title { transition: transform 200ms ease-out; }

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */

/* Floating action button */
.cb-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgb(var(--beam-magenta)), rgb(var(--beam-violet)));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 32px -8px rgba(var(--beam-magenta) / 0.6),
    0 16px 48px -16px rgba(var(--beam-violet) / 0.5);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  animation: cb-fab-pulse 3s ease-in-out infinite;
}
.cb-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 12px 40px -8px rgba(var(--beam-magenta) / 0.75),
    0 20px 56px -16px rgba(var(--beam-violet) / 0.65);
}
.cb-fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
@keyframes cb-fab-pulse {
  0%, 100% { box-shadow: 0 8px 32px -8px rgba(var(--beam-magenta) / 0.6), 0 16px 48px -16px rgba(var(--beam-violet) / 0.5); }
  50% { box-shadow: 0 8px 32px -8px rgba(var(--beam-magenta) / 0.8), 0 16px 48px -16px rgba(var(--beam-violet) / 0.7), 0 0 0 8px rgba(var(--beam-violet) / 0.08); }
}

/* Panel */
.cb-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 910;
  width: 400px;
  max-width: calc(100vw - 2rem);
  height: 560px;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18,12,44,0.97), rgba(7,5,15,0.98));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(24px);
  box-shadow:
    0 32px 80px -20px rgba(0,0,0,0.8),
    0 12px 40px -10px rgba(var(--beam-violet) / 0.35);
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: opacity 250ms ease, transform 250ms ease;
}
.cb-panel--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header bar */
.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(var(--beam-magenta) / 0.15), rgba(var(--beam-violet) / 0.15));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.cb-header__info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cb-header__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse-spots 2s ease-in-out infinite;
}
.cb-header__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.cb-header__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #b6acd1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.cb-header__close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Messages area */
.cb-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
/* Bottom-align messages — first message pushes everything down */
.cb-messages > .cb-msg:first-child {
  margin-top: auto;
}

/* Message wrapper */
.cb-msg { display: flex; }
.cb-msg--user { justify-content: flex-end; }
.cb-msg--assistant { justify-content: flex-start; }

/* Bubbles */
.cb-bubble {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.cb-bubble--user {
  background: linear-gradient(135deg, rgba(var(--beam-magenta) / 0.25), rgba(var(--beam-violet) / 0.25));
  border: 1px solid rgba(var(--beam-violet) / 0.35);
  color: #f0ecff;
  border-bottom-right-radius: 0.3rem;
}
.cb-bubble--assistant {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e2dbff;
  border-bottom-left-radius: 0.3rem;
}

/* Typing indicator */
.cb-bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.2rem;
}
.cb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6acd1;
  animation: cb-typing-bounce 1.4s ease-in-out infinite;
}
.cb-dot:nth-child(2) { animation-delay: 0.15s; }
.cb-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes cb-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input bar */
.cb-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.cb-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #f0ecff;
  /* 16px prevents iOS Safari auto-zoom on focus */
  font-size: 16px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.cb-input::placeholder {
  color: #8b85a8;
}
.cb-input:focus {
  border-color: rgba(var(--beam-violet) / 0.5);
  background: rgba(255,255,255,0.06);
}
.cb-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  border: none;
  background: linear-gradient(135deg, rgb(var(--beam-magenta)), rgb(var(--beam-violet)));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 150ms ease, opacity 150ms ease;
}
.cb-send:hover { transform: scale(1.06); }
.cb-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Mobile: pin panel to visual viewport so iOS keyboard doesn't push it off-screen.
   --cb-vv-top / --cb-vv-height are set by JS via the visualViewport API. */
@media (max-width: 480px) {
  .cb-panel {
    left: 0;
    right: 0;
    bottom: auto;
    top: calc(var(--cb-vv-top, 0px) + 8px);
    height: calc(var(--cb-vv-height, 100dvh) - 16px);
    width: auto;
    max-width: none;
    max-height: none;
    border-radius: 1rem;
    margin: 0 8px;
  }
  .cb-fab {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cb-fab { animation: none; }
  .cb-panel { transition: none; }
  .cb-dot { animation: none; opacity: 0.6; }
}
