/* ═══════════════════════════════════════════
   ECHO – Prof. Lucan DeMorian Night
   Main Stylesheet
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&family=Special+Elite&display=swap');

:root {
  --bg:      #040508;
  --bg2:     #070a08;
  --bg3:     #0a0e0b;
  --border:  #0f1c12;
  --border2: #1a2e1c;
  --green:   #3d9e5f;
  --green2:  #5dbf7f;
  --green3:  #1a4a2a;
  --red:     #8b2020;
  --red2:    #c04040;
  --amber:   #8b6820;
  --amber2:  #c09040;
  --text:    #b0c0a8;
  --text2:   #607060;
  --text3:   #304030;
  --mono:    'Share Tech Mono', monospace;
  --sans:    'Rajdhani', sans-serif;
  --type:    'Special Elite', cursive;
  --nav-w:   230px;
  --hdr:     54px;
  --radius:  2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: .45; mix-blend-mode: overlay;
}
/* ── SCANLINES ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.04) 3px, rgba(0,0,0,.04) 4px);
}

/* ── CANVAS BACKGROUND (JS-driven) ── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green3); border-radius: 2px; }

/* ═══════════════ LAYOUT ═══════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hdr);
  background: rgba(4,5,8,.97); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; z-index: 1000;
  backdrop-filter: blur(6px);
  animation: flicker 10s ease-in-out infinite;
}
.hdr-left { display: flex; align-items: center; gap: .75rem; }
.hdr-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green), 0 0 24px rgba(61,158,95,.25);
  animation: pulse-dot 2.5s ease-in-out infinite; flex-shrink: 0;
}
.hdr-logo { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .3em; color: #dde8d8; text-decoration: none; }
.hdr-logo span { color: var(--green); }
.hdr-right { display: flex; align-items: center; gap: 1rem; }
.hdr-status { font-size: .55rem; letter-spacing: .15em; color: var(--red2); border: 1px solid var(--red); padding: .18rem .55rem; animation: blink-border 3s ease-in-out infinite; }
.hdr-time { font-size: .55rem; color: var(--text3); letter-spacing: .08em; font-family: var(--mono); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .2rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--green); transition: all .3s; }

#sidebar {
  position: fixed; top: var(--hdr); left: 0; bottom: 0; width: var(--nav-w);
  background: rgba(4,5,8,.98); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 900;
  overflow-y: auto; transition: transform .3s ease;
}
.nav-group { padding: 1.25rem 0 .25rem; }
.nav-group-label { font-size: .48rem; letter-spacing: .22em; color: var(--text3); padding: 0 1.1rem; margin-bottom: .4rem; }
.nav-btn {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; padding: .6rem 1.1rem;
  background: none; border: none; border-left: 2px solid transparent;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--text3);
  cursor: pointer; transition: all .2s; text-align: left;
}
.nav-btn:hover { color: var(--green); background: rgba(61,158,95,.04); border-left-color: var(--green3); }
.nav-btn.active { color: var(--green2); border-left-color: var(--green); background: rgba(61,158,95,.06); }
.nav-badge { margin-left: auto; font-size: .48rem; background: var(--red); color: #fff; padding: .08rem .3rem; letter-spacing: .05em; }
.nav-foot {
  margin-top: auto; padding: 1rem 1.1rem;
  border-top: 1px solid var(--border); font-size: .53rem; color: var(--text3); line-height: 2;
}
.nav-foot .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: .4rem; animation: pulse-dot 2s infinite; }

#main {
  margin-left: var(--nav-w); margin-top: var(--hdr);
  min-height: calc(100vh - var(--hdr)); padding: 2.5rem 2rem 5rem;
  position: relative; z-index: 1;
}
#overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 850; }
#overlay.show { display: block; }

/* ═══════════════ PAGES ═══════════════ */
.page { display: none; animation: fadeUp .4s ease; }
.page.active { display: block; }

.eyebrow { font-size: .52rem; color: var(--green); letter-spacing: .22em; margin-bottom: .35rem; }
.page-title {
  font-family: var(--sans); font-size: 2rem; font-weight: 600; color: #e0e8d8;
  letter-spacing: .04em; margin-bottom: .3rem;
  text-shadow: 0 0 40px rgba(61,158,95,.1);
}
.page-sub { font-size: .7rem; color: var(--text2); margin-bottom: 2rem; line-height: 1.9; max-width: 650px; }

/* ═══════════════ CARDS & COMPONENTS ═══════════════ */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 1.25rem 1.4rem;
}
.card-sm { padding: .85rem 1rem; }

