/* ═══════════════════════════════════════════════
   NEON PLAYA — MercRising Site Theme
   Campfire sidebar UX + Aurora Drift palette
   + Burning Man design elements
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Montserrat:wght@400;600;700&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --primary:  #00c9a7;
  --accent:   #8b5cf6;
  --gold:     #e8d94a;
  --red:      #f05060;
  --green:    #00c97a;
  --bg:       #030812;
  --sb:       #020710;
  --card:     #071220;
  --border:   rgba(0, 201, 167, .16);
  --text:     #e0f2ef;
  --muted:    #6a9090;
  --sb-w:     230px;
  --tb-h:     50px;
}

/* ─── SCROLLBAR ─── */
html { scrollbar-width: thin; scrollbar-color: var(--primary) #020710; }
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #020710; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--primary);
  filter: brightness(1.2);
}
::-webkit-scrollbar-corner { background: #020710; }

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: none;
}

a             { color: var(--primary); text-decoration: none; transition: color .15s; font-size: inherit; }
a:hover       { color: var(--text); }
a:visited     { color: var(--primary); }
a:active      { color: var(--text); }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; margin-bottom: .4em; }
p  { margin-bottom: .6em; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ─── APP SHELL ─── */
#app {
  display: flex;
  min-height: 100vh;
  overflow: visible;
}

/* ─── GLITCH TEXT ─── */
@keyframes glitch-anim {
  0%, 82%, 100% { text-shadow: none; transform: none; filter: none; }
  84%  { text-shadow: 2px 0 var(--accent), -2px 0 var(--primary); transform: translateX(-1px); }
  86%  { text-shadow: -2px 0 var(--accent), 2px 0 var(--gold); transform: translateX(1px); filter: blur(.4px); }
  88%  { text-shadow: 1px 1px var(--primary), -1px -1px var(--accent); transform: translate(-1px, 1px); }
  90%  { text-shadow: none; transform: none; filter: none; }
  92%  { text-shadow: -1px 0 var(--accent), 1px 0 var(--primary); transform: translateX(.5px); }
  94%  { text-shadow: 2px 0 var(--primary); transform: translateX(-1px); filter: blur(.3px); }
  96%  { text-shadow: none; transform: none; filter: none; }
}
/* Auto-looping glitch — applied to topbar title */
.glitch-text { animation: glitch-anim 9s infinite; }
/* Hover-triggered glitch — applied to large display headings */
.wb-title:hover,
.festival-hero__title:hover,
.camp-overview__title:hover { animation: glitch-anim 2s infinite; }

/* ─── GRAIN OVERLAY ─── */
#grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-drift .12s steps(2) infinite;
}
@keyframes grain-drift {
  0%   { background-position: 0 0; }
  50%  { background-position: 32px -18px; }
  100% { background-position: -22px 14px; }
}

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
#sidebar {
  width: var(--sb-w);
  flex-shrink: 0;
  background: var(--sb);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  transition: transform .25s ease;
  z-index: 50;
}
#sidebar::before {
  content: '';
  position: absolute;
  left: -40px; top: 15%;
  width: 130px; height: 220px;
  background: radial-gradient(circle, rgba(0,201,167,.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#sidebar::-webkit-scrollbar { width: 2px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(0,201,167,.14); }

/* Sparks */
@keyframes spark-rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: var(--op, .6); }
  100% { transform: translateY(-90px) translateX(var(--dx, 0)) scale(0); opacity: 0; }
}
.spark {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 4px var(--primary);
  animation: spark-rise var(--dur, 2s) ease-out var(--delay, 0s) infinite;
  pointer-events: none;
  z-index: 2;
}
.spark.v { background: var(--accent); box-shadow: 0 0 4px var(--accent); }
.spark.g { background: var(--gold);   box-shadow: 0 0 4px var(--gold); }

