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

:root {
  --bg: #0a0000;
  --surface: #110000;
  --border: rgba(180,20,20,0.25);
  --cyan: #ff1a1a;
  --cyan-dim: rgba(220,30,30,0.12);
  --cyan-glow: rgba(220,30,30,0.5);
  --orange: #ff6b35;
  --text: #f0dada;
  --muted: rgba(240,210,210,0.5);
  --display: 'Syne', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --body: 'IBM Plex Sans', sans-serif;
  --st-red: #cc0000;
  --st-dark-red: #7a0000;
  --st-glow: rgba(200,0,0,0.6);
}

@font-face {
  font-family: 'ITC Benguiat';
  src: url('fonts/ITCBenguiatStdMediumCn.woff2') format('woff2'),
       url('fonts/ITCBenguiatStdMediumCn.woff') format('woff'),
       url('fonts/ITCBenguiatStdMediumCn.otf') format('opentype'),
       url('fonts/ITCBenguiatStdMediumCn.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  /* flicker moved off <body> to #flicker-overlay to avoid full-page recomposite */
  isolation: isolate;
}

/* CRT scanline overlay — static gradient, no animation = zero repaint cost */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.10) 2px,
    rgba(0,0,0,0.10) 4px
  );
  pointer-events: none;
  /* No animation, no will-change — static overlay is GPU-free */
}

/* Flicker lives on its own composited layer, not the root.
   Uses a near-black background that flashes to transparent — same visual effect
   as animating body opacity but isolated to one GPU layer. */
#flicker-overlay {
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none;
  background: var(--bg);
  animation: flickerOverlay 7s ease-in-out infinite;
  will-change: opacity;
}

@keyframes flickerOverlay {
  0%, 91%  { opacity: 0; }
  93%      { opacity: 0.65; }
  94%      { opacity: 0; }
  96%      { opacity: 0.35; }
  97%, 100% { opacity: 0; }
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Removed: * { position: relative; z-index: 1; }
   This rule created a new stacking context on EVERY element, completely
   breaking z-index layering and causing random render/paint glitches.
   Stacking contexts are now set only where explicitly needed. */

/* ── ANIMATIONS ── */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%  { opacity: 1; }
  93%  { opacity: 0.3; }
  94%  { opacity: 1; }
  96%  { opacity: 0.6; }
  97%  { opacity: 1; }
}

@keyframes textFlicker {
  0%, 100% { text-shadow: 0 0 18px var(--st-glow), 0 0 40px rgba(180,0,0,0.4); }
  85%  { text-shadow: 0 0 18px var(--st-glow), 0 0 40px rgba(180,0,0,0.4); }
  86%  { text-shadow: none; }
  87%  { text-shadow: 0 0 18px var(--st-glow), 0 0 40px rgba(180,0,0,0.4); }
  90%  { text-shadow: 0 0 25px var(--st-glow), 0 0 60px rgba(200,0,0,0.6); }
  91%  { text-shadow: none; }
  92%  { text-shadow: 0 0 18px var(--st-glow), 0 0 40px rgba(180,0,0,0.4); }
}

@keyframes pulse {
  from { transform: scale(1);   opacity: 0.6; }
  to   { transform: scale(1.2); opacity: 1;   }
}

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

@keyframes vigPulse {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

@keyframes floatSpore {
  0%   { transform: translateY(100vh) translateX(0px); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(var(--drift)); opacity: 0; }
}

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

/* ── MISC ELEMENTS ── */
#vine-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  will-change: contents;
}

.spore {
  position: fixed;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #ff3333;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 6px #ff0000;
  animation: floatSpore linear infinite;
  will-change: transform, opacity;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(6,8,16,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'ITC Benguiat'; font-weight: 400; font-size: 1.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--st-red);
  text-shadow: 0 0 18px var(--st-glow), 0 0 40px rgba(180,0,0,0.4);
  animation: textFlicker 5s ease-in-out infinite;
  will-change: opacity;
}
.nav-logo span { color: var(--text); opacity: 0.4; font-weight: 400; font-size: 0.8rem; margin-left: 0.5rem; font-family: var(--mono); }

nav ul  { list-style: none; display: flex; gap: 2rem; }
nav a   { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 0.2s; }
nav a:hover { color: var(--st-red); }

.nav-register { padding: 0.55rem 1.4rem; border: 1px solid var(--st-red); color: var(--st-red); transition: background 0.2s, color 0.2s; }
.nav-register:hover { background: var(--st-red); color: #fff; }

.overlay-nav .nav-logo {
  display: inline-block;
  cursor: pointer;
}

/* ── HERO ── */
header {
  height: 120svh; min-height: 120svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 15rem clamp(1.5rem, 6vw, 4rem) 3rem;
  position: relative;
}

header > *:not(.hero-video-wrap) { position: relative; z-index: 2; }

.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.55) brightness(0.5) contrast(1.2) sepia(0.25) hue-rotate(-8deg);
  will-change: transform;
}

