/* CHOPCITY – refined professional theme */
:root {
  --gold: #FFD700;
  --gold-dim: #c9a800;
  --orange: #FF8C00;
  --cyan: #00BFFF;
  --bg: #07070c;
  --bg2: #0e0e16;
  --card: #14141e;
  --card2: #1a1a26;
  --line: rgba(255, 215, 0, 0.12);
  --text: #f2f2f7;
  --muted: #9a9aaf;
  --ok: #00e676;
  --err: #ff1744;
  --radius: 14px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
body.chop-wall {
  background-color: #0c0614;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(70, 25, 90, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 15% 15%, rgba(90, 30, 70, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #100818 0%, #0c0614 100%);
  background-attachment: fixed;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* ===== NAV ===== */
.nav, #main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: rgba(7,7,12,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-brand-banner {
  height: 42px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.35));
  transition: transform 0.2s;
}
.nav-brand-banner:hover { transform: scale(1.04); }
.nav-brand-text {
  font-weight: 800; font-size: 1.25rem; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--gold), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.4rem; margin-left: auto;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted); padding: 6px 12px; border-radius: 8px;
  font-weight: 500; font-size: 0.9rem; transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: rgba(255,215,0,0.08);
}
.nav-right {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
/* Distinct Dashboard button (next to recharge) — not the same as normal nav links */
.nav-dash-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem;
  color: #111 !important;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  border: none;
  box-shadow: 0 2px 12px rgba(255, 165, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-dash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 165, 0, 0.5);
  color: #111 !important;
  filter: brightness(1.05);
}
.nav-bal {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 8px 4px 10px;
}
.nav-bal img { width: 22px; height: 22px; }
.nav-bal-amt { font-weight: 700; font-size: 0.9rem; color: var(--gold); }
.nav-bal-plus {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000; font-weight: 800; font-size: 1rem; line-height: 1;
}
.nav-profile { position: relative; }
.nav-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card2); border: 2px solid rgba(255,215,0,0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; position: relative;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.08);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-avatar:hover {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255,215,0,0.25);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar .pres {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--bg);
}
.pres.online { background: var(--ok); }
.pres.away { background: #ffab00; }
.pres.busy { background: var(--err); }
.pres.offline { background: #666; }
.nav-profile-menu {
  display: none; position: absolute; right: 0; top: 56px;
  background: linear-gradient(180deg, #1c1432 0%, #14101f 100%);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px; min-width: 240px; padding: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,215,0,0.06);
  z-index: 100;
  animation: npmIn 0.15s ease;
}
@keyframes npmIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-profile-menu.show { display: block; }
.nav-profile-menu .npm-head {
  padding: 12px 14px 10px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 12px;
}
.nav-profile-menu .npm-head .npm-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card2); border: 2px solid rgba(255,215,0,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; font-weight: 800; font-size: 0.85rem;
  color: var(--gold);
}
.nav-profile-menu .npm-head .npm-av img { width: 100%; height: 100%; object-fit: cover; }
.nav-profile-menu .npm-head .npm-meta { min-width: 0; }
.nav-profile-menu .npm-head .npm-name {
  font-size: 0.95rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-profile-menu .npm-head .npm-sub {
  font-size: 0.75rem; color: var(--muted); font-weight: 500;
  margin-top: 2px;
}
.nav-profile-menu .npm-section {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 8px 12px 4px; font-weight: 600;
}
.nav-profile-menu a, .nav-profile-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 9px 12px; border: none; background: none;
  color: var(--muted); border-radius: 10px; font-size: 0.88rem;
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.nav-profile-menu a:hover, .nav-profile-menu button:hover {
  background: rgba(255,215,0,0.1); color: var(--gold);
}
.nav-profile-menu .npm-divider {
  height: 1px; background: var(--line); margin: 6px 8px;
}
.nav-user-chip {
  display: none; flex-direction: column; align-items: flex-end;
  margin-right: 4px; line-height: 1.2;
}
.nav-user-chip .nuc-name {
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-user-chip .nuc-role {
  font-size: 0.68rem; color: var(--muted); font-weight: 500;
}
@media (min-width: 1100px) {
  .nav-user-chip { display: flex; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2); flex-direction: column; padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111;
}
.btn:hover { transform: translate3d(0, -1px, 0); color: #111; }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.btn-primary { /* same as .btn */ }

/* ===== AUTH GATE ===== */
.gate-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gate-overlay.show { opacity: 1; }
.gate-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; max-width: 400px; width: 92%;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transform: scale(0.94); transition: transform 0.3s;
}
.gate-overlay.show .gate-card { transform: scale(1); }
.gate-ico { font-size: 2.6rem; margin-bottom: 10px; }
.gate-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ===== WELCOME / LOADING ===== */
.welcome-overlay, #welcome-splash, #loading-screen {
  position: fixed; inset: 0; z-index: 30000;
  background: #050508;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.9s cubic-bezier(0.65,0,0.35,1), opacity 0.5s;
}
.welcome-overlay.hide, #welcome-splash.hide, #loading-screen.slide-up {
  transform: translateY(-110%); opacity: 0; pointer-events: none;
}
.welcome-stage { position: relative; width: min(90vw, 520px); height: 280px; overflow: hidden; border-radius: 16px; }
.welcome-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.welcome-stage img.on { opacity: 1; }
.w-char { width: 120px !important; height: auto !important; left: 50% !important; top: 55% !important;
  transform: translate(-50%,-50%); object-fit: contain !important; filter: drop-shadow(0 0 20px rgba(255,200,0,0.5)); }
.welcome-caption {
  margin-top: 24px; font-size: 1.4rem; font-weight: 700; color: var(--gold);
  letter-spacing: 2px; text-shadow: 0 0 24px rgba(255,215,0,0.4);
}
.welcome-skip {
  margin-top: 20px; background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 10px 22px; border-radius: 999px; font-weight: 600;
}
.welcome-skip:hover { color: var(--gold); border-color: var(--gold); }

/* ===== LAYOUT ===== */
.main, .page, .container {
  max-width: 1200px; margin: 0 auto; padding: calc(var(--nav-h) + 24px) 20px 40px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Dashboard sidebar layout */
.dash-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  max-width: 1280px; margin: 0 auto; padding: calc(var(--nav-h) + 20px) 16px 40px;
}
.side {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; height: fit-content;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.side-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); padding: 6px 10px; margin-bottom: 4px;
}
.side button, .side a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: none; background: none; color: var(--muted);
  border-radius: 10px; font-weight: 500; font-size: 0.92rem; text-align: left;
  margin-bottom: 2px; transition: all 0.15s;
}
.side button:hover, .side a:hover, .side button.on, .side a.active {
  background: rgba(255,215,0,0.1); color: var(--gold);
}
.side .ico { font-size: 1.1rem; width: 22px; text-align: center; }

@media (max-width: 860px) {
  .dash-layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .side-title { width: 100%; }
}

/* Stats */
.stat {
  display: flex; gap: 12px; align-items: flex-start;
}
.stat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(255,215,0,0.12); color: var(--gold); flex-shrink: 0;
}
.stat-val { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.stat-lbl { color: var(--muted); font-size: 0.85rem; }

/* Forms */
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}

/* Settings rows */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.setting-row:last-child { border-bottom: none; }
.setting-info h4 { font-size: 0.95rem; }
.setting-info p { font-size: 0.82rem; color: var(--muted); }

/* Toggle */
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #333; border-radius: 26px; cursor: pointer; transition: 0.25s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.25s;
}
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ===== BALANCE WIDGET ===== */
.bal-widget {
  position: fixed; bottom: 88px; right: 18px; z-index: 8500;
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.bal-widget img { width: 32px; height: 32px; }
.bal-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }
.bal-amt { font-weight: 800; color: var(--gold); }
.bal-plus {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000; font-weight: 800;
}

/* ===== TOPUP MODAL ===== */
.topup-overlay {
  position: fixed; inset: 0; z-index: 15000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.topup-modal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; max-width: 400px; width: 92%;
  position: relative;
}
.topup-modal .x {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--muted); font-size: 1.4rem;
}
.topup-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.topup-hero img { width: 48px; }
.bonus-list { margin-bottom: 12px; }
.bonus-row {
  display: flex; justify-content: space-between; padding: 10px 12px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; margin-bottom: 4px;
}
.bonus-row:hover { background: rgba(255,255,255,0.03); }
.bonus-row.on { border-color: var(--gold); background: rgba(255,215,0,0.08); }
.bonus-row .right { color: var(--gold); font-weight: 600; }
.bonus-row .muted { color: var(--muted); font-weight: 400; }
.sub { color: var(--muted); font-size: 0.85rem; }
.mono { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); word-break: break-all; }

/* ===== CHAT FAB + DOCK ===== */
.chat-fab {
  position: fixed; bottom: 20px; left: 18px; z-index: 8600;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 6px 24px rgba(255,165,0,0.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: transform 0.2s;
}
.chat-fab img { width: 36px; height: 36px; object-fit: contain; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab.open { opacity: 0.5; }
.chat-dock {
  position: fixed; bottom: 86px; left: 18px; z-index: 8590;
  width: 340px; max-width: calc(100vw - 36px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transition: opacity 0.25s, transform 0.25s;
}
.chat-dock.mini, .chat-dock.hidden {
  opacity: 0; pointer-events: none; transform: translateY(12px);
}
.chat-dock-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg2);
}
.cd-tab {
  flex: 1; padding: 8px; border: none; background: none; color: var(--muted);
  border-radius: 8px; font-weight: 600; font-size: 0.85rem;
}
.cd-tab.on { background: rgba(255,215,0,0.12); color: var(--gold); }
.cd-min { background: none; border: none; color: var(--muted); font-size: 1.2rem; padding: 4px 8px; }
.chat-dock-body { height: 280px; display: flex; flex-direction: column; }
.cd-pane { display: none; flex-direction: column; height: 100%; }
.cd-pane.on { display: flex; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px; font-size: 0.88rem; }
.chat-msg { margin-bottom: 8px; }
.chat-msg .who { font-weight: 700; color: var(--gold); font-size: 0.8rem; }
.chat-compose {
  display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line);
}
.chat-compose input { flex: 1; }
.chat-compose button {
  padding: 8px 14px; border: none; border-radius: 8px;
  background: var(--gold); color: #111; font-weight: 700;
}
.muted, .small { color: var(--muted); }
.small { font-size: 0.8rem; }

/* ===== FX ===== */
.lightning-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.lightning-flash {
  position: absolute; inset: 0; background: rgba(255,255,255,0.04);
  opacity: 0; animation: flash 7s infinite;
}
.lightning-flash.f2 { animation-delay: 3.5s; }
@keyframes flash {
  0%, 96%, 100% { opacity: 0; }
  97% { opacity: 1; }
  98% { opacity: 0.3; }
  99% { opacity: 0.8; }
}
.lightning-bolt {
  position: absolute; width: 3px; height: 120px;
  background: linear-gradient(to bottom, transparent, #fff, var(--gold), transparent);
  left: 20%; top: -20%; opacity: 0;
  animation: bolt 8s infinite; filter: blur(1px);
}
.lightning-bolt.b2 { left: 70%; animation-delay: 4s; }
@keyframes bolt {
  0%, 94%, 100% { opacity: 0; transform: translateY(0); }
  95% { opacity: 1; }
  97% { opacity: 0.4; transform: translateY(40vh); }
}
body.fx-paused .lightning-layer * { animation-play-state: paused !important; }

.runner-stage { position: fixed; inset: 0; pointer-events: none; z-index: 5000; overflow: hidden; }
.runner {
  position: absolute; bottom: 10%; left: -20%;
  width: 140px; height: auto;
  transition: none;
}
.runner.run { animation: runAcross 2.2s ease-in forwards; }
@keyframes runAcross {
  0% { left: -15%; }
  100% { left: 110%; }
}
.gun-coin {
  position: absolute; width: 28px; height: 28px;
  animation: coinFly 1.4s ease-out forwards;
}
@keyframes coinFly {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
}
.call-burst {
  position: absolute; font-size: 1.2rem;
  animation: coinFly 1.2s ease-out forwards;
}

/* Clouds / grid-fx (subtle) */
.clouds { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; opacity: 0.15; }
.cloud {
  position: absolute; background: #fff; border-radius: 50%;
  filter: blur(40px); opacity: 0.3;
}
.c1 { width: 200px; height: 60px; top: 20%; left: 10%; animation: drift 40s linear infinite; }
.c2 { width: 280px; height: 80px; top: 50%; left: 50%; animation: drift 55s linear infinite reverse; }
.c3 { width: 160px; height: 50px; top: 70%; left: 20%; animation: drift 35s linear infinite; }
@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(40vw); }
}
.grid-fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.4;
}

/* ===== HERO / MARKETING ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.hero-logo {
  max-width: 640px; width: 90%;
  filter: drop-shadow(0 0 40px rgba(255,215,0,0.45));
  margin-bottom: 24px; animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--gold), #fff, var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Alert */
.alert {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; display: none;
}
.alert.err { background: rgba(255,23,68,0.15); border: 1px solid rgba(255,23,68,0.3); color: #ff8a9a; }
.alert.ok { background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.3); color: #69f0ae; }

/* Footer */
.footer {
  text-align: center; padding: 32px 16px; color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--line); margin-top: 40px;
}

/* Utils */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.w-full { width: 100%; }

