:root {
  /* Event-specific theme (overrides site defaults when this file is loaded last) */
  --primary: #d70f0f;        /* MAXIMUS red */
  --accent: #ffffff;         /* clean focus/hi-lights for event look */
  --bg: #000;
  --text: #fff;
  --muted: #aaa;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --radius: 12px;
  --gap: 24px;
  --banner: #d6ff00; /* poster neon banner (true neon green) */
  --vip: #ffd54d; /* warm gold for VIP highlights */
}

/* ------------------------------------
   Base / layout helpers
------------------------------------ */
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: 'Oswald', sans-serif; }
section { padding: clamp(48px, 6vw, 96px) 16px; }

main > section > :not(.hero-video):not(.hero-media) { max-width: 1200px; margin-inline: auto; }

/* Header logo sizing and spinner/animation override */
.header .logo img {
  max-height: 50px;
  width: auto;
  animation: none !important;
}

/* Header alignment overrides: center nav items regardless of logo width */
.header { position: relative; }
.header .nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; }
.header .nav ul { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; }

/* Prevent blue selection/tap glow on mobile nav links */
.header .nav a,
.header .nav a:visited {
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.header .nav a:focus,
.header .nav a:active {
  outline: none;
  background: transparent;
}

/* ----- Burger & mobile nav (CSS-only friendly) ----- */
/* Hidden by default on desktop */
.header .burger { display: none; }

/* Burger icon base */
.header .burger {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.header .burger:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.header .burger span,
.header .burger::before,
.header .burger::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
}
.header .burger::before { transform: translateY(-6px); }
.header .burger::after { transform: translateY(6px); }

/* Mobile layout */
@media (max-width: 960px) {
  /* Show burger, remove centered absolute nav */
  .header .burger { display: inline-flex; z-index: 1001; }
  .header .nav { position: fixed; top: 64px; left: 0; right: 0; bottom: auto; width: auto; max-height: calc(100vh - 64px); transform: translateY(-110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .24s ease, opacity .2s ease; background: rgba(0,0,0,.95); backdrop-filter: blur(8px); padding: 16px 20px 24px; box-shadow: 0 12px 30px rgba(0,0,0,.5); overflow-y: auto; z-index: 1000; }
  .header .nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .header .nav a { font-size: 1.05rem; display: block; padding: 10px 0; }

  /* Undo desktop centering */

  /* Open states — works with either a class on header or a checkbox hack */
  .header.nav-open .nav { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  #nav-toggle:checked ~ .nav { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }

  /* Burger X animation when open */
  .header.nav-open .burger span { opacity: 0; }
  .header.nav-open .burger::before { transform: rotate(45deg); }
  .header.nav-open .burger::after  { transform: rotate(-45deg); }
  #nav-toggle:checked + label.burger span { opacity: 0; }
  #nav-toggle:checked + label.burger::before { transform: rotate(45deg); }
  #nav-toggle:checked + label.burger::after  { transform: rotate(-45deg); }
}

h1, h2, h3 { text-transform: uppercase; letter-spacing: 0.02em; }

.btn, .btn-cta, .btn-ticket, .map-link, .card-btn, .lightbox-close, .lightbox-prev, .lightbox-next {
  outline: none;
}
.btn:focus-visible, .btn-cta:focus-visible, .btn-ticket:focus-visible, .map-link:focus-visible, .card-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------
   HERO
------------------------------------ */
.hero-section { position: relative; display: grid; place-items: center; min-height: clamp(520px, 70vh, 780px); min-height: min(100svh, 820px); overflow: hidden; }
.hero-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 55%,
    rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%); z-index: 1; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05) brightness(.9);
  transform: scale(1.02);
}
.hero-media { position: absolute; inset: 0; background: url('/assets/maximus/hero.jpg') center/cover no-repeat; filter: saturate(1.05) contrast(1.05) brightness(.9); transform: scale(1.05); will-change: transform; z-index: -1; }
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-inline: 16px;
  width: min(1200px, 100%);
}
.event-title { font-size: clamp(2.2rem, 5vw + .5rem, 5rem); font-weight: 900; margin: 0; line-height: 1.05; text-shadow: 0 4px 18px rgba(0,0,0,.45); }
.event-title span:not(.event-banner) { display: block; color: var(--primary); letter-spacing: 0.06em; }

