:root {
  --bg: #050814;
  --surface: rgba(11, 17, 36, 0.84);
  --surface-elevated: rgba(17, 26, 54, 0.9);
  --border: rgba(56, 189, 248, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text: #e2f1ff;
  --muted: #7dd3fc;
  --accent: #38bdf8;
  --accent-text: #040914;
  --green: #10b981;
  --red: #ef4444;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

body.dark {
  --bg: #030612;
  --surface: rgba(8, 14, 32, 0.88);
  --surface-elevated: rgba(14, 24, 52, 0.94);
  --border: rgba(56, 189, 248, 0.28);
  --text: #f0f9ff;
  --muted: #7dd3fc;
  --accent: #38bdf8;
  --accent-text: #040914;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "One UI Sans", "SamsungOne", "Samsung Sans", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.14), transparent 42%),
    radial-gradient(circle at 82% 15%, rgba(99, 102, 241, 0.16), transparent 45%),
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px, 100% 100%;
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.chat-workspace {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 32px);
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.corner-status {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.corner-status.live {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.corner-status.warn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.icon-btn.active {
  background: var(--accent);
  color: var(--accent-text);
}

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.composer input {
  border: none;
  background: transparent;
  padding: 8px 6px;
}

.drawer {
  position: absolute;
  inset: 58px 0 0 0;
  background: rgba(11, 11, 12, 0.92);
  z-index: 20;
  overflow-y: auto;
  padding-top: 8px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 30;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-orb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.brand h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-pill.ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg-btn.active {
  background: var(--surface-elevated);
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 12px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #52525b;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.82rem;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ring-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.ring-result a {
  color: var(--text);
  text-decoration: underline;
  word-break: break-all;
}

.calls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.call-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}

.call-item:hover {
  border-color: #3f3f46;
}

.call-item small {
  color: var(--muted);
}

/* MINIMAL LUXURY CALL SCREEN */
.call-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 52px);
  padding: 28px 8px 16px;
  text-align: center;
}

.call-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.orb-stage {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.ai-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1.5px solid #3f3f46;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: pulse 2.4s infinite ease-out;
}

.pulse-ring.delay {
  animation-delay: 1.2s;
}

.orb-stage.idle .pulse-ring {
  animation: none;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(0.88); opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}

.call-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.call-header h1 {
  margin: 6px 0 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.call-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.call-reason {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 340px;
}

.call-timer {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green);
}

.wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 20px;
  margin-top: 6px;
}

.wave-bars span {
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: var(--text);
  animation: wave 1.1s ease-in-out infinite;
}

.wave-bars span:nth-child(2) { animation-delay: 0.15s; }
.wave-bars span:nth-child(3) { animation-delay: 0.3s; }
.wave-bars span:nth-child(4) { animation-delay: 0.45s; }
.wave-bars span:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { height: 5px; opacity: 0.35; }
  50% { height: 18px; opacity: 0.9; }
}

.ringing-controls {
  display: flex;
  justify-content: space-around;
  padding: 20px 16px 32px;
}

.circle-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.circle-btn:active {
  transform: scale(0.95);
}

.circle-btn small {
  font-size: 0.7rem;
  font-weight: 500;
}

.circle-btn.answer {
  background: var(--green);
}

.circle-btn.decline {
  background: var(--red);
}

.active-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-top: 16px;
}

.transcript-box {
  flex: 1;
  min-height: 190px;
  max-height: 40dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 0.88rem;
  line-height: 1.45;
}

.bubble.assistant {
  align-self: flex-start;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 4px;
}

.text-bar {
  display: flex;
  gap: 8px;
}

.dock {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pill-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.pill-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.pill-btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.ended-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-bottom: 24px;
}


/* ALL-ACCESS HUD & QUICK CHIPS */
.quick-chips {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.quick-chips::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip-btn:hover,
.chip-btn.active {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
}
.hud-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hud-stat {
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}
.hud-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}
.hud-stat strong {
  font-size: 0.88rem;
}