/* ===== LIVE STATS (public index) ===== */
.live-stats {
  margin: 40px auto; max-width: 1100px; padding: 0 16px;
}
.live-stats h2 {
  text-align: center; font-size: 1.5rem; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--gold), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.live-stats .subhead {
  text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 0.95rem;
}
.stat-pill {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 16px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-pill:hover { border-color: rgba(255,215,0,0.35); transform: translateY(-2px); }
.stat-pill .n {
  font-size: 1.75rem; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-pill .l { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.stat-pill .ico { font-size: 1.4rem; margin-bottom: 6px; }

@media (max-width: 700px) {
  .nav-dash-btn { padding: 6px 10px; font-size: 0.78rem; }
  .nav-dash-btn { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}


/* legacy layers disabled to prevent double FX / glitches */
.float-coins, .clouds, .grid-fx, .lightning-layer { display: none !important; }


/* ===== LIVE STATS ===== */
.live-stats { margin: 40px auto; max-width: 1100px; padding: 0 16px; position: relative; z-index: 2; }
.live-stats h2 {
  text-align: center; font-size: 1.5rem; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--gold), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.live-stats .subhead { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.stat-pill {
  background: rgba(22, 14, 36, 0.92); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 16px; text-align: center;
  transition: border-color 0.2s, transform 0.2s; position: relative; z-index: 2;
}
.stat-pill:hover { border-color: rgba(255,215,0,0.35); transform: translateY(-2px); }
.stat-pill .n { font-size: 1.75rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-pill .l { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.stat-pill .ico { font-size: 1.4rem; margin-bottom: 6px; }


/* ===== STABLE BACKGROUND FX (GPU-optimized) ===== */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
}
.bg-fx .city-sil {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  opacity: 0.2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 100'%3E%3Cpath fill='%231a0a28' d='M0 100V55h35v-25h20v25h25V30h30v25h40V15h35v40h25V40h30v60zM320 100V50h20V28h30v22h25V35h35v65zM500 100V45h35V22h25v23h40V30h20v15h30v55zM700 100V48h40V25h30v23h40v52z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
  transform: translateZ(0);
}
/* Lightning: opacity-only (no layout, no filter) */
.bg-fx .flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 30% at 30% 15%, rgba(255,255,255,0.14) 0%, transparent 70%);
  opacity: 0;
  transform: translateZ(0);
  animation: softFlash 14s steps(1, end) infinite;
}
.bg-fx .flash.f2 {
  background: radial-gradient(ellipse 35% 25% at 78% 12%, rgba(255,255,255,0.11) 0%, transparent 70%);
  animation-delay: 7s;
}
@keyframes softFlash {
  0%, 93%, 100% { opacity: 0; }
  94% { opacity: 0.65; }
  95% { opacity: 0.12; }
  96% { opacity: 0.4; }
  97% { opacity: 0; }
}
.bg-fx .bolt {
  position: absolute;
  width: 2px;
  height: 80px;
  top: 0;
  left: 20%;
  background: linear-gradient(180deg, transparent, #fff 40%, rgba(255,220,120,0.6) 70%, transparent);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: softBolt 13s linear infinite;
}
.bg-fx .bolt.b1 { left: 18%; animation-delay: 3s; }
.bg-fx .bolt.b2 { left: 70%; animation-delay: 8s; height: 60px; }
@keyframes softBolt {
  0%, 94% { opacity: 0; transform: translate3d(0, 0, 0); }
  95% { opacity: 0.85; transform: translate3d(0, 0, 0); }
  98% { opacity: 0; transform: translate3d(0, 30vh, 0); }
  100% { opacity: 0; transform: translate3d(0, 30vh, 0); }
}
/* Coins: transform3d + opacity only */
.bg-fx .coin {
  position: absolute;
  width: 20px;
  height: 20px;
  bottom: 0;
  left: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: floatCoin linear infinite;
  backface-visibility: hidden;
  pointer-events: none;
}
@keyframes floatCoin {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.2; }
  90%  { opacity: 0.1; }
  100% { transform: translate3d(0, -105vh, 0) rotate(260deg); opacity: 0; }
}
body.fx-paused .bg-fx .flash,
body.fx-paused .bg-fx .bolt,
body.fx-paused .bg-fx .coin {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .bg-fx .flash, .bg-fx .bolt, .bg-fx .coin,
  .hero-logo, .runner, .gun-coin, .call-burst {
    animation: none !important;
    opacity: 0 !important;
  }
  .hero-logo { opacity: 1 !important; }
}

/* Content above FX — promote only interactive chrome */
.nav, #main-nav { z-index: 9000; transform: translateZ(0); }
.main, .page, .container, .hero, .dash-layout,
.card, .side, .hub-panel, .stat-pill, footer {
  position: relative;
  z-index: 2;
}
.gate-overlay, .topup-overlay, .welcome-overlay { z-index: 20000; }
.chat-fab, .chat-dock, .bal-widget { z-index: 8600; transform: translateZ(0); }

.card, .side, .hub-panel, .stat-pill, .price-card, .topup-modal, .gate-card, .chat-dock {
  background: rgba(18, 12, 30, 0.96) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.iphone-frame { background: #0a0a0e !important; z-index: 2; contain: layout style; }
.dial-key { background: #1c1c24; touch-action: manipulation; }
.dial-key:active { background: #2a2a35; }

/* Hero logo: lighter motion, GPU */
.hero-logo {
  animation: floaty 5s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@media (max-width: 700px) {
  .hero-logo { animation: none; will-change: auto; }
  .nav-dash-btn { padding: 6px 10px; font-size: 0.78rem; }
  .bg-fx .coin { width: 14px; height: 14px; }
  .bg-fx .bolt { display: none; } /* fewer layers on small screens */
}

/* Campaign FX only when active — keep cheap */
.runner-stage { contain: strict; }
.runner.run { animation: runAcross 2.2s ease-in forwards; transform: translateZ(0); }
@keyframes runAcross {
  0% { transform: translate3d(-20vw, 0, 0); }
  100% { transform: translate3d(120vw, 0, 0); }
}
.gun-coin, .call-burst {
  animation: coinFly 1.3s ease-out forwards;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
@keyframes coinFly {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(0.4); }
}

/* legacy off */
.float-coins, .clouds, .grid-fx, .lightning-layer { display: none !important; }

/* ===== NAV polish ===== */
.nav, #main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.nav-links a {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 6px 10px;
}
.nav-right {
  flex-shrink: 0;
  gap: 8px;
}
.nav-brand-banner {
  height: 40px !important;
  max-width: 160px;
  object-fit: contain;
}

/* Chat FAB always visible bottom-left */
.chat-fab {
  position: fixed !important;
  bottom: 20px !important;
  left: 16px !important;
  z-index: 8700 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(255, 200, 0, 0.5);
  background: linear-gradient(145deg, #2a1840, #1a0e28) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 16px rgba(255,180,0,0.25);
}
.chat-fab img {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover;
  border-radius: 50%;
}
.chat-dock {
  z-index: 8690 !important;
  bottom: 86px !important;
  left: 16px !important;
}

/* Presence badges in admin */
.live-badge.online { background: rgba(0,230,118,0.2); color: #00e676; }
.live-badge.away { background: rgba(255,171,0,0.2); color: #ffab00; }
.live-badge.busy { background: rgba(255,23,68,0.2); color: #ff8a9a; }
.live-badge.offline { background: rgba(255,255,255,0.08); color: #888; }

/* Page quick-nav strip */
.page-jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; position: relative; z-index: 2;
}
.page-jump a {
  font-size: 0.8rem; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,215,0,0.08); border: 1px solid var(--line);
  color: var(--muted); text-decoration: none;
}
.page-jump a:hover { color: var(--gold); border-color: rgba(255,215,0,0.35); }


/* ===== HERO centered, logo only (no plain Chopcity text) ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 56px;
  position: relative;
  z-index: 2;
}
.hero-logo-wrap {
  width: min(92vw, 720px);
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 200, 0, 0.35));
  animation: floaty 5s ease-in-out infinite;
  transform: translateZ(0);
}
.hero-tagline {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.5;
}
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
}

/* ===== NAV layout: logo | page links …… dash | wallet | profile ===== */
.nav, #main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  padding: 0 14px 0 12px !important;
  height: var(--nav-h);
}
.nav-brand {
  flex-shrink: 0;
  margin-right: 4px;
}
.nav-brand-banner {
  height: 38px !important;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}
.nav-links a {
  font-size: 0.8rem;
  padding: 6px 9px;
  white-space: nowrap;
}
/* Spacer group on the right: not glued to page links */
.nav-right {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto !important;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 215, 0, 0.12);
}
.nav-dash-btn {
  flex-shrink: 0;
}
.nav-bal {
  flex-shrink: 0;
}
.nav-profile {
  flex-shrink: 0;
}
.nav-avatar {
  width: 36px;
  height: 36px;
}

@media (max-width: 900px) {
  .nav-right {
    padding-left: 10px;
    gap: 6px;
  }
  .nav-dash-btn {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
  .nav-links a {
    font-size: 0.72rem;
    padding: 5px 7px;
  }
}

/* Theme: purple / black / gold */
:root {
  --bg: #0a0612;
  --bg2: #120a1c;
  --card: #16102a;
  --card2: #1c1432;
  --gold: #FFD700;
  --orange: #FF8C00;
  --line: rgba(255, 215, 0, 0.14);
}

/* Hide any residual plain brand text nodes if injected */
h1[data-brand], .nav-brand-text:empty {
  /* allow gradient text only if no logo image */
}

/* Sign out — smaller, grey */
.nav-signout-btn {
  display: inline-flex; align-items: center;
  padding: 6px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  color: #b0b0b8 !important;
  background: rgba(80, 80, 90, 0.45);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-signout-btn:hover {
  background: rgba(100, 100, 110, 0.55);
  color: #ddd !important;
}
.nav-login-btn { /* same gold as dash when logged out */ }

/* Chat send emoji button */
#cd-send, .cd-send, button.cd-send {
  min-width: 42px !important;
  font-size: 1.15rem !important;
  padding: 8px 12px !important;
}

/* Centered sections */
.container { margin-left: auto; margin-right: auto; }
.hero, .live-stats { text-align: center; }

.nav-telegram-mid {
  flex-shrink: 0;
  margin: 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #111 !important;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(42, 171, 238, 0.35);
}
.nav-telegram-mid:hover { filter: brightness(1.08); color: #111 !important; }

/* Fullscreen hub */
.hub-page { min-height: 100vh; }
.hub-close-x {
  position: fixed; top: 14px; left: 14px; z-index: 10002;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 1.25rem;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.2);
}
.hub-close-x:hover { background: rgba(255,50,50,0.5); }
.hub-enter {
  position: fixed; inset: 0; z-index: 10001; background: #05030a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.6s, transform 0.6s;
}
.hub-enter.done, .hub-enter.hub-exit {
  opacity: 0; transform: scale(1.05); pointer-events: none;
}
.hub-enter video { width: min(90vw, 800px); border-radius: 12px; max-height: 55vh; object-fit: cover; }
.hub-enter-cap { margin-top: 16px; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; }
.hub-hero {
  position: relative; max-width: 960px; margin: calc(var(--nav-h) + 24px) auto 20px;
  border-radius: 18px; overflow: hidden; text-align: center;
}
.hub-hero img { width: 100%; display: block; max-height: 280px; object-fit: cover; opacity: 0.85; }
.hub-hero-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(transparent, rgba(5,3,12,0.75));
}
.hub-hero-text h1 { color: var(--gold); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 6px; text-shadow: 0 2px 20px #000; }
.hub-hero-text p { color: #eee; margin: 0; }
.hub-body { padding-bottom: 48px; }
.section-title { text-align: center; }
.text-center { text-align: center; }


/* Telegram blue buttons */
.btn-telegram, a.btn-telegram {
  background: #2AABEE !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(42, 171, 238, 0.4);
}
.btn-telegram:hover { filter: brightness(1.08); color: #fff !important; }
.btn-telegram::before { content: "✈️"; }

/* Fullscreen section overlay inside dashboard */
.sec-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(5, 3, 12, 0.98);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.sec-overlay.open { transform: translateY(0); }
.sec-overlay.closing { transform: translateY(100%); }
.sec-ov-enter {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #05030a;
  transition: opacity 0.5s;
}
.sec-ov-enter.gone { opacity: 0; pointer-events: none; }
.sec-ov-enter video { width: min(92vw, 720px); max-height: 50vh; border-radius: 14px; object-fit: cover; }
.sec-ov-enter .cap { margin-top: 14px; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; }
.sec-ov-x {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.7); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.sec-ov-body { flex: 1; overflow: auto; padding: 56px 16px 32px; position: relative; z-index: 1; }
.sec-ov-body .container { max-width: 1100px; margin: 0 auto; }

/* Role banners */
.role-banner {
  text-align: center; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px;
  border: 1px solid var(--line); background: rgba(255,215,0,0.06); font-size: 0.9rem;
}
.role-banner.admin { border-color: rgba(0,191,255,0.35); background: rgba(0,120,200,0.12); }
.role-banner.owner { border-color: rgba(255,100,100,0.4); background: rgba(120,20,40,0.2); }

/* Casino grid */
.casino-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.game-card {
  background: rgba(22,14,36,0.95); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 12px; text-align: center; cursor: pointer; transition: 0.15s;
}
.game-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.game-card .g-ico { font-size: 2rem; }

/* ===== Minecraft-style XP bar (purple / gold theme) ===== */
.chop-xp-wrap {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(120%);
  z-index: 8800;
  width: min(420px, 88vw);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.chop-xp-wrap.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.chop-xp-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 6, 24, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(140, 60, 255, 0.15);
  backdrop-filter: blur(10px);
}
.chop-xp-lvl {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--gold);
  white-space: nowrap;
  min-width: 52px;
}
.chop-xp-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #2a2a2e;
  border: 2px solid #1a1a1e;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.chop-xp-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7B2FFF 0%, #B44AFF 40%, #FFD700 100%);
  box-shadow: 0 0 10px rgba(180, 80, 255, 0.55);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.chop-xp-glow {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35));
  opacity: 0.5;
  transition: width 0.45s ease;
}
.chop-xp-text {
  font-size: 0.68rem;
  color: #c8c0d8;
  font-variant-numeric: tabular-nums;
  min-width: 72px;
  text-align: right;
}
.chop-xp-wrap.xp-pulse .chop-xp-fill {
  filter: brightness(1.35);
}
.chop-xp-bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #c77dff 40%, #7B2FFF 70%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 8900;
  animation: xpBubble var(--bd, 1s) ease-out forwards;
}
@keyframes xpBubble {
  0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(var(--bx, 0), -90px) scale(0.3); opacity: 0; }
}
.chop-xp-floater {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(10px);
  z-index: 9000;
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFD700;
  text-shadow: 0 0 12px rgba(180, 80, 255, 0.8), 0 2px 4px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.9s ease-out;
}
.chop-xp-floater.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-40px);
}
.chop-xp-levelup {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(120, 40, 200, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.chop-xp-levelup.show { opacity: 1; }
.chop-xp-levelup span {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 24px #b44aff, 0 4px 0 #4a2080;
  animation: levelPop 0.6s ease;
}
@keyframes levelPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 600px) {
  .chop-xp-wrap { bottom: 78px; } /* above chat fab */
}

/* ========== v1.2 NAV / PROFILE / DASH POLISH ========== */
:root {
  --nav-h: 78px;
}

.nav, #main-nav {
  height: var(--nav-h) !important;
  padding: 0 18px 0 16px !important;
  gap: 14px !important;
  background: rgba(10, 6, 18, 0.94) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.14) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  flex-shrink: 0 !important;
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
}

.nav-brand-banner {
  height: 56px !important;
  max-width: 200px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.45)) !important;
}

.nav-brand-banner:hover {
  transform: scale(1.05);
}

.nav-links {
  gap: 4px !important;
  justify-content: flex-start !important;
}

.nav-links a {
  font-size: 0.88rem !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold) !important;
  background: rgba(255, 215, 0, 0.1) !important;
}

.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-right {
  gap: 12px !important;
  padding-left: 18px !important;
  border-left: 1px solid rgba(255, 215, 0, 0.14) !important;
}

.nav-bal {
  padding: 6px 10px 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(22, 16, 42, 0.9) !important;
  border: 1px solid rgba(255, 215, 0, 0.18) !important;
}

.nav-bal img { width: 24px !important; height: 24px !important; }
.nav-bal-amt { font-size: 0.95rem !important; }
.nav-bal-plus {
  width: 28px !important;
  height: 28px !important;
  font-size: 1.05rem !important;
}

.nav-avatar {
  width: 48px !important;
  height: 48px !important;
  border-width: 2px !important;
}

.nav-avatar .pres {
  width: 12px !important;
  height: 12px !important;
  border-width: 2px !important;
}

.nav-profile-menu {
  top: 58px !important;
  min-width: 260px !important;
}

.nav-telegram-mid {
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
  margin: 0 8px !important;
}

.nav-dash-btn {
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
}

/* Dashboard sidebar polish */
.dash-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 20px) 16px 48px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  min-height: calc(100vh - var(--nav-h));
}

.side {
  background: linear-gradient(180deg, #16102a 0%, #120a1c 100%);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 18px;
  padding: 14px 10px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  height: fit-content;
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}

.side-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 12px 6px;
  font-weight: 700;
}

.side button,
.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  margin-bottom: 2px;
}

.side button:hover,
.side a:hover,
.side button.on {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.side button.on {
  box-shadow: inset 3px 0 0 var(--gold);
}

.side .ico { font-size: 1.05rem; width: 1.4em; text-align: center; }

#spa-main {
  min-width: 0;
}

.card.stat {
  background: linear-gradient(145deg, #1a1430, #14101f);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s;
}

.card.stat:hover {
  border-color: rgba(255, 215, 0, 0.28);
  transform: translateY(-2px);
}

.stat-ico { font-size: 1.6rem; }
.stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.hub-panel {
  background: linear-gradient(145deg, #1a1430, #14101f);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 16px;
  padding: 20px;
}

.hub-panel h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .side {
    position: relative;
    top: 0;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .side-title { width: 100%; }
  .side button, .side a {
    width: auto;
    flex: 1 1 auto;
    min-width: 140px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-brand-banner {
    height: 44px !important;
    max-width: 140px !important;
  }
  .nav-links a {
    font-size: 0.78rem !important;
    padding: 6px 10px !important;
  }
  .nav-avatar {
    width: 42px !important;
    height: 42px !important;
  }
  .nav-user-chip { display: none !important; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block !important;
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--gold);
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(12, 8, 22, 0.98);
    flex-direction: column !important;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    z-index: 8999;
  }
  .nav.open .nav-links {
    display: flex !important;
  }
  .nav-telegram-mid {
    display: none !important;
  }
}

/* Toast notifications */
.chop-toast-host {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, 92vw);
  pointer-events: none;
}
.chop-toast {
  pointer-events: auto;
  background: linear-gradient(135deg, #1c1432, #120a1c);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  color: var(--text);
  font-size: 0.88rem;
  animation: toastIn 0.25s ease;
}
.chop-toast.ok { border-color: rgba(0, 230, 118, 0.35); }
.chop-toast.err { border-color: rgba(255, 23, 68, 0.4); }
.chop-toast .ct-title { font-weight: 700; color: var(--gold); margin-bottom: 2px; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Live stats strip on index */
.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 28px;
}
.live-stats .ls-card {
  background: rgba(22, 16, 42, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.live-stats .ls-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
}
.live-stats .ls-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== UI refine v2: header asymmetry, XP bar, workspaces ===== */
:root {
  --nav-h: 82px;
}
.nav-brand-banner {
  height: 52px !important;
  max-height: 56px !important;
  width: auto !important;
  filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.35));
}
.nav-links a.nav-tg {
  font-size: 0.78rem;
  padding: 6px 10px;
  opacity: 0.85;
}
.nav-bal-sm {
  padding: 4px 8px !important;
  gap: 4px !important;
  transform: scale(0.92);
  transform-origin: right center;
}
.nav-bal-sm img { width: 18px !important; height: 18px !important; }
.nav-bal-sm .nav-bal-amt { font-size: 0.8rem !important; }
.nav-bal-sm .nav-bal-plus {
  width: 22px !important; height: 22px !important;
  font-size: 0.85rem !important;
}
.nav-avatar-sm {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.72rem !important;
}
.nav-user-chip .nuc-name { font-size: 0.78rem; }
.nav-user-chip .nuc-role { font-size: 0.65rem; color: var(--gold); }
.npm-lvl {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  font-weight: 700;
}

/* Street / denser bg — non-distracting */
body.chop-wall {
  background-color: #0a0614;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 60, 200, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 180, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #0c0818 0%, #08050f 40%, #0a0712 100%);
  background-attachment: fixed;
}
body.chop-wall::before {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,0.015) 48px, rgba(255,255,255,0.015) 49px),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,0.012) 48px, rgba(255,255,255,0.012) 49px);
}
body.chop-wall > * { position: relative; z-index: 1; }

/* XP bar — paid tools only, bottom, low opacity */
.xp-rail {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(420px, 88vw);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 8, 24, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.22);
  backdrop-filter: blur(10px);
  opacity: 0.42;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.xp-rail:hover {
  opacity: 1;
  box-shadow: 0 0 28px rgba(255, 200, 0, 0.25);
}
.xp-rail .xp-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 6px;
}
.xp-rail .xp-meta strong { color: var(--gold); }
.xp-rail .xp-track {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; position: relative;
}
.xp-rail .xp-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #ffd700, #ff8c00);
  background-size: 200% 100%;
  transition: width 0.6s ease;
}
.xp-rail:hover .xp-fill {
  animation: xpShimmer 1.2s linear infinite;
}
@keyframes xpShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.xp-rail .xp-spark {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
}
.xp-rail:hover .xp-spark {
  opacity: 1;
  animation: xpSpark 1.4s ease-in-out infinite;
}
@keyframes xpSpark {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Fullscreen workspace overlay */
.ws-overlay {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.ws-overlay.open {
  opacity: 1; pointer-events: auto;
}
.ws-overlay .ws-blur {
  position: absolute; inset: 0;
  background: rgba(6, 4, 14, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ws-overlay .ws-panel {
  position: relative; z-index: 1;
  margin: calc(var(--nav-h) + 12px) auto 16px;
  width: min(1100px, 96vw);
  max-height: calc(100vh - var(--nav-h) - 28px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(14, 10, 28, 0.96);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ws-overlay.open .ws-panel {
  transform: translateY(0) scale(1);
}
.ws-overlay .ws-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: rgba(14,10,28,0.95);
  z-index: 2;
}
.ws-overlay .ws-head h2 { margin: 0; font-size: 1.1rem; color: var(--gold); }
.ws-overlay .ws-close {
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.ws-overlay .ws-close:hover { color: var(--gold); border-color: rgba(255,215,0,0.4); }
.ws-overlay .ws-body { padding: 16px 18px 28px; }

/* Index section reveal animations */
.idx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.idx-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Symmetric containers */
.container, main.hero, .live-stats {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.live-stats { text-align: center; padding: 40px 16px; }
.live-stats .grid { justify-content: center; }

@media (max-width: 820px) {
  .nav-user-chip { display: none !important; }
  .nav-brand-banner { height: 42px !important; }
}

/* ===== Theme toggle ===== */
html[data-theme="light"] {
  --bg: #f4f2f8;
  --bg2: #ffffff;
  --text: #1a1525;
  --muted: #5c5670;
  --line: rgba(0,0,0,0.1);
  --gold: #b8860b;
  --card2: #ebe7f4;
}
html[data-theme="light"] body.chop-wall {
  background-color: #f0eef6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 80, 200, 0.08), transparent 55%),
    linear-gradient(180deg, #f5f3fa 0%, #ebe8f4 100%);
}
html[data-theme="light"] body.chop-wall::before { opacity: 0.2; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--gold); cursor: pointer; font-size: 0.95rem;
  flex-shrink: 0; transition: background 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.1);
}

/* Admin shop editor */
.shop-editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.15);
}
@media (max-width: 640px) {
  .shop-editor-row { grid-template-columns: 1fr; }
}
.shop-editor-row label { font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 4px; }
.shop-editor-row input, .shop-editor-row select, .shop-editor-row textarea {
  width: 100%; box-sizing: border-box;
}
.shop-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.role-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; border: 1px solid var(--line);
}
.role-owner { color: #ffd700; border-color: rgba(255,215,0,0.45); background: rgba(255,215,0,0.12); }
.role-admin { color: #ff8c69; border-color: rgba(255,100,80,0.4); background: rgba(255,80,60,0.1); }
.role-mod { color: #7dd3fc; border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.1); }
.role-support { color: #86efac; border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.1); }
.role-p1_admin { color: #c4b5fd; border-color: rgba(167,139,250,0.4); background: rgba(139,92,246,0.12); }
.role-user { color: var(--muted); }
.role-pending { color: #fbbf24; }

/* ===== Index / intro / hover / XP viewport fix ===== */

/* Intro: transparent over blurred site */
#site-intro {
  background: transparent !important;
  backdrop-filter: blur(18px) brightness(0.55);
  -webkit-backdrop-filter: blur(18px) brightness(0.55);
}
#site-intro .intro-logo,
#site-intro img.logo,
.nav.nav-loading .nav-brand-banner {
  opacity: 0.35;
  filter: saturate(0.7);
  transition: opacity 0.35s ease, filter 0.35s ease;
}
#site-intro video {
  background: transparent !important;
  box-shadow: 0 0 40px rgba(255, 200, 0, 0.2);
}

/* Workspace loading (transparent) */
.ws-loading {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ws-loading.hide { opacity: 0; visibility: hidden; }
.ws-loading .ws-load-inner {
  text-align: center; color: var(--gold);
  font-weight: 700; letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(255,200,0,0.35);
}
body.ws-open {
  overflow: hidden;
}
body.ws-open > .nav,
body.ws-open > main,
body.ws-open > section,
body.ws-open > footer,
body.ws-open > .container {
  filter: blur(10px);
  transition: filter 0.35s ease;
}
/* Don't blur the workspace itself */
body.ws-open #hub-workspace,
body.ws-open #ws-overlay {
  filter: none !important;
}

/* XP rail: fixed to VIEWPORT bottom (not page end) */
.xp-rail {
  position: fixed !important;
  left: 50% !important;
  bottom: 16px !important;
  top: auto !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 9500 !important;
  width: min(420px, 90vw) !important;
  margin: 0 !important;
  /* never on index — JS removes it; hide if present */
}
body.path-index .xp-rail,
body[data-page="index"] .xp-rail {
  display: none !important;
}

/* Media hover glow */
.glow-hover,
.tool-card img,
.hero-logo,
.nav-brand-banner,
.tg-phone,
.idx-media,
video.idx-vid,
img.idx-img {
  transition: filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.glow-hover:hover,
.tool-card:hover img,
.hero-logo:hover,
.nav-brand-banner:hover,
.tg-phone:hover,
.idx-media:hover,
video.idx-vid:hover,
img.idx-img:hover {
  filter: brightness(1.18) saturate(1.15) drop-shadow(0 0 16px rgba(255, 215, 0, 0.45));
  transform: scale(1.02);
}

/* Section cinematic enter */
.idx-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1), transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.idx-reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.idx-reveal.in .tool-card {
  animation: cardPop 0.55s ease backwards;
}
.idx-reveal.in .tool-card:nth-child(1) { animation-delay: 0.05s; }
.idx-reveal.in .tool-card:nth-child(2) { animation-delay: 0.12s; }
.idx-reveal.in .tool-card:nth-child(3) { animation-delay: 0.19s; }
.idx-reveal.in .tool-card:nth-child(4) { animation-delay: 0.26s; }
.idx-reveal.in .tool-card:nth-child(5) { animation-delay: 0.33s; }
.idx-reveal.in .tool-card:nth-child(6) { animation-delay: 0.4s; }
@keyframes cardPop {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Header refine v3 ===== */
.nav-tg, .nav-tg-blue, a.nav-tg-blue {
  font-size: 0.72rem !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: #229ED9 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  white-space: nowrap;
  opacity: 1 !important;
}
.nav-tg:hover, a.nav-tg-blue:hover {
  background: #1a8bc0 !important;
  color: #fff !important;
  filter: brightness(1.08);
}
.npm-tg {
  color: #229ED9 !important;
  font-weight: 600;
}

.nav-dash-gold {
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1200 !important;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  border: 1px solid rgba(255, 215, 0, 0.55);
  text-decoration: none !important;
  box-shadow: 0 0 14px rgba(255, 200, 0, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-dash-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 200, 0, 0.4);
  color: #1a1200 !important;
}

.nav-bal {
  padding: 6px 10px !important;
  transform: none !important;
}
.nav-avatar {
  width: 42px !important;
  height: 42px !important;
  font-size: 0.8rem !important;
  border: 2px solid rgba(255, 215, 0, 0.35);
}
.nav-user-chip {
  display: flex !important;
  margin-right: 6px;
}
.nav-user-chip .nuc-name { font-size: 0.85rem; max-width: 120px; }
.nav-user-chip .nuc-role { font-size: 0.68rem; color: var(--gold); }
.nav-profile-menu {
  min-width: 220px;
  padding: 8px;
}
.nav-right {
  gap: 10px;
  align-items: center;
}

/* Coin with phone emoji */
.coin-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  animation: coinFloat 8s ease-in-out infinite;
}
.coin-wrap .coin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.35));
}
.coin-wrap .coin-phone {
  position: absolute;
  font-size: 0.55em;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.coin-wrap.pop {
  animation: coinPop 0.4s ease forwards;
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
@keyframes coinPop {
  to { transform: scale(1.6); opacity: 0; }
}

/* Live cyber background */
#live-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
#live-bg .live-bg-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(120, 40, 200, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 160, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #080510 0%, #0c0818 45%, #06040e 100%);
}
#live-bg .live-bg-grid {
  position: absolute; inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,215,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,180,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(400px) rotateX(52deg) scale(1.4);
  transform-origin: center 80%;
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 0 56px; }
}
#live-bg .live-bg-lightning {
  position: absolute; inset: 0;
  background: transparent;
  animation: flashSky 9s ease-in-out infinite;
}
@keyframes flashSky {
  0%, 92%, 100% { background: transparent; }
  93% { background: rgba(180, 200, 255, 0.07); }
  94% { background: transparent; }
  95% { background: rgba(255, 220, 120, 0.05); }
}
#live-bg .live-bg-particles i {
  position: absolute;
  bottom: -10%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 6px rgba(255, 200, 0, 0.5);
  animation: risePart linear infinite;
}
@keyframes risePart {
  from { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.8; }
  to { transform: translateY(-110vh); opacity: 0; }
}
body.chop-wall > *:not(#live-bg):not(#coin-field) {
  position: relative;
  z-index: 1;
}
#coin-field { z-index: 2; position: fixed; inset: 0; pointer-events: none; }
#coin-field .coin-wrap { pointer-events: auto; }

/* Scroll-triggered utility (global) */
.scroll-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-fade.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nav-user-chip { display: none !important; }
  .nav-dash-gold { padding: 6px 8px; font-size: 0.75rem; }
  .nav-tg, a.nav-tg-blue { font-size: 0.68rem !important; padding: 4px 8px !important; }
}