/* Sidebar brand */
.sb-brand {
  padding: 16px 14px 13px;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.sb-flame {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  text-decoration: none;
  border-radius: 6px;
  padding: 3px 4px;
  margin-left: -4px;
  transition: background .18s;
}
.sb-flame:hover { background: rgba(0,201,167,.07); }
.sb-flame:hover .flame-icon { box-shadow: 0 0 24px rgba(0,201,167,.55); }
.sb-flame:hover .camp-name  { color: var(--primary); }
.flame-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,201,167,.35);
}
.flame-icon svg { width: 16px; height: 16px; }
.camp-name { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: .4px; }
.camp-loc  {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: var(--primary);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px;
}
.loc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 5px var(--primary);
  flex-shrink: 0;
}

/* Burn countdown */
.burn-widget {
  background: linear-gradient(135deg, rgba(0,201,167,.1), rgba(139,92,246,.07));
  border: 1px solid rgba(0,201,167,.2);
  border-radius: 6px;
  padding: 9px 11px;
  display: flex; align-items: center; justify-content: space-between;
}
.bw-val  { font-size: 28px; font-weight: 900; color: var(--primary); line-height: .9; }
.bw-unit { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.bw-label { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); text-align: right; }
.bw-sub   { font-size: 9px; color: var(--muted); margin-top: 2px; text-align: right; }

/* Sidebar section */
.sb-sect {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.sb-lbl {
  font-size: 7px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--muted);
  padding: 0 14px; margin-bottom: 2px;
}

/* Nav links */
.sb-a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  position: relative;
  white-space: nowrap;
}
.sb-a:hover  { background: rgba(0,201,167,.06); color: var(--text); }
.sb-a:visited { color: var(--muted); }
.sb-a:hover, .sb-a.active { color: var(--primary) !important; }
.sb-a.active {
  background: rgba(0,201,167,.1);
  border-left-color: var(--primary);
}
.sb-a.active::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--primary);
}
.sb-ico { width: 13px; height: 13px; flex-shrink: 0; opacity: .55; }
.sb-a.active .sb-ico, .sb-a:hover .sb-ico { opacity: 1; }