.hero-video-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(10,0,0,0.82) 0%, rgba(10,0,0,0.45) 55%, rgba(10,0,0,0.1) 100%),
    linear-gradient(to bottom, rgba(10,0,0,0.5)  0%, transparent 25%,  transparent 65%, rgba(10,0,0,0.9) 100%);
}

.hero-video-wrap::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(90,0,0,0.55) 100%);
  animation: vigPulse 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-glow {
  position: absolute; top: 10%; left: 40%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(180,0,0,0.15) 0%, rgba(100,0,0,0.06) 50%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: pulse 4s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero-glow-2 {
  position: absolute; bottom: -10%; right: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(140,0,0,0.2) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: pulse 6s ease-in-out infinite alternate-reverse;
  will-change: transform, opacity;
}

.hero-header-flex {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--st-red);
  margin-bottom: 0 !important;
}
.hero-eyebrow::before { content: '> '; opacity: 0.5; }

.sound-btn {
  background: rgba(180,0,0,0.1);
  border: 1px solid var(--st-red);
  color: #fff; font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.sound-btn:hover { background: var(--st-red); box-shadow: 0 0 15px var(--st-glow); }

/* ── H1 ── */
h1 {
  font-family: 'ITC Benguiat';
  align-self: center; text-align: center;
  font-weight: normal;
  font-display: block;
  font-size: clamp(3rem, 14vw, 14rem);
  line-height: 0.68;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 3px #ff3b3b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 .outline, h1 .big, h1 .year {
  color: transparent;
  -webkit-text-stroke: 3px #ff3b3b;
  vertical-align: top;
  position: relative;
  bottom: -15%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 .big  { font-size: clamp(7rem, 17vw, 17rem); left: 0%; }
h1 .year { font-size: clamp(3rem, 13vw, 13rem); left: -0.7%; top: 10%; }

h1::before {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 98%; height: 7px;
  border: 2px solid #ff2a2a;
  background: transparent; top: -16px;
}

.big::after {
  content: "";
  position: absolute; top: 75%; left: 50%; transform: translateX(-50%);
  width: 95%; height: 7px;
  border: 2px solid #ff2a2a;
  background: transparent; bottom: 25px;
}

.hero-tagline { margin-top: 2rem; font-size: 1.05rem; color: var(--muted); max-width: 500px; font-weight: 300; animation: fadeUp 0.8s 0.2s ease both; }

.hero-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; animation: fadeUp 0.8s 0.3s ease both; }
.hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--st-red); opacity: 0.8; }
.hero-meta-val   { font-family: var(--display); font-weight: 600; font-size: 1rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; margin-top: 3rem; animation: fadeUp 0.8s 0.4s ease both; }

.btn-primary { padding: 0.9rem 2.5rem; background: var(--st-red); color: #fff; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; font-weight: 500; transition: opacity 0.2s, box-shadow 0.2s; }
.btn-primary:hover { opacity: 0.85; box-shadow: 0 0 30px var(--st-glow); }

.btn-outline { padding: 0.9rem 2.5rem; border: 1px solid rgba(180,0,0,0.35); color: var(--muted); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.btn-outline:hover { border-color: var(--st-red); color: var(--st-red); }

/* ── SECTIONS ── */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 4rem); border-top: 1px solid var(--border); }

.sec-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--st-red); margin-bottom: 1rem; opacity: 0.9; text-shadow: 0 0 10px rgba(180,0,0,0.4); }

h2 { font-family: 'ITC Benguiat'; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3rem; text-shadow: 0 0 20px rgba(150,0,0,0.3); }
h2 em { font-style: normal; color: var(--st-red); text-shadow: 0 0 15px var(--st-glow); }

/* ── ABOUT ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { color: var(--muted); font-weight: 300; margin-bottom: 1rem; font-size: 1.05rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.stat-box { background: var(--surface); padding: 2rem 1.8rem; transition: background 0.2s; }
.stat-box:hover { background: rgba(180,0,0,0.08); }
.stat-num   { font-family: 'ITC Benguiat'; font-size: 2.8rem; font-weight: 400; color: var(--st-red); line-height: 1; margin-bottom: 0.3rem; text-shadow: 0 0 20px var(--st-glow); }
.stat-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ── COMPETITIONS ── */
#competitions { background: var(--surface); }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }

.comp-card { background: var(--bg); padding: 2.5rem; cursor: pointer; transition: background 0.2s, box-shadow 0.3s; display: flex; flex-direction: column; }
.comp-card:hover { background: rgba(180,0,0,0.05); box-shadow: inset 0 0 30px rgba(180,0,0,0.08); }

.comp-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.comp-card h3 { font-family: 'ITC Benguiat'; font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.comp-card p  { font-size: 0.88rem; color: var(--muted); font-weight: 300; flex: 1; }

.comp-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.ctag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border: 1px solid rgba(180,0,0,0.3); color: var(--muted); }

.comp-meta { display: flex; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comp-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.comp-meta-key { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--st-red); opacity: 0.7; }
.comp-meta-val { font-family: var(--mono); font-size: 0.8rem; color: var(--text); }