/* ===== Video background (replaces pure CSS street) ===== */
#live-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
#live-bg .live-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.42) contrast(1.08) saturate(1.05);
  transform: scale(1.04);
}
#live-bg .live-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(40, 10, 80, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(6, 4, 14, 0.55) 0%, rgba(8, 5, 18, 0.72) 50%, rgba(5, 3, 12, 0.88) 100%);
  pointer-events: none;
}
#live-bg .live-bg-grad,
#live-bg .live-bg-grid {
  display: none !important; /* CSS street removed — video is primary */
}
body.chop-wall {
  background-color: #05030a !important;
  background-image: none !important;
}

/* ===== Coin planets (decorative, no interaction) ===== */
#coin-field {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.coin-planet {
  position: absolute;
  left: var(--x0, 20vw);
  top: var(--y0, 30vh);
  width: var(--sz, 36px);
  height: var(--sz, 36px);
  pointer-events: none !important;
  animation: planetDrift var(--dur, 40s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.72;
  filter: drop-shadow(0 0 10px rgba(255, 190, 0, 0.35));
}
.coin-planet-core {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff6c8 0%, #ffd700 22%, #e8a200 48%, #b8860b 72%, #6b4a00 100%);
  box-shadow:
    inset -4px -4px 10px rgba(0,0,0,0.35),
    inset 3px 3px 8px rgba(255,255,255,0.35),
    0 0 16px rgba(255, 200, 0, 0.25);
  transform: rotateX(12deg) rotateY(-18deg);
  animation: planetSpin 14s linear infinite;
}
.coin-planet-emoji {
  font-size: calc(var(--sz, 36px) * 0.38);
  line-height: 1;
  filter: grayscale(1) brightness(0.15) contrast(1.2);
  text-shadow: none;
  transform: translateZ(4px);
}
@keyframes planetDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--drift), -30px); }
  50%  { transform: translate(calc(var(--drift) * -0.4), 20px); }
  75%  { transform: translate(calc(var(--drift) * 0.6), -10px); }
  100% { transform: translate(0, 0); }
}
@keyframes planetSpin {
  from { filter: brightness(1); }
  50% { filter: brightness(1.12); }
  to { filter: brightness(1); }
}

/* Profile chip fancy */
.nav-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.18);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-profile:hover {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.06);
  box-shadow: 0 0 20px rgba(255,200,0,0.12);
}
.nav-user-chip {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.nav-user-chip .nuc-name {
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-chip .nuc-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.nav-avatar {
  width: 44px !important;
  height: 44px !important;
  border: 2px solid rgba(255,215,0,0.45) !important;
  box-shadow: 0 0 12px rgba(255,200,0,0.2);
}

/* All Telegram CTAs — blue + emoji friendly */
a[href*="t.me/"],
a[href*="telegram.me/"],
.btn-telegram,
.tg-btn,
.shop-tg,
.nav-tg,
.nav-tg-blue,
.npm-tg {
  background: #229ED9 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
a[href*="t.me/"]:hover,
.btn-telegram:hover,
.tg-btn:hover,
.shop-tg:hover,
.nav-tg:hover {
  background: #1b8ec4 !important;
  color: #fff !important;
  filter: brightness(1.06);
}
/* Keep nav telegram compact */
.nav-links a.nav-tg,
.nav-links a.nav-tg-blue {
  font-size: 0.72rem !important;
  padding: 5px 10px !important;
}

/* Live network stats — clean grid */
.live-stats {
  max-width: 960px !important;
  margin: 0 auto 48px !important;
  padding: 36px 20px !important;
  text-align: center;
}
.live-stats h2 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 1.5rem;
}
.live-stats .subhead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.live-stats .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .live-stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .live-stats .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.live-stats .stat-pill {
  background: rgba(14, 10, 28, 0.85);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 14px;
  padding: 16px 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.live-stats .stat-pill:hover {
  border-color: rgba(255,215,0,0.4);
  transform: translateY(-2px);
}
.live-stats .stat-pill .ico { font-size: 1.25rem; margin-bottom: 4px; }
.live-stats .stat-pill .n {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.02em;
}
.live-stats .stat-pill .l {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Marketing hero polish */
.hero {
  text-align: center;
  padding: calc(var(--nav-h) + 36px) 20px 28px !important;
  max-width: 800px;
  margin: 0 auto;
}
.hero-tagline {
  font-size: 1.05rem !important;
  line-height: 1.55;
  color: #c8c4d8 !important;
  max-width: 520px;
  margin: 12px auto 22px !important;
}
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* ===== Brighter dark mode ===== */
html:not([data-theme="light"]) {
  --bg: #12101c;
  --bg2: #1a1628;
  --text: #f0eef6;
  --muted: #a8a2bc;
  --line: rgba(255,255,255,0.12);
  --gold: #ffd84a;
  --card2: #221e32;
}
html:not([data-theme="light"]) body.chop-wall {
  background-color: #100e18 !important;
}
html:not([data-theme="light"]) #live-bg .live-bg-video {
  filter: brightness(0.55) contrast(1.05) saturate(1.08) !important;
}
html:not([data-theme="light"]) #live-bg .live-bg-overlay {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(60, 30, 100, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(12, 10, 22, 0.4) 0%, rgba(14, 12, 26, 0.55) 50%, rgba(10, 8, 18, 0.7) 100%) !important;
}

/* ===== Multi-workspace shell ===== */
#ws-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}
#ws-root.has-open { pointer-events: auto; }

.ws-frame {
  position: fixed;
  inset: 0;
  z-index: 12010;
  display: none;
  flex-direction: column;
  background: rgba(8, 6, 16, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ws-frame.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.ws-frame.minimized {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
.ws-frame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: brightness(0.5) saturate(1.1);
  pointer-events: none;
  z-index: 0;
}
.ws-frame-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(12, 10, 22, 0.88);
  border-bottom: 1px solid rgba(255,215,0,0.2);
  flex-shrink: 0;
}
.ws-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #ddd;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ws-btn:hover { border-color: rgba(255,215,0,0.45); color: var(--gold); }
.ws-btn-close:hover { border-color: rgba(255,80,80,0.5); color: #ff6b6b; }
.ws-frame-title {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  margin-left: 4px;
}
.ws-frame-body {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow: auto;
  padding: 16px 18px 28px;
  background: rgba(14, 12, 26, 0.82);
}

/* Taskbar for minimized workspaces */
#ws-taskbar {
  position: fixed;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  z-index: 12100;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 92vw;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(12, 10, 22, 0.92);
  border: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  pointer-events: auto;
}
#ws-taskbar.show { display: flex; }
.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #ddd;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ws-tab:hover, .ws-tab.active {
  border-color: rgba(255,215,0,0.45);
  background: rgba(255,215,0,0.1);
  color: var(--gold);
}
.ws-tab .ws-tab-x {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-left: 4px;
}
.ws-tab .ws-tab-x:hover { opacity: 1; color: #ff6b6b; }

body.ws-maximized #main-nav,
body.ws-maximized .nav {
  opacity: 0.35;
  pointer-events: none;
}

/* XP bar video-smooth + dashboard */
.xp-rail {
  position: fixed !important;
  left: 50% !important;
  bottom: 14px !important;
  transform: translateX(-50%) !important;
  z-index: 11900 !important;
  opacity: 0.38 !important;
  overflow: hidden;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(10, 8, 20, 0.65) !important;
  backdrop-filter: blur(12px);
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}
.xp-rail:hover {
  opacity: 1 !important;
  box-shadow: 0 0 28px rgba(255, 200, 0, 0.3);
  transform: translateX(-50%) translateY(-2px) !important;
}
.xp-rail .xp-fill {
  background: linear-gradient(90deg, #6b21a8, #ffd700, #ff8c00, #6b21a8) !important;
  background-size: 300% 100% !important;
  animation: xpFlow 3.5s linear infinite;
}
@keyframes xpFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.xp-rail .xp-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: xpShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes xpShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.path-index .xp-rail { display: none !important; }

/* Coin planets — low opacity, black phone glyph */
.coin-planet {
  opacity: 0.28 !important;
  filter: drop-shadow(0 0 6px rgba(255, 190, 0, 0.2)) !important;
}
.coin-planet-core {
  background:
    radial-gradient(circle at 30% 28%, #ffe9a0 0%, #ffd000 35%, #c99200 70%, #7a5500 100%) !important;
}
.coin-phone-icon {
  position: relative;
  width: 38%;
  height: 52%;
  display: block;
}
.coin-phone-icon .cpi-body {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18%;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px #222;
}
.coin-phone-icon .cpi-notch {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 8%;
  border-radius: 4px;
  background: #1a1a1a;
}
.coin-phone-icon .cpi-btn {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 6%;
  border-radius: 50%;
  background: #2a2a2a;
}

/* BG logo + character ghost */
.live-bg-logo {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(42vw, 420px);
  opacity: 0.07;
  pointer-events: none;
  filter: grayscale(0.2);
  z-index: 1;
}
.live-bg-char {
  position: absolute;
  left: 12%;
  bottom: 8%;
  height: min(38vh, 320px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}
#live-bg .live-bg-video {
  filter: brightness(0.5) contrast(1.08) saturate(1.1) !important;
}

/* Hide broken img squares globally */
img[src=""], img:not([src]) { display: none !important; }

/* Section hover video-lite */
.tool-card, .stat-pill, .shop-card, .rate-card {
  position: relative;
  overflow: hidden;
}
.tool-card::after, .rate-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,215,0,0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tool-card:hover::after, .rate-card:hover::after {
  opacity: 1;
  animation: shineSweep 1.2s ease;
}
@keyframes shineSweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Mailer workspace */
.mailer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) { .mailer-layout { grid-template-columns: 1fr; } }
.mailer-panel {
  background: rgba(16,12,28,0.9);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 14px;
  padding: 18px;
}
.mailer-panel h3 { color: var(--gold); margin: 0 0 12px; }
.mailer-panel label { display: block; font-size: 0.78rem; color: var(--muted); margin: 10px 0 4px; }
.mailer-panel input, .mailer-panel select, .mailer-panel textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35); color: #eee;
}
.smtp-live {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.smtp-live .pill {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}
.smtp-live .pill strong { color: #7dffa0; }

/* Rates grid */
.rates-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.rate-card {
  background: rgba(14,10,26,0.92);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,0,0.45);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.rate-card .price {
  font-size: 1.6rem; font-weight: 800; color: #ffd700; margin: 12px 0;
}
.rate-card .per { font-size: 0.8rem; color: var(--muted); }

/* Casino + lounge split */
.casino-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 14px;
  height: calc(100vh - 100px);
  max-height: 900px;
}
@media (max-width: 900px) {
  .casino-layout { grid-template-columns: 1fr; height: auto; }
}
.casino-games {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-content: start;
}
.game-tile {
  border-radius: 14px;
  border: 1px solid rgba(255,215,0,0.2);
  background: linear-gradient(160deg, rgba(40,20,60,0.9), rgba(10,8,20,0.95));
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  min-height: 120px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-tile:hover {
  transform: scale(1.03);
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 0 24px rgba(255,200,0,0.15);
}
.game-tile .g-ico { font-size: 2rem; margin-bottom: 8px; }
.lounge-side {
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 14px;
  background: rgba(8,6,16,0.9);
  overflow: hidden;
  min-height: 320px;
}
.lounge-side .lh {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--gold); font-weight: 700; font-size: 0.9rem;
}
.lounge-msgs {
  flex: 1; overflow-y: auto; padding: 10px;
  font-size: 0.85rem;
}
.lounge-msgs .lm { margin-bottom: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.lounge-msgs .lm .who { color: var(--gold); font-size: 0.72rem; }
.lounge-input {
  display: flex; gap: 6px; padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lounge-input input {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4); color: #eee;
}

/* Kill coins completely */
#coin-field, .coin-planet, .coin-wrap, .coin { display: none !important; }

/* Chat FAB — always bottom-left of viewport */
.chat-fab {
  position: fixed !important;
  left: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  right: auto !important;
  z-index: 12050 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,215,0,0.35) !important;
  background: rgba(12,10,22,0.92) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-dock {
  position: fixed !important;
  left: 16px !important;
  bottom: 80px !important;
  z-index: 12040 !important;
}

/* Dialer FAB — bottom-right */
.dialer-fab {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 12050 !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: 0 0 24px rgba(34, 158, 217, 0.35);
}
.dialer-fab-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.45rem;
  background: radial-gradient(circle at 30% 30%, #5ec8ff, #229ED9 55%, #0d6a9a);
  border: 2px solid rgba(255,255,255,0.25);
  animation: dialPulse 2.4s ease-in-out infinite;
}
@keyframes dialPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,158,217,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(34,158,217,0); }
}
.dialer-fab:hover .dialer-fab-bubble { filter: brightness(1.1); }

/* Mini dialer window (not fullscreen workspace) */
.dialer-window {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: min(420px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  z-index: 12060;
  display: none;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,215,0,0.25);
  background: rgba(10,8,20,0.96);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  animation: dialWinIn 0.35s ease;
}
.dialer-window.open { display: flex; }
.dialer-window.minimized {
  height: 48px;
}
.dialer-window.minimized .dialer-win-body { display: none; }
.dialer-window.maximized {
  left: 4vw;
  right: 4vw;
  top: 8vh;
  bottom: 4vh;
  width: auto;
  height: auto;
}
@keyframes dialWinIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.dialer-win-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.dialer-win-body {
  flex: 1;
  min-height: 0;
}
.dialer-win-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0814;
}

/* Hide leftover bg logo/char if any */
.live-bg-logo, .live-bg-char { display: none !important; }

/* Footer spacing so content isn't under FABs */
body.chop-wall { padding-bottom: 0; }
.site-footer, footer.footer {
  position: relative;
  z-index: 2;
  padding-bottom: 100px !important;
}

/* Logo: force visible gold on dark (CITY was black on black) */
.nav-brand-banner,
.nav-brand img,
a.nav-brand img {
  filter: brightness(1.15) contrast(1.08) drop-shadow(0 0 8px rgba(255, 200, 0, 0.35)) !important;
  max-height: 42px !important;
  width: auto !important;
}
.nav-brand-text {
  color: #ffd700 !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(255, 200, 0, 0.4);
}

/* Header right: more gap so profile circle isn't cramped */
.nav-right {
  gap: 14px !important;
  margin-left: 12px;
  padding-left: 8px;
}
.nav-profile {
  margin-left: 4px;
  padding: 5px 8px 5px 12px !important;
}
.nav-bal { margin-right: 2px; }
.nav-dash-gold { margin-right: 2px; }

/* Fancy nav pills */
.nav-links a {
  position: relative;
  overflow: hidden;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  color: #ddd !important;
  border: 1px solid transparent !important;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
}
.nav-links a::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,215,0,0.12) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  animation: navShine 1.4s ease;
}
@keyframes navShine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.nav-links a:hover {
  color: #ffd700 !important;
  border-color: rgba(255,215,0,0.3) !important;
  background: rgba(255,215,0,0.08) !important;
}
.nav-links a.active {
  color: #111 !important;
  background: linear-gradient(135deg, #ffd700, #ffb300) !important;
  border-color: rgba(255,215,0,0.5) !important;
  box-shadow: 0 0 16px rgba(255,200,0,0.25);
}
.nav-links a.nav-tg,
.nav-links a.nav-tg-blue {
  color: #fff !important;
  background: #229ED9 !important;
  border: none !important;
}
.nav-links a.nav-tg:hover {
  background: #1b8ec4 !important;
  color: #fff !important;
}

/* Background base when video fails / no ambient file */
.live-bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(90, 40, 160, 0.25), transparent 55%),
    linear-gradient(180deg, #0c0a14 0%, #080610 100%);
}
#live-bg .live-bg-video {
  opacity: 0.35;
  filter: brightness(0.45) saturate(0.9) !important;
}
#live-bg .live-bg-overlay {
  background:
    linear-gradient(180deg, rgba(8,6,16,0.55) 0%, rgba(8,6,16,0.75) 100%) !important;
}