/* Principles marquee */
.principles-strip {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.ps-label { font-size: 7px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ps-scroll { display: flex; gap: 8px; animation: scroll-x 24s linear infinite; white-space: nowrap; }
@keyframes scroll-x { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ps-item { font-size: 8px; color: rgba(0,201,167,.42); letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0; }
.ps-sep  { font-size: 8px; color: rgba(0,201,167,.18); flex-shrink: 0; }

/* Sidebar footer */
.sb-foot {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.sb-copy {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,201,167,.08);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.sb-copy span {
  display: block;
  color: rgba(0,201,167,.42);
  font-style: italic;
}
.coord-display { font-size: 8px; color: rgba(0,201,167,.28); letter-spacing: 1.5px; margin-bottom: 8px; }
.user-row { display: flex; align-items: center; gap: 9px; }
.ua {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,201,167,.25);
}
.un { font-size: 11px; font-weight: 600; color: var(--text); }
.ur { font-size: 9px; color: var(--muted); }

/* ═══════════════════════════════════════════════
   MAIN AREA
   ═══════════════════════════════════════════════ */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  overflow: visible;
}

/* ─── TOPBAR ─── */
#topbar {
  height: var(--tb-h);
  background: rgba(2,7,16,.96);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
#topbar::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--topbar-bg-img, none);
  background-size: cover; background-position: center;
  opacity: .055;
  pointer-events: none;
}
.tb-left  { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.tb-right { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.tb-title { font-size: 13px; font-weight: 700; color: var(--text); }

.brc-badge {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #000; font-size: 8px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px;
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer; padding: 5px;
  flex-shrink: 0;
  box-shadow: none;
  margin: 0;
}
.hamburger span {
  display: block; width: 16px; height: 2px;
  background: var(--primary); border-radius: 1px;
  transition: .2s;
}

/* Topbar buttons */
.btn {
  padding: 5px 12px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; letter-spacing: .5px;
  text-transform: uppercase; text-decoration: none;
  transition: .18s;
  display: inline-flex; align-items: center;
  margin: 0;
}
.btn-p { background: var(--primary); color: #000 !important; border: none; box-shadow: 0 0 12px rgba(0,201,167,.3); }
.btn-p:hover { filter: brightness(1.1); color: #000 !important; }
.btn-g { background: transparent; border: 1px solid var(--border); color: var(--muted) !important; }
.btn-g:hover { border-color: var(--primary); color: var(--primary) !important; }

/* ─── CONTENT AREA ─── */
#content {
  flex: 0 0 auto;
  overflow: visible;
  padding: 20px 24px;
}

/* ─── MOBILE OVERLAY ─── */
#sb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 45;
  backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS (aurora shimmer style)
   ═══════════════════════════════════════════════ */
.sec-head { margin-bottom: 12px; }
.sec-shimmer {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), rgba(139,92,246,.5), transparent);
  margin-bottom: 5px;
}
.sec-lbl {
  font-size: 8px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.sec-lbl::after { content: ''; flex: 1; height: 1px; background: rgba(0,201,167,.1); }
.sec-lbl a { color: var(--accent); font-size: 8px; letter-spacing: 2px; flex-shrink: 0; }
.sec-lbl a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════
   CARD / GRID COMPONENTS
   ═══════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  transition: border-color .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: rgba(0,201,167,.28); box-shadow: 0 0 16px rgba(0,201,167,.07); }

/* Scan line sweep on hover */
.card::after {
  content: '';
  position: absolute;
  left: -10%; width: 120%;
  top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,167,.7), rgba(139,92,246,.5), transparent);
  box-shadow: 0 0 8px rgba(0,201,167,.6);
  opacity: 0;
  pointer-events: none;
}
.card:hover::after { animation: card-scan .65s ease-in-out forwards; }
@keyframes card-scan {
  0%   { transform: translateY(0);     opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(400px); opacity: 0; }
}
.card-label { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card-label.p { color: var(--primary); }
.card-label.a { color: var(--accent); }
.card-label.g { color: var(--gold); }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.mt { margin-top: 16px; }

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(108deg, rgba(0,201,167,.1), rgba(139,92,246,.07));
  border: 1px solid rgba(0,201,167,.22);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.welcome-banner::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,.07), transparent 70%);
  pointer-events: none;
}
.wb-label  { font-size: 8px; letter-spacing: 4px; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.wb-title  { font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; color: var(--text); }
.wb-title em { color: var(--primary); font-style: normal; }
.wb-sub    { font-size: 11px; color: var(--muted); margin-top: 4px; }
.wb-actions { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }

/* Festival hero blocks */
.festival-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 0;
  border: 1px solid rgba(0,201,167,.22);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(0,201,167,.08), rgba(139,92,246,.06));
  box-shadow: 0 0 34px rgba(0,201,167,.08);
  margin-bottom: 20px;
}
.festival-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(232,217,74,.12), transparent 24%);
  pointer-events: none;
}
.festival-hero__content {
  position: relative;
  z-index: 1;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.festival-hero__eyebrow {
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.festival-hero__title {
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: .98;
  font-weight: 800;
  color: var(--text);
  max-width: 540px;
}
.festival-hero__title em {
  color: var(--gold);
  font-style: normal;
}
.festival-hero__sub {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 520px;
  margin-top: 12px;
}
.festival-hero__brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.festival-hero__brand-copy {
  min-width: 0;
}
.festival-hero__logo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: rgba(3,8,18,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,201,167,.2), 0 0 34px rgba(139,92,246,.08);
  flex-shrink: 0;
}
.festival-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(3,8,18,.92);
}
.festival-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.festival-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,201,167,.16);
  background: rgba(255,255,255,.04);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text);
}
.festival-chip svg {
  width: 11px;
  height: 11px;
  color: var(--primary);
  flex-shrink: 0;
}
.festival-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.festival-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}
.festival-hero__links a,
.festival-hero__links a:visited {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.festival-hero__links a:hover {
  color: var(--text);
}
.festival-hero__media {
  min-height: 320px;
  background: #08111d;
}
.festival-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.festival-hero--compact .festival-hero__media {
  min-height: 260px;
}

.festival-image-card {
  border: 1px solid rgba(0,201,167,.14);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 20px rgba(0,201,167,.05);
}
.festival-image-card img {
  display: block;
  width: 100%;
  height: auto;
}
.festival-image-card--banner img {
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.festival-image-card--compact img {
  height: 140px;
  object-fit: cover;
  object-position: center;
}
.festival-image-card--short img {
  height: 128px;
  object-fit: cover;
  object-position: center 42%;
}
.festival-image-card--ribbon img {
  height: 88px;
  object-fit: cover;
  object-position: center 45%;
}
.festival-image-card__copy {
  padding: 12px 14px 14px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.festival-image-card__label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.festival-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

/* ═══════════════════════════════════════════════
   LEGACY TABLE CLASSES — NEON PLAYA RESKIN
   These cover all classes used in existing .cfm files
   ═══════════════════════════════════════════════ */

/* Hide the OLD nav table (replaced by sidebar) */
table.nav_main, .nav_main, .menuhdr { display: none !important; }

/* Base table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
}
td, th { vertical-align: top; }

/* Neutralize HTML border attribute — replace with subtle dark border */
table[border], table[border="1"], table[border="0"] {
  border: none !important;
}
table[border] td, table[border="1"] td, table[border="0"] td,
table[border] th, table[border="1"] th, table[border="0"] th {
  border: 1px solid rgba(0,201,167,.07) !important;
}

/* Header rows — teal accent */
table.hdr, tr.hdr, td.hdr, th.hdr {
  background: rgba(0,201,167,.1) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--border) !important;
  letter-spacing: .3px;
  font-family: 'Trebuchet MS', sans-serif !important;
}

/* Even rows */
table.even, tr.even, td.even, th.even {
  background: rgba(3,8,18,.85) !important;
  color: var(--text) !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(0,201,167,.05) !important;
}

/* Odd rows */
table.odd, tr.odd, td.odd, th.odd {
  background: rgba(7,18,32,.9) !important;
  color: var(--text) !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(0,201,167,.05) !important;
}

/* Row highlight slide-in on hover */
@keyframes row-slide {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}
tr.even:hover td, tr.even:hover th,
tr.odd:hover td,  tr.odd:hover th {
  background-image: linear-gradient(90deg, rgba(0,201,167,.14), transparent) !important;
  background-size: 200% 100% !important;
  background-position: 100% 0 !important;
  animation: row-slide .3s ease-out forwards !important;
}

/* Field / form rows */
table.field, tr.field, td.field, th.field {
  background: rgba(0,201,167,.07) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 12px !important;
}

/* Menu table items */
table.menu, tr.menu, td.menu, th.menu {
  background: rgba(0,201,167,.08) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

/* Active menu items */
table.active_menu, tr.active_menu, td.active_menu, th.active_menu {
  background: rgba(139,92,246,.15) !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

/* Menu table wrapping structure */
table.menuhdr { display: none !important; }

/* Right frame — secondary contextual nav panel */
.right_frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 10px;
  vertical-align: top;
  min-width: 165px;
  width: 200px;
}
.right_frame p, .right_frame b { color: var(--primary); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.right_frame ul { padding: 0; }
.right_frame li { margin: 3px 0; }
.right_frame a, .right_frame a:visited { color: var(--muted); font-size: 12px; }
.right_frame a:hover { color: var(--primary); }

/* Center border / spacer column */
.center_border { width: 12px !important; min-width: 12px; }

/* Box containers */
.box_bg {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.box_border {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  background: rgba(7,18,32,.6);
}
.box_data { color: var(--text); font-size: 14px; padding: 14px; }

/* Quote / notification */
.quote_bg {
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 6px;
  color: var(--text);
  padding: 12px 16px;
}

/* Section background */
.section_bg { background: rgba(0,201,167,.04); border-bottom: 1px solid var(--border); }

/* Vertical spacer */
.v_spacer { height: 10px; }

/* Page header (was a JS-injected date string) — hide it */
#Page_Header { display: none !important; }

/* Footer classes */
.footer_bg { background: var(--sb); border-top: 1px solid var(--border); }
.footer, .nav_footer { color: var(--muted); font-size: 11px; padding: 8px; text-align: center; }

/* Legacy link classes */
a.box_href, a.box_href:visited { color: var(--primary); font-size: 13px; text-decoration: none; }
a.box_href:hover { color: var(--text); }

a.row, a.row:visited, a.row:hover, a.row:active { color: var(--primary); font-size: 13px; text-decoration: underline; }

a.menu, a.menu:visited   { color: var(--muted); font-size: 12px; text-decoration: none; }
a.menu:hover             { color: var(--primary); }
a.active_menu            { color: var(--primary); font-weight: 700; }

a.dt, a.dt:visited  { color: var(--primary); text-decoration: underline; font-size: 13px; }
a.dt:hover          { color: var(--text); }

a.hunt_order, a.hunt_order:visited, a.hunt_order:hover, a.hunt_order:active {
  color: var(--gold); text-decoration: underline; font-size: 13px;
}

.text_yellow { color: var(--gold); }

/* Site background classes (old ones) */
.site_bg { background: var(--bg); }
.page_bg { background: var(--bg); }

/* ═══════════════════════════════════════════════
   PROFILE CARD  (reskinned from old style.css)
   ═══════════════════════════════════════════════ */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 320px;
  box-shadow: 0 0 30px rgba(0,201,167,.08);
  text-align: left;
}
.profile-title {
  background: linear-gradient(90deg, rgba(0,201,167,.15), rgba(139,92,246,.1));
  color: var(--primary);
  font-size: 15px; font-weight: 700;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: .8px; text-transform: uppercase; text-align: center;
}
.avatar-circle {
  width: 110px; height: 110px;
  margin: 16px auto 10px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(0,201,167,.25), 0 0 40px rgba(139,92,246,.1);
  color: var(--muted); font-size: 11px; text-align: center;
}
.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(3,8,18,.92);
}
.profile-name  { color: var(--primary); font-size: 13px; font-weight: 700; margin: 0 14px 3px; }
.profile-camp  { color: var(--accent); font-size: 12px; font-style: italic; margin: 0 14px 8px; }
.profile-bio   { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 14px 10px; }
.profile-date  { color: var(--muted); font-size: 11px; margin: 6px 14px; }
.profile-links { margin: 0 14px 10px; }
.profile-links a, .profile-links a:visited { color: var(--primary); font-size: 12px; font-weight: 600; margin-right: 10px; }
.profile-links a:hover { color: var(--text); }
.profile-footer {
  background: rgba(139,92,246,.1);
  border-top: 1px solid rgba(139,92,246,.18);
  color: var(--muted); font-size: 9px;
  padding: 7px 14px; text-align: center;
  letter-spacing: 1.5px; text-transform: uppercase;
}

.camp-overview {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(232,217,74,.08), transparent 24%),
    linear-gradient(140deg, rgba(0,201,167,.08), rgba(139,92,246,.05));
  box-shadow: 0 0 30px rgba(0,201,167,.06);
}
.camp-overview__media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.camp-overview__media-label,
.camp-overview__eyebrow,
.camp-overview__stat-label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.camp-overview__media-label,
.camp-overview__eyebrow {
  color: var(--primary);
}
.camp-overview__photo {
  min-height: 240px;
  border-radius: 18px;
  border: 1px solid rgba(0,201,167,.2);
  background: rgba(3,8,18,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,201,167,.05), 0 0 24px rgba(0,201,167,.08);
}
.camp-overview__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(3,8,18,.92);
}
.camp-overview__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.camp-overview__title {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}
.camp-overview__sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 10px;
}
.camp-overview__description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 640px;
}
.camp-overview__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}
.camp-overview__links a,
.camp-overview__links a:visited {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.camp-overview__links a:hover {
  color: var(--text);
}
.camp-overview__motto {
  margin-top: auto;
  padding-top: 16px;
  color: rgba(0,201,167,.42);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.camp-overview__meta {
  display: grid;
  gap: 10px;
  align-content: start;
}
.camp-overview__stat {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,201,167,.12);
  background: rgba(4,12,22,.72);
}
.camp-overview__stat-label {
  color: var(--muted);
  margin-bottom: 5px;
}
.camp-overview__stat-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   FORMS & INPUTS — Neon Playa style
   ═══════════════════════════════════════════════ */
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="file"]):not(.button),
select,
textarea {
  background: rgba(7,18,32,.95) !important;
  border: 1px solid rgba(0,201,167,.22) !important;
  border-radius: 4px;
  color: var(--text) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  max-width: 420px;
  margin: 3px 0;
}
@keyframes neon-focus-draw {
  0%   { outline-offset: 7px; outline-color: rgba(0,201,167,0);   box-shadow: none; }
  100% { outline-offset: 2px; outline-color: rgba(0,201,167,.3);  box-shadow: 0 0 0 2px rgba(0,201,167,.12), 0 0 14px rgba(0,201,167,.18); }
}
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="file"]):not(.button):focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(0,201,167,.3) !important;
  outline-offset: 2px;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(0,201,167,.12), 0 0 14px rgba(0,201,167,.18);
  animation: neon-focus-draw .35s ease-out forwards;
}
input.f_search, select.f_search, textarea.f_search { color: var(--primary) !important; }