.btn-brochure { display: inline-block; margin-top: 1.5rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--st-red); text-decoration: none; border: 1px solid rgba(180,0,0,0.4); padding: 0.5rem 1rem; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; align-self: flex-start; cursor: pointer; background: none; }
.btn-brochure:hover { background: rgba(180,0,0,0.1); border-color: var(--st-red); box-shadow: 0 0 15px rgba(180,0,0,0.3); }
.btn-brochure::before { content: '↓ '; }

/* ── BROCHURE OVERLAY ──
   KEY FIX: never toggle display:none/block — that races with CSS animations
   and causes the "flash to final state on first open" glitch because the
   browser collapses the transition into a single frame.
   Instead we keep the element in the render tree at all times using
   visibility + pointer-events. The animation always has a valid start state. */
.brochure-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,0,0,0.97); overflow-y: auto;
  /* hidden state */
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.03);
  will-change: opacity, transform, visibility;
}
.brochure-overlay.open {
  visibility: visible;
  pointer-events: auto;
  animation: overlayOpen 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.brochure-overlay.closing {
  visibility: visible; /* keep visible while animating out */
  pointer-events: none;
  animation: overlayClose 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes overlayOpen {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1);    }
}
@keyframes overlayClose {
  from { opacity: 1; transform: scale(1);    }
  to   { opacity: 0; transform: scale(1.03); }
}

.brochure-inner { max-width: 860px; margin: 4rem auto; padding: 0 1.5rem 4rem; }

.brochure-close { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--border); padding: 0.5rem 1.2rem; cursor: pointer; margin-bottom: 3rem; transition: color 0.2s, border-color 0.2s; }
.brochure-close:hover { color: var(--st-red); border-color: var(--st-red); }

.brochure-hero { border: 1px solid var(--border); padding: 3.5rem; margin-bottom: 2rem; background: var(--surface); }
.brochure-hero .big-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.brochure-hero h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.5rem; }
.brochure-hero p  { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

.brochure-section { border: 1px solid var(--border); padding: 2.5rem; margin-bottom: 1px; background: var(--surface); }
.brochure-section h3 { font-family: 'ITC Benguiat'; font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--st-red); margin-bottom: 1.2rem; text-shadow: 0 0 10px rgba(180,0,0,0.3); }
.brochure-section p, .brochure-section li { color: var(--muted); font-size: 0.95rem; font-weight: 300; }
.brochure-section ul { padding-left: 1.2rem; }
.brochure-section li { margin-bottom: 0.4rem; }

.brochure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1px; }