/* Hub overview layout */
.hub-overview .hub-ov-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,0.2);
  background: rgba(14,10,26,0.88);
}
.hub-start-ws {
  padding: 14px 22px !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
  box-shadow: 0 0 24px rgba(255,200,0,0.2);
  white-space: nowrap;
}

/* Wordmark: CHOP + CITY purple, bolt yellow */
.nav-logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: system-ui, Impact, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}
.nav-logo-chop,
.nav-logo-city {
  color: #a855f7 !important;
  text-shadow:
    0 0 10px rgba(168, 85, 247, 0.55),
    0 1px 0 rgba(0,0,0,0.4);
}
.nav-logo-bolt {
  color: #ffd700 !important;
  font-size: 1.15em;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
  margin: 0 1px;
  animation: boltFlash 2.8s ease-in-out infinite;
}
@keyframes boltFlash {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,215,0,0.5)); }
  50% { opacity: 0.85; filter: drop-shadow(0 0 14px rgba(255,215,0,0.95)); }
}

/* Background: kill text bleed from any video */
#live-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
#live-bg .live-bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(88, 40, 150, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(40, 20, 90, 0.3), transparent 50%),
    linear-gradient(180deg, #0a0812 0%, #06040c 50%, #080610 100%);
  z-index: 0;
}
#live-bg .live-bg-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: brightness(0.4) saturate(0.85);
  z-index: 1;
}
#live-bg .live-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18 !important;
  filter: brightness(0.35) contrast(1.05) saturate(0.8) !important;
  z-index: 1;
}
#live-bg .live-bg-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(6,4,12,0.65) 0%, rgba(8,6,16,0.78) 45%, rgba(6,4,12,0.88) 100%) !important;
  /* block any residual light text from video frames */
  backdrop-filter: blur(2px);
}
#live-bg .live-bg-lightning,
#live-bg .live-bg-particles {
  z-index: 3;
  pointer-events: none;
}
body.chop-wall > *:not(#live-bg):not(#site-intro) {
  position: relative;
  z-index: 1;
}
#main-nav, .nav {
  z-index: 9000 !important;
}
/* === 2026-08-23 layout lock === */
body.chop-wall > .hero-char {
  position: fixed !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
body.chop-wall > main,
body.chop-wall > .idx-section,
body.chop-wall > footer,
body.chop-wall > .hub-overview,
body.chop-wall > .container,
body.chop-wall > .dash-layout {
  position: relative;
  z-index: 3;
}
.nav, #main-nav {
  z-index: 9000 !important;
  position: relative;
}
.nav-logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 900;
  font-size: 1.38rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav-logo-chop, .nav-logo-city {
  color: #c084fc !important;
  text-shadow: 0 0 10px rgba(168,85,247,0.55);
}
.nav-logo-bolt {
  color: #ffd700 !important;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.75));
}
.btn-telegram, a.btn-telegram, .nav-tg, .nav-tg-blue, a.npm-tg {
  background: #229ed9 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-profile { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.nav-profile-menu.show { display: block; }
.nav-user-chip { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.nuc-name { font-weight: 700; font-size: 0.88rem; color: #f3e8ff; }
.nuc-role { font-size: 0.7rem; color: #c4b5fd; }
.hub-ov-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.hub-start-ws { min-width: 180px; }
.chat-fab, .dialer-fab {
  position: fixed !important;
  z-index: 8500 !important;
  bottom: 18px;
}
.chat-fab { left: 16px; }
.dialer-fab { right: 16px; }
#live-bg .live-bg-overlay {
  background: linear-gradient(180deg, rgba(6,4,12,0.72) 0%, rgba(8,6,16,0.82) 50%, rgba(6,4,12,0.9) 100%) !important;
}

/* === Logo: CHOP⚡CITY tight + 4D hover reel === */
.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 8px;
}
.nav-logo-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  min-width: 148px;
  overflow: hidden;
  perspective: 420px;
}
.nav-logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.06em;
  font-weight: 900;
  font-size: 1.42rem;
  line-height: 1;
  transform-style: preserve-3d;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.nav-logo-chop, .nav-logo-city {
  color: #c084fc !important;
  display: inline-block;
  text-shadow: 0 0 10px rgba(168,85,247,0.65), 0 2px 0 rgba(40,0,80,0.5);
  animation: logo4d 3.6s ease-in-out infinite;
}
.nav-logo-city { animation-delay: 0.18s; }
.nav-logo-bolt {
  color: #ffd700 !important;
  font-size: 1.05em;
  margin: 0 -1px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.85));
  animation: boltPulse 1.6s ease-in-out infinite;
}
@keyframes logo4d {
  0%, 100% { transform: rotateY(-12deg) rotateX(4deg) translateZ(0); }
  50% { transform: rotateY(12deg) rotateX(-4deg) translateZ(8px); }
}
@keyframes boltPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.12); }
}
.nav-logo-reel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.nav-logo-reel img {
  position: absolute;
  left: 0; top: 50%;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transform: translateY(-50%);
  animation: logoCross 2.2s ease-in-out infinite;
}
.nav-logo-reel img:nth-child(2) { animation-delay: 1.1s; }
@keyframes logoCross {
  0%, 45% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
.nav-brand:hover .nav-logo-wordmark,
.nav-brand:focus-visible .nav-logo-wordmark {
  opacity: 0;
  transform: rotateY(70deg) scale(0.85);
}
.nav-brand:hover .nav-logo-reel,
.nav-brand:focus-visible .nav-logo-reel { opacity: 1; }

/* First-session boot intro */
#boot-intro {
  position: fixed; inset: 0; z-index: 80000;
  overflow: hidden;
  background: #05040a;
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(.22,.8,.28,1);
}
#boot-intro.slide-up { transform: translateY(-110%); pointer-events: none; }
#boot-intro .boot-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(0.9);
}
#boot-intro .boot-veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  background: radial-gradient(ellipse at center, rgba(20,8,40,0.2), rgba(5,4,10,0.72));
}
.boot-mark {
  display: flex; align-items: baseline; gap: 0;
  font-weight: 900; font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: -0.06em; color: #c084fc;
  text-shadow: 0 0 24px rgba(168,85,247,0.7);
}
.boot-mark i { color: #ffd700; font-style: normal; filter: drop-shadow(0 0 12px #ffd700); }
.boot-ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.boot-ring-bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 5; }
.boot-ring-fg {
  fill: none; stroke: #ffd700; stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  animation: bootFill 2.4s linear forwards;
}
@keyframes bootFill { to { stroke-dashoffset: 0; } }
body.boot-locked { overflow: hidden; }

.page-wrap {
  position: relative; z-index: 3;
  padding: calc(var(--nav-h, 72px) + 28px) 20px 110px;
  max-width: 980px; margin: 0 auto;
}
#boot-intro { z-index: 80000 !important; position: fixed !important; }
body.chop-wall > #boot-intro { z-index: 80000 !important; }

/* Transparent 3D logo always visible (no hover-swap) */
.nav-logo-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  min-width: 132px;
  overflow: visible;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.35));
  animation: logoSpinY 4.5s ease-in-out infinite;
}
@keyframes logoSpinY {
  0%, 100% { transform: perspective(420px) rotateY(-16deg) scale(1); }
  50% { transform: perspective(420px) rotateY(16deg) scale(1.06); }
}
.nav-brand:hover .nav-logo-img {
  animation: logoSpinFast 0.55s ease-in-out;
  filter: drop-shadow(0 0 14px rgba(255,215,0,0.7));
}
@keyframes logoSpinFast {
  0% { transform: perspective(420px) rotateY(-20deg) scale(1); }
  50% { transform: perspective(420px) rotateY(28deg) scale(1.12); }
  100% { transform: perspective(420px) rotateY(0) scale(1.04); }
}
.nav-logo-wordmark, .nav-logo-reel { display: none !important; }
.nav-logo-sparks { position: absolute; inset: -8px; pointer-events: none; }
.logo-spark {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -3px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
  animation: sparkFly 0.65s ease-out forwards;
}
@keyframes sparkFly {
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

/* Character solo PNG + coins blasting right */
.hero-char { display: none !important; }
#char-blast {
  position: fixed;
  left: 0; bottom: 0;
  width: min(42vw, 460px);
  height: min(78vh, 720px);
  z-index: 2;
  pointer-events: none;
}
.char-blast-png {
  position: absolute; left: 0; bottom: 0;
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain;
  object-position: left bottom;
  background: transparent !important;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.5));
  animation: char4d 3.2s ease-in-out infinite;
}
@keyframes char4d {
  0%, 100% { transform: perspective(600px) rotateY(-8deg) translateY(0); }
  50% { transform: perspective(600px) rotateY(8deg) translateY(-8px); }
}
.char-blast-stream { position: absolute; inset: 0; overflow: visible; }
.blast-coin {
  position: absolute;
  left: 58%;
  width: 28px; height: 28px;
  object-fit: contain;
  animation: coinBlast 1.5s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.7));
}
@keyframes coinBlast {
  0% { transform: translateX(0) rotate(0) scale(0.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateX(var(--fly, 50vw)) rotate(var(--rot, 180deg)) scale(0.85); opacity: 0; }
}

/* Cursor call-coins (do not use .coin class — that is hidden) */
.cursor-coin {
  position: fixed;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  pointer-events: none;
  z-index: 12000;
  object-fit: contain;
  animation: cursorCoin 0.65s ease-out forwards;
  filter: drop-shadow(0 0 6px #ffd700);
}
@keyframes cursorCoin {
  0% { transform: translateY(0) scale(1); opacity: 0.95; }
  100% { transform: translateY(-28px) scale(0.4); opacity: 0; }
}

/* Even corner FABs */
.chat-fab, .dialer-fab {
  width: 64px !important;
  height: 64px !important;
}
.chat-fab img { width: 34px !important; height: 34px !important; }
.dialer-fab-bubble { width: 64px !important; height: 64px !important; font-size: 1.55rem !important; }
.hero-logo { background: transparent !important; mix-blend-mode: screen; }

/* Purple / black / gold theme overlay — full-site video, text readable on right */
#live-bg .live-bg-video {
  opacity: 0.55 !important;
  filter: brightness(0.55) saturate(1.05) hue-rotate(-8deg) !important;
}
#live-bg .live-bg-overlay {
  background:
    linear-gradient(90deg,
      rgba(8,4,16,0.92) 0%,
      rgba(10,5,20,0.88) 42%,
      rgba(12,6,24,0.45) 68%,
      rgba(12,6,24,0.22) 100%) !important;
  backdrop-filter: none !important;
}

/* Header: transparent CHOP ⚡ CITY, purple, wall slam on hover */
.nav-logo-img { display: none !important; }
.nav-logo-stage {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0;
  height: 44px;
  overflow: visible !important;
  background: transparent !important;
}
.nav-logo-chop, .nav-logo-city {
  display: inline-block;
  color: #c084fc !important;
  font-weight: 900;
  font-size: 1.42rem;
  letter-spacing: -0.07em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(168,85,247,0.75);
  animation: purplePulse 2.8s ease-in-out infinite;
}
.nav-logo-city { animation-delay: 0.15s; }
.nav-logo-bolt {
  display: inline-block;
  color: #ffd700 !important;
  font-size: 1.15em;
  margin: 0 -2px;
  filter: drop-shadow(0 0 8px #ffd700);
}
@keyframes purplePulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(168,85,247,0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(192,132,252,0.95)); }
}
.nav-logo-stage.playing .nav-logo-chop {
  animation: wallOpenL 1.22s cubic-bezier(.15,.8,.2,1) forwards;
}
.nav-logo-stage.playing .nav-logo-city {
  animation: wallOpenR 1.22s cubic-bezier(.15,.8,.2,1) forwards;
}
.nav-logo-stage.playing .nav-logo-bolt {
  animation: boltSlam 1.22s ease-in forwards;
}
@keyframes wallOpenL {
  0% { transform: translateX(0); }
  58% { transform: translateX(-26px); }
  72% { transform: translateX(-28px); }
  86% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
@keyframes wallOpenR {
  0% { transform: translateX(0); }
  58% { transform: translateX(26px); }
  72% { transform: translateX(28px); }
  86% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
@keyframes boltSlam {
  0%, 55% { transform: scale(1); filter: drop-shadow(0 0 8px #ffd700); }
  72% { transform: scale(0.85); }
  86% { transform: scale(1.35); filter: drop-shadow(0 0 18px #ffd700); }
  100% { transform: scale(1); }
}
#char-blast { display: none !important; }

/* 3D logo split-wall (left CHOP / right CITY) */
.nav-logo-stage {
  display: inline-flex !important;
  align-items: stretch;
  height: 46px;
  width: 168px;
  overflow: visible !important;
  background: transparent !important;
  position: relative;
}
.nav-logo-chop, .nav-logo-city, .nav-logo-bolt, .nav-logo-img { display: none !important; }
.logo-half {
  display: block;
  width: 50%;
  height: 46px;
  overflow: hidden;
  background: transparent;
}
.logo-half img {
  height: 46px;
  width: 168px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.45)) hue-rotate(-12deg) saturate(1.25);
}
.logo-half-r img {
  margin-left: -84px; /* show CITY half */
}
.nav-logo-stage.playing .logo-half-l {
  animation: wallOpenL 1.22s cubic-bezier(.15,.8,.2,1) forwards;
}
.nav-logo-stage.playing .logo-half-r {
  animation: wallOpenR 1.22s cubic-bezier(.15,.8,.2,1) forwards;
}

/* Character at TOP of index, feathered edges, 4/5D */
#char-blast {
  display: block !important;
  position: fixed !important;
  left: 0;
  top: calc(var(--nav-h, 72px) + 4px) !important;
  bottom: auto !important;
  width: min(38vw, 420px);
  height: min(52vh, 480px);
  z-index: 2;
  pointer-events: none;
}
.char-blast-png {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left top;
  background: transparent !important;
  mix-blend-mode: screen;
  /* feather hard edges */
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 35% 45%, #000 58%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 80% at 35% 45%, #000 58%, transparent 78%);
  filter: drop-shadow(0 10px 22px rgba(80,0,140,0.45));
  transform-origin: 40% 50%;
  animation: char5d 3.4s ease-in-out infinite;
}
@keyframes char5d {
  0%, 100% { transform: perspective(700px) rotateY(-14deg) rotateX(4deg) translateZ(0); }
  50% { transform: perspective(700px) rotateY(12deg) rotateX(-3deg) translateZ(18px) scale(1.04); }
}
.blast-iphone {
  position: absolute;
  left: 62%;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 8px #ffd700) sepia(1) saturate(4) hue-rotate(5deg);
  animation: coinBlast 1.55s ease-out forwards;
  pointer-events: none;
}
.blast-coin { display: none; }

/* Sticky header always on scroll (do not let wall rule make it relative) */
body.chop-wall > *:not(#live-bg):not(#site-intro):not(#main-nav):not(.nav):not(#char-blast):not(#ws-taskbar) {
  position: relative;
  z-index: 1;
}
.nav, #main-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 20000 !important;
}
.theme-toggle { display: none !important; }
html, body { color-scheme: dark; }

/* 3-piece 3D logo: CHOP | bolt | CITY separate from lightning then slam */
.nav-logo-stage {
  display: inline-flex !important;
  align-items: stretch;
  height: 46px;
  width: 170px;
  overflow: visible !important;
  background: transparent !important;
}
.logo-half { display: none !important; }
.logo-piece {
  display: block;
  height: 46px;
  overflow: hidden;
  background: transparent;
}
.logo-piece img {
  height: 46px;
  width: 170px;
  max-width: none;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(168,85,247,0.4));
}
.logo-chop { width: 40%; }
.logo-bolt { width: 20%; }
.logo-city { width: 40%; }
.logo-bolt img { margin-left: -68px; }
.logo-city img { margin-left: -102px; }
.nav-logo-stage.playing .logo-chop {
  animation: wallFromBoltL 1.25s cubic-bezier(.15,.85,.2,1) forwards;
}
.nav-logo-stage.playing .logo-city {
  animation: wallFromBoltR 1.25s cubic-bezier(.15,.85,.2,1) forwards;
}
.nav-logo-stage.playing .logo-bolt {
  animation: boltConnect 1.25s ease-in-out forwards;
}
@keyframes wallFromBoltL {
  0% { transform: translateX(0); }
  55% { transform: translateX(-30px); }
  70% { transform: translateX(-32px); }
  88% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}
@keyframes wallFromBoltR {
  0% { transform: translateX(0); }
  55% { transform: translateX(30px); }
  70% { transform: translateX(32px); }
  88% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}
@keyframes boltConnect {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-12deg) scale(1.05); }
  55% { transform: rotate(10deg) scale(0.92); }
  72% { transform: rotate(-6deg) scale(1.08); }
  88% { transform: rotate(0) scale(1.28); filter: drop-shadow(0 0 16px #ffd700); }
  100% { transform: rotate(0) scale(1); }
}

/* Character lower-left (2nd red zone), symmetric with Get started */
#char-blast {
  display: block !important;
  position: fixed !important;
  left: 1.5% !important;
  top: auto !important;
  bottom: 14% !important;
  width: min(26vw, 260px) !important;
  height: min(42vh, 360px) !important;
  z-index: 2;
  pointer-events: none;
}
.char-blast-png {
  mix-blend-mode: screen !important;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 40% 48%, #000 62%, transparent 82%) !important;
  mask-image: radial-gradient(ellipse 80% 85% at 40% 48%, #000 62%, transparent 82%) !important;
}
.blast-iphone {
  left: 58% !important;
  font-size: 20px;
  filter: drop-shadow(0 0 10px #ffd700) sepia(1) saturate(8) hue-rotate(2deg) brightness(1.25);
}

/* Dark purple city bg — no intro.mp4 text bleed */
#live-bg .live-bg-video {
  opacity: 0.42 !important;
  filter: brightness(0.42) saturate(0.85) hue-rotate(-18deg) !important;
}
#live-bg .live-bg-overlay {
  background:
    radial-gradient(ellipse at 70% 18%, rgba(88,28,135,0.18), transparent 42%),
    linear-gradient(180deg, rgba(6,3,12,0.72) 0%, rgba(8,4,16,0.82) 50%, rgba(6,3,12,0.9) 100%) !important;
}
#live-bg .live-bg-lightning {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,215,0,0.07) 50%, transparent 60%);
  animation: lightningFlash 7.5s ease-in-out infinite;
}
@keyframes lightningFlash {
  0%, 86%, 100% { opacity: 0; }
  88% { opacity: 1; }
  90% { opacity: 0.15; }
  92% { opacity: 0.85; }
  94% { opacity: 0; }
}

#char-blast { display: none !important; }

/* Marketing slideshow — fixed top-right, no box */
.mkt-slides {
  position: fixed !important;
  top: calc(var(--nav-h, 72px) + 36px);
  right: 3.5vw;
  width: min(30vw, 300px);
  z-index: 8;
  pointer-events: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  perspective: 800px;
}
.mkt-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: rotateY(18deg) translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.mkt-slide.on {
  position: relative;
  opacity: 1;
  transform: rotateY(-8deg) translateY(0);
}
.mkt-slide h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  color: #e9d5ff;
  text-shadow: 0 2px 16px #000, 0 0 18px rgba(168,85,247,0.55);
}
.mkt-slide ul {
  margin: 0; padding-left: 1.1rem;
  color: #ddd6fe;
  line-height: 1.7;
  font-size: 0.92rem;
  text-shadow: 0 2px 10px #000;
}
@media (max-width: 820px) {
  .mkt-slides { display: none; }
}

