/* ===== JARVIS HUD — Retro-Futuristic Interface ===== */
/* Alle Custom Properties zuerst */

:root {
  --bg-void: #030610;
  --bg-panel: rgba(0, 30, 60, 0.6);
  --bg-panel-solid: #05111f;
  --bg-input: rgba(0, 20, 45, 0.8);
  --bg-bubble-bot: rgba(0, 30, 60, 0.7);
  --bg-bubble-user: rgba(0, 20, 10, 0.5);

  --cyan: #00c8ff;
  --cyan-dim: rgba(0, 200, 255, 0.15);
  --cyan-glow: rgba(0, 200, 255, 0.3);
  --cyan-glow-strong: rgba(0, 200, 255, 0.55);

  --gold: #c89a00;
  --gold-dim: rgba(200, 154, 0, 0.15);
  --gold-glow: rgba(200, 154, 0, 0.3);

  --danger: #ff4060;
  --danger-dim: rgba(255, 64, 96, 0.2);

  --text-primary: #e8f4ff;
  --text-muted: #4a6080;
  --text-bright: #ffffff;
  --text-sub: #8fb0cc;

  --border-cyan: 1px solid rgba(0, 200, 255, 0.25);
  --border-gold: 1px solid rgba(200, 154, 0, 0.4);

  --glow-box: 0 0 20px rgba(0, 200, 255, 0.3);
  --glow-box-strong: 0 0 30px rgba(0, 200, 255, 0.5), 0 0 60px rgba(0, 200, 255, 0.2);
  --glow-text: 0 0 12px rgba(0, 200, 255, 0.6);

  --font-hud: 'Orbitron', 'Courier New', monospace;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --header-h: 56px;
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== RESET ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCAN-LINE OVERLAY ===== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 200, 255, 0.012) 2px,
    rgba(0, 200, 255, 0.012) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ===== BOOT SCREEN ===== */

.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-void);
  z-index: 100;
}

.boot-logo {
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.6));
  animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.6)); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.9)); }
}

.boot-text {
  font-family: var(--font-hud);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.4em;
  text-shadow: var(--glow-text);
}

.boot-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3em;
}

.boot-bar {
  width: 200px;
  height: 2px;
  background: rgba(0, 200, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 8px;
}

.boot-bar-fill {
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: boot-fill 1.8s ease-out forwards;
}

@keyframes boot-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== APP SHELL ===== */

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* ===== HEADER ===== */

.app-header {
  height: var(--header-h);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(3, 6, 16, 0.95);
  border-bottom: var(--border-cyan);
  position: relative;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  flex-shrink: 0;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.header-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.app-header-title {
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-shadow: var(--glow-text);
  text-transform: uppercase;
  flex: 1;
}

.app-header-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== HUD CORNER MARKERS ===== */

.hud-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.5;
}

.hud-corners::before {
  top: 4px;
  right: 16px;
  border-width: 1px 1px 0 0;
}

.hud-corners::after {
  bottom: 4px;
  right: 16px;
  border-width: 0 1px 1px 0;
}

/* ===== TAB CONTENT ===== */

.tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* ===== TAB BAR ===== */

.tab-bar {
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  min-height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: stretch;
  background: rgba(3, 6, 16, 0.98);
  border-top: 1px solid rgba(0, 200, 255, 0.18);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.tab-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  position: relative;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:not(.active) {
  opacity: 0.35;
}

.tab-btn.active .tab-icon-wrap svg {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}

.tab-btn.active .tab-label {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow-strong);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--cyan); opacity: 1; }
  50% { box-shadow: 0 0 14px var(--cyan), 0 0 28px var(--cyan-glow); opacity: 0.8; }
}

.tab-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon-wrap svg {
  stroke: var(--text-sub);
  transition: stroke 0.2s, filter 0.2s;
}

.tab-label {
  font-family: var(--font-hud);
  font-size: 8px;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

/* ===== AUTH SCREEN ===== */

.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-void);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg-panel);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--glow-box);
  backdrop-filter: blur(16px);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.auth-card::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  opacity: 0.6;
}

.auth-logo-wrap {
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.7));
  margin-bottom: 8px;
}

.auth-title {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-shadow: var(--glow-text);
}

.auth-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.auth-input {
  width: 100%;
  background: var(--bg-input);
  border: var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-error {
  font-size: 12px;
  color: var(--danger);
  font-family: var(--font-mono);
  text-align: center;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  color: var(--cyan);
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.auth-btn:hover, .auth-btn:active {
  background: rgba(0, 200, 255, 0.25);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* ===== CHAT PANEL ===== */

.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  min-height: 0;
}

.chat-messages::-webkit-scrollbar {
  width: 3px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.2);
  border-radius: 2px;
}

/* ===== CHAT ROWS ===== */

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}

.chat-row-user {
  flex-direction: row-reverse;
}

/* ===== AVATARS ===== */

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.chat-row-user .chat-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(200, 154, 0, 0.5);
}

.chat-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

.chat-row-user .chat-avatar-placeholder {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(200, 154, 0, 0.5);
  color: var(--gold);
}

/* Avatar pulse animation for bot */
.chat-row-bot .chat-avatar {
  animation: avatar-pulse 4s ease-in-out infinite;
}

@keyframes avatar-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 200, 255, 0.4); }
  50% { box-shadow: 0 0 18px rgba(0, 200, 255, 0.7), 0 0 35px rgba(0, 200, 255, 0.3); }
}

/* ===== CHAT BUBBLES ===== */