.prize-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.prize-row:last-child { border-bottom: none; }
.prize-place  { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prize-amount { font-family: 'ITC Benguiat'; font-weight: 400; color: var(--st-red); font-size: 1.5rem; text-shadow: 0 0 10px var(--st-glow); }

.timeline-item { display: flex; gap: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.timeline-item:last-child { border-bottom: none; }
.timeline-date { font-family: var(--mono); font-size: 0.7rem; color: var(--st-red); opacity: 0.8; min-width: 90px; }
.timeline-text { font-size: 0.92rem; color: var(--muted); }

.btn-register-comp { display: inline-block; margin-top: 2rem; padding: 1rem 2.5rem; background: var(--st-red); color: #fff; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; cursor: pointer; border: none; transition: opacity 0.2s, box-shadow 0.2s; }
.btn-register-comp:hover { opacity: 0.85; box-shadow: 0 0 30px var(--st-glow); }

/* ── SCHEDULE ── */
.schedule-tabs { display: flex; border: 1px solid var(--border); margin-bottom: 2px; overflow-x: auto; }
.tab { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.9rem 1.8rem; background: none; border: none; border-right: 1px solid var(--border); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tab:last-child { border-right: none; }
.tab.active { background: rgba(180,0,0,0.1); color: var(--st-red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.sched-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 2rem; padding: 1.2rem 1.5rem; border: 1px solid var(--border); border-top: none; align-items: center; transition: background 0.15s; }
.sched-item:hover { background: rgba(180,0,0,0.04); }
.sched-time  { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.sched-title { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.sched-loc   { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); text-align: right; }

.sched-badge { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.15rem 0.5rem; border: 1px solid; display: inline-block; margin-top: 0.3rem; }
.badge-comp     { border-color: var(--st-red); color: var(--st-red); }
.badge-talk     { border-color: #cc6600; color: #cc6600; }
.badge-social   { border-color: #8b3a8b; color: #8b3a8b; }
.badge-workshop { border-color: #1a8040; color: #1a8040; }


/* ── ENTRANCE GATE ── */
#entrance-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; justify-content: center; align-items: center;
  overflow: hidden;
}

/* The door image — fills gate, zoomed by JS on click */
#entrance-gate .reg-bg-image {
  position: absolute; inset: 0;
  top: -10%;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  filter: brightness(0.8) contrast(1.5) saturate(1);
  z-index: 0;
  will-change: transform;
  transform-origin: center center;
  scale: 1.2;
}

/* Vignette so button stays readable */
#entrance-gate::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center,
    transparent 30%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.85) 100%
  );
  pointer-events: none;
}

#enter-btn {
  position: relative; z-index: 2;
  padding: 1.2rem 3rem;
  background: transparent;
  color: var(--st-red);
  border: 2px solid var(--st-red);
  font-family: 'ITC Benguiat';
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: 0 0 20px var(--st-glow), inset 0 0 20px rgba(200,0,0,0.05);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#enter-btn:hover {
  background: rgba(200,0,0,0.08);
  box-shadow: 0 0 40px var(--st-glow), 0 0 80px rgba(180,0,0,0.3);
}


/* ── REGISTER SECTION (main page) ── */
.reg-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.reg-info h3 { font-family: 'ITC Benguiat'; font-weight: 400; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; color: var(--st-red); text-shadow: 0 0 10px rgba(180,0,0,0.3); }
.reg-info p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.reg-info ul { padding-left: 1rem; }
.reg-info li { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }

.form-group { margin-bottom: 1.4rem; }
label { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--st-red); opacity: 0.8; margin-bottom: 0.5rem; }
input, select, textarea { width: 100%; background: rgba(80,0,0,0.08); border: 1px solid rgba(180,0,0,0.2); padding: 0.75rem 1rem; color: var(--text); font-family: var(--mono); font-size: 0.85rem; outline: none; transition: border-color 0.2s, background 0.2s; }
input:focus, select:focus, textarea:focus { border-color: var(--st-red); background: rgba(180,0,0,0.08); box-shadow: 0 0 15px rgba(180,0,0,0.15); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.5; }
select option { background: #110000; }
textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--st-red); }
.checkbox-item span { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.btn-submit { width: 100%; padding: 1rem; background: var(--st-red); color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; border: none; cursor: pointer; margin-top: 0.5rem; transition: opacity 0.2s, box-shadow 0.2s; }
.btn-submit:hover { opacity: 0.85; box-shadow: 0 0 24px var(--st-glow); }

.reg-success { display: none; text-align: center; padding: 3rem 2rem; border: 1px solid rgba(180,0,0,0.3); }
.reg-success .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.reg-success h3 { font-family: 'ITC Benguiat'; font-size: 1.8rem; font-weight: 400; text-transform: uppercase; color: var(--st-red); text-shadow: 0 0 20px var(--st-glow); }
.reg-success p { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; margin-top: 0.5rem; }

/* ── REGISTRATION SCREEN (fullscreen overlay — Upside Down moonlit) ──
   Inherits the visibility-based open/close system from .brochure-overlay.
   We only need overrides for the unique visual properties. */

#registration-screen.brochure-overlay {
  background: transparent;   /* layers (bg image + video) handle the bg */
  overflow: hidden;           /* no scrollbar on the screen itself — inner #register scrolls */
  z-index: 10000;             /* above brochure overlays */
}

/* Hidden default state — already set by .brochure-overlay base, but be explicit */
#registration-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: #00020a;
}


/* ── BG IMAGE — the forest floor, sits below everything ── */
.reg-bg-image {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
  z-index: 1;
  /* Strip all warmth — near-greyscale then tinted cold blue */
  opacity: 0.5;
  filter: brightness(1) contrast(1.2) saturate(1.5);
}

/* Moonlit gradient on top of bg image — blue from top, black at bottom */
.reg-bg-image::after { display: none; } /* img can't have ::after, handled below */

/* ── VIDEO WRAP — particles float above the bg image ── */
.reg-video-wrap {
  position: fixed; inset: 0;
  z-index: 2;                   /* above bg image */
  pointer-events: none;
  overflow: hidden;
}

/* Cinematic moon-glow gradient — lets bg image breathe through */
.reg-video-wrap::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    /* cool blue moonlight from top */
    linear-gradient(to bottom,
      rgba(5, 15, 40, 0.72) 0%,
      rgba(2,  8,  22, 0.45) 35%,
      rgba(0,  2,  8,  0.25) 65%,
      rgba(0,  0,  0,  0.75) 100%
    ),
    /* subtle radial moon halo dead-centre top */
    radial-gradient(ellipse 60% 35% at 50% 0%,
      rgba(80, 120, 220, 0.18) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* Red vignette around edges — the Upside Down feels claustrophobic */
.reg-video-wrap::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(30, 0, 60, 0.35) 75%,
    rgba(5,  0, 10, 0.65) 100%
  );
  animation: vigPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.reg-video-wrap video {
  position: relative; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;

  /* mix-blend-mode: screen knocks out the black background of the particle video
     so ONLY the glowing particles are visible — they appear to float in the air */
  mix-blend-mode: screen;

  /* Boost the particles so they pop — high contrast + slight blue-white shift */
  opacity: 1;
  filter: brightness(2.2) contrast(1.6) saturate(0.6) hue-rotate(160deg);
}