/* Brighter city + matrix; character is BACKGROUND not a box */
#live-bg { isolation: isolate; }
#live-bg .live-bg-video {
  opacity: 0.72 !important;
  filter: brightness(0.78) saturate(1.05) contrast(1.05) !important;
}
#live-bg .live-bg-overlay {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(88,28,135,0.12), transparent 55%),
    linear-gradient(180deg, rgba(8,4,16,0.38) 0%, rgba(8,4,16,0.5) 55%, rgba(6,3,12,0.72) 100%) !important;
}
.live-bg-char {
  position: absolute !important;
  left: -4%;
  top: 6%;
  width: 78vw;
  max-width: 1100px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  background: transparent !important;
  mix-blend-mode: lighten;
  opacity: 0.88;
  filter: contrast(1.12) brightness(1.05);
}
.live-bg-cables {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.live-bg-cables .cable {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.2;
  stroke: url(#none);
  stroke: #c084fc;
  filter: drop-shadow(0 0 6px #a855f7) drop-shadow(0 0 12px #ffd700);
  stroke-dasharray: 18 28;
  animation: cableFlow 4.5s linear infinite;
}
.live-bg-cables .c1 { stroke: #ffd700; stroke-width: 2.6; animation-duration: 3.6s; }
.live-bg-cables .c2 { stroke: #c084fc; animation-duration: 5.2s; animation-direction: reverse; }
.live-bg-cables .c3 { stroke: #e9d5ff; stroke-width: 1.6; animation-duration: 6s; }
.live-bg-cables .c4 { stroke: #facc15; stroke-width: 1.8; animation-duration: 4.1s; }
@keyframes cableFlow {
  to { stroke-dashoffset: -180; }
}

/* Marketing: bigger, vertically with logo + buttons */
.mkt-slides {
  top: 32vh !important;
  right: 3vw !important;
  width: min(38vw, 420px) !important;
  transform: none;
}
.mkt-slide h2 {
  font-size: 2.15rem !important;
  color: #f3e8ff !important;
}
.mkt-slide ul {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
}
.hero-live { display: none !important; }

/* ========== 2026-08-23 index polish: dialer / char / cursor / lightning ========== */

/* Unhide real video character in background — low opacity so front content stays clear */
.live-bg-logo { display: none !important; }
.live-bg-char,
#live-bg-char,
video.live-bg-char {
  display: block !important;
  position: absolute !important;
  left: -6% !important;
  top: 4% !important;
  width: min(70vw, 920px) !important;
  max-width: 920px !important;
  height: auto !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 0.38 !important;
  filter: contrast(1.08) brightness(1.02) !important;
}

/* Endless loop feel + slightly brighter city */
#live-bg .live-bg-video {
  opacity: 0.78 !important;
  filter: brightness(0.82) saturate(1.08) contrast(1.06) !important;
}

/* White lightning flashes for brightness bursts */
#live-bg .live-bg-lightning {
  background:
    linear-gradient(112deg, transparent 38%, rgba(255,255,255,0.14) 50%, transparent 62%),
    linear-gradient(70deg, transparent 55%, rgba(255,255,255,0.06) 62%, transparent 70%) !important;
  animation: lightningFlash 5.8s ease-in-out infinite !important;
}
@keyframes lightningFlash {
  0%, 82%, 100% { opacity: 0; }
  84% { opacity: 0.9; }
  86% { opacity: 0.15; }
  88% { opacity: 1; }
  91% { opacity: 0; }
}
.live-bg-bolt-flash {
  position: absolute;
  left: var(--bx, 40%);
  top: var(--by, 20%);
  width: 2px;
  height: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.15));
  box-shadow: 0 0 18px 4px rgba(255,255,255,0.85), 0 0 40px 8px rgba(200,220,255,0.35);
  transform: translate(-50%, 0) rotate(12deg);
}
.live-bg-bolt-flash.flash {
  animation: boltStrike 0.45s ease-out forwards;
}
@keyframes boltStrike {
  0% { opacity: 0; height: 0; }
  15% { opacity: 1; height: 28vh; }
  40% { opacity: 0.85; height: 42vh; }
  100% { opacity: 0; height: 48vh; }
}

/* Web dialer — theme purple/gold, only shown when logged in (JS also gates) */
.dialer-fab.dialer-fab-theme,
.dialer-fab {
  background: transparent !important;
}
.dialer-fab-theme .dialer-fab-bubble,
.dialer-fab .dialer-fab-bubble {
  background: radial-gradient(circle at 30% 28%, #e9d5ff, #7c3aed 52%, #4c1d95) !important;
  border: 2px solid rgba(255, 215, 0, 0.55) !important;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.55), 0 0 12px rgba(255, 215, 0, 0.25) !important;
  color: #ffd700 !important;
}
.dialer-fab-theme:hover .dialer-fab-bubble {
  filter: brightness(1.12);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.45), 0 0 18px rgba(124, 58, 237, 0.6) !important;
}

/* Cursor particles: golden call emoji, short life, stay near mouse */
.cursor-coin,
.cursor-call {
  position: fixed !important;
  width: auto !important;
  height: auto !important;
  margin: -10px 0 0 -10px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
  z-index: 12000 !important;
  filter: drop-shadow(0 0 5px #ffd700) sepia(1) saturate(6) hue-rotate(2deg) brightness(1.2) !important;
  animation: cursorCallShort 0.3s ease-out forwards !important;
}
@keyframes cursorCallShort {
  0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(0, -12px) scale(0.55); opacity: 0; }
}

/* Marketing slideshow — further right, lower opacity, smoother/fancier */
.mkt-slides,
.mkt-slides-fancy {
  top: 30vh !important;
  right: 1.2vw !important;
  width: min(34vw, 380px) !important;
  opacity: 0.72 !important;
  z-index: 6 !important;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}
.mkt-slides-fancy .mkt-slide {
  transition: opacity 0.9s cubic-bezier(.22,.7,.2,1), transform 0.9s cubic-bezier(.22,.7,.2,1) !important;
}
.mkt-slides-fancy .mkt-slide.on {
  opacity: 1 !important;
  transform: rotateY(-6deg) translateY(0) scale(1.02) !important;
}
.mkt-slides-fancy h2 {
  background: linear-gradient(90deg, #f3e8ff, #c084fc, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.65));
}

/* Scroll-walking character — low opacity, left side, blasts gold calls right */
#scroll-char,
.scroll-char {
  position: fixed !important;
  left: 0.5% !important;
  width: min(22vw, 220px) !important;
  height: 260px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  opacity: 0.42 !important;
  transition: top 0.18s ease-out, opacity 0.25s ease;
}
.scroll-char-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.scroll-char-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
  background: transparent !important;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 16px rgba(80,0,140,0.35));
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 40% 55%, #000 58%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 85% at 40% 55%, #000 58%, transparent 82%);
}
.scroll-char.walking .scroll-char-img {
  animation: charWalkBob 0.28s ease-in-out infinite;
}
@keyframes charWalkBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.scroll-char.standing.blasting .scroll-char-img {
  animation: charIdle 2.8s ease-in-out infinite;
}
@keyframes charIdle {
  0%, 100% { transform: translateY(0) rotateY(-6deg); }
  50% { transform: translateY(-4px) rotateY(6deg); }
}
.scroll-char-stream {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}
.scroll-blast-call {
  position: absolute;
  left: 62%;
  font-size: 16px;
  line-height: 1;
  opacity: 0.55;
  filter: drop-shadow(0 0 6px #ffd700) sepia(1) saturate(7) hue-rotate(2deg) brightness(1.25);
  animation: scrollCallFly 0.85s ease-out forwards;
  pointer-events: none;
}
@keyframes scrollCallFly {
  0% { transform: translateX(0) rotate(0) scale(0.5); opacity: 0; }
  15% { opacity: 0.65; }
  100% { transform: translateX(var(--fly, 30vw)) rotate(var(--rot, 120deg)) scale(0.85); opacity: 0; }
}

@media (max-width: 720px) {
  #scroll-char, .scroll-char { opacity: 0.28 !important; width: min(32vw, 140px) !important; height: 180px !important; }
  .live-bg-char, #live-bg-char { opacity: 0.22 !important; width: 90vw !important; }
  .mkt-slides, .mkt-slides-fancy { display: none !important; }
}

/* ========== Fixed platform character + section deck + perf ========== */

/* Character locked to bottom of browser — does NOT scroll away */
#scroll-char,
.scroll-char {
  position: fixed !important;
  left: 1% !important;
  right: auto !important;
  top: auto !important;
  bottom: 12px !important;
  width: min(24vw, 240px) !important;
  height: 280px !important;
  z-index: 4 !important;
  pointer-events: none !important;
  opacity: 0.58 !important;
  transform: none !important;
  transition: none !important;
}
.scroll-char .char-platform {
  position: absolute;
  left: 4%;
  right: 8%;
  bottom: 4px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255,215,0,0.35), rgba(124,58,237,0.2) 45%, transparent 72%);
  box-shadow:
    0 0 24px rgba(168,85,247,0.35),
    0 4px 18px rgba(0,0,0,0.45);
  filter: blur(0.5px);
}
.scroll-char-inner {
  position: absolute;
  left: 0; right: 0; bottom: 14px; top: 0;
}
.scroll-char-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 6px 14px rgba(80,0,140,0.4));
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 42% 58%, #000 62%, transparent 86%);
  mask-image: radial-gradient(ellipse 85% 90% at 42% 58%, #000 62%, transparent 86%);
}
.scroll-char.walking .scroll-char-img { animation: none !important; }
.scroll-char.standing.blasting .scroll-char-img {
  animation: charIdle 3.2s ease-in-out infinite;
}

/* Full-width platform deck under hero → sections feel integrated */
body.path-index .hero-row {
  padding-bottom: 28px !important;
  min-height: calc(100vh - var(--nav-h, 72px) - 48px) !important;
  box-sizing: border-box;
}
body.path-index .idx-section {
  position: relative;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(10,6,20,0.55) 0%, rgba(12,8,24,0.78) 40%, rgba(12,8,24,0.88) 100%);
  border-top: 1px solid rgba(255,215,0,0.12);
  border-radius: 22px 22px 0 0;
  margin-top: 8px;
  padding-top: 28px !important;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
body.path-index .idx-section:first-of-type {
  margin-top: -12px;
}
body.path-index .stat-pill,
body.path-index .hub-card,
body.path-index .feat-card,
body.path-index .how-card,
body.path-index .help-card {
  background: rgba(16,12,28,0.88) !important;
  border: 1px solid rgba(168,85,247,0.18) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

/* Marketing slides — refined, stay visible, less heavy */
.mkt-slides,
.mkt-slides-fancy {
  top: 28vh !important;
  right: 1.5vw !important;
  width: min(32vw, 360px) !important;
  opacity: 0.82 !important;
  z-index: 7 !important;
  pointer-events: none !important;
  will-change: auto;
}
.mkt-slides-fancy .mkt-ico {
  font-size: 1.6rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.35));
}
.mkt-slides-fancy .mkt-slide {
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: rgba(12,8,22,0.35);
  border: 1px solid rgba(192,132,252,0.18);
  backdrop-filter: blur(6px);
  transition: opacity 0.85s ease, transform 0.85s ease !important;
}
.mkt-slides-fancy .mkt-slide.on {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}
.mkt-slides-fancy h2 {
  font-size: 1.55rem !important;
  margin: 0 0 8px !important;
}
.mkt-slides-fancy ul {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: #e9d5ff !important;
}

/* Perf: lighter live-bg-char, contain paints */
#live-bg {
  contain: strict;
  transform: translateZ(0);
}
.live-bg-char,
#live-bg-char {
  opacity: 0.32 !important;
  will-change: auto !important;
}
.live-bg-cables { opacity: 0.55; }
.cursor-coin, .cursor-call {
  animation-duration: 0.26s !important;
}
.scroll-blast-call {
  opacity: 0.5 !important;
  animation-duration: 0.75s !important;
}

@media (max-width: 720px) {
  #scroll-char, .scroll-char {
    opacity: 0.4 !important;
    width: min(36vw, 150px) !important;
    height: 170px !important;
    bottom: 8px !important;
  }
  .mkt-slides, .mkt-slides-fancy { display: none !important; }
}

/* ========== Real video char on platform · calls only · marketing zone ========== */

/* REMOVE fake bottom PNG character completely */
#scroll-char,
.scroll-char {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Real-life char video → bottom-left, larger, standing on platform */
.live-bg-char,
#live-bg-char,
video.live-bg-char {
  display: block !important;
  position: fixed !important;
  left: -2% !important;
  top: auto !important;
  bottom: 28px !important;
  width: min(42vw, 480px) !important;
  max-width: 520px !important;
  height: auto !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 0.72 !important;
  filter: contrast(1.08) brightness(1.05) !important;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 78% 88% at 40% 55%, #000 60%, transparent 82%);
}

/* Purple / black mixed platform bar under the character */
#char-platform-bar {
  position: fixed !important;
  left: 0;
  bottom: 0;
  width: min(48vw, 560px);
  height: 52px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(40, 10, 70, 0.95) 0%,
      rgba(88, 28, 135, 0.75) 35%,
      rgba(12, 6, 22, 0.55) 70%,
      transparent 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow:
    0 -8px 28px rgba(88, 28, 135, 0.35),
    inset 0 1px 0 rgba(255, 215, 0, 0.12);
  border-radius: 0 18px 0 0;
}
#char-platform-bar::before {
  content: '';
  position: absolute;
  left: 6%;
  top: -10px;
  width: 42%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.55), rgba(0,0,0,0.2) 60%, transparent 75%);
  filter: blur(2px);
}

/* Call stream only in BACKGROUND — behind marketing + page content */
#bg-call-stream {
  position: fixed !important;
  inset: 0;
  z-index: 1 !important; /* under marketing (z 7) and UI */
  pointer-events: none !important;
  overflow: hidden;
}
.bg-blast-call {
  position: fixed;
  font-size: 18px;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 6px #ffd700) sepia(1) saturate(6) hue-rotate(2deg) brightness(1.2);
  animation: bgCallFly 0.9s ease-out forwards;
  opacity: 0.55;
}
@keyframes bgCallFly {
  0% { transform: translate(0, 0) rotate(0) scale(0.45); opacity: 0; }
  18% { opacity: 0.6; }
  100% {
    transform: translate(var(--fly, 36vw), var(--rise, -12vh)) rotate(var(--rot, 120deg)) scale(0.9);
    opacity: 0;
  }
}

/* Kill any leftover gold-coin blast particles from old runners */
.gun-coin,
.blast-coin,
.scroll-blast-call,
#coin-field,
.coin-planet {
  display: none !important;
}

/* Marketing — larger, upper-right zone only (green box area) */
.mkt-slides,
.mkt-slides-fancy,
.mkt-slides-hero {
  top: calc(var(--nav-h, 72px) + 28px) !important;
  right: 1.5vw !important;
  bottom: auto !important;
  width: min(28vw, 340px) !important;
  max-height: 42vh !important;
  opacity: 0.88 !important;
  z-index: 7 !important;
  pointer-events: none !important;
}
.mkt-slides-hero .mkt-slide {
  padding: 18px 18px 20px !important;
  border-radius: 18px !important;
  background: rgba(10, 6, 20, 0.42) !important;
  border: 1px solid rgba(192, 132, 252, 0.28) !important;
  backdrop-filter: blur(10px);
}
.mkt-slides-hero .mkt-ico {
  font-size: 1.85rem !important;
  margin-bottom: 8px;
}
.mkt-slides-hero h2 {
  font-size: 1.7rem !important;
  margin: 0 0 10px !important;
}
.mkt-slides-hero ul {
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
}

/* Keep city video looping smoothly */
#live-bg .live-bg-video {
  opacity: 0.75 !important;
  filter: brightness(0.8) saturate(1.05) contrast(1.05) !important;
}

@media (max-width: 820px) {
  .live-bg-char, #live-bg-char {
    width: min(55vw, 280px) !important;
    opacity: 0.55 !important;
    bottom: 20px !important;
  }
  #char-platform-bar { width: 60vw; height: 40px; }
  .mkt-slides-hero { width: min(42vw, 220px) !important; }
}
@media (max-width: 600px) {
  .mkt-slides, .mkt-slides-fancy, .mkt-slides-hero { display: none !important; }
}

/* ========== Full-width platform bar · char mid-left · big center logo · mkt green zone ========== */

/* Full-width purple/black bar (red line → right edge), height upward, fade down into index */
#char-platform-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 4 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(30, 8, 55, 0.35) 18%,
      rgba(48, 12, 78, 0.82) 48%,
      rgba(12, 4, 22, 0.95) 100%) !important;
  border-top: 1px solid rgba(168, 85, 247, 0.4) !important;
  border-radius: 0 !important;
  box-shadow:
    0 -20px 48px rgba(88, 28, 135, 0.28),
    inset 0 1px 0 rgba(255, 215, 0, 0.1) !important;
}
#char-platform-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -48px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(40, 10, 70, 0.45));
  pointer-events: none;
}
#char-platform-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -80px;
  height: 80px;
  background: linear-gradient(180deg, rgba(12, 4, 22, 0.9), transparent);
  pointer-events: none;
}

/* Soft deck fade so sections start cleanly below the bar */
body.path-index .idx-section {
  position: relative;
  z-index: 5;
  margin-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(10,6,20,0.72) 0%, rgba(12,8,24,0.9) 35%, rgba(12,8,24,0.95) 100%) !important;
  border-radius: 0 !important;
  border-top: none !important;
  box-shadow: none !important;
  padding-top: 36px !important;
}
body.path-index .hero-row {
  z-index: 5 !important;
  padding-bottom: 72px !important;
}

/* Real video character → orange zone (mid-left), BEHIND text + buttons */
.live-bg-char,
#live-bg-char,
video.live-bg-char {
  display: block !important;
  position: fixed !important;
  left: 6% !important;
  top: 18% !important;
  bottom: auto !important;
  width: min(48vw, 560px) !important;
  max-width: 600px !important;
  height: auto !important;
  z-index: 2 !important; /* behind hero content (z5+) and marketing (z7) */
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 0.62 !important;
  filter: contrast(1.1) brightness(1.06) !important;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 45% 50%, #000 55%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 80% at 45% 50%, #000 55%, transparent 78%);
}

/* Center CHOPCITY logo larger (pink zone) */
body.path-index .hero-logo {
  max-width: min(94vw, 720px) !important;
  width: 100% !important;
  position: relative;
  z-index: 6 !important;
  filter: drop-shadow(0 14px 40px rgba(255, 200, 0, 0.4)) !important;
}
body.path-index .hero-tagline,
body.path-index .cta-strip {
  position: relative;
  z-index: 6 !important;
}

/* Calls stay in background, fly toward CHOPCITY */
#bg-call-stream {
  z-index: 2 !important;
}
.bg-blast-call {
  font-size: 17px !important;
  opacity: 0.5 !important;
  filter: drop-shadow(0 0 7px #ffd700) sepia(1) saturate(7) hue-rotate(2deg) brightness(1.25) !important;
}

/* Marketing ≈ green zone size (upper-right) */
.mkt-slides,
.mkt-slides-fancy,
.mkt-slides-hero {
  top: calc(var(--nav-h, 72px) + 40px) !important;
  right: 2.5vw !important;
  width: min(26vw, 300px) !important;
  max-height: 38vh !important;
  opacity: 0.9 !important;
  z-index: 7 !important;
}
.mkt-slides-hero .mkt-slide {
  padding: 16px 16px 18px !important;
}
.mkt-slides-hero h2 {
  font-size: 1.45rem !important;
}
.mkt-slides-hero ul {
  font-size: 0.92rem !important;
}

/* Hide any leftover bottom fake character */
#scroll-char, .scroll-char { display: none !important; }

@media (max-width: 900px) {
  .live-bg-char, #live-bg-char {
    left: 0 !important;
    top: 22% !important;
    width: min(70vw, 380px) !important;
    opacity: 0.45 !important;
  }
  .mkt-slides-hero { width: min(40vw, 240px) !important; }
}

