/* RADAR OPS v7 — console theme */
:root {
  --bg: #03040a;
  --bg-2: #050713;
  --grid: rgba(73, 182, 24, 0.06);
  --grid-strong: rgba(73, 182, 24, 0.12);
  --panel: #06080f;
  --panel-2: #0a0d18;
  --border: rgba(73, 182, 24, 0.22);
  --border-strong: rgba(73, 182, 24, 0.55);
  --fg: #c8e6c9;
  --fg-dim: rgba(200, 230, 201, 0.55);
  --muted: rgba(200, 230, 201, 0.32);
  --green: #49B618;
  --green-bright: #7dff5c;
  --green-glow: #49ff7a;
  --amber: #ffb000;
  --amber-bright: #ffd54a;
  --red: #ff3b3b;
  --mono: "JetBrains Mono", "Share Tech Mono", Consolas, monospace;
  --mono-display: "Share Tech Mono", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; padding: 0; margin: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}
body {
  position: relative;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(73, 182, 24, 0.08), transparent 60%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
}
/* CRT scanlines overlay */
#scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.6;
}
/* Radar sweep — rotates behind everything */
#sweep {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 220vmax;
  height: 220vmax;
  margin: -110vmax 0 0 -110vmax;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 350deg,
    rgba(73, 182, 24, 0.14) 358deg,
    rgba(125, 255, 92, 0.28) 360deg
  );
  animation: sweep 8s linear infinite;
  opacity: 0.55;
}
@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font: inherit; color: inherit; background: none; }
input, textarea { font: inherit; color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 18px 120px;
}

/* Corner brackets on the whole page */
.wrap::before,
.wrap::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid var(--green);
  opacity: 0.6;
  pointer-events: none;
}
.wrap::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.wrap::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* Brand header */
.brand {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.brand::before {
  content: "SYS // 01";
  position: absolute;
  top: -14px; left: 0;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--muted);
}
.brand::after {
  content: "● LIVE";
  position: absolute;
  top: -14px; right: 0;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--amber);
  animation: blink 2s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.25; } }

.brand-logo {
  font-family: var(--mono-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--green-bright);
  text-shadow: 0 0 12px var(--green), 0 0 40px rgba(73, 182, 24, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.brand-logo::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--green-bright), 0 0 30px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.brand-sub {
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Panels (replacing "cards") — hex corners */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(2px);
  clip-path: polygon(
    14px 0, 100% 0,
    100% calc(100% - 14px), calc(100% - 14px) 100%,
    0 100%, 0 14px
  );
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--green);
  pointer-events: none;
}
.card::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.card::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.card h2 {
  font-family: var(--mono-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--mono-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h3::before {
  content: "▸";
  color: var(--green);
  font-size: 12px;
}

/* Form fields */
label {
  display: block;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(73, 182, 24, 0.4), 0 0 20px rgba(73, 182, 24, 0.2);
  background: rgba(0, 0, 0, 0.75);
}
.input::placeholder { color: var(--muted); }
.field { margin-bottom: 18px; }

/* Buttons — chamfered corners */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(73, 182, 24, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--green-bright);
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.2s;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover {
  background: rgba(73, 182, 24, 0.18);
  border-color: var(--green-bright);
  color: #fff;
  box-shadow: 0 0 20px rgba(73, 182, 24, 0.35), inset 0 0 20px rgba(73, 182, 24, 0.1);
}
.btn-primary {
  background: var(--green);
  color: #03040a;
  font-weight: 700;
  border-color: var(--green-bright);
}
.btn-primary:hover {
  background: var(--green-bright);
  color: #000;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-danger {
  background: rgba(255, 59, 59, 0.08);
  border-color: rgba(255, 59, 59, 0.5);
  color: var(--red);
}
.btn-danger:hover {
  background: rgba(255, 59, 59, 0.2);
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.3);
}
.btn-sm { padding: 8px 14px; font-size: 10px; letter-spacing: 2px; }

/* Tabs — console style */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 14px 22px;
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.tab:hover { color: var(--fg); }
.tab.active {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
  text-shadow: 0 0 12px var(--green);
}
.tab.active::before {
  content: "▸";
  position: absolute;
  left: 8px;
  color: var(--green-bright);
}

/* ═══════════════════════════════════════════════════════════════
   ROOM CARDS — tactical sector tiles
   ═══════════════════════════════════════════════════════════════ */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .rooms-grid { grid-template-columns: 1fr 1fr; }
}