/* Poster-style banner for DOMINATION */
.event-title .event-banner {
  background: var(--banner);
  color: #0a0a0a; /* near-black text like poster */
  display: block; /* force to its own line under MAXIMUS 2025 */
  margin-top: .25em;
  padding: .16em .5em .20em;
  line-height: 1;
  border-radius: 0; /* sharp corners like poster */
  letter-spacing: .02em;
  text-shadow: none;
}

.event-meta { margin: 12px 0 20px; font-weight: 600; opacity: .9; }

.live-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #000; font-weight: 900; padding: 8px 12px; border-radius: 999px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 50%); }
.live-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #000; animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity: .9 } 50%{ transform: scale(1.35); opacity: .5 } }

.countdown .countdown-badge {
  display: inline-block;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

.cta-group { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 20px; flex-wrap: wrap; }

/* Primary CTA — outline style */
.btn-cta {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: .66rem 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn-cta:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }

/* Secondary — clean outline */
.btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: .66rem 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }

/* Normalize hero CTAs to identical outline look */
.cta-group .btn,
.cta-group .btn-cta {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: .66rem 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;           /* equal height */
  min-width: 140px;         /* equal visual width */
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.cta-group .btn:hover,
.cta-group .btn-cta:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

/* Remove blue tap/selection highlight on controls */
.btn, .btn-cta, .btn-ticket, .map-link, .burger, .card-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
/* Keep focus only for keyboard users */
.btn:focus, .btn-cta:focus, .btn-ticket:focus, .map-link:focus, .card-btn:focus, .burger:focus {
  outline: none;
}

/* Added styles to override .btn-ticket appearance inside .cta-group */
.cta-group .btn-ticket {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.7) !important;
}
.cta-group .btn-ticket:hover {
  background: rgba(255,255,255,.08) !important;
}

/* ------------------------------------
   TICKETS
------------------------------------ */
.tickets-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin: 0 0 8px; }
.tickets-note { margin: 0 0 24px; opacity: .8; }
.ticket-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.ticket-tier { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 24px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.3); backdrop-filter: blur(8px) saturate(120%); transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.ticket-tier:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.ticket-tier h3 { margin: 0 0 6px; font-size: 1.2rem; }
.ticket-tier .price { font-size: 2rem; font-weight: 900; margin: 0; }
.ticket-tier .price small { font-size: .8rem; opacity: .7; }
.ticket-tier .desc { font-size: 0.9rem; opacity: 0.85; line-height: 1.4; }
.ticket-actions { display: flex; justify-content: center; margin-top: 24px; }
.btn-ticket {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: .66rem 1.3rem;
  font-weight: 900;
  letter-spacing: .04em;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-ticket:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

/* Highlight for Best Price tier */
.ticket-tier.best {
  position: relative;
  border-color: color-mix(in srgb, var(--banner), transparent 50%);
  box-shadow: 0 10px 28px rgba(214,255,0,.25), 0 0 0 2px color-mix(in srgb, var(--banner), transparent 80%);
}
.ticket-tier.best:hover {
  box-shadow: 0 14px 36px rgba(214,255,0,.32), 0 0 0 2px color-mix(in srgb, var(--banner), transparent 70%);
}

/* Badge next to the title */
.ticket-tier .badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.25);
}

.ticket-tier.best .badge {
  background: var(--banner);
  color: #0a0a0a; /* strong contrast on neon */
  box-shadow: 0 2px 10px rgba(214,255,0,.35);
}

/* Small screens: slightly smaller badge */
@media (max-width: 640px) {
  .ticket-tier .badge { font-size: .65rem; padding: 3px 7px; border-radius: 5px; }
}

/* VIP Best Price variant (gold colorway) */
.ticket-tier[aria-label*="VIP"].best {
  border-color: color-mix(in srgb, var(--vip), transparent 50%);
  box-shadow: 0 10px 28px rgba(255,213,77,.25), 0 0 0 2px color-mix(in srgb, var(--vip), transparent 78%);
}
.ticket-tier[aria-label*="VIP"].best:hover {
  box-shadow: 0 14px 36px rgba(255,213,77,.32), 0 0 0 2px color-mix(in srgb, var(--vip), transparent 68%);
}
.ticket-tier[aria-label*="VIP"].best .badge {
  background: var(--vip);
  color: #000; /* strong contrast on gold */
  box-shadow: 0 2px 10px rgba(255,213,77,.35);
}