/* ========== Hero FIXED until purple bar · index STARTS below bar ========== */

/* Purple bar = END of hero (full width, more purple), not start of index */
#char-platform-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 56px !important;
  z-index: 6 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg,
      rgba(120, 40, 180, 0.15) 0%,
      rgba(90, 25, 140, 0.75) 35%,
      rgba(60, 12, 100, 0.95) 70%,
      rgba(28, 6, 48, 1) 100%) !important;
  border-top: 2px solid rgba(192, 132, 252, 0.55) !important;
  border-radius: 0 !important;
  box-shadow:
    0 -16px 40px rgba(120, 40, 180, 0.4),
    inset 0 1px 0 rgba(233, 213, 255, 0.2) !important;
}
#char-platform-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -36px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(100, 30, 160, 0.35));
}
#char-platform-bar::after {
  display: none !important;
}

/* Character LARGE on the purple bar (red-circle position, bottom-left) */
.live-bg-char,
#live-bg-char,
video.live-bg-char {
  display: block !important;
  position: fixed !important;
  left: -1% !important;
  top: auto !important;
  bottom: 40px !important; /* stands ON the bar */
  width: min(46vw, 520px) !important;
  max-width: 560px !important;
  height: auto !important;
  z-index: 5 !important;
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 0.78 !important;
  filter: contrast(1.1) brightness(1.08) !important;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 42% 55%, #000 58%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 85% at 42% 55%, #000 58%, transparent 80%);
}

/* Hero stage fixed — logo / text / buttons do NOT scroll with index */
body.path-index .hero-row,
#hero-stage {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--nav-h, 72px) !important;
  bottom: 56px !important;
  z-index: 5 !important;
  margin: 0 !important;
  max-width: none !important;
  pointer-events: none !important;
}
body.path-index .hero-mid {
  pointer-events: auto !important;
  z-index: 6 !important;
}
body.path-index .hero-logo {
  max-width: min(92vw, 700px) !important;
  z-index: 6 !important;
}

/* Marketing stays fixed in hero (upper-right), does not scroll away */
.mkt-slides,
.mkt-slides-fancy,
.mkt-slides-hero {
  position: fixed !important;
  top: calc(var(--nav-h, 72px) + 36px) !important;
  right: 2.5vw !important;
  bottom: auto !important;
  width: min(26vw, 300px) !important;
  z-index: 7 !important;
  pointer-events: none !important;
}

/* Spacer = one full screen so index content begins UNDER the bar */
.idx-spacer {
  height: 100vh !important;
  width: 100%;
  pointer-events: none;
}

/* Real index sections — only visible after scrolling past hero */
body.path-index .idx-section {
  position: relative !important;
  z-index: 8 !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: rgba(10, 6, 18, 0.94) !important;
  border-top: 1px solid rgba(168, 85, 247, 0.15) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding-top: 40px !important;
}

/* When user scrolls past hero, soft-dim fixed hero so index stays readable */
body.path-index.scrolled-past-hero .hero-row,
body.path-index.scrolled-past-hero .live-bg-char,
body.path-index.scrolled-past-hero .mkt-slides {
  opacity: 0.22 !important;
  transition: opacity 0.35s ease;
}
body.path-index .hero-row,
body.path-index .live-bg-char,
body.path-index .mkt-slides {
  transition: opacity 0.35s ease;
}

@media (max-width: 820px) {
  .live-bg-char, #live-bg-char {
    width: min(70vw, 340px) !important;
    bottom: 48px !important;
    opacity: 0.65 !important;
  }
}

/* ========== Index polish: solid platform · big char · golden calls · seamless bg ========== */

/* Kill fixed-hero overrides that caused Live network to interrupt the bar */
body.path-index .hero-row,
#hero-stage {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  pointer-events: auto !important;
  min-height: calc(100vh - 36px) !important;
  padding-bottom: 110px !important;
  z-index: 5 !important;
}
.idx-spacer { display: none !important; height: 0 !important; }
body.path-index.scrolled-past-hero .hero-row,
body.path-index.scrolled-past-hero .live-bg-char,
body.path-index.scrolled-past-hero .mkt-slides {
  opacity: 1 !important;
}

/* Platform: smaller height, 100% opacity, full width, pure purple */
#char-platform-bar {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 36px !important;
  z-index: 6 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg,
    #4c1d95 0%,
    #6b21a8 28%,
    #581c87 55%,
    #3b0764 100%) !important;
  border-top: 2px solid rgba(233, 213, 255, 0.55) !important;
  box-shadow: 0 -6px 20px rgba(88, 28, 135, 0.55) !important;
  border-radius: 0 !important;
}
#char-platform-bar::before,
#char-platform-bar::after { display: none !important; }

/* Real character: MUCH bigger, fully visible, feet on platform */
.live-bg-char,
#live-bg-char,
video.live-bg-char {
  display: block !important;
  position: absolute !important;
  left: -2% !important;
  top: auto !important;
  bottom: 28px !important;
  width: min(58vw, 680px) !important;
  max-width: 720px !important;
  height: auto !important;
  z-index: 5 !important;
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 1 !important; /* fully visible — only calls are soft */
  filter: contrast(1.12) brightness(1.1) !important;
  -webkit-mask-image: radial-gradient(ellipse 82% 88% at 40% 52%, #000 62%, transparent 84%);
  mask-image: radial-gradient(ellipse 82% 88% at 40% 52%, #000 62%, transparent 84%);
}

/* Platform bar must live inside hero so absolute bottom works */
body.path-index #hero-stage {
  position: relative !important;
}
body.path-index #char-platform-bar {
  position: absolute !important;
}

/* If bar was appended to body, pin it to hero bottom via fixed only when hero in view — use sticky hero bottom */
body > #char-platform-bar {
  position: absolute !important;
}

/* Golden CALLS only (no coin images) — lower opacity */
#bg-call-stream { z-index: 4 !important; pointer-events: none !important; }
.bg-blast-call,
.bg-blast-call.gold-call {
  font-size: 20px !important;
  opacity: 0.38 !important;
  color: #ffd700 !important;
  filter:
    drop-shadow(0 0 6px #ffd700)
    drop-shadow(0 0 12px rgba(255, 200, 0, 0.55))
    sepia(1) saturate(8) hue-rotate(2deg) brightness(1.35) !important;
  animation: bgCallFly 0.95s ease-out forwards !important;
}
.gun-coin, .blast-coin, .scroll-blast-call, img.cursor-coin {
  display: none !important;
}

/* Marketing: lower, mid height with character, right side */
.mkt-slides,
.mkt-slides-fancy,
.mkt-slides-hero {
  position: absolute !important;
  top: 42% !important;
  transform: translateY(-50%) !important;
  right: 2.5vw !important;
  bottom: auto !important;
  width: min(26vw, 300px) !important;
  z-index: 7 !important;
  opacity: 0.9 !important;
}
body.path-index #hero-stage { overflow: visible !important; }
/* marketing needs fixed-to-hero: put relative on hero */
#hero-stage .mkt-slides { position: absolute !important; }

/* Seamless dual bg videos */
#live-bg .live-bg-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 1.4s ease !important;
  opacity: 0.78 !important;
  filter: brightness(0.82) saturate(1.06) contrast(1.05) !important;
}
#live-bg .live-bg-video.bg-dim {
  opacity: 0 !important;
}
#live-bg .live-bg-v2 {
  z-index: 0;
}
#live-bg .live-bg-v1 {
  z-index: 1;
}

/* Index sections clean under hero — no interrupt */
body.path-index .idx-section {
  position: relative !important;
  z-index: 8 !important;
  margin-top: 24px !important;
  background: linear-gradient(180deg, rgba(12,8,24,0.9), rgba(10,6,18,0.97)) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(168,85,247,0.16) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35) !important;
  opacity: 1 !important;
}

/* Move platform + character into hero via JS-friendly fixed fallback when bar is on body */
body.path-index > #char-platform-bar {
  position: fixed !important;
  bottom: 0 !important;
  height: 36px !important;
  opacity: 1 !important;
  z-index: 6 !important;
}
body.path-index .live-bg-char,
body.path-index #live-bg-char {
  position: fixed !important;
  bottom: 30px !important;
  left: -2% !important;
  width: min(58vw, 680px) !important;
  opacity: 1 !important;
  z-index: 5 !important;
}

@media (max-width: 820px) {
  body.path-index #live-bg-char {
    width: min(78vw, 400px) !important;
    bottom: 28px !important;
  }
  .mkt-slides-hero { top: 38% !important; width: min(40vw, 240px) !important; }
}

/* ========== Bar bottom · bigger char · mkt mid · clean header/buttons ========== */

/* Purple bar ALWAYS at the physical bottom of the browser */
body.path-index > #char-platform-bar,
#hero-stage > #char-platform-bar,
#char-platform-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: 32px !important;
  z-index: 40 !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 40%, #6d28d9 70%, #4c1d95 100%) !important;
  border-top: 2px solid rgba(233, 213, 255, 0.65) !important;
  box-shadow: 0 -8px 24px rgba(91, 33, 182, 0.55) !important;
}

/* Character: much larger, feet on the bottom bar */
body.path-index .live-bg-char,
body.path-index #live-bg-char,
.live-bg-char,
#live-bg-char,
video.live-bg-char {
  position: fixed !important;
  left: -4% !important;
  bottom: 26px !important;
  top: auto !important;
  width: min(72vw, 860px) !important;
  max-width: 900px !important;
  opacity: 1 !important;
  z-index: 5 !important;
  filter: contrast(1.14) brightness(1.12) !important;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 40% 50%, #000 65%, transparent 88%) !important;
  mask-image: radial-gradient(ellipse 85% 90% at 40% 50%, #000 65%, transparent 88%) !important;
}

/* Marketing: lower, toward middle of the upper index area, right side */
.mkt-slides,
.mkt-slides-fancy,
.mkt-slides-hero,
#hero-stage .mkt-slides {
  position: fixed !important;
  top: 48% !important;
  transform: translateY(-40%) !important;
  right: 2vw !important;
  width: min(24vw, 280px) !important;
  z-index: 8 !important;
}

/* Hero padding so content clears the huge character + bar */
body.path-index .hero-row,
#hero-stage {
  padding-bottom: 48px !important;
  min-height: calc(100vh - 32px) !important;
}

/* —— Cleaner theme-based CTAs —— */
body.path-index .cta-strip .btn,
body.path-index .cta-strip a.btn {
  background: linear-gradient(180deg, #f5d76e 0%, #e6b800 45%, #c9a227 100%) !important;
  color: #1a0a2e !important;
  border: 1px solid rgba(255, 236, 160, 0.55) !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 6px 20px rgba(255, 200, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.35) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
body.path-index .cta-strip .btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 10px 28px rgba(255, 200, 0, 0.4) !important;
}
body.path-index .cta-strip .btn-telegram,
body.path-index .cta-strip a.btn-telegram {
  background: linear-gradient(180deg, #4fc3f7 0%, #2AABEE 50%, #1e96d1 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(180, 230, 255, 0.4) !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.35) !important;
}
body.path-index .cta-strip .btn-ghost,
body.path-index .cta-strip a.btn-ghost {
  background: rgba(20, 12, 36, 0.65) !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  backdrop-filter: blur(8px);
}
body.path-index .cta-strip .btn-ghost:hover {
  border-color: rgba(255, 215, 0, 0.45) !important;
  color: #ffd700 !important;
}

/* —— Header navigator polish —— */
#main-nav,
nav.main-nav,
.main-nav {
  background: rgba(8, 4, 16, 0.92) !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
  min-height: 64px !important;
}
.nav-links a {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #c4b5fd !important;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease !important;
}
.nav-links a:hover {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #fff !important;
}
.nav-links a.active,
.nav-links a[href="/"].active,
.nav-links a.nav-home.active {
  background: linear-gradient(180deg, #f5d76e, #e6b800) !important;
  color: #1a0a2e !important;
  box-shadow: 0 4px 14px rgba(255, 200, 0, 0.3) !important;
}
.nav-links a.btn-telegram,
.nav-links a[href*="t.me"] {
  background: linear-gradient(180deg, #4fc3f7, #2AABEE) !important;
  color: #fff !important;
  border: none !important;
  padding: 7px 14px !important;
  font-size: 0.82rem !important;
}

/* —— User profile section (right) —— */
.nav-right {
  gap: 10px !important;
  align-items: center !important;
}
.nav-dash-gold {
  background: linear-gradient(180deg, #f5d76e, #c9a227) !important;
  color: #1a0a2e !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.25) !important;
  border: 1px solid rgba(255, 236, 160, 0.4) !important;
}
.nav-bal {
  background: rgba(20, 12, 36, 0.75) !important;
  border: 1px solid rgba(255, 215, 0, 0.28) !important;
  border-radius: 999px !important;
  padding: 5px 8px 5px 10px !important;
  gap: 6px !important;
}
.nav-bal-amt {
  color: #ffd700 !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
}
.nav-bal-plus {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #f5d76e, #e6b800) !important;
  color: #1a0a2e !important;
  border: none !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(255, 200, 0, 0.35) !important;
}
.nav-profile {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.nav-user-chip {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  line-height: 1.15 !important;
}
.nav-user-chip .nuc-name {
  color: #f3e8ff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
}
.nav-user-chip .nuc-role {
  color: #a78bfa !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
}
.nav-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 215, 0, 0.55) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35) !important;
  overflow: hidden !important;
  background: rgba(30, 15, 50, 0.9) !important;
}
.nav-avatar:hover {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4) !important;
}
.nav-profile-menu {
  border-radius: 16px !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  background: rgba(12, 8, 24, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  min-width: 220px !important;
}
.nav-brand img,
.nav-brand-banner {
  max-height: 40px !important;
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.3)) !important;
}

@media (max-width: 900px) {
  body.path-index #live-bg-char {
    width: min(85vw, 480px) !important;
  }
  .mkt-slides-hero { width: min(38vw, 220px) !important; top: 50% !important; }
}

/* ========== Platform at true screen bottom · logo-style char · wordmark · nav polish ========== */

/* Platform bar — true bottom of the browser viewport */
body.path-index > #char-platform-bar,
#char-platform-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: 34px !important;
  z-index: 9 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 40%, #6d28d9 70%, #4c1d95 100%) !important;
  border-top: 2px solid rgba(233, 213, 255, 0.6) !important;
  box-shadow: 0 -8px 24px rgba(91, 33, 182, 0.55) !important;
}
#char-platform-bar::before,
#char-platform-bar::after { display: none !important; }

/* Real platform character — same style as former center logo, much bigger */
.live-bg-char,
#live-bg-char,
img.live-bg-char,
img.platform-char {
  display: block !important;
  position: fixed !important;
  left: -1% !important;
  top: auto !important;
  bottom: 26px !important; /* stands on the bar */
  width: min(62vw, 720px) !important;
  max-width: 760px !important;
  height: auto !important;
  z-index: 8 !important;
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 1 !important;
  object-fit: contain !important;
  object-position: left bottom !important;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45)) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Hide any leftover video char */
video.live-bg-char { display: none !important; }

/* Golden phone-call stream (matches logo energy) */
.bg-blast-call.gold-call,
.bg-blast-call {
  font-size: 18px !important;
  opacity: 0.42 !important;
  color: #ffd700 !important;
  filter:
    drop-shadow(0 0 5px #ffd700)
    drop-shadow(0 0 10px rgba(255,200,0,0.5))
    sepia(1) saturate(8) hue-rotate(2deg) brightness(1.3) !important;
}

/* Marketing mid of top hero — lower than before, right side */
.mkt-slides,
.mkt-slides-fancy,
.mkt-slides-hero {
  position: absolute !important;
  top: 48% !important;
  transform: translateY(-40%) !important;
  right: 2vw !important;
  width: min(25vw, 290px) !important;
  z-index: 7 !important;
}

/* Center wordmark big */
body.path-index .hero-wordmark {
  font-size: clamp(3.6rem, 11.5vw, 6.8rem) !important;
  z-index: 6 !important;
  position: relative;
}

/* Cleaner theme buttons */
body.path-index .cta-strip .btn {
  background: linear-gradient(180deg, #ffe566, #ffd700 55%, #d4af37) !important;
  color: #1a1028 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.35) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
body.path-index .cta-strip .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5) !important;
}
body.path-index .cta-strip .btn-telegram {
  background: linear-gradient(180deg, #3d9eff, #229ed9) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4) !important;
}
body.path-index .cta-strip .btn-ghost {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(192,132,252,0.35) !important;
  color: #e9d5ff !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
}

/* Header navigator + profile polish */
.nav, header.nav, .site-nav {
  backdrop-filter: blur(14px) saturate(1.2) !important;
  background: rgba(8, 4, 16, 0.88) !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
}
.nav-links a {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease !important;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 215, 0, 0.12) !important;
  color: #ffd700 !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15) !important;
}
.nav-links a.btn-telegram,
.nav .btn-telegram {
  background: linear-gradient(180deg, #3d9eff, #229ed9) !important;
  color: #fff !important;
  border: none !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-size: 0.85rem !important;
}
.nav-user-chip,
.nav-profile,
.user-chip {
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  border-radius: 999px !important;
  background: rgba(20, 12, 36, 0.85) !important;
  padding: 4px 10px 4px 6px !important;
  gap: 8px !important;
}
.nav-bal,
.nav-balance {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 215, 0, 0.25) !important;
  background: rgba(255, 215, 0, 0.08) !important;
}

/* Hero padding so content clears the bottom bar + big char */
body.path-index .hero-row,
#hero-stage {
  padding-bottom: 120px !important;
  min-height: calc(100vh - 34px) !important;
}

@media (max-width: 820px) {
  #live-bg-char, img.platform-char {
    width: min(80vw, 420px) !important;
    bottom: 28px !important;
  }
  .hero-wordmark { font-size: clamp(2.6rem, 12vw, 4rem) !important; }
}

/* ========== Old logo character brought to life · integrated in bg ========== */

/* Platform = part of scene, fixed true bottom, 100% visible */
#char-platform-bar {
  position: fixed !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  height: 32px !important;
  z-index: 7 !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, #4c1d95, #7c3aed 45%, #5b21b6) !important;
  border-top: 2px solid rgba(233,213,255,0.55) !important;
  box-shadow: 0 -10px 28px rgba(91,33,182,0.5) !important;
  pointer-events: none !important;
}

/* Character from original middle logo — live video, integrated into bg layer */
.live-bg-char,
#live-bg-char,
video.live-bg-char,
img.live-bg-char-fallback {
  display: block !important;
  position: fixed !important;
  left: -3% !important;
  bottom: 24px !important;
  top: auto !important;
  width: min(68vw, 780px) !important;
  max-width: 820px !important;
  height: auto !important;
  z-index: 3 !important; /* inside bg stack, under UI */
  pointer-events: none !important;
  background: transparent !important;
  mix-blend-mode: screen !important;
  opacity: 0.95 !important;
  object-fit: contain !important;
  object-position: left bottom !important;
  filter: contrast(1.06) brightness(1.05) drop-shadow(0 8px 18px rgba(0,0,0,0.4)) !important;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent 100%) !important;
  mask-image: linear-gradient(90deg, #000 78%, transparent 100%) !important;
}

/* Center logo text only (right half of old banner) */
body.path-index .hero-logo {
  display: block !important;
  max-width: min(70vw, 580px) !important;
  mix-blend-mode: screen !important;
  filter: drop-shadow(0 12px 36px rgba(255,200,0,0.55)) !important;
  z-index: 6 !important;
  position: relative;
}