.room-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  overflow: hidden;
}
.room-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  opacity: 0.3;
  transition: opacity 0.25s, box-shadow 0.25s;
}
.room-card::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blip 2.4s ease-out infinite;
}
@keyframes blip {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}
.room-card:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
  transform: translateX(3px);
  box-shadow: -6px 0 0 0 rgba(73, 182, 24, 0.5), 0 0 30px rgba(73, 182, 24, 0.15);
}
.room-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px var(--green);
}
.room-icon {
  font-size: 26px;
  filter: grayscale(0.3) brightness(1.2);
  text-shadow: 0 0 12px rgba(73, 182, 24, 0.6);
}
.room-meta { flex: 1; min-width: 0; }
.room-name {
  font-family: var(--mono-display);
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-topic {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT BOX — signal log console
   ═══════════════════════════════════════════════════════════════ */
.chat-box {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  min-height: 70vh;
}
.chat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(73, 182, 24, 0.025) 0,
    rgba(73, 182, 24, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 1;
}
.chat-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}
.chat-head::before {
  content: "◉";
  font-size: 20px;
  color: var(--green-bright);
  text-shadow: 0 0 12px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
.chat-head .room-name {
  font-size: 15px;
  margin-bottom: 3px;
}
.chat-head .room-topic {
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 13px;
  min-height: 240px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.chat-msg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  animation: msgIn 0.3s ease-out;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: border-color 0.2s;
}
.chat-msg:hover {
  border-left-color: var(--green);
  background: rgba(73, 182, 24, 0.04);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.chat-msg-user {
  font-family: var(--mono-display);
  color: var(--green-bright);
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.chat-msg-user::after { content: " ▸"; color: var(--muted); }
.chat-msg-time {
  font-family: var(--mono-display);
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}
.chat-input-row .input {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
}
.chat-input-row .input::placeholder {
  font-family: var(--mono-display);
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
}
.chat-input-row .btn-primary {
  padding: 12px 24px;
  font-family: var(--mono-display);
  letter-spacing: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   REACTIONS BAR
   ═══════════════════════════════════════════════════════════════ */
.reactions-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  position: relative;
  z-index: 2;
}
.reactions-bar button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(73, 182, 24, 0.06);
  border: 1px solid var(--border);
  font-size: 18px;
  line-height: 1;
  transition: all 0.15s ease;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.reactions-bar button:hover {
  background: rgba(73, 182, 24, 0.2);
  border-color: var(--green-bright);
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 0 16px rgba(73, 182, 24, 0.4);
}
.reaction-float {
  position: absolute;
  font-size: 32px;
  pointer-events: none;
  animation: floatUp 2s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  z-index: 10;
  filter: drop-shadow(0 0 8px var(--green));
}
@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(0.6) rotate(-10deg); }
  40% { opacity: 1; transform: translateY(-80px) scale(1.2) rotate(5deg); }
  100% { opacity: 0; transform: translateY(-200px) scale(1.6) rotate(-15deg); }
}

/* Gift picker */
.gift-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}
.gift-picker button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 176, 0, 0.06);
  border: 1px solid rgba(255, 176, 0, 0.35);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  transition: all 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.gift-picker button:hover {
  background: rgba(255, 176, 0, 0.18);
  border-color: var(--amber);
  color: var(--amber-bright);
  box-shadow: 0 0 16px rgba(255, 176, 0, 0.3);
  transform: translateY(-1px);
}
.gift-price {
  font-family: var(--mono-display);
  color: var(--amber);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Gift toast */
.gift-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 26px;
  background: linear-gradient(135deg, rgba(73, 182, 24, 0.98), rgba(201, 215, 46, 0.98));
  color: #03040a;
  font-family: var(--mono-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(73, 182, 24, 0.4);
  z-index: 999;
  animation: giftIn 0.4s ease, giftOut 0.4s ease 3.6s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
}
@keyframes giftIn {
  from { opacity: 0; transform: translate(-50%, -30px) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes giftOut {
  to { opacity: 0; transform: translate(-50%, -20px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════════════
   SPEAKER CARDS — radar contacts
   ═══════════════════════════════════════════════════════════════ */
.speakers-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  min-height: 130px;
}
.speakers-panel::before {
  content: "CONTACTS";
  position: absolute;
  top: 6px;
  left: 18px;
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--muted);
}

.speaker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(73, 182, 24, 0.03);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.speaker-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  pointer-events: none;
}
.speaker-card.speaking {
  border-color: var(--green-bright);
  background: rgba(73, 182, 24, 0.08);
  box-shadow: 0 0 20px rgba(73, 182, 24, 0.4), inset 0 0 20px rgba(73, 182, 24, 0.08);
}
.speaker-card.speaking::before {
  opacity: 1;
  animation: sonar 1.6s ease-out infinite;
}
@keyframes sonar {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(73, 182, 24, 0.7); }
  100% { transform: scale(1); opacity: 0; box-shadow: 0 0 0 40px rgba(73, 182, 24, 0); }
}
.speaker-card.admin {
  border-color: rgba(255, 176, 0, 0.55);
  background: rgba(255, 176, 0, 0.04);
}
.speaker-card.admin::after {
  content: "★";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  color: var(--amber);
  text-shadow: 0 0 8px var(--amber);
}
.speaker-avatar {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(73, 182, 24, 0.5));
}
.speaker-card.speaking .speaker-avatar {
  animation: speakGlow 1.6s ease-in-out infinite;
}
@keyframes speakGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(73, 182, 24, 0.5)); }
  50% { filter: drop-shadow(0 0 16px var(--green-bright)) drop-shadow(0 0 28px var(--green)); }
}
.speaker-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.speaker-role {
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid rgba(200, 230, 201, 0.15);
  background: rgba(0, 0, 0, 0.4);
}
.speaker-role.speaker { color: var(--green-bright); border-color: var(--green); }
.speaker-role.requested { color: var(--amber); border-color: var(--amber); animation: blink 1.4s steps(2) infinite; }
.speaker-muted { color: var(--red); font-size: 12px; }