/* ------------------------------------
   LINE-UP
------------------------------------ */
.lineup-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin-bottom: 24px; }
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.artist-card { position: relative; overflow: hidden; border-radius: 8px; background: var(--surface-2); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.artist-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block; transition: transform .35s ease; will-change: transform; }
.artist-card span { position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-weight: 900; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 60%); }
.artist-card:hover img { transform: scale(1.06); }
.lineup-note { margin-top: 10px; opacity: .7; }

/* ------------------------------------
   TIMETABLE (section shell; slot styles in timetable.css)
------------------------------------ */
.timetable-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin-bottom: 16px; }
.timetable-placeholder {
  opacity: .8;
  padding: 12px 0 0;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  grid-column: 1 / -1;   /* span full grid if parent uses CSS Grid */
  justify-self: center;  /* center within grid cell */
}


/* Remove timetable lines completely */
.timetable-section h2::before,
.timetable-section h2::after,
.timetable-section::before,
.timetable-section::after {
  content: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Nuke any descendant pseudo-elements that still draw a line */
.timetable-section *::before,
.timetable-section *::after {
  content: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Hard-disable any lines/decoration in TIMETABLE */
.timetable-section,
.timetable-section h2 {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Hide any helper elements that might draw rules */
.timetable-section .divider,
.timetable-section .rule,
.timetable-section .line,
.timetable-section hr {
  display: none !important;
}

/* ------------------------------------
   DJ CONTEST
------------------------------------ */
.contest-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin-bottom: 8px; }
.contest-section p { margin: 0 0 12px; opacity: .9; }
.contest-dates { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.contest-dates li { background: var(--surface-2); padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--text), transparent 85%); }

/* ------------------------------------
   VENUE
------------------------------------ */
.venue-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin-bottom: 8px; }
.map-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; padding: .6rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text), transparent 80%); transition: background-color .2s ease, color .2s ease, transform .2s ease; }

.map-link:hover { transform: translateY(-1px); background: #111; }

/* ===== Venue map styling (clean, premium) ===== */
.venue-map {
  position: relative;
  width: 100%;
  margin: 12px auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  background: #0b0b0b; /* fallback while map loads */
}

.venue-map iframe {
  display: block;
  width: 100%;
  height: 400px;  /* desktop default */
  border: 0;
}

.venue-section p {
  text-align: center;
  opacity: .9;
}

/* make the external link look consistent with outline buttons */
.venue-section .map-link {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: .66rem 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.venue-section .map-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

/* Mobile height tweak */
@media (max-width: 640px) {
  .venue-map iframe { height: 320px; }
}

/* ------------------------------------
   NEWS
------------------------------------ */
.news-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin-bottom: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text), transparent 85%); border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.35); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.news-card h3 { margin: 12px; font-size: 1.1rem; }
.card-btn { display: block; color: inherit; text-decoration: none; }
.card-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------
   FAQ
------------------------------------ */
.faq-section h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); margin-bottom: 12px; }
.faq-section details { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text), transparent 85%); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; transition: background-color .2s ease, border-color .2s ease; }
.faq-section summary { cursor: pointer; font-weight: 800; }
.faq-section details[open] { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary), transparent 50%); }

/* ------------------------------------
   Responsiveness
------------------------------------ */
@media (max-width: 960px) {
  .hero-section { min-height: clamp(460px, 65vh, 680px); }
}
@media (max-width: 640px) {
  .cta-group { gap: 8px; }
  .artist-card span { font-size: .9rem; }
}

/* ------------------------------------
   Hover-only & motion prefs
------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  .btn-ticket:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
  .artist-card:hover img { transform: scale(1.06); }
  .news-card:hover { transform: translateY(-4px); }
}

/* Headings centered only (safe, does not affect icons/layout) */

.tickets-section h2,
.lineup-section h2,
.timetable-section h2,
.contest-section h2,
.venue-section h2,
.news-section h2,
.faq-section h2 { text-align: center; margin-left: auto; margin-right: auto; }

/* Center key helper texts under sections */
.tickets-note,
.lineup-note,
.timetable-placeholder,
.venue-section p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------
   MODAL — header alignment & close button position (mobile-safe)