/* Member edit page layout */
.member-edit-shell {
  width: 100%;
  max-width: 1120px;
}

.member-edit-layout {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
}

.member-edit-main,
.member-edit-photo {
  vertical-align: top;
}

.member-edit-main {
  width: 48%;
  padding-right: 28px;
}

.member-edit-photo {
  width: 52%;
}

.member-edit-fields td {
  vertical-align: top;
}

.member-edit-fields td.field {
  width: 220px;
  white-space: normal;
}

.member-edit-fields input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="file"]):not(.button),
.member-edit-fields select,
.member-edit-fields textarea {
  max-width: none;
}

.member-edit-photo-card {
  width: 100%;
}

.member-edit-photo-card img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .camp-overview {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .camp-overview__meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-edit-layout,
  .member-edit-layout > tbody,
  .member-edit-layout > tbody > tr,
  .member-edit-layout > tbody > tr > td {
    display: block;
    width: 100% !important;
  }

  .member-edit-main {
    padding-right: 0;
    padding-bottom: 20px;
  }

  .member-edit-fields td.field {
    width: auto;
  }
}

/* Form labels */
.f_label, label.f_label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Utility: learnmore link */
a.learnmore {
  display: inline-flex; align-items: center;
  background: rgba(0,201,167,.1); border: 1px solid rgba(0,201,167,.25);
  color: var(--primary); border-radius: 4px;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  text-decoration: none; letter-spacing: .3px;
  transition: background .18s;
}
a.learnmore:hover { background: rgba(0,201,167,.18); }

/* Buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
input.button {
  background: var(--primary) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 4px;
  padding: 8px 18px !important;
  font-size: 12px !important;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: filter .18s;
  box-shadow: 0 0 14px rgba(0,201,167,.22);
  margin: 5px 3px;
  width: auto !important;
  max-width: none !important;
  font-family: inherit;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input.button:hover { filter: brightness(1.12); }

/* Danger / secondary button variant */
.btn-danger { background: var(--red) !important; box-shadow: 0 0 14px rgba(240,80,96,.2) !important; }
.btn-accent { background: var(--accent) !important; box-shadow: 0 0 14px rgba(139,92,246,.2) !important; color: #fff !important; }

/* Status / badge chips */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.badge-p { background: rgba(0,201,167,.15); color: var(--primary); border: 1px solid rgba(0,201,167,.3); }
.badge-a { background: rgba(139,92,246,.15); color: var(--accent); border: 1px solid rgba(139,92,246,.3); }
.badge-g { background: rgba(232,217,74,.15); color: var(--gold); border: 1px solid rgba(232,217,74,.3); }
.badge-r { background: rgba(240,80,96,.15); color: var(--red); border: 1px solid rgba(240,80,96,.3); }

/* ═══════════════════════════════════════════════
   BM IMAGE PLACEHOLDER BANNERS
   Used in member-home welcome area
   ═══════════════════════════════════════════════ */
.bm-banner {
  width: 100%; height: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.bm-banner img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.bm-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,8,18,.9), rgba(3,8,18,.3));
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════════
   BURN HISTORY PIPS  (member profile)
   ═══════════════════════════════════════════════ */