.speaker-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.speaker-actions button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
}
.speaker-actions button:hover {
  color: var(--fg);
  border-color: var(--green);
  background: rgba(73, 182, 24, 0.15);
  box-shadow: 0 0 12px rgba(73, 182, 24, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   VOICE BAR — mic console
   ═══════════════════════════════════════════════════════════════ */
.voice-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.voice-bar::before {
  content: "MIC // STATUS";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--muted);
}
.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(73, 182, 24, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--green-bright);
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative;
}
.mic-btn:hover {
  background: rgba(73, 182, 24, 0.2);
  border-color: var(--green-bright);
  color: #fff;
  box-shadow: 0 0 24px rgba(73, 182, 24, 0.4);
}
.mic-btn.active {
  background: var(--green);
  color: #03040a;
  font-weight: 700;
  border-color: var(--green-bright);
  box-shadow: 0 0 30px var(--green-glow), inset 0 0 20px rgba(255, 255, 255, 0.15);
  animation: micActive 1.4s ease-in-out infinite;
}
@keyframes micActive {
  0%, 100% { box-shadow: 0 0 30px var(--green-glow); }
  50% { box-shadow: 0 0 50px var(--green-bright), 0 0 80px var(--green); }
}
.mic-btn.danger {
  background: rgba(255, 59, 59, 0.1);
  border-color: rgba(255, 59, 59, 0.5);
  color: var(--red);
}
.mic-btn.pending {
  background: rgba(255, 176, 0, 0.08);
  border-color: rgba(255, 176, 0, 0.5);
  color: var(--amber);
  cursor: wait;
  animation: blink 1.4s steps(2) infinite;
}