/* ── FORM PANEL — fully seamless, blends into the moonlit scene ── */
#registration-screen #register {
  position: relative; z-index: 3;
  max-width: 900px; margin: 0 auto;
  height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 3rem 2rem;

  /* Completely transparent — no box, no border, no blur panel */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE / Edge legacy */
}

#registration-screen #register::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Opera */
}

/* ── TYPOGRAPHY ── */
#registration-screen h2 {
  font-family: 'ITC Benguiat', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  color: #d8e8ff;
  margin-bottom: 2rem; text-transform: uppercase;
  /* Moon-cold glow */
  text-shadow:
    0 0 20px rgba(100, 160, 255, 0.5),
    0 0 60px rgba(60,  100, 220, 0.25);
}

#registration-screen .sec-label { color: rgba(140, 180, 255, 0.8); }

#registration-screen label {
  color: rgba(180, 210, 255, 0.85);
  opacity: 1;
}

#registration-screen .reg-info h3 {
  color: #c8dcff;
  text-shadow: 0 0 12px rgba(80, 130, 255, 0.35);
}

#registration-screen .reg-info p,
#registration-screen .reg-info li { color: rgba(180, 200, 240, 0.7); }

#registration-screen .reg-info a { color: #7aaaff; }

/* ── INPUTS — dark enough to read against the bare scene ── */
#registration-screen input,
#registration-screen select,
#registration-screen textarea {
  background: rgba(2, 6, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(80, 130, 220, 0.3);
  border-radius: 3px;
  color: #ddeeff;
  font-weight: 400;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

#registration-screen input::placeholder,
#registration-screen textarea::placeholder { color: rgba(120, 160, 220, 0.45); opacity: 1; }

#registration-screen select option { background: #040c22; color: #ddeeff; }

#registration-screen input:focus,
#registration-screen select:focus,
#registration-screen textarea:focus {
  background: rgba(8, 18, 50, 0.9);
  border-color: rgba(100, 160, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(60, 110, 220, 0.15), 0 0 20px rgba(60, 110, 255, 0.12);
  outline: none;
}

/* ── CHECKBOX ── */
#registration-screen .checkbox-item span { color: rgba(170, 200, 240, 0.75); }
#registration-screen .checkbox-item input[type="checkbox"] { accent-color: #5599ff; }

/* ── SUBMIT BUTTON ── */
#registration-screen .btn-submit {
  background: linear-gradient(135deg, #1a3a8a 0%, #0d2060 100%);
  color: #c8dcff;
  border: 1px solid rgba(100, 160, 255, 0.4);
  letter-spacing: 0.2em;
  box-shadow: 0 0 20px rgba(40, 80, 200, 0.3);
  transition: all 0.3s ease;
}
#registration-screen .btn-submit:hover {
  background: linear-gradient(135deg, #2244aa 0%, #1530aa 100%);
  box-shadow: 0 0 35px rgba(60, 120, 255, 0.5);
  opacity: 1;
}

/* ── CLOSE BUTTON ── */
.reg-close {
  position: fixed; top: 1rem; left: 1rem; z-index: 10;
  background: rgba(2, 6, 20, 0.7);
  border: 1px solid rgba(100, 160, 255, 0.35);
  color: rgba(180, 210, 255, 0.9);
  padding: 0.5rem 1rem;
  font-family: var(--mono); font-size: 0.7rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  animation: overlayOpen 0.6s ease backwards;
}
.reg-close:hover {
  background: rgba(10, 25, 70, 0.9);
  border-color: rgba(120, 180, 255, 0.7);
  box-shadow: 0 0 15px rgba(80, 140, 255, 0.3);
}

/* ── SUCCESS STATE ── */
#registration-screen .reg-success {
  border-color: rgba(80, 130, 255, 0.3);
}
#registration-screen .reg-success h3 {
  color: #a8c8ff;
  text-shadow: 0 0 20px rgba(80, 140, 255, 0.6);
}
#registration-screen .reg-success p { color: rgba(160, 200, 240, 0.7); }