.burn-history { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.burn-pip {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; letter-spacing: .3px;
  background: rgba(7,18,32,.8);
  border: 1px solid rgba(0,201,167,.15);
  color: var(--muted);
}
.burn-pip.done {
  background: linear-gradient(135deg, rgba(0,201,167,.2), rgba(139,92,246,.15));
  border-color: rgba(0,201,167,.4);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(0,201,167,.25);
}

/* ═══════════════════════════════════════════════
   IFRAME action space (hidden helper)
   ═══════════════════════════════════════════════ */
iframe[name="Action_Space"] {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Sidebar slides in as drawer */
  #sidebar {
    position: fixed; left: 0; top: 0; height: 100vh;
    transform: translateX(calc(-1 * var(--sb-w)));
    z-index: 100;
    box-shadow: none;
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,201,167,.12);
  }
  #sb-overlay.show { display: block; }
  .hamburger { display: flex !important; }

  /* Content expands to full width */
  #content { padding: 14px 16px; }
  #topbar  { padding: 0 14px; }

  /* Hide right-frame sub-panel */
  .right_frame, .center_border { display: none !important; }

  /* Stack content tables */
  #content > table, #content table { width: 100% !important; }

  .camp-overview {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .camp-overview__media {
    max-width: 260px;
  }

  .camp-overview__meta {
    grid-template-columns: 1fr;
  }

  .festival-hero,
  .festival-split {
    grid-template-columns: 1fr;
  }

  .festival-hero__content {
    padding: 20px 18px 18px;
  }

  .festival-hero__brand {
    flex-direction: column;
    gap: 14px;
  }

  .festival-hero__media,
  .festival-hero--compact .festival-hero__media {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  :root { --tb-h: 46px; }
  #content { padding: 10px 10px; }

  /* Collapse multi-col grids */
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }

  /* Horizontal scroll for data tables */
  #content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .profile-card { max-width: 100%; }

  .camp-overview__title {
    font-size: clamp(22px, 8vw, 30px);
  }

  .camp-overview__description {
    font-size: 12px;
  }

  .festival-hero__logo {
    width: 88px;
    height: 88px;
  }

  h1 { font-size: clamp(18px, 5vw, 28px); }
  h2 { font-size: clamp(15px, 4vw, 22px); }

  .brc-badge { display: none; }
  .tb-title  { font-size: 12px; }

  .camp-pill { font-size: 11px; padding: 5px 10px; }

  .festival-hero__title {
    font-size: clamp(20px, 7vw, 30px);
  }

  .festival-hero__sub,
  .festival-image-card__copy {
    font-size: 11px;
  }

  .festival-image-card--banner img {
    height: 160px;
  }

  .festival-image-card--compact img {
    height: 112px;
  }

  .festival-image-card--short img {
    height: 104px;
  }

  .festival-image-card--ribbon img {
    height: 72px;
  }
}