.admin-request {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.5);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  animation: blink 1.6s steps(2) infinite;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.admin-request button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}
.approve-btn {
  background: rgba(73, 182, 24, 0.2);
  color: var(--green-bright);
  border: 1px solid var(--green);
}
.approve-btn:hover { background: var(--green); color: #000; box-shadow: 0 0 12px var(--green); }
.deny-btn {
  background: rgba(255, 59, 59, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 59, 59, 0.6);
}
.deny-btn:hover { background: var(--red); color: #000; box-shadow: 0 0 12px var(--red); }

/* ═══════════════════════════════════════════════════════════════
   TOP BAR, LEADERBOARD, MISC
   ═══════════════════════════════════════════════════════════════ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}
.me-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(73, 182, 24, 0.06);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.coins-badge {
  color: var(--amber);
  font-family: var(--mono-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.leaderboard-row:hover { background: rgba(73, 182, 24, 0.04); }
.leaderboard-row:last-child { border-bottom: none; }
.rank {
  width: 36px;
  font-family: var(--mono-display);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}
.rank.top { color: var(--amber); text-shadow: 0 0 10px var(--amber); }
.leader-name {
  flex: 1;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.leader-coins {
  color: var(--amber);
  font-family: var(--mono-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.4);
}

.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#err {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  padding: 8px 12px;
  border-left: 2px solid var(--red);
  background: rgba(255, 59, 59, 0.06);
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 600px) {
  .brand-logo { font-size: 24px; letter-spacing: 5px; }
  .wrap { padding: 16px 12px 100px; }
  .card { padding: 18px; }
  .speakers-panel { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); padding: 16px 12px; }
  .chat-box { min-height: 60vh; }
  .room-name { font-size: 12px; letter-spacing: 1.5px; }
  .tab { padding: 12px 14px; font-size: 10px; letter-spacing: 2px; }
}

/* ═══════════════════════════════════════════════════════════════
   V8 — BOOT SEQUENCE, CLOCK, LED STRIP, WAVEFORM, CURSOR
   ═══════════════════════════════════════════════════════════════ */

/* CRT power-on flash */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
  z-index: 99999;
  animation: powerOn 0.6s ease-out forwards;
}
@keyframes powerOn {
  0% { opacity: 1; transform: scaleY(0.004); }
  40% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* Boot overlay */
#boot {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green-bright);
  letter-spacing: 0.06em;
  animation: bootFade 0.4s ease-out 1.8s forwards;
}
@keyframes bootFade { to { opacity: 0; visibility: hidden; } }
#boot .boot-inner { max-width: 520px; width: 100%; }
#boot .boot-line {
  opacity: 0;
  animation: bootLine 0.05s linear forwards;
}
#boot .boot-line::before { content: "> "; color: var(--green); }
#boot .boot-line.dim { color: var(--muted); }
@keyframes bootLine { to { opacity: 1; } }
#boot .boot-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green-bright);
  animation: blink 0.7s steps(2) infinite;
  vertical-align: middle;
  margin-left: 4px;
}

/* Live UTC clock in header */
.live-clock {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--green);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.live-clock::before {
  content: "● ";
  color: var(--green-bright);
  animation: blink 1.4s steps(2) infinite;
}

/* Room sector ID label */
.room-card .sector-id {
  position: absolute;
  top: 6px;
  left: 10px;
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--green);
  opacity: 0.55;
}