/* Call particles origin near gun of logo-style character */
#bg-call-stream { z-index: 4 !important; }
.bg-blast-call.gold-call {
  font-size: 20px !important;
  opacity: 0.45 !important;
  color: #ffd700 !important;
  filter: drop-shadow(0 0 8px #ffd700) sepia(1) saturate(9) hue-rotate(2deg) brightness(1.35) !important;
}

/* Keep city bg looping under everything */
#live-bg .live-bg-video {
  z-index: 0 !important;
  opacity: 0.8 !important;
}
#live-bg .live-bg-overlay { z-index: 2 !important; }
#live-bg .live-bg-cables { z-index: 2 !important; opacity: 0.5; }

body.path-index .hero-row {
  padding-bottom: 100px !important;
  min-height: calc(100vh - 32px) !important;
}

/* Marketing mid-right of hero */
.mkt-slides-hero {
  top: 46% !important;
  transform: translateY(-45%) !important;
  right: 2vw !important;
}

/* ========== Logo-split character live · platform in bg · dialer theme ========== */

/* Character wrap integrated in live background layer */
#live-char-wrap,
.live-char-wrap {
  position: fixed !important;
  left: -2% !important;
  bottom: 28px !important;
  width: min(64vw, 740px) !important;
  height: auto !important;
  z-index: 5 !important;
  pointer-events: none !important;
}
#live-char-wrap .live-bg-char,
#live-bg-char.platform-char,
img.platform-char {
  position: relative !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  background: transparent !important;
  mix-blend-mode: lighten !important;
  opacity: 1 !important;
  transform-origin: 35% 55%;
  transition: transform 0.45s ease;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.4)) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: charIdleSway 3.6s ease-in-out infinite;
}
@keyframes charIdleSway {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}
/* Click: look at camera then back right */
#live-bg-char.look-cam {
  animation: charLookCam 1.1s ease-in-out forwards !important;
}
@keyframes charLookCam {
  0% { transform: rotateY(0deg) scale(1); }
  35% { transform: rotateY(-28deg) scale(1.04); }
  70% { transform: rotateY(-28deg) scale(1.04); }
  100% { transform: rotateY(0deg) scale(1); }
}

/* Continuous golden call sparks from the gun */
.live-char-blast {
  position: absolute;
  left: 52%;
  top: 38%;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 2;
}
.logo-call-spark {
  position: absolute;
  left: 0; top: 0;
  font-size: 16px;
  color: #ffd700;
  filter: drop-shadow(0 0 6px #ffd700) sepia(1) saturate(8) hue-rotate(2deg) brightness(1.35);
  animation: logoCallFly 0.8s ease-out forwards;
  opacity: 0.45;
  pointer-events: none;
}
@keyframes logoCallFly {
  0% { transform: translate(0,0) rotate(0) scale(0.4); opacity: 0; }
  15% { opacity: 0.5; }
  100% {
    transform: translate(var(--fx, 100px), var(--fy, 20px)) rotate(var(--rot, 90deg)) scale(0.95);
    opacity: 0;
  }
}

/* Platform bar integrated into background layer, 100% visible, true bottom */
#char-platform-bar,
.live-bg-platform,
#live-bg-platform {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 34px !important;
  z-index: 4 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 45%, #6d28d9 100%) !important;
  border-top: 2px solid rgba(233,213,255,0.55) !important;
  box-shadow: 0 -8px 22px rgba(91,33,182,0.5) !important;
}
#live-bg-platform {
  /* subtle platform ledge drawn inside bg layer */
  background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 45%, #6d28d9 100%) !important;
}

/* Center CHOPCITY text logo (split from original) */
body.path-index .hero-logo {
  display: block !important;
  max-width: min(72vw, 620px) !important;
  mix-blend-mode: screen !important;
  filter: drop-shadow(0 12px 40px rgba(255,200,0,0.55)) !important;
}

/* Dialer window — theme purple/gold, fixed right while scrolling */
.dialer-window {
  position: fixed !important;
  right: 18px !important;
  bottom: 90px !important;
  width: min(420px, 92vw) !important;
  height: min(520px, 70vh) !important;
  z-index: 12050 !important;
  background: linear-gradient(180deg, #1a0f2e, #0c0818) !important;
  border: 1px solid rgba(168,85,247,0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 28px rgba(124,58,237,0.25) !important;
  overflow: hidden;
  display: none;
}
.dialer-window.open { display: flex !important; flex-direction: column; }
.dialer-window.minimized {
  height: 44px !important;
  width: 260px !important;
}
.dialer-window.maximized {
  right: 12px !important;
  left: 12px !important;
  top: calc(var(--nav-h, 72px) + 12px) !important;
  bottom: 12px !important;
  width: auto !important;
  height: auto !important;
}
.dialer-win-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #4c1d95, #6b21a8) !important;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  flex-shrink: 0;
}
.dialer-win-chrome .ws-frame-title {
  margin-left: 8px;
  color: #ffd700 !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.dialer-win-chrome .ws-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  color: #e9d5ff;
  cursor: pointer;
}
.dialer-win-chrome .ws-btn-close {
  background: rgba(220, 40, 40, 0.35) !important;
  color: #fff !important;
}
.dialer-fab-theme .dialer-fab-bubble {
  background: radial-gradient(circle at 30% 25%, #e9d5ff, #7c3aed 55%, #4c1d95) !important;
  border: 2px solid rgba(255,215,0,0.5) !important;
}

/* Hide marketing on non-index (JS also removes) */
body:not(.path-index) .mkt-slides { display: none !important; }

/* Endless feel: softer dual video transitions */
#live-bg .live-bg-video {
  transition: opacity 2.2s ease-in-out !important;
}

@media (max-width: 820px) {
  #live-char-wrap { width: min(85vw, 420px) !important; bottom: 30px !important; }
}

/* ========== GTA-style NPC character + full-right call stream + top refine ========== */

#live-char-wrap,
.live-char-wrap {
  position: fixed !important;
  left: -3% !important;
  bottom: 26px !important;
  width: min(66vw, 760px) !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

#live-bg-char.char-live,
#live-bg-char.npc-gta,
img.npc-gta {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transform-origin: 40% 70%;
  transform:
    translate(var(--npc-x, 0px), var(--npc-y, 0px))
    rotate(var(--npc-r, 0deg));
  transition: filter 0.2s ease;
  will-change: transform;
  mix-blend-mode: lighten !important;
  opacity: 1 !important;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45)) !important;
  animation: none !important; /* driven by JS micro-moves */
}

/* Idle breathing / weight shift */
#live-bg-char.npc-idle {
  animation: npcBreath 2.8s ease-in-out infinite !important;
}
@keyframes npcBreath {
  0%, 100% { filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45)) brightness(1); }
  50% { filter: drop-shadow(0 14px 28px rgba(0,0,0,0.5)) brightness(1.04); }
}

/* Aim / fire posture */
#live-bg-char.npc-aim {
  transform:
    translate(var(--npc-x, 0px), var(--npc-y, 0px))
    rotate(calc(var(--npc-r, 0deg) - 2deg))
    scale(1.02) !important;
}

/* Look at camera 2s */
#live-bg-char.npc-look,
#live-bg-char.look-cam {
  animation: npcLookAtYou 2s ease-in-out forwards !important;
}
@keyframes npcLookAtYou {
  0%   { transform: translate(var(--npc-x,0), var(--npc-y,0)) rotateY(0deg) scale(1); }
  20%  { transform: translate(calc(var(--npc-x,0) + 8px), var(--npc-y,0)) rotateY(-32deg) scale(1.05); }
  75%  { transform: translate(calc(var(--npc-x,0) + 8px), var(--npc-y,0)) rotateY(-32deg) scale(1.05); }
  100% { transform: translate(var(--npc-x,0), var(--npc-y,0)) rotateY(0deg) scale(1); }
}

/* Gun recoil kick */
#live-bg-char.recoil {
  transform:
    translate(calc(var(--npc-x, 0px) - 6px), var(--npc-y, 0px))
    rotate(calc(var(--npc-r, 0deg) - 4deg)) !important;
  transition: transform 0.08s ease-out !important;
}

/* Full-screen call emoji stream — low opacity, right side of index bg */
#index-call-stream {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.index-call-emoji {
  position: fixed !important;
  font-size: clamp(14px, 1.6vw, 22px) !important;
  line-height: 1 !important;
  color: #ffd700 !important;
  opacity: 0.32 !important;
  z-index: 3 !important;
  pointer-events: none !important;
  filter:
    drop-shadow(0 0 5px #ffd700)
    drop-shadow(0 0 10px rgba(255,180,0,0.35))
    sepia(1) saturate(7) hue-rotate(2deg) brightness(1.3) !important;
  animation: indexCallFly var(--dur, 2s) ease-out forwards !important;
}
@keyframes indexCallFly {
  0% {
    transform: translate(0, 0) rotate(0) scale(0.35);
    opacity: 0;
  }
  12% { opacity: 0.34; }
  100% {
    transform: translate(var(--fx, 40vw), var(--fy, 0)) rotate(var(--rot, 120deg)) scale(var(--scale, 1));
    opacity: 0;
  }
}

/* Top of page refine — nav + hero */
body.path-index .nav,
body.path-index header.nav {
  backdrop-filter: blur(16px) saturate(1.25) !important;
  background: rgba(6, 3, 14, 0.9) !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
}
body.path-index .hero-row,
#hero-stage {
  padding-top: calc(var(--nav-h, 72px) + 18px) !important;
  padding-bottom: 110px !important;
  min-height: calc(100vh - 34px) !important;
  justify-content: center !important;
}
body.path-index .hero-logo {
  max-width: min(68vw, 600px) !important;
  margin-bottom: 6px !important;
}
body.path-index .hero-tagline {
  max-width: 480px !important;
  font-size: 1rem !important;
  opacity: 0.92;
}
body.path-index .cta-strip {
  gap: 12px !important;
  margin-top: 6px;
}

/* Marketing sits mid-right, clear of character blasts */
body.path-index .mkt-slides-hero {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 2vw !important;
  z-index: 7 !important;
}

@media (max-width: 820px) {
  #live-char-wrap { width: min(90vw, 440px) !important; }
  .index-call-emoji { opacity: 0.28 !important; }
}

/* Real sprite NPC — frame-based motion (not fake 3D) */
#live-bg-char.npc-sprite {
  transform:
    translate(var(--npc-x, 0px), var(--npc-y, 0px))
    rotate(var(--npc-r, 0deg)) !important;
  transition: transform 0.08s linear !important;
  image-rendering: auto;
  object-fit: contain !important;
  object-position: left bottom !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) !important;
  animation: none !important;
}
#live-bg-char.npc-sprite.recoil {
  transform:
    translate(calc(var(--npc-x, 0px) - 10px), var(--npc-y, 0px))
    rotate(calc(var(--npc-r, 0deg) - 5deg)) !important;
}
#live-char-wrap {
  width: min(58vw, 640px) !important;
  bottom: 30px !important;
  left: -1% !important;
  z-index: 5 !important;
}

/* Smaller character — max height under middle CHOPCITY logo top */
#live-char-wrap,
.live-char-wrap {
  width: min(28vw, 280px) !important;
  max-width: 280px !important;
  max-height: 42vh !important;
  bottom: 32px !important;
  left: 1% !important;
  z-index: 5 !important;
}
#live-char-wrap .live-bg-char,
#live-bg-char.npc-sprite,
#live-bg-char.char-live {
  width: 100% !important;
  max-height: 40vh !important;
  object-fit: contain !important;
  object-position: left bottom !important;
}

/* Bigger golden call emojis */
.index-call-emoji {
  font-size: clamp(22px, 2.4vw, 34px) !important;
  opacity: 0.38 !important;
}

/* Fancy speech cloud */
.npc-speech {
  position: absolute;
  left: 70%;
  bottom: 78%;
  min-width: 140px;
  max-width: 200px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #2a1548, #1a0c2e);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 18px rgba(168,85,247,0.3);
  color: #ffd700;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,1.2,.3,1);
  pointer-events: none;
  z-index: 8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.npc-speech::after {
  content: '';
  position: absolute;
  left: 12px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #1a0c2e;
  border-right: 1.5px solid rgba(255, 215, 0, 0.55);
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.55);
  transform: rotate(45deg);
}
.npc-speech.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.npc-speech span {
  display: block;
  line-height: 1.35;
}

/* Smoother endless bg crossfade */
#live-bg .live-bg-video {
  transition: opacity 2.8s ease-in-out !important;
}

@media (max-width: 820px) {
  #live-char-wrap {
    width: min(42vw, 200px) !important;
    max-height: 32vh !important;
  }
  .npc-speech { font-size: 0.8rem; min-width: 110px; }
}

/* Walking character — moves across full screen, loops forever */
#live-char-wrap,
.live-char-wrap {
  position: fixed !important;
  left: 0 !important;
  bottom: 32px !important;
  width: min(26vw, 260px) !important;
  max-width: 260px !important;
  z-index: 5 !important;
  pointer-events: none !important;
  will-change: transform;
  transition: none !important;
}
#live-char-wrap .live-bg-char,
#live-bg-char.npc-sprite {
  pointer-events: auto !important;
  cursor: pointer !important;
  width: 100% !important;
  max-height: 38vh !important;
  object-fit: contain !important;
  object-position: left bottom !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.45)) !important;
}
/* speech bubble stays above character while walking */
#live-char-wrap .npc-speech {
  position: absolute !important;
  left: 55% !important;
  bottom: 85% !important;
  pointer-events: none !important;
}

/* Hide platform bar conflict with walking path — keep thin ledge */
#char-platform-bar {
  height: 28px !important;
  z-index: 4 !important;
}

/* Smooth endless walk — GPU accelerated */
#live-char-wrap {
  will-change: transform !important;
  transform: translate3d(-20vw, 0, 0);
  transition: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#live-bg-char.npc-sprite {
  transition: opacity 0.15s ease !important;
  image-rendering: -webkit-optimize-contrast;
}

/* ===== Index hero PART 1 — fixed zone under nav ===== */
body.path-index #live-char-wrap,
body.path-index #char-platform-bar,
body.path-index #index-call-stream,
body.path-index .mkt-slides-hero,
body.path-index #mkt-slides {
  position: fixed !important;
}

/* Character smooth walk — no trip */
body.path-index #live-char-wrap {
  left: 0 !important;
  bottom: 30px !important;
  width: min(24vw, 240px) !important;
  max-width: 240px !important;
  z-index: 6 !important;
  pointer-events: none !important;
  will-change: transform;
  backface-visibility: hidden;
}
body.path-index #live-bg-char.npc-sprite {
  pointer-events: auto !important;
  width: 100% !important;
  max-height: 36vh !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: rotate(var(--npc-r, 0deg));
  transition: transform 0.12s linear !important;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)) !important;
  /* soft edges — no hard box */
  -webkit-mask-image: radial-gradient(ellipse 90% 95% at 50% 55%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 95% at 50% 55%, #000 70%, transparent 100%);
}

#char-platform-bar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 30px !important;
  z-index: 5 !important;
  background: linear-gradient(90deg, #5b21b6, #7c3aed 50%, #6d28d9) !important;
  border-top: 2px solid rgba(233,213,255,0.5) !important;
  box-shadow: 0 -6px 20px rgba(91,33,182,0.45) !important;
  pointer-events: none !important;
}

/* Marketing fixed mid-right on index only */
body.path-index #mkt-slides,
body.path-index .mkt-slides-hero {
  top: 50% !important;
  right: 2vw !important;
  transform: translateY(-50%) !important;
  z-index: 7 !important;
  bottom: auto !important;
}
body:not(.path-index) #mkt-slides,
body:not(.path-index) .mkt-slides,
body:not(.path-index) #live-char-wrap,
body:not(.path-index) #char-platform-bar,
body:not(.path-index) #index-call-stream {
  display: none !important;
}

/* CHOPCITY logo — soft fade-in scale intro, no hard edges */
body.path-index .hero-logo,
body.path-index .hero-logo-center {
  display: block !important;
  max-width: min(64vw, 560px) !important;
  margin: 0 auto 8px !important;
  background: transparent !important;
  mix-blend-mode: screen !important;
  filter: drop-shadow(0 10px 36px rgba(255,200,0,0.5)) !important;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 72%, transparent 100%);
  opacity: 1;
  transform: scale(1);
}
body.path-index .hero-logo.logo-intro,
body.path-index .hero-logo-center.logo-intro {
  animation: logoFadeScale 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes logoFadeScale {
  0%   { opacity: 0; transform: scale(0.72); filter: drop-shadow(0 0 0 transparent) blur(4px); }
  40%  { opacity: 0.85; filter: drop-shadow(0 8px 24px rgba(255,200,0,0.35)) blur(1px); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 10px 36px rgba(255,200,0,0.5)) blur(0); }
}

/* Hero stage = first viewport under nav, content below scrolls */
body.path-index #hero-stage {
  min-height: calc(100vh - var(--nav-h, 72px)) !important;
  padding-top: 12px !important;
  padding-bottom: 100px !important;
  position: relative;
  z-index: 2;
}

/* Sections below hero start clean under platform */
body.path-index .index-sections,
body.path-index main > section:not(#hero-stage) {
  position: relative;
  z-index: 8;
  background: linear-gradient(180deg, rgba(8,4,18,0.92), rgba(8,4,18,0.98));
  padding-top: 48px;
}

/* ===== PART 1 vs PART 2 — no override ===== */
body.path-index #hero-stage {
  position: relative !important;
  z-index: 10 !important;
  min-height: calc(100vh - var(--nav-h, 72px)) !important;
  height: calc(100vh - var(--nav-h, 72px)) !important;
  max-height: calc(100vh - var(--nav-h, 72px)) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-bottom: 80px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* Part 2 sections start ONLY after full hero viewport — never overlay part 1 */
body.path-index .idx-section,
body.path-index section.idx-section {
  position: relative !important;
  z-index: 20 !important;
  margin: 0 !important;
  padding: 56px 24px 64px !important;
  background:
    linear-gradient(180deg, rgba(10, 6, 22, 0.97) 0%, rgba(12, 8, 28, 0.98) 40%, rgba(10, 6, 22, 0.99) 100%) !important;
  backdrop-filter: blur(2px);
  border-top: 1px solid rgba(124, 58, 237, 0.25) !important;
  overflow: hidden;
}

/* Part 2 city aesthetic layer (matches part 1 video, dimmer) */
body.path-index .idx-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(255, 200, 0, 0.04), transparent),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
  opacity: 0.9;
}
body.path-index .idx-section > * {
  position: relative;
  z-index: 1;
}

/* First part-2 section clear separation from hero */
body.path-index #live-network {
  margin-top: 0 !important;
  border-top: 2px solid rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
}

/* Remove colored cable strings completely */
.live-bg-cables,
#live-bg .cable,
svg.live-bg-cables {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Lightning strike flashes on city — destroy/rebuild pulse */
#live-bg-strikes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.city-strike {
  position: absolute;
  width: var(--sz, 60px);
  height: var(--sz, 60px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,220,100,0.7) 25%, rgba(168,85,247,0.35) 55%, transparent 70%);
  animation: strikeHit 1.15s ease-out forwards;
  mix-blend-mode: screen;
}
.city-strike::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -120%;
  width: 3px;
  height: 220%;
  background: linear-gradient(180deg, transparent, #fff 30%, #ffd700 70%, transparent);
  transform: translateX(-50%);
  opacity: 0.85;
  box-shadow: 0 0 12px #ffd700, 0 0 24px #a855f7;
}
.city-strike::after {
  /* rebuild ring */
  content: '';
  position: absolute;
  inset: -20%;
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  animation: rebuildRing 1.15s ease-out forwards;
}
@keyframes strikeHit {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); filter: brightness(2); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); filter: brightness(1.8); }
  40% { opacity: 0.9; filter: brightness(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); filter: brightness(0.8); }
}
@keyframes rebuildRing {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(2.2); }
}

/* Stronger ambient lightning flashes */
#live-bg-bolt.flash,
.live-bg-bolt-flash.flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 30%, rgba(255,255,255,0.25), transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.2), transparent 45%);
  animation: boltFlash 0.35s ease-out;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