.badge {
  font-size: .52rem; letter-spacing: .13em; padding: .15rem .45rem;
  border: 1px solid; display: inline-block;
}
.badge-done { color: #3a8a5a; border-color: var(--green3); }
.badge-active { color: var(--green2); border-color: var(--green); animation: blink-border 4s ease-in-out infinite; }
.badge-locked { color: var(--text3); border-color: var(--border); }
.badge-unknown { color: var(--amber2); border-color: var(--amber); }
.badge-corrupted { color: var(--red2); border-color: var(--red); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  padding: .6rem 1.1rem; cursor: pointer; border: 1px solid;
  transition: all .2s; text-decoration: none; background: none;
}
.btn-primary { border-color: var(--green); color: var(--green2); background: rgba(61,158,95,.08); }
.btn-primary:hover { background: rgba(61,158,95,.18); }
.btn-ghost { border-color: var(--border2); color: var(--text2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green2); }
.btn-danger { border-color: var(--red); color: var(--red2); }
.btn-danger:hover { background: rgba(139,32,32,.15); }
.btn-sm { font-size: .6rem; padding: .35rem .75rem; }
.btn-back { border-color: var(--border2); color: var(--text3); font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; padding: .35rem .8rem; cursor: pointer; background: none; transition: all .2s; margin-bottom: 1.5rem; display: inline-block; }
.btn-back:hover { border-color: var(--green); color: var(--green); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.1rem; }
.form-label { font-size: .55rem; color: var(--text2); letter-spacing: .15em; display: block; margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border2);
  color: var(--text); font-family: var(--mono); font-size: .78rem;
  padding: .65rem .9rem; outline: none; transition: border-color .2s;
  border-radius: var(--radius);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green3); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--bg2); }
.form-check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.form-check input { margin-top: .15rem; accent-color: var(--green); cursor: pointer; }
.form-check-label { font-size: .72rem; color: var(--text2); line-height: 1.7; }
.form-error { font-size: .65rem; color: var(--red2); margin-top: .35rem; }
.form-hint { font-size: .58rem; color: var(--text3); margin-top: .3rem; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }

/* ── STATS ── */
.stat-val { font-family: var(--sans); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-lbl { font-size: .52rem; color: var(--text3); letter-spacing: .15em; margin-top: .3rem; }
.c-green { color: var(--green); } .c-red { color: var(--red2); }
.c-amber { color: var(--amber2); } .c-blue { color: #4080a0; }
.c-white { color: #dde8d8; }

/* ── TABLE ── */
.tbl { width: 100%; border-collapse: collapse; font-size: .72rem; }
.tbl th { background: rgba(0,0,0,.3); color: var(--text3); font-size: .5rem; letter-spacing: .18em; font-weight: 400; padding: .55rem .85rem; text-align: left; border-bottom: 1px solid var(--border); }
.tbl td { padding: .6rem .85rem; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
.tbl tr:hover td { background: rgba(61,158,95,.025); }
.tbl-wrap { overflow-x: auto; }

/* ── ALERT ── */
.alert { font-size: .72rem; padding: .75rem 1rem; border: 1px solid; margin-bottom: 1rem; }
.alert-success { color: var(--green2); border-color: var(--green3); background: rgba(61,158,95,.06); }
.alert-error { color: var(--red2); border-color: var(--red); background: rgba(139,32,32,.06); }

/* ── MAP ── */
#admin-map, #public-map { width: 100%; height: 420px; z-index: 1; border: 1px solid var(--border); }
.leaflet-container { background: #050a06 !important; }
.leaflet-tile { filter: grayscale(100%) brightness(.4) sepia(.3) hue-rotate(100deg); }
.leaflet-popup-content-wrapper { background: var(--bg2) !important; border: 1px solid var(--green3) !important; border-radius: 2px !important; color: var(--text) !important; font-family: var(--mono) !important; font-size: .72rem !important; box-shadow: 0 4px 20px rgba(0,0,0,.5) !important; }
.leaflet-popup-tip { background: var(--bg2) !important; }

/* ── EPISODE LIST ITEM ── */
.ep-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1.1rem 1.3rem; background: var(--bg2);
  border: 1px solid var(--border); cursor: pointer;
  transition: all .2s; margin-bottom: .6rem;
}
.ep-item:hover:not(.locked) { border-color: var(--border2); background: var(--bg3); transform: translateX(4px); }
.ep-item.locked { opacity: .35; cursor: not-allowed; }
.ep-code { font-size: .58rem; color: var(--green); letter-spacing: .12em; }
.ep-title-txt { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #dde8d8; margin-bottom: .2rem; }
.ep-excerpt { font-size: .65rem; color: var(--text2); line-height: 1.7; }
.ep-date-txt { font-size: .53rem; color: var(--text3); margin-top: .3rem; }

/* ── TRANSMISSION ── */
.tx-item {
  padding: 1rem 1.3rem; background: var(--bg2); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s; margin-bottom: .6rem;
}
.tx-item:hover { border-color: var(--border2); background: var(--bg3); }
.tx-item.corrupted { border-color: #1a0a08; }
.tx-item.corrupted:hover { border-color: #3a1208; }
.tx-from { font-size: .58rem; color: var(--text2); margin-bottom: .3rem; }
.tx-subj { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: #dde8d8; margin-bottom: .35rem; }
.tx-subj.corrupted-text { color: #8a5040; }
.tx-prev { font-size: .68rem; color: var(--text2); line-height: 1.7; }
.tx-ts { font-size: .53rem; color: var(--text3); margin-top: .45rem; }

/* ── SIGNAL BARS ── */
.signal-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.signal-bar { flex: 1; background: var(--green3); transition: background .3s; }
.signal-bar.on { background: var(--green); box-shadow: 0 0 4px rgba(61,158,95,.4); }

/* ── PROFILE TABLE ── */
.profile-tbl { border-collapse: collapse; width: 100%; }
.profile-tbl td { padding: .65rem .9rem; border: 1px solid var(--border); font-size: .72rem; }
.profile-tbl td:first-child { background: rgba(0,0,0,.2); color: var(--text3); letter-spacing: .1em; width: 130px; font-size: .6rem; }
.profile-tbl td:last-child { color: var(--text2); }

/* ── REDACTED ── */
.redacted { background: #1a0e08; color: #1a0e08; user-select: none; padding: 0 .2rem; }

/* ── QUOTE BOX ── */
.quote-box {
  border-left: 3px solid var(--green3); padding: 1.2rem 1.4rem;
  background: var(--bg2); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.quote-txt { font-family: var(--type); font-size: .82rem; color: #7a8a72; line-height: 2; font-style: italic; margin-bottom: .6rem; }
.quote-src { font-size: .58rem; color: var(--text3); }

/* ── COMMUNITY ── */
.post-card { padding: 1rem 1.3rem; background: var(--bg2); border: 1px solid var(--border); margin-bottom: .65rem; }
.post-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.post-author { font-size: .6rem; color: var(--green); letter-spacing: .08em; }
.post-ts { font-size: .52rem; color: var(--text3); }
.post-new { font-size: .45rem; background: var(--green); color: var(--bg); padding: .08rem .28rem; letter-spacing: .1em; }
.post-body { font-size: .73rem; color: var(--text2); line-height: 1.9; }
.post-actions { display: flex; gap: .75rem; margin-top: .5rem; }
.post-action-btn { background: none; border: none; font-family: var(--mono); font-size: .58rem; color: var(--text3); cursor: pointer; transition: color .2s; padding: 0; }
.post-action-btn:hover { color: var(--green); }

/* ── AR PAGE ── */
.ar-viewport {
  position: relative; background: var(--bg2); border: 1px solid var(--border);
  height: 280px; overflow: hidden; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .75rem;
}
.ar-corner-tl, .ar-corner-tr, .ar-corner-bl, .ar-corner-br {
  position: absolute; width: 20px; height: 20px; border-color: var(--green3); border-style: solid;
}
.ar-corner-tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.ar-corner-tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.ar-corner-bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.ar-corner-br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.ar-scanline { position: absolute; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); animation: ar-scan 3s ease-in-out infinite; }
.ar-cross::before, .ar-cross::after { content: ''; position: absolute; background: rgba(61,158,95,.3); }
.ar-cross { position: absolute; width: 50px; height: 50px; }
.ar-cross::before { width: 1px; height: 100%; left: 50%; top: 0; }
.ar-cross::after { height: 1px; width: 100%; top: 50%; left: 0; }

/* ── AUTH PAGES ── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; letter-spacing: .3em; color: #dde8d8; margin-bottom: .35rem; }
.auth-logo span { color: var(--green); }
.auth-tagline { font-size: .6rem; color: var(--text3); letter-spacing: .15em; margin-bottom: 2rem; }
.auth-box { background: var(--bg2); border: 1px solid var(--border); padding: 2rem; }
.auth-title { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; color: #dde8d8; letter-spacing: .08em; margin-bottom: 1.5rem; }
.auth-link { font-size: .65rem; color: var(--green); text-decoration: none; letter-spacing: .05em; }
.auth-link:hover { color: var(--green2); }
.auth-footer { margin-top: 1.25rem; text-align: center; font-size: .65rem; color: var(--text3); }

/* ── SUBSCRIBE PAGE ── */
.subscribe-card { max-width: 520px; margin: 0 auto; }
.price-box { background: var(--bg2); border: 1px solid var(--green); padding: 2rem; text-align: center; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.price-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); }
.price-amount { font-family: var(--sans); font-size: 2.5rem; font-weight: 700; color: var(--green2); }
.price-period { font-size: .7rem; color: var(--text2); margin-top: .25rem; }
.price-features { list-style: none; margin: 1.5rem 0; text-align: left; }
.price-features li { font-size: .72rem; color: var(--text2); padding: .3rem 0; border-bottom: 1px solid var(--border); }
.price-features li::before { content: '→ '; color: var(--green); }

/* ── LANDING PAGE ── */
.landing-wrap { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.landing-hero { margin-bottom: 3rem; }
.landing-title { font-family: var(--sans); font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 700; color: #e0e8d8; letter-spacing: .04em; line-height: 1.1; margin-bottom: 1rem; }
.landing-title span { color: var(--green); }
.landing-sub { font-size: .85rem; color: var(--text2); line-height: 2; max-width: 560px; margin-bottom: 2rem; }
.landing-stats { display: flex; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.ls-item { font-size: .55rem; color: var(--text3); letter-spacing: .15em; }
.ls-item strong { display: block; font-size: 1.1rem; font-family: var(--sans); color: var(--green); margin-bottom: .1rem; }
.landing-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.transmission-preview {
  background: var(--bg2); border: 1px solid var(--border); padding: 1.4rem;
  position: relative; overflow: hidden; margin-top: 3rem;
}
.transmission-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); animation: scan-h 5s linear infinite; }

/* ── ADMIN LAYOUT ── */
.admin-wrap { padding: 2rem; max-width: 1200px; }
.admin-title { font-family: var(--sans); font-size: 1.4rem; font-weight: 600; color: #dde8d8; margin-bottom: 1.5rem; letter-spacing: .04em; }

/* ── HORROR ELEMENTS ── */
#ghost-text {
  position: fixed; pointer-events: none; z-index: 9990;
  font-family: var(--type); font-size: 1rem;
  color: rgba(200,220,200,.12); letter-spacing: .15em;
  opacity: 0; transition: opacity .3s;
  text-shadow: 0 0 10px rgba(61,158,95,.3);
}
#glitch-flash {
  position: fixed; inset: 0; z-index: 9995; pointer-events: none;
  opacity: 0; mix-blend-mode: difference;
}
#warn-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9993;
  background: rgba(60,0,0,.92); border-top: 1px solid var(--red);
  padding: .4rem 1.5rem; font-size: .58rem; color: var(--red2);
  letter-spacing: .12em; display: none;
  animation: blink-border 1s ease-in-out infinite;
}
#whisper-text {
  position: fixed; bottom: 60px; right: 20px; z-index: 9992; pointer-events: none;
  font-family: var(--type); font-size: .75rem; color: rgba(180,200,180,.08);
  letter-spacing: .2em; opacity: 0; transition: opacity .5s;
  text-shadow: 0 0 8px rgba(61,158,95,.2);
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes flicker { 0%,100%{opacity:1} 91%{opacity:1} 92%{opacity:.7} 93%{opacity:1} 96%{opacity:.85} 97%{opacity:1} }
@keyframes pulse-dot { 0%,100%{opacity:1;box-shadow:0 0 10px var(--green),0 0 24px rgba(61,158,95,.25)} 50%{opacity:.4;box-shadow:0 0 4px var(--green)} }
@keyframes blink-border { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes scan-h { 0%{transform:translateX(-100%)} 100%{transform:translateX(200%)} }
@keyframes ar-scan { 0%,100%{top:5%} 50%{top:95%} }
@keyframes ring-pulse { 0%{width:10px;height:10px;opacity:.8;margin:-5px 0 0 -5px} 100%{width:50px;height:50px;opacity:0;margin:-25px 0 0 -25px} }
@keyframes glitch-anim { 0%{clip-path:inset(0 0 100% 0)} 10%{clip-path:inset(20% 0 60% 0);transform:translateX(-3px)} 20%{clip-path:inset(60% 0 10% 0);transform:translateX(3px)} 30%{clip-path:inset(0 0 100% 0);transform:none} 100%{clip-path:inset(0 0 100% 0)} }
@keyframes bg-wave { 0%{transform:scale(1) rotate(0deg)} 100%{transform:scale(1.02) rotate(.5deg)} }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --nav-w: 0px; }
  #sidebar { width: 250px; transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.6); }
  #main { margin-left: 0; padding: 1.5rem 1rem 4rem; }
  .hamburger { display: flex; }
  .hdr-time { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .ep-item { grid-template-columns: 1fr auto; }
  .ep-item .ep-code { display: none; }
  .page-title { font-size: 1.5rem; }
  .landing-wrap { padding: 2rem 1rem; }
  .auth-box { padding: 1.5rem; }
  #admin-map { height: 300px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .landing-stats { gap: 1rem; }
}