/* ═══════════════════════════════════════════════
   CAMP NAV PILLS  (member_camp.cfm)
   ═══════════════════════════════════════════════ */
.camp-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  background: rgba(0,201,167,.07);
  border: 1px solid rgba(0,201,167,.18);
  color: var(--muted);
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.camp-pill:hover, .camp-pill:visited:hover { background: rgba(0,201,167,.14); color: var(--primary); border-color: rgba(0,201,167,.35); text-decoration: none; }
.camp-pill-active { background: rgba(0,201,167,.18) !important; color: var(--primary) !important; border-color: rgba(0,201,167,.4) !important; }
.camp-pill-lead { background: rgba(139,92,246,.07); border-color: rgba(139,92,246,.2); color: var(--accent); }
.camp-pill-lead:hover { background: rgba(139,92,246,.14); color: #b48fff; border-color: rgba(139,92,246,.4); }
.camp-pill-lead.camp-pill-active { background: rgba(139,92,246,.18) !important; }

/* ═══════════════════════════════════════════════
   AURORA GRADIENT DRIFT
   ═══════════════════════════════════════════════ */
@keyframes aurora-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.welcome-banner {
  background: linear-gradient(108deg,
    rgba(0,201,167,.13), rgba(139,92,246,.11),
    rgba(232,217,74,.08), rgba(0,201,167,.09)) !important;
  background-size: 300% 300% !important;
  animation: aurora-drift 10s ease infinite;
}
.festival-hero {
  background: linear-gradient(130deg,
    rgba(0,201,167,.1), rgba(139,92,246,.1),
    rgba(232,217,74,.06), rgba(0,201,167,.08)) !important;
  background-size: 300% 300% !important;
  animation: aurora-drift 13s ease infinite;
}
.camp-overview {
  background: linear-gradient(140deg,
    rgba(0,201,167,.1), rgba(139,92,246,.09),
    rgba(232,217,74,.07), rgba(0,201,167,.08)) !important;
  background-size: 300% 300% !important;
  animation: aurora-drift 16s ease infinite;
}

/* ═══════════════════════════════════════════════
   CORNER BRACKET REVEAL (card hover)
   Uses 8 background gradients — 2 per corner — that
   expand from 0 to 14px on hover via background-size.
   ═══════════════════════════════════════════════ */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--primary), var(--primary)) top    left  / 0px  2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) top    left  / 2px  0px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) top    right / 0px  2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) top    right / 2px  0px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom left  / 0px  2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom left  / 2px  0px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom right / 0px  2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom right / 2px  0px  no-repeat;
  transition: background-size .25s ease, filter .25s ease;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 0px rgba(0,201,167,0));
}
.card:hover::before {
  background:
    linear-gradient(var(--primary), var(--primary)) top    left  / 14px 2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) top    left  / 2px  14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) top    right / 14px 2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) top    right / 2px  14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom left  / 14px 2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom left  / 2px  14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom right / 14px 2px  no-repeat,
    linear-gradient(var(--primary), var(--primary)) bottom right / 2px  14px no-repeat;
  filter: drop-shadow(0 0 4px rgba(0,201,167,.6));
}


/* ═══════════════════════════════════════════════
   RIPPLE PULSE (active nav item dot)
   Sonar-ping ring expands from the active dot.
   ═══════════════════════════════════════════════ */
@keyframes nav-ping {
  0%   { box-shadow: 0 0 6px var(--primary), 0 0 0 0   rgba(0,201,167,.55); }
  70%  { box-shadow: 0 0 6px var(--primary), 0 0 0 9px rgba(0,201,167,0);   }
  100% { box-shadow: 0 0 6px var(--primary), 0 0 0 0   rgba(0,201,167,0);   }
}
.sb-a.active::after {
  animation: nav-ping 2.4s ease-out infinite;
}