/* CYBER HUD DUAL-MONITOR LAYOUT (VIDEO STYLE) */
.hud-workspace-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.hud-left-col,
.hud-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.hud-right-col .chat-stream {
  flex: 1;
  min-height: 220px;
  margin-bottom: 0;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.08) inset;
}
.hud-core-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 14px;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.12);
}
.hud-radar-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}
.hud-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.35);
}
.hud-ring.outer {
  inset: 0;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.25);
  animation: hudSpin 16s linear infinite;
}
.hud-ring.mid {
  inset: 14px;
  border-color: rgba(99, 102, 241, 0.6);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: hudSpinRev 9s linear infinite;
}
.hud-ring.inner {
  inset: 28px;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(5, 8, 20, 0.7));
}
.hud-core-center {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hud-core-tag {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: #7dd3fc;
  font-weight: 700;
}
#hud-core-mode {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}
.hud-mini-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.hud-mini-pill {
  background: rgba(5, 8, 20, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 7px 4px;
  text-align: center;
}
.hud-mini-pill small {
  display: block;
  font-size: 0.64rem;
  color: #7dd3fc;
}
.hud-mini-pill strong {
  font-size: 0.8rem;
  color: #f8fafc;
}
.hud-chart-card {
  padding: 12px 14px;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.09);
}
.hud-bar-chart {
  height: 76px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 6px;
}
.hud-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.hud-bar-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #38bdf8 0%, #3b82f6 55%, rgba(99, 102, 241, 0.45) 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  transition: height 0.4s ease;
}
.hud-bar-lbl {
  font-size: 0.6rem;
  color: #7dd3fc;
  opacity: 0.85;
}
@keyframes hudSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hudSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@media (max-width: 860px) {
  .hud-workspace-grid {
    grid-template-columns: 1fr;
  }
  .chat-workspace {
    height: auto;
    min-height: calc(100dvh - 32px);
  }
}


/* EMIL KOWALSKI DESIGN ENGINEERING POLISH */
.card,
.sidebar,
.drawer .card,
.chat-stream,
.composer {
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px -12px rgba(0, 0, 0, 0.55);
}

.hud-mini-pill strong,
.hud-stat strong,
.call-timer,
#hud-chart-summary {
  font-variant-numeric: tabular-nums;
}

.btn,
.icon-btn,
.chip-btn,
.pill-btn,
.circle-btn {
  touch-action: manipulation;
  transition:
    transform 130ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.btn:active,
.icon-btn:active,
.chip-btn:active,
.pill-btn:active,
.circle-btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.chip-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.6);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .icon-btn:hover {
    border-color: rgba(56, 189, 248, 0.55);
  }
  .call-item:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
  }
}

.call-item {
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}

/* GPU-composited vertical bar chart (scaleY instead of height) */
.hud-bar-track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: rgba(56, 189, 248, 0.06);
  border-radius: 5px;
  overflow: hidden;
}
.hud-bar-fill {
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-origin: bottom;
  transition: transform 360ms var(--ease-out);
  will-change: transform;
}

/* Subtle, purposeful entrance animations (never scale(0)) */
.bubble {
  animation: bubbleEnter 190ms var(--ease-out) both;
}
@keyframes bubbleEnter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.drawer:not(.hidden) .card {
  animation: drawerEnter 260ms var(--ease-drawer) both;
}
@keyframes drawerEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sidebar:not(.hidden) {
  animation: sidebarEnter 240ms var(--ease-drawer) both;
}
@keyframes sidebarEnter {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom slim scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .hud-ring.outer,
  .hud-ring.mid,
  .bubble,
  .drawer:not(.hidden) .card,
  .sidebar:not(.hidden) {
    animation: none !important;
  }
  .btn,
  .icon-btn,
  .chip-btn,
  .hud-bar-fill,
  .call-item {
    transition: none !important;
  }
}


/* VISIBLE LIVING HUD ANIMATIONS */
.hud-ring.inner {
  animation: coreBreathe 3.2s var(--ease-in-out) infinite;
}
.hud-ring.outer::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.45) 0deg, transparent 70deg, transparent 360deg);
  mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
}
@keyframes coreBreathe {
  0%, 100% {
    transform: scale(0.96);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 34px rgba(56, 189, 248, 0.55);
  }
}

.hud-bar-fill {
  animation: barGlow 2.8s var(--ease-in-out) infinite alternate;
}
@keyframes barGlow {
  from {
    filter: brightness(0.95);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
  }
  to {
    filter: brightness(1.18);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.75);
  }
}

.hud-core-card,
.hud-chart-card,
#live-ap-bar,
.chat-stream {
  animation: panelReveal 420ms var(--ease-out) both;
}
.hud-chart-card { animation-delay: 60ms; }
#live-ap-bar { animation-delay: 100ms; }
.chat-stream { animation-delay: 140ms; }
@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.corner-status.live {
  animation: statusPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.4); }
}


/* LOGIN / SIGNUP OVERLAY */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 18, 0.85);
  backdrop-filter: blur(18px);
}
.auth-card {
  width: 100%;
  max-width: 390px;
  padding: 22px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.16);
}