------------------------------------ */
/* Make modal header a flex row so title and close sit on the same line */
.modal .modal-header,
.ticket-modal .modal-header,
.dialog .modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-right: 16px; /* room for close */
}

/* Ensure title doesn't push layout oddly */
.modal .modal-header .modal-title,
.ticket-modal .modal-header .modal-title,
.dialog .modal-header .modal-title {
  margin: 0;
  line-height: 1.2;
}

/* Normalize the close button to be inside the header row, not absolutely positioned */
.modal .modal-close,
.modal .close,
.ticket-modal .modal-close,
.ticket-modal .close,
.dialog .modal-close,
.dialog .close {
  position: static !important;  /* stop absolute top/right */
  top: auto !important;
  right: auto !important;
  transform: none !important;
  margin-left: auto;            /* push to the right end of header */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;   /* comfortable tap target */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

/* Hover/focus affordances consistent with the site buttons */
.modal .modal-close:hover,
.modal .close:hover,
.ticket-modal .modal-close:hover,
.ticket-modal .close:hover,
.dialog .modal-close:hover,
.dialog .close:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.modal .modal-close:focus-visible,
.modal .close:focus-visible,
.ticket-modal .modal-close:focus-visible,
.ticket-modal .close:focus-visible,
.dialog .modal-close:focus-visible,
.dialog .close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* --- Fallback/override: when the close button is a sibling of .modal-header --- */
.modal,
.ticket-modal,
.dialog { position: relative; }

/* Ensure header has a sensible height so we can vertically align the close */
.modal .modal-header,
.ticket-modal .modal-header,
.dialog .modal-header {
  min-height: 56px;            /* room for title + close */
  padding-top: 14px;
  padding-bottom: 14px;
  padding-right: 56px;         /* reserve space for the X on the right */
}

/* If the close is a direct child of the dialog container, anchor it to header line */
.modal > .modal-close,
.modal > .close,
.ticket-modal > .modal-close,
.ticket-modal > .close,
.dialog > .modal-close,
.dialog > .close {
  position: absolute !important;
  top: 18px;                   /* inside the panel, aligned with header */
  right: 18px;                 /* pull it in from the edge */
  margin-left: 0;
  transform: none !important;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

@media (max-width: 640px) {
  .modal .modal-header,
  .ticket-modal .modal-header,
  .dialog .modal-header { padding-right: 44px; min-height: 48px; }
  .modal > .modal-close,
  .modal > .close,
  .ticket-modal > .modal-close,
  .ticket-modal > .close,
  .dialog > .modal-close,
  .dialog > .close { top: 12px; right: 12px; width: 32px; height: 32px; }
}

/* --- Hard containment: anchor X inside the inner panel (.modal-content) --- */
.modal .modal-content,
.ticket-modal .modal-content,
.dialog .modal-content { position: relative; }

.modal .modal-content > .modal-close,
.modal .modal-content > .close,
.ticket-modal .modal-content > .modal-close,
.ticket-modal .modal-content > .close,
.dialog .modal-content > .modal-close,
.dialog .modal-content > .close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  margin: 0 !important;
  transform: none !important;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  z-index: 2;
}

/* If there is a header inside .modal-content, reserve space for the close */
.modal .modal-content .modal-header,
.ticket-modal .modal-content .modal-header,
.dialog .modal-content .modal-header { padding-right: 48px; }

@media (min-width: 641px) {
  .modal .modal-content > .modal-close,
  .modal .modal-content > .close,
  .ticket-modal .modal-content > .modal-close,
  .ticket-modal .modal-content > .close,
  .dialog .modal-content > .modal-close,
  .dialog .modal-content > .close { top: 16px !important; right: 16px !important; width: 36px; height: 36px; }
  .modal .modal-content .modal-header,
  .ticket-modal .modal-content .modal-header,
  .dialog .modal-content .modal-header { padding-right: 56px; }
}

/* ------------------------------------
   FOOTER
------------------------------------ */
.footer {
  background: #0b0b0b; /* subtle separation from page background */
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 16px;
  color: rgba(255,255,255,.78);
}
.footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer small { opacity: .85; }
.footer a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.35);
}
.footer a:hover {
  color: #fff;
  border-bottom-style: solid;
}

/* center stack on small screens */
@media (max-width: 720px) {
  .footer .inner { flex-direction: column; text-align: center; }
}