/* Speaker signal-strength bars */
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.signal-bars span {
  width: 3px;
  background: var(--green);
  opacity: 0.35;
  transition: opacity 0.2s;
}
.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 7px; }
.signal-bars span:nth-child(3) { height: 10px; }
.signal-bars span:nth-child(4) { height: 14px; }
.speaker-card.speaking .signal-bars span {
  opacity: 1;
  box-shadow: 0 0 6px var(--green-bright);
  animation: signalPulse 0.8s ease-in-out infinite;
}
.speaker-card.speaking .signal-bars span:nth-child(2) { animation-delay: 0.1s; }
.speaker-card.speaking .signal-bars span:nth-child(3) { animation-delay: 0.2s; }
.speaker-card.speaking .signal-bars span:nth-child(4) { animation-delay: 0.3s; }
@keyframes signalPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

/* Live waveform under mic button */
.waveform {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-left: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}
.waveform.active { opacity: 1; }
.waveform span {
  width: 3px;
  background: var(--green-bright);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--green-bright);
  animation: wave 0.9s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.07s; }
.waveform span:nth-child(3) { animation-delay: 0.14s; }
.waveform span:nth-child(4) { animation-delay: 0.21s; }
.waveform span:nth-child(5) { animation-delay: 0.28s; }
.waveform span:nth-child(6) { animation-delay: 0.35s; }
.waveform span:nth-child(7) { animation-delay: 0.42s; }
.waveform span:nth-child(8) { animation-delay: 0.49s; }
.waveform span:nth-child(9) { animation-delay: 0.56s; }
.waveform span:nth-child(10) { animation-delay: 0.63s; }
.waveform span:nth-child(11) { animation-delay: 0.70s; }
.waveform span:nth-child(12) { animation-delay: 0.77s; }
@keyframes wave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50% { height: 20px; opacity: 1; }
}

/* Status LED strip — fixed bottom-left */
.led-strip {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  pointer-events: none;
}
.led-strip div { display: flex; align-items: center; gap: 8px; }
.led-strip .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.led-strip .dot.on { background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); }
.led-strip .dot.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
@media (max-width: 600px) { .led-strip { display: none; } }

/* Kinetic logo flicker on entry */
.brand-logo {
  animation: logoIn 0.8s ease-out, logoFlicker 4s steps(1) 1s infinite;
}
@keyframes logoIn {
  0% { opacity: 0; filter: blur(8px) brightness(3); letter-spacing: 20px; }
  60% { opacity: 1; filter: blur(0) brightness(1.4); letter-spacing: 10px; }
  100% { filter: blur(0) brightness(1); letter-spacing: 8px; }
}
@keyframes logoFlicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  95% { opacity: 0.6; }
  96% { opacity: 1; }
}