@keyframes boltFlash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Character closed-leg walk — soft */
body.path-index #live-char-wrap {
  width: min(22vw, 220px) !important;
  max-width: 220px !important;
  bottom: 34px !important;
  z-index: 12 !important;
}
body.path-index #char-platform-bar {
  z-index: 11 !important;
}
body.path-index #mkt-slides {
  z-index: 13 !important;
}
body.path-index #index-call-stream {
  z-index: 9 !important;
}



/* ========== INDEX STACK: hero ends → fade → sections (no override) ========== */
body.path-index #hero-stage {
  position: relative !important;
  z-index: 5 !important;
  min-height: 100vh !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: calc(var(--nav-h, 72px) + 8px) 16px 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* Character / platform / marketing / calls LIVE ONLY inside hero — scroll away with it */
body.path-index #live-char-wrap,
body.path-index #char-platform-bar,
body.path-index #mkt-slides,
body.path-index .mkt-slides-hero,
body.path-index #index-call-stream {
  position: absolute !important;
  /* not fixed — leaves when hero scrolls out */
}

body.path-index #live-char-wrap {
  left: 0 !important;
  bottom: 36px !important;
  width: min(20vw, 200px) !important;
  max-width: 200px !important;
  z-index: 6 !important;
  pointer-events: none !important;
}
body.path-index #live-bg-char {
  pointer-events: auto !important;
  max-height: 32vh !important;
}

/* Darker platform at bottom of hero */
body.path-index #char-platform-bar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 36px !important;
  z-index: 5 !important;
  background: linear-gradient(90deg, #1a0a2e 0%, #2d1650 40%, #1f0d38 100%) !important;
  border-top: 1px solid rgba(100, 70, 140, 0.45) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Soft fade from platform into part-2 — sits at bottom of hero */
body.path-index #hero-stage::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 4, 18, 0.35) 40%,
    rgba(8, 4, 18, 0.85) 75%,
    rgba(8, 4, 18, 1) 100%
  );
}

body.path-index #mkt-slides,
body.path-index .mkt-slides-hero {
  top: 42% !important;
  right: 2vw !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
  position: absolute !important;
}

body.path-index #index-call-stream {
  inset: 0 !important;
  z-index: 4 !important;
  position: absolute !important;
  overflow: hidden !important;
}

/* Part 2 sections — pure document flow UNDER hero, never overlapping */
body.path-index .idx-section {
  position: relative !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 64px 24px 72px !important;
  background: rgba(8, 4, 18, 0.96) !important;
  border-top: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* Matching city video bg for part 2 (no character / no calls / no mkt) */
body.path-index #index-part2-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.path-index #index-part2-bg.on {
  opacity: 0.55;
}
body.path-index #index-part2-bg video,
body.path-index #index-part2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}
body.path-index #index-part2-bg .p2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,4,18,0.7), rgba(8,4,18,0.92));
}

/* Sections sit above part2 bg */
body.path-index main,
body.path-index .idx-section {
  position: relative;
  z-index: 2;
}

/* Hide hero-only FX when scrolled past */
body.path-index.scrolled-past-hero #live-char-wrap,
body.path-index.scrolled-past-hero #char-platform-bar,
body.path-index.scrolled-past-hero #mkt-slides,
body.path-index.scrolled-past-hero #index-call-stream {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}



/* ========== FINAL INDEX STACK + BG CHARACTER ========== */

/* Nav always on top */
body.path-index .nav,
body.path-index header,
body.path-index .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
}

/* Hero = one full screen. Nothing from below can paint on top of it. */
body.path-index #hero-stage {
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  min-height: 100vh !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: calc(var(--nav-h, 72px) + 12px) 20px 48px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  isolation: isolate !important;
  background: transparent !important;
}

/* Hero content (logo, text, buttons) ABOVE character */
body.path-index #hero-stage .hero-mid,
body.path-index #hero-stage .hero-logo,
body.path-index #hero-stage .hero-tagline,
body.path-index #hero-stage .cta-strip,
body.path-index #hero-stage .cta-row {
  position: relative !important;
  z-index: 20 !important;
}

/* Character + platform DEEP in the video background */
body.path-index #live-char-wrap {
  position: absolute !important;
  left: 0 !important;
  bottom: 28px !important;
  width: min(18vw, 180px) !important;
  max-width: 180px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  opacity: 0.92 !important;
}
body.path-index #live-bg-char {
  pointer-events: auto !important;
  max-height: 28vh !important;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.55)) !important;
}

body.path-index #char-platform-bar {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 32px !important;
  z-index: 2 !important;
  background: linear-gradient(90deg, #12081f 0%, #1c0f30 50%, #140a22 100%) !important;
  border-top: 1px solid rgba(80, 50, 120, 0.4) !important;
  box-shadow: 0 -12px 28px rgba(0,0,0,0.35) !important;
  opacity: 1 !important;
}

body.path-index #index-call-stream {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  opacity: 0.85 !important;
}

body.path-index #mkt-slides {
  position: absolute !important;
  top: 38% !important;
  right: 2vw !important;
  transform: translateY(-50%) !important;
  z-index: 15 !important;
}

/* Fade at bottom of hero into sections */
body.path-index #hero-stage::after {
  content: '' !important;
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
  height: 100px !important;
  z-index: 18 !important;
  pointer-events: none !important;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8,4,18,0.55) 50%,
    rgba(8,4,18,1) 100%
  ) !important;
}

/* Sections: normal flow AFTER hero — never pull up over hero */
body.path-index main {
  display: block !important;
  position: relative !important;
  z-index: 6 !important;
}
body.path-index .idx-section {
  position: relative !important;
  z-index: 6 !important;
  margin: 0 auto !important;
  max-width: 1100px !important;
  padding: 48px 20px !important;
  background: rgba(10, 6, 22, 0.94) !important;
  border-radius: 20px !important;
  margin-bottom: 28px !important;
  margin-top: 0 !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35) !important;
}

/* First section spacing after hero fade */
body.path-index #live-network {
  margin-top: 24px !important;
}

/* Kill any sticky/fixed/absolute that could lift sections onto hero */
body.path-index .idx-section.idx-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Improved golden call blasts */
.index-call-emoji.gold-call,
.gold-call {
  font-size: clamp(20px, 2.2vw, 32px) !important;
  opacity: 0.55 !important;
  filter:
    drop-shadow(0 0 6px #ffd700)
    drop-shadow(0 0 14px rgba(255, 180, 0, 0.55))
    sepia(1) saturate(8) hue-rotate(5deg) brightness(1.35) !important;
}
.gold-call .call-glyph {
  display: inline-block;
  transform: rotate(-25deg);
}

/* Small real recoil */
#live-bg-char.recoil {
  transform: translateX(-7px) rotate(-2.5deg) !important;
  transition: transform 0.07s ease-out !important;
}

/* Platform bar — full opacity, always visible, subtle live shimmer in bg layer */
body.path-index #char-platform-bar {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 34px !important;
  z-index: 2 !important;
  opacity: 1 !important;
  background:
    linear-gradient(90deg,
      #0e0718 0%,
      #1a0f2e 25%,
      #251540 50%,
      #1a0f2e 75%,
      #0e0718 100%) !important;
  border-top: 1px solid rgba(120, 80, 180, 0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(180, 140, 255, 0.12),
    0 -8px 24px rgba(0,0,0,0.4) !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
/* subtle animated light sweep on platform (video-like, full opacity base) */
body.path-index #char-platform-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(140, 90, 220, 0.18) 40%,
    rgba(255, 215, 0, 0.08) 50%,
    rgba(140, 90, 220, 0.18) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: platformSweep 4.5s linear infinite;
  opacity: 1;
}
@keyframes platformSweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
body.path-index #char-platform-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.5), transparent);
  animation: platformEdge 3s ease-in-out infinite;
}
@keyframes platformEdge {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Character feet sit on platform */
body.path-index #live-char-wrap {
  bottom: 30px !important;
}

/* ===== Marketing centered with CHOPCITY logo (right side) ===== */
body.path-index #mkt-slides,
body.path-index .mkt-slides-hero {
  position: absolute !important;
  top: 50% !important;
  left: auto !important;
  right: max(2vw, calc(50% - 420px - 12px)) !important;
  /* when logo is centered, place panel to the right of center */
  right: 4vw !important;
  transform: translateY(-50%) !important;
  z-index: 16 !important;
  max-width: 260px !important;
  width: min(260px, 28vw) !important;
}

/* Align marketing vertically with hero logo center */
body.path-index #hero-stage {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.path-index #hero-stage .hero-mid {
  position: relative !important;
  z-index: 20 !important;
  text-align: center !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

/* ===== Kill top-left logo split/close wall animation ===== */
.nav-logo-stage.playing .nav-logo-chop,
.nav-logo-stage.playing .nav-logo-city,
.nav-logo-chop,
.nav-logo-city {
  animation: none !important;
  transform: none !important;
}
.nav-logo-stage:hover .nav-logo-chop,
.nav-logo-stage:hover .nav-logo-city,
.nav-logo-stage.playing:hover .nav-logo-chop,
.nav-logo-stage.playing:hover .nav-logo-city {
  animation: none !important;
  transform: none !important;
}
@keyframes wallOpenL { from, to { transform: none; } }
@keyframes wallOpenR { from, to { transform: none; } }

/* Static refined top-left logo */
.nav-logo-stage {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  pointer-events: auto !important;
}
.nav-logo-wordmark {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-weight: 900 !important;
  font-size: 1.28rem !important;
  letter-spacing: 0.03em !important;
}
.nav-logo-chop, .nav-logo-city {
  color: #c084fc !important;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.45) !important;
}
.nav-logo-bolt {
  color: #ffd700 !important;
  animation: none !important; /* no continuous bolt flash on nav either if user wants calm */
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.55)) !important;
}

/* ===== Header nav refine ===== */
body.path-index .nav,
.nav {
  backdrop-filter: blur(18px) saturate(1.2) !important;
  background: rgba(8, 4, 16, 0.92) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.22) !important;
  min-height: 64px !important;
  align-items: center !important;
}
.nav-links a {
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #ffd700 !important;
}

/* ===== Sections centered, overviewable under hero ===== */
body.path-index .idx-section {
  max-width: 960px !important;
  width: calc(100% - 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 32px !important;
  padding: 40px 28px !important;
  text-align: center !important;
  border-radius: 22px !important;
  background: rgba(12, 8, 28, 0.94) !important;
  border: 1px solid rgba(124, 58, 237, 0.22) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35) !important;
}
body.path-index .idx-section h2 {
  text-align: center !important;
  color: #ffd700 !important;
  margin-bottom: 8px !important;
}
body.path-index .idx-section .sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 520px !important;
}
body.path-index #live-network {
  margin-top: 32px !important;
}
/* stats grid centered */
body.path-index .stats-grid,
body.path-index .net-grid,
body.path-index #live-network .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  max-width: 720px !important;
  margin: 20px auto 0 !important;
  text-align: center !important;
}

/* Platform stays in top/hero, full opacity, live shimmer */
body.path-index #char-platform-bar {
  opacity: 1 !important;
  z-index: 2 !important;
}

/* ===== Nav brand: purple CHOP + CITY, yellow bolt, hover separate ===== */
.nav-brand.nav-brand-static,
#nav-brand {
  cursor: default !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  user-select: none !important;
}
.nav-brand .nav-logo-stage {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  font-weight: 900 !important;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
}
.nav-brand .logo-word {
  background: linear-gradient(180deg, #e9d5ff 0%, #a855f7 40%, #7c3aed 70%, #5b21b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.55));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
.nav-brand .logo-bolt {
  color: #ffd700 !important;
  font-size: 0.95em;
  filter: drop-shadow(0 0 8px #ffd700);
  transition: transform 0.35s ease;
  display: inline-block;
  padding: 0 1px;
}
/* Slow separate on hover */
.nav-logo-stage.opening .logo-chop { transform: translateX(-10px); }
.nav-logo-stage.opening .logo-city { transform: translateX(10px); }
.nav-logo-stage.opening .logo-bolt { transform: scale(1.2) rotate(-8deg); }
/* Quick close on leave */
.nav-logo-stage.closing .logo-chop,
.nav-logo-stage.closing .logo-city {
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  transform: translateX(0) !important;
}
.nav-logo-stage.closing .logo-bolt {
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  transform: scale(1) rotate(0) !important;
}

/* ===== Header right: guest vs user ===== */
.nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.nav-bal-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}
.nav-bal-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.82rem;
  color: #ffd700;
}
.nav-bal-row img { width: 14px; height: 14px; }
.nav-bal-plus {
  font-size: 0.68rem !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,215,0,0.35) !important;
  background: rgba(255,215,0,0.12) !important;
  color: #ffd700 !important;
  cursor: pointer;
  line-height: 1.2;
}
.nav-bal-plus:hover { background: rgba(255,215,0,0.28) !important; }

.nav-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-btn-login,
.nav-btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.nav-btn-login {
  background: linear-gradient(180deg, #ffd700, #c9a227);
  color: #1a0a00 !important;
  box-shadow: 0 2px 10px rgba(255,200,0,0.3);
}
.nav-btn-signin {
  background: linear-gradient(180deg, #a855f7, #6d28d9);
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(124,58,237,0.35);
}
.nav-btn-login:hover,
.nav-btn-signin:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.12);
  box-shadow: 0 4px 18px rgba(255,200,0,0.45);
}
.nav-btn-signin:hover { box-shadow: 0 4px 18px rgba(168,85,247,0.5); }

.nav-guest-label {
  font-size: 0.75rem;
  color: #c4b5fd;
  margin-left: 2px;
}
.nav-profile-guest {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Logged-in: name + animated lvl outside avatar */
.nav-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-right: 2px;
}
.nav-id-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f3e8ff;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-id-lvl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffd700;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,58,237,0.35), rgba(255,215,0,0.15), rgba(124,58,237,0.35));
  background-size: 200% 100%;
  animation: lvlShine 2.8s linear infinite;
  border: 1px solid rgba(255,215,0,0.35);
  box-shadow: 0 0 10px rgba(255,215,0,0.2);
}
.nav-id-lvl i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 6px #ffd700;
  animation: lvlPulse 1.4s ease-in-out infinite;
}
@keyframes lvlShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes lvlPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* Hide old chip with name/lvl inside circle area */
.nav-user-chip { display: none !important; }

.nav-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
}

/* Marketing: middle-right aligned with center logo */
body.path-index #mkt-slides,
body.path-index .mkt-slides-hero {
  position: absolute !important;
  top: 50% !important;
  right: 3vw !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  z-index: 15 !important;
  max-width: min(280px, 28vw) !important;
}

/* Sections centered overview */
body.path-index .idx-section {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 32px !important;
  padding: 40px 28px !important;
  text-align: center !important;
}
body.path-index .idx-section .stats-grid,
body.path-index .idx-section .feat-grid,
body.path-index .idx-section .hub-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 14px !important;
  justify-items: center !important;
  text-align: center !important;
}

/* Platform still full opacity bottom of hero */
body.path-index #char-platform-bar {
  opacity: 1 !important;
  z-index: 2 !important;
}



/* ========== BIG HEADER / LOGO / PROFILE / MKT / CHAR ZONE UPDATE ========== */

/* Top-left logo: purple 4D CHOP + CITY, yellow bolt — not a link */
.nav-brand,
.nav-brand-static {
  pointer-events: auto !important;
  cursor: default !important;
  text-decoration: none !important;
  user-select: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 4px 8px !important;
  background: transparent !important;
  border: none !important;
}
.nav-brand a,
.nav-brand[href] {
  pointer-events: none !important;
}
.nav-logo-stage {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.06em !important;
  font-weight: 900 !important;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  perspective: 400px;
}
.nav-logo-stage .logo-word {
  display: inline-block;
  background: linear-gradient(180deg, #e9d5ff 0%, #c084fc 35%, #7c3aed 70%, #5b21b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.55));
  transform: translateZ(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo-stage .logo-bolt {
  display: inline-block;
  color: #ffd700 !important;
  font-size: 0.95em;
  filter: drop-shadow(0 0 10px #ffd700) drop-shadow(0 0 4px #fff);
  transform: translateZ(8px);
  transition: transform 0.35s ease;
  animation: boltGlow 2.2s ease-in-out infinite;
}
@keyframes boltGlow {
  0%, 100% { filter: drop-shadow(0 0 8px #ffd700); }
  50% { filter: drop-shadow(0 0 16px #fff) drop-shadow(0 0 8px #ffd700); }
}
/* Slow separate on hover */
.nav-logo-stage.opening .logo-chop {
  transform: translateX(-10px) translateZ(6px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo-stage.opening .logo-city {
  transform: translateX(10px) translateZ(6px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo-stage.opening .logo-bolt {
  transform: translateZ(14px) scale(1.18);
  transition: transform 0.5s ease;
}
/* Quick close when leave */
.nav-logo-stage.closing .logo-chop,
.nav-logo-stage.closing .logo-city {
  transform: translateX(0) translateZ(0);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo-stage.closing .logo-bolt {
  transform: translateZ(8px) scale(1);
  transition: transform 0.2s ease;
}

/* Nav right: balance stack, auth stack, profile */
.nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.nav-bal-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px !important;
  min-width: 0;
}
.nav-bal-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.78rem;
  color: #ffd700;
  font-weight: 700;
}
.nav-bal-row img { width: 14px; height: 14px; }
.nav-bal-plus {
  font-size: 0.65rem !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(124, 58, 237, 0.25) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  color: #e9d5ff !important;
  cursor: pointer;
  line-height: 1.2;
}
.nav-bal-plus:hover {
  background: rgba(124, 58, 237, 0.45) !important;
  color: #fff !important;
}

.nav-auth-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.nav-btn-login,
.nav-btn-signin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.nav-btn-login {
  background: linear-gradient(180deg, #ffd700, #c9a227) !important;
  color: #1a0a00 !important;
  border: 1px solid rgba(255, 215, 0, 0.6) !important;
}
.nav-btn-signin {
  background: linear-gradient(180deg, #a855f7, #6d28d9) !important;
  color: #fff !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
}
.nav-btn-login:hover,
.nav-btn-signin:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.12);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

/* Profile: avatar only in circle; name + lvl outside */
.nav-profile {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative;
}
.nav-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(168, 85, 247, 0.45) !important;
  flex-shrink: 0;
}
.nav-guest-label {
  font-size: 0.8rem;
  color: #c4b5fd;
  font-weight: 600;
}
.nav-identity {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  max-width: 110px;
}
.nav-id-name {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #f3e8ff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.nav-id-lvl {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #ffd700 !important;
  background: linear-gradient(90deg, rgba(255,215,0,0.15), rgba(124,58,237,0.25), rgba(255,215,0,0.15));
  background-size: 200% 100%;
  animation: lvlShine 2.8s linear infinite;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.02em;
}
.nav-id-lvl i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 6px #ffd700;
  animation: lvlDot 1.4s ease-in-out infinite;
}
@keyframes lvlShine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes lvlDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Guest: no level */
.nav-profile-guest .nav-id-lvl { display: none !important; }

/* Marketing — middle-right of center logo */
body.path-index #mkt-slides,
body.path-index .mkt-slides-hero {
  position: absolute !important;
  top: 50% !important;
  left: auto !important;
  right: max(2vw, calc(50% - 420px)) !important;
  transform: translateY(-50%) !important;
  z-index: 15 !important;
  max-width: 240px !important;
}

/* Sections centered overviewable */
body.path-index .idx-section {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 32px !important;
  padding: 40px 28px !important;
  text-align: center !important;
}
body.path-index .idx-section .stat-grid,
body.path-index .idx-section .hub-grid,
body.path-index .idx-section .card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Character under logo/buttons = run hold (no aim); elsewhere aim */
#live-bg-char.mode-run {
  /* slightly more upright run look via scale */
  transform: rotate(var(--npc-r, 0deg)) scaleX(1) !important;
}
#live-bg-char.mode-aim {
  transform: rotate(var(--npc-r, 0deg)) !important;
}