/* ── FOOTER ── */
footer { padding: 2.5rem clamp(1.5rem, 6vw, 4rem); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer p { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); }
footer a { color: var(--st-red); text-decoration: none; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


  .payment-header {
    margin-bottom: 2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(5,12,40,0.75);
    border: 1px solid rgba(100,160,255,0.2);
    border-radius: 4px;
    backdrop-filter: blur(6px);
  }
  .pay-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(140,180,255,0.7);
    margin-bottom: 0.3rem;
  }
  .pay-amount {
    display: block;
    font-family: 'ITC Benguiat', Georgia, serif;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #d8e8ff;
    text-shadow: 0 0 20px rgba(100,160,255,0.5);
  }
  .payment-events-list {
    margin-top: 0.8rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: rgba(140,180,255,0.6);
    line-height: 1.9;
    letter-spacing: 0.05em;
  }
  
  .pay-instruction {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(160,200,255,0.7);
    margin-bottom: 1.2rem;
  }
  
  .qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(4,8,28,0.6);
    border: 1px solid rgba(100,160,255,0.18);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    margin-bottom: 2rem;
  }
  
  .qr-placeholder {
    border: 2px solid rgba(100,160,255,0.3);
    border-radius: 6px;
    padding: 8px;
    background: rgba(4,8,26,0.9);
    box-shadow: 0 0 30px rgba(60,110,220,0.2);
  }
  
  .upi-link-block { text-align: center; width: 100%; }
  
  .btn-upi-pay {
    display: inline-block;
    margin: 0.8rem 0 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1a3a8a, #0d2060);
    border: 1px solid rgba(100,160,255,0.45);
    color: #c8dcff;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.25s ease;
    box-shadow: 0 0 18px rgba(40,80,200,0.25);
  }
  .btn-upi-pay:hover {
    background: linear-gradient(135deg, #2244aa, #1530aa);
    box-shadow: 0 0 30px rgba(60,120,255,0.45);
    color: #fff;
  }
  .upi-note {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(120,160,220,0.5);
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
  }
  .upi-note strong { color: rgba(150,190,255,0.8); }
  
  /* upload block */
  .upload-block {
    margin-bottom: 2rem;
    size: 40px;
  }
  .upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem;
    border: 2px dashed rgba(100,160,255,0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(4,8,28,0.4);
    text-align: center;
  }
  .upload-label:hover {
    border-color: rgba(100,160,255,0.55);
    background: rgba(8,18,50,0.6);
    box-shadow: 0 0 20px rgba(60,110,220,0.12);
  }
  .upload-icon { font-size: 2rem; }
  .upload-text {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(160,200,255,0.8);
  }
  .upload-sub {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: rgba(100,140,200,0.5);
    letter-spacing: 0.08em;
  }
  
  .screenshot-preview {
    margin-top: 1rem;
    position: relative;
    border: 1px solid rgba(100,160,255,0.25);
    border-radius: 6px;
    overflow: hidden;
  }
  .screenshot-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: rgba(4,8,26,0.8);
    display: block;
  }
  .remove-screenshot {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: rgba(180,0,0,0.7);
    border: none;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    border-radius: 3px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    transition: background 0.2s;
  }
  .remove-screenshot:hover { background: rgba(220,0,0,0.9); }
  
  .payment-actions { display: flex; flex-direction: column; gap: 1rem; }
  
  #btn-confirm-payment:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  #btn-confirm-payment:disabled:hover {
    background: linear-gradient(135deg, #1a3a8a 0%, #0d2060 100%);
    box-shadow: 0 0 20px rgba(40, 80, 200, 0.3);
  }
  
  /* WhatsApp links section */
  .wa-links-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(5,12,40,0.7);
    border: 1px solid rgba(100,160,255,0.2);
    border-radius: 6px;
  }
  .wa-links-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(160,200,255,0.8);
    margin-bottom: 1.2rem;
  }
  .wa-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .wa-link-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    background: rgba(7,126,46,0.18);
    border: 1px solid rgba(7,180,60,0.3);
    border-radius: 4px;
    color: #5de88a;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
  }
  .wa-link-btn:hover {
    background: rgba(7,126,46,0.32);
    border-color: rgba(7,200,70,0.55);
    box-shadow: 0 0 16px rgba(7,180,60,0.2);
    color: #7af5a5;
  }
  .wa-icon { font-size: 1.1rem; flex-shrink: 0; }