/* Custom cursor crosshair (desktop) */
@media (hover: hover) and (pointer: fine) {
  body, button, a, input, .room-card, .tab { cursor: crosshair; }
  input, textarea { cursor: text; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #sweep, #scanlines, #boot, body::after { display: none; }
}

/* v9 — room lifecycle + occupancy */
.room-card.live::after {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: blip 1s ease-out infinite;
}
.room-card.dormant { opacity: 0.5; }
.room-card.dormant::after { background: var(--muted); box-shadow: none; animation: none; }
.room-occupancy {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
}
.room-card.live .room-occupancy { color: var(--red); }
.room-badge-live {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 6px;
  background: var(--red);
  color: #000;
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 700;
  animation: blink 1.2s steps(2) infinite;
}
.room-badge-dormant {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 2px;
}

/* v10 — signal ticker + event feed */
.signal-ticker {
  position: relative;
  overflow: hidden;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.signal-ticker::before {
  content: "SIGNAL";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 0 12px;
  background: var(--green);
  color: #000;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  z-index: 2;
  font-weight: 700;
}
.signal-ticker-track {
  display: flex;
  gap: 32px;
  padding-left: 100px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green-bright);
}
.signal-ticker-track span { display: inline-flex; align-items: center; gap: 6px; }
.signal-ticker-track .sig-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.event-feed {
  position: absolute;
  top: 60px;
  right: 12px;
  width: 180px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.event-feed .ev {
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.75);
  border-left: 2px solid var(--green);
  color: var(--green-bright);
  animation: evIn 0.35s ease-out, evFade 6s ease-out 3s forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-feed .ev.gift { border-color: var(--amber); color: var(--amber-bright); }
.event-feed .ev.mic_request { border-color: var(--amber); }
.event-feed .ev.mic_approved { border-color: var(--green-bright); }
@keyframes evIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes evFade {
  to { opacity: 0; transform: translateX(20px); }
}
@media (max-width: 720px) {
  .event-feed { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   V11 — AUTH HERO, LOCK GATE, SOUND, BADGES, TOAST
   ═══════════════════════════════════════════════════════════════ */
.auth-hero {
  text-align: center;
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.auth-hero .hero-title {
  font-family: var(--mono-display);
  font-size: 42px;
  letter-spacing: 12px;
  color: var(--green-bright);
  text-shadow: 0 0 20px var(--green), 0 0 60px rgba(73, 182, 24, 0.6);
  animation: logoIn 0.9s ease-out;
}
.auth-hero .hero-sub {
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
}
.auth-hero .hero-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border: 1px solid var(--green);
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--green-bright);
  text-transform: uppercase;
}
.auth-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.auth-hint b { color: var(--green); font-weight: 600; }

/* Password gate modal */
.lock-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lock-gate .panel {
  max-width: 400px;
  width: 100%;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  text-align: center;
}
.lock-gate h2 {
  font-family: var(--mono-display);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--amber);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.lock-gate p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Room lock badge */
.room-lock {
  position: absolute;
  top: 6px;
  right: 34px;
  font-size: 12px;
  opacity: 0.7;
}

/* Sound toggle */
.sound-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  color: var(--green-bright);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.sound-toggle:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 18px var(--green);
  transform: scale(1.08);
}
.sound-toggle.muted {
  color: var(--muted);
  border-color: var(--muted);
  box-shadow: none;
}
.sound-toggle.on {
  color: var(--green-bright);
  box-shadow: 0 0 20px var(--green);
}

/* Fullscreen toggle */
.fs-toggle {
  position: fixed;
  bottom: 18px;
  right: 68px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  color: var(--green-bright);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.fs-toggle:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 18px var(--green);
  transform: scale(1.08);
}

/* User rank badge */
.rank-badge {
  display: inline-block;
  font-family: var(--mono-display);
  font-size: 8px;
  letter-spacing: 2px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}
.rank-badge.cadet { color: #8899aa; border-color: #8899aa; }
.rank-badge.operator { color: var(--green); border-color: var(--green); }
.rank-badge.ghost { color: var(--green-bright); border-color: var(--green-bright); box-shadow: 0 0 8px rgba(73,182,24,0.4); }
.rank-badge.phantom { color: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px rgba(255,176,0,0.4); }
.rank-badge.wraith { color: #ff5c5c; border-color: #ff5c5c; box-shadow: 0 0 12px rgba(255,92,92,0.5); }

/* Toasts */
.toast-stack {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 9996;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}
.toast {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.9);
  border-left: 3px solid var(--green);
  color: var(--green-bright);
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: toastIn 0.35s ease-out;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.toast.err { border-color: var(--red); color: var(--red); }
.toast.info { border-color: var(--amber); color: var(--amber-bright); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Typing indicator */
.typing-indicator {
  padding: 6px 20px;
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  min-height: 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}
.typing-indicator .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: blink 1.2s ease-in-out infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

/* Network bar */
.net-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 2px;
}
.net-bar .bar {
  width: 3px;
  background: var(--green);
  height: 6px;
}
.net-bar .bar:nth-child(2) { height: 9px; }
.net-bar .bar:nth-child(3) { height: 12px; }
.net-bar .bar:nth-child(4) { height: 15px; opacity: 0.3; }
.net-bar.good .bar:nth-child(4) { opacity: 1; }
.net-bar.good .bar { background: var(--green-bright); box-shadow: 0 0 4px var(--green-bright); }
.net-bar.poor .bar { background: var(--amber); }

/* AUTH STATS STRIP */
.auth-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s ease-out;
}
.auth-stat {
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.auth-stat-val {
  font-size: 22px;
  color: var(--green-bright);
  text-shadow: 0 0 16px var(--green);
  letter-spacing: 0;
  font-weight: 400;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* AUTH RECENT ACTIVITY */
.auth-recent {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(12,15,25,0.5);
  border: 1px solid var(--border);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  animation: fadeUp 0.8s ease-out;
}
.auth-recent-title {
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--amber);
  margin-bottom: 12px;
  text-align: center;
}
.auth-recent-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(73,182,24,0.08);
  font-family: var(--mono);
  font-size: 12px;
}
.auth-recent-row:last-child { border-bottom: none; }
.ar-user {
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
  min-width: 80px;
  text-transform: uppercase;
}
.ar-body {
  color: var(--fg-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* NAV LINKS */
.nav-links { animation: fadeUp 0.4s ease-out; }
.nav-links .btn { font-size: 10px; letter-spacing: 2px; padding: 10px 12px; }

/* MOBILE POLISH v14 */
@media (max-width: 640px) {
  .wrap { padding: 16px 10px 100px; }
  .brand-logo { font-size: 22px; letter-spacing: 5px; }
  .brand-sub { display: none; }
  .auth-hero .hero-title { font-size: 32px; letter-spacing: 6px; }
  .card { padding: 16px; }
  .speakers-panel { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; padding: 12px; }
  .speaker-card { padding: 8px 4px; }
  .speaker-avatar { font-size: 22px; }
  .speaker-name { font-size: 10px; }
  .chat-box { min-height: 62vh; }
  .chat-messages { padding: 12px; font-size: 13px; }
  .chat-input-row { padding: 10px 12px; }
  .chat-input-row .input { padding: 11px 14px; font-size: 16px; }
  .reactions-bar { padding: 8px 12px; }
  .reactions-bar button { width: 32px; height: 32px; font-size: 16px; }
  .gift-picker { padding: 10px 12px; }
  .gift-picker button { font-size: 11px; padding: 6px 10px; }
  .tab { padding: 10px 12px; font-size: 10px; letter-spacing: 2px; }
  .nav-links { flex-direction: column; }
  .nav-links .btn { width: 100%; }
  .mic-btn { padding: 10px 16px; font-size: 10px; }
  .voice-bar { padding: 12px; }
  .leaderboard-row { gap: 10px; padding: 10px 0; }
  .rank { width: 26px; font-size: 12px; }
  .leader-name { font-size: 13px; }
  .leader-coins { font-size: 12px; }
}

.skeleton-row {
  height: 68px;
  background: linear-gradient(90deg, rgba(73,182,24,0.04), rgba(73,182,24,0.10), rgba(73,182,24,0.04));
  background-size: 200% 100%;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  animation: skel 1.4s ease infinite;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.auth-recent-locked {
  text-align: center;
  padding: 20px 10px;
  font-family: var(--mono-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--green);
  border: 1px dashed rgba(73,182,24,0.3);
  background: rgba(73,182,24,0.03);
  margin: 8px 0;
}
.auth-recent-hint {
  text-align: center;
  font-family: var(--mono-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 8px;
}

/* GHOST AI */
.ghost-msg {
  background: linear-gradient(90deg, rgba(255,176,0,0.08), transparent);
  border-left: 2px solid var(--amber) !important;
}
.ghost-msg .chat-msg-user {
  color: var(--amber) !important;
  text-shadow: 0 0 8px rgba(255,176,0,0.5);
}
.ghost-body {
  color: var(--amber-bright);
  font-style: italic;
}
.ghost-hint {
  padding: 8px 16px;
  background: rgba(255,176,0,0.06);
  border-top: 1px solid rgba(255,176,0,0.2);
  font-family: var(--mono-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--amber);
  text-align: center;
}
.ghost-hint b { color: var(--amber-bright); }