.chat-bubble-wrap {
  max-width: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  position: relative;
}

/* Bot bubble: Cyan glow, glass */
.chat-bubble-bot {
  background: var(--bg-bubble-bot);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-left: 2px solid var(--cyan);
  border-radius: 2px var(--radius-md) var(--radius-md) var(--radius-md);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 200, 255, 0.08);
}

.chat-bubble-bot::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-glow), transparent);
  opacity: 0.3;
}

/* User bubble: Gold border, glass */
.chat-bubble-user {
  background: rgba(0, 15, 10, 0.5);
  border: 1px solid rgba(200, 154, 0, 0.2);
  border-right: 2px solid var(--gold);
  border-radius: var(--radius-md) 2px var(--radius-md) var(--radius-md);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(200, 154, 0, 0.06);
}

.chat-row-user .chat-bubble-wrap {
  align-items: flex-end;
}

/* ===== CHAT TEXT ===== */

.chat-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.chat-text-user {
  text-align: right;
}

.chat-text-rich h1,
.chat-text-rich h2,
.chat-text-rich h3 {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin: 12px 0 6px;
  text-transform: uppercase;
}

.chat-text-rich h1:first-child,
.chat-text-rich h2:first-child,
.chat-text-rich h3:first-child {
  margin-top: 0;
}

.chat-text-rich strong {
  color: var(--text-bright);
  font-weight: 600;
}

.chat-text-rich em {
  color: var(--text-sub);
  font-style: italic;
}

.chat-text-rich code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--cyan);
}

.chat-text-rich pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  overflow-x: auto;
  margin: 8px 0;
}

.chat-text-rich pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
}

.chat-text-rich ul, .chat-text-rich ol {
  padding-left: 18px;
  margin: 6px 0;
}

.chat-text-rich li {
  margin: 2px 0;
}

.chat-text-rich p {
  margin: 4px 0;
}

.chat-text-rich p:first-child { margin-top: 0; }
.chat-text-rich p:last-child { margin-bottom: 0; }

.chat-text-rich a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: var(--cyan-glow);
}

/* ===== TIMESTAMP ===== */

.chat-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.chat-row-user .chat-time {
  text-align: right;
}

/* ===== CHAT ACTIONS ===== */

.chat-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-bubble-wrap:hover .chat-actions {
  opacity: 1;
}

.chat-row-user .chat-actions {
  justify-content: flex-end;
}

.chat-action-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.05em;
}

.chat-action-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ===== ATTACHMENT TAG ===== */

.chat-attachment-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 200, 255, 0.15);
  margin-bottom: 6px;
  padding-bottom: 6px;
  letter-spacing: 0.05em;
}

/* ===== TYPING INDICATOR ===== */

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; box-shadow: 0 0 12px var(--cyan); }
}

/* ===== CHAT ERROR ===== */

.chat-error {
  margin: 0 12px 8px;
  padding: 8px 12px;
  background: var(--danger-dim);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--danger);
  letter-spacing: 0.05em;
}

/* ===== INPUT AREA ===== */

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(3, 6, 16, 0.95);
  border-top: var(--border-cyan);
  position: relative;
  flex-shrink: 0;
}

.chat-input-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.2), transparent);
}

.chat-input-wrap {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-wrap:focus-within {
  border-color: rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.15);
}

.chat-file-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 200, 255, 0.1);
  background: rgba(0, 200, 255, 0.05);
}

.chat-textarea {
  background: none;
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  padding: 10px 12px;
  min-height: 42px;
  max-height: 160px;
  box-sizing: border-box;
}

.chat-textarea::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== ICON BUTTONS ===== */

.chat-icon-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--bg-input);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding: 0;
}

.chat-icon-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.chat-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-send {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-send:hover {
  background: rgba(0, 200, 255, 0.25);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* ===== SVG ICONS IN BUTTONS ===== */

.chat-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

/* ===== PLACEHOLDER SCREEN ===== */

.placeholder-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 32px;
  text-align: center;
}

.placeholder-icon-wrap {
  position: relative;
  margin-bottom: 8px;
}

.placeholder-icon-wrap svg {
  stroke: var(--cyan);
  opacity: 0.6;
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.4));
}

.placeholder-ring {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 50%;
  animation: ring-rotate 8s linear infinite;
}

.placeholder-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.placeholder-title {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-shadow: var(--glow-text);
  text-transform: uppercase;
}

.placeholder-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 300px;
}

.coming-soon-badge {
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid rgba(74, 96, 128, 0.4);
  border-radius: 3px;
  padding: 4px 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== PANEL GLASS EFFECT ===== */

.glass-panel {
  background: var(--bg-panel);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--glow-box);
  position: relative;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

/* Corner markers for glass panels */
.glass-panel::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(0, 200, 255, 0.3);
  border-bottom: 1px solid rgba(0, 200, 255, 0.3);
}

/* ===== ANIMATIONS ===== */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--cyan-glow); }
  50% { box-shadow: 0 0 20px var(--cyan-glow-strong), 0 0 40px var(--cyan-glow); }
}

@keyframes flicker {
  0%, 98%, 100% { opacity: 1; }
  99% { opacity: 0.92; }
}

/* ===== SCROLLBAR (global) ===== */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.15);
  border-radius: 2px;
}

/* ===== FOCUS VISIBLE ===== */

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}

/* ===== SELECTION ===== */

::selection {
  background: var(--cyan-dim);
  color: var(--text-bright);
}