.tl-wrap { overflow-x: auto; border: 1px solid rgba(180,20,20,0.25); border-radius: 4px; background: #110000; }
.tl-table { border-collapse: collapse; min-width: 860px; width: 100%; table-layout: fixed; }
.tl-table th {
  background: #1a0000; color: #cc0000;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-align: center; padding: 10px 4px;
  border-right: 1px solid rgba(180,20,20,0.18);
  border-bottom: 1px solid rgba(180,20,20,0.35);
  white-space: nowrap;
}
.tl-table th.tl-label-col { text-align: left; padding-left: 14px; width: 170px; color: rgba(240,210,210,0.5); font-size: 10px; }
.tl-name-cell {
  padding: 0 14px; font-size: 12px; color: rgba(240,210,210,0.5);
  font-family: var(--mono); white-space: nowrap; height: 44px;
  vertical-align: middle; background: #100000;
  border-bottom: 1px solid rgba(180,20,20,0.18);
  border-right: 1px solid rgba(180,20,20,0.35);
  position: sticky; left: 0; z-index: 1;
}
.tl-cell {
  border-right: 1px solid rgba(180,20,20,0.18);
  border-bottom: 1px solid rgba(180,20,20,0.18);
  height: 44px; padding: 0 2px; vertical-align: middle;
}
.tl-block {
  display: block; height: 28px; border-radius: 3px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em;
  text-align: center; line-height: 28px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; padding: 0 4px;
  transition: filter 0.2s; cursor: default;
}
.tl-block:hover { filter: brightness(1.3); }
.tl-block.tl-red  { background: rgba(180,0,0,0.25); border: 1px solid #cc0000; color: #ffaaaa; }
.tl-block.tl-cyan { background: rgba(0,229,255,0.10); border: 1px solid #00bcd4; color: #80f0ff; }
.tl-block.tl-ora  { background: rgba(255,107,53,0.15); border: 1px solid #ff6b35; color: #ffb89a; }
.tl-legend { display: flex; gap: 1.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.tl-legend-item { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: rgba(240,210,210,0.5); letter-spacing: 0.05em; }
.tl-swatch { width: 16px; height: 10px; border-radius: 2px; }
.tl-day { display: none; }
.tl-day.active { display: block; }

#schedule {
  position: relative;
  z-index: 1;
  background: var(--bg); /* or slightly darker/lighter */
}

#schedule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}


/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav ul { display: none; }
  .about-layout, .reg-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .brochure-grid { grid-template-columns: 1fr; }
  .sched-item { grid-template-columns: 90px 1fr; }
  .sched-loc { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(3.5rem, 18vw, 9rem);
    font-display: block;
    line-height: 0.65; letter-spacing: -0.05em;
    -webkit-text-stroke: 2px #ff3b3b;
    -webkit-font-smoothing: antialiased;
    transform: scale(0.95);
  }
  h1 .outline, h1 .big, h1 .year { -webkit-text-stroke: 2px #ff3b3b; bottom: -12%; }
  h1 .big  { font-size: clamp(6rem, 20vw, 11rem); left: 0; }
  h1 .year { font-size: clamp(3rem, 16vw, 8rem); left: 0; top: 6%; }
  h1::before { width: 100%; height: 6px; border: 2px solid #ff2a2a; top: -14px; }
  .big::after { width: 98%; height: 6px; border: 2px solid #ff2a2a; top: 78%; }

  #registration-screen #register { padding: 2rem 1.2rem; }
  #registration-screen h2 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  #registration-screen input,
  #registration-screen select,
  #registration-screen textarea { background: rgba(3, 8, 28, 0.92); font-size: 0.9rem; }

  /* On mobile: keep mix-blend-mode:screen so particles still glow,
     but reduce filter intensity slightly to ease GPU load */
  .reg-video-wrap video {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;

    /* mix-blend-mode: screen knocks out the black background of the particle video
      so ONLY the glowing particles are visible — they appear to float in the air */
    mix-blend-mode: screen;

    /* Boost the particles so they pop — high contrast + slight blue-white shift */
    filter: brightness(2.2) contrast(1.6) saturate(0.6) hue-rotate(160deg);
  }

  /* Darken bg image slightly on mobile so form text stays readable */
  .reg-bg-image {
    opacity: 0.85;
  }

  header {
   height: 120dvh; min-height: 120dvh;
  }
  .hero-cta {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 320px;
  position: relative;
  }

  .btn-primary,
  .btn-outline {
    text-align: center;
    padding: 1rem 1.5rem;
    width: 100%;
    display: block;
  }

  /* ── PAYMENT FLOW ── */
  .fee-summary {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(8,18,50,0.7);
    border: 1px solid rgba(100,160,255,0.25);
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: rgba(180,210,255,0.7);
    letter-spacing: 0.08em;
  }
  .fee-summary strong { color: #7aaaff; font-size: 1rem; }
  
  /* payment step */
  .payment-header {
    margin-bottom: 2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(5,12,40,0.75);
    border: 1px solid rgba(100,160,255,0.2);
    border-radius: 4px;
    backdrop-filter: blur(6px);
  }
  .pay-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(140,180,255,0.7);
    margin-bottom: 0.3rem;
  }
  .pay-amount {
    display: block;
    font-family: 'ITC Benguiat', Georgia, serif;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #d8e8ff;
    text-shadow: 0 0 20px rgba(100,160,255,0.5);
  }
  .payment-events-list {
    margin-top: 0.8rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: rgba(140,180,255,0.6);
    line-height: 1.9;
    letter-spacing: 0.05em;
  }
  
  .pay-instruction {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(160,200,255,0.7);
    margin-bottom: 1.2rem;
  }
  
  .qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(4,8,28,0.6);
    border: 1px solid rgba(100,160,255,0.18);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    margin-bottom: 2rem;
  }
  
  .qr-placeholder {
    border: 2px solid rgba(100,160,255,0.3);
    border-radius: 6px;
    padding: 8px;
    background: rgba(4,8,26,0.9);
    box-shadow: 0 0 30px rgba(60,110,220,0.2);
  }
  
  .upi-link-block { text-align: center; width: 100%; }
  
  .btn-upi-pay {
    display: inline-block;
    margin: 0.8rem 0 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1a3a8a, #0d2060);
    border: 1px solid rgba(100,160,255,0.45);
    color: #c8dcff;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.25s ease;
    box-shadow: 0 0 18px rgba(40,80,200,0.25);
  }
  .btn-upi-pay:hover {
    background: linear-gradient(135deg, #2244aa, #1530aa);
    box-shadow: 0 0 30px rgba(60,120,255,0.45);
    color: #fff;
  }
  .upi-note {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(120,160,220,0.5);
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
  }
  .upi-note strong { color: rgba(150,190,255,0.8); }
  
  /* upload block */
  .upload-block {
    margin-bottom: 2rem;
    size: 40px;
  }
  .upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem;
    border: 2px dashed rgba(100,160,255,0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(4,8,28,0.4);
    text-align: center;
  }
  .upload-label:hover {
    border-color: rgba(100,160,255,0.55);
    background: rgba(8,18,50,0.6);
    box-shadow: 0 0 20px rgba(60,110,220,0.12);
  }
  .upload-icon { font-size: 2rem; }
  .upload-text {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(160,200,255,0.8);
  }
  .upload-sub {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: rgba(100,140,200,0.5);
    letter-spacing: 0.08em;
  }
  
  .screenshot-preview {
    margin-top: 1rem;
    position: relative;
    border: 1px solid rgba(100,160,255,0.25);
    border-radius: 6px;
    overflow: hidden;
  }
  .screenshot-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: rgba(4,8,26,0.8);
    display: block;
  }
  .remove-screenshot {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: rgba(180,0,0,0.7);
    border: none;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    border-radius: 3px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    transition: background 0.2s;
  }
  .remove-screenshot:hover { background: rgba(220,0,0,0.9); }
  
  .payment-actions { display: flex; flex-direction: column; gap: 1rem; }
  
  #btn-confirm-payment:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  #btn-confirm-payment:disabled:hover {
    background: linear-gradient(135deg, #1a3a8a 0%, #0d2060 100%);
    box-shadow: 0 0 20px rgba(40, 80, 200, 0.3);
  }
  
  /* WhatsApp links section */
  .wa-links-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(5,12,40,0.7);
    border: 1px solid rgba(100,160,255,0.2);
    border-radius: 6px;
  }
  .wa-links-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(160,200,255,0.8);
    margin-bottom: 1.2rem;
  }
  .wa-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .wa-link-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    background: rgba(7,126,46,0.18);
    border: 1px solid rgba(7,180,60,0.3);
    border-radius: 4px;
    color: #5de88a;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
  }
  .wa-link-btn:hover {
    background: rgba(7,126,46,0.32);
    border-color: rgba(7,200,70,0.55);
    box-shadow: 0 0 16px rgba(7,180,60,0.2);
    color: #7af5a5;
  }
  .wa-icon { font-size: 1.1rem; flex-shrink: 0; }


    .tl-wrap { overflow-x: auto; border: 1px solid rgba(180,20,20,0.25); border-radius: 4px; background: #110000; }
    .tl-table { border-collapse: collapse; min-width: 860px; width: 100%; table-layout: fixed; }
    .tl-table th {
      background: #1a0000; color: #cc0000;
      font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
      text-align: center; padding: 10px 4px;
      border-right: 1px solid rgba(180,20,20,0.18);
      border-bottom: 1px solid rgba(180,20,20,0.35);
      white-space: nowrap;
    }
    .tl-table th.tl-label-col { text-align: left; padding-left: 14px; width: 170px; color: rgba(240,210,210,0.5); font-size: 10px; }
    .tl-name-cell {
      padding: 0 14px; font-size: 12px; color: rgba(240,210,210,0.5);
      font-family: var(--mono); white-space: nowrap; height: 44px;
      vertical-align: middle; background: #100000;
      border-bottom: 1px solid rgba(180,20,20,0.18);
      border-right: 1px solid rgba(180,20,20,0.35);
      position: sticky; left: 0; z-index: 1;
    }
    .tl-cell {
      border-right: 1px solid rgba(180,20,20,0.18);
      border-bottom: 1px solid rgba(180,20,20,0.18);
      height: 44px; padding: 0 2px; vertical-align: middle;
    }
    .tl-block {
      display: block; height: 28px; border-radius: 3px;
      font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em;
      text-align: center; line-height: 28px; overflow: hidden;
      white-space: nowrap; text-overflow: ellipsis; padding: 0 4px;
      transition: filter 0.2s; cursor: default;
    }
    .tl-block:hover { filter: brightness(1.3); }
    .tl-block.tl-red  { background: rgba(180,0,0,0.25); border: 1px solid #cc0000; color: #ffaaaa; }
    .tl-block.tl-cyan { background: rgba(0,229,255,0.10); border: 1px solid #00bcd4; color: #80f0ff; }
    .tl-block.tl-ora  { background: rgba(255,107,53,0.15); border: 1px solid #ff6b35; color: #ffb89a; }
    .tl-legend { display: flex; gap: 1.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
    .tl-legend-item { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: rgba(240,210,210,0.5); letter-spacing: 0.05em; }
    .tl-swatch { width: 16px; height: 10px; border-radius: 2px; }
    .tl-day { display: none; }
    .tl-day.active { display: block; }

    #schedule {
      position: relative;
      z-index: 1;
      background: var(--bg); /* or slightly darker/lighter */
    }

    #schedule::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--bg);
      z-index: -1;
    }
 
}


