/* ============================================
   NETRUN WEB — Stylesheet
   Dark navy + cyan, glass panels, scanlines
   ============================================ */

:root {
  --bg-deep: #050a12;
  --bg-dark: #0a0e17;
  --bg-panel: rgba(13, 17, 23, 0.85);
  --bg-panel-hover: rgba(13, 17, 23, 0.95);
  --border: rgba(0, 229, 255, 0.15);
  --border-bright: rgba(0, 229, 255, 0.4);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.6);
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --amber: #ffab00;
  --red: #ff1744;
  --green: #00e676;
  --text: #c8d0da;
  --text-dim: #6b7585;
  --text-bright: #e8edf3;
  --white: #e0e6ed;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-ui: 'Inter', -apple-system, sans-serif;
  --panel-radius: 4px;
  --glow: 0 0 20px rgba(0, 229, 255, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 229, 255, 0.3); color: var(--white); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

.hidden { display: none !important; }

/* Scanline overlay */
.scanlines {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.noise {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glitch text effect */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.8;
}
.glitch-text::before {
  color: var(--red);
  left: 2px; top: -1px;
  clip-path: inset(0 0 50% 0);
  animation: glitch-1 1.5s infinite linear alternate-reverse;
}
.glitch-text::after {
  color: var(--cyan);
  left: -2px; top: 1px;
  clip-path: inset(50% 0 0 0);
  animation: glitch-2 1.5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0%, 90% { transform: translate(0); }
  96% { transform: translate(-3px, 1px); }
  97% { transform: translate(2px, -1px); }
  98% { transform: translate(-1px, 2px); }
  99% { transform: translate(3px, -2px); }
  100% { transform: translate(0); }
}
@keyframes glitch-2 {
  0%, 90% { transform: translate(0); }
  96% { transform: translate(3px, -1px); }
  97% { transform: translate(-2px, 1px); }
  98% { transform: translate(1px, -2px); }
  99% { transform: translate(-3px, 2px); }
  100% { transform: translate(0); }
}

/* ====== BOOT SCREEN ====== */
.boot-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  z-index: 1000;
}

.boot-content { text-align: center; max-width: 600px; width: 90%; }

.boot-logo {
  font-size: 72px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 16px;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.4), 0 0 80px rgba(0, 229, 255, 0.2);
}

.boot-subtitle {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.boot-terminal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 20px;
  text-align: left;
  font-size: 12px;
  color: var(--cyan-dim);
  
  
  overflow-y: visible;
  margin-bottom: 30px;
}

#boot-output div {
  margin-bottom: 4px;
  opacity: 0;
  animation: fadeIn 0.1s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.boot-btn {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  padding: 14px 48px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.boot-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2), inset 0 0 30px rgba(0, 229, 255, 0.05);
}

/* ====== TOP BAR ====== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.top-left, .top-right { display: flex; align-items: center; gap: 12px; }
.top-center { flex: 1; max-width: 400px; margin: 0 auto; }

.logo-small { font-size: 14px; font-weight: 700; color: var(--cyan); letter-spacing: 4px; }
.separator { color: var(--border-bright); }
.game-clock { color: var(--text-dim); font-size: 12px; }

.stat { font-size: 12px; color: var(--text); }
.stat-label { color: var(--text-dim); font-size: 10px; text-transform: uppercase; margin-right: 4px; }
.player-handle { color: var(--cyan); font-weight: 500; }

/* Trace bar */
.trace-container {
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.trace-container.active { opacity: 1; }
.trace-label { font-size: 10px; color: var(--red); font-weight: 600; letter-spacing: 2px; }
.trace-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  border-radius: 3px;
  overflow: hidden;
  min-width: 200px;
}
.trace-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--red));
  border-radius: 3px;
  transition: width 0.5s linear;
}
.trace-pct { font-size: 10px; color: var(--red); min-width: 30px; text-align: right; }

/* ====== MAIN LAYOUT ====== */
.main-layout {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  height: calc(100vh - 42px - 32px);
  gap: 1px;
  background: var(--border);
}

/* Panels */
.panel {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-bottom: 1px solid var(--border);
}
.panel-section:last-child { border-bottom: none; }

.panel-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  user-select: none;
}

.panel-icon { font-size: 12px; }

.panel-body {
  flex: 1;
  overflow-y: visible;
  padding: 8px;
  font-size: 12px;
}

.no-mission { color: var(--text-dim); font-style: italic; font-size: 11px; padding: 8px; }

/* Tool items */
.tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 3px;
  cursor: default;
  transition: background 0.15s;
  color: var(--text-dim);
}
.tool-item.owned { color: var(--text); cursor: pointer; }
.tool-item.owned:hover { background: var(--cyan-glow); }
.tool-item.active { background: rgba(0, 229, 255, 0.1); color: var(--cyan); }
.tool-item .tool-icon { font-size: 14px; width: 20px; text-align: center; }
.tool-item .tool-name { flex: 1; font-size: 11px; }
.tool-item .tool-ver { font-size: 10px; color: var(--text-dim); }

/* Proxy chain */
.proxy-node {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--green);
  position: relative;
}
.proxy-node::before {
  content: '│';
  position: absolute;
  left: 16px; top: -4px;
  color: var(--border-bright);
  font-size: 10px;
}
.proxy-node:first-child::before { content: none; }
.proxy-node .proxy-flag { width: 16px; text-align: center; }
.proxy-remove {
  margin-left: auto;
  color: var(--red);
  cursor: pointer;
  opacity: 0.5;
  font-size: 10px;
}
.proxy-remove:hover { opacity: 1; }
.proxy-empty { color: var(--text-dim); font-size: 11px; font-style: italic; padding: 8px; }

/* ====== CENTER PANEL ====== */
.center-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  overflow: hidden;
}

.center-tabs {
  display: flex;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}

.center-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.center-tab:hover { color: var(--text); }
.center-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.center-view {
  display: none;
  flex: 1;
  overflow: hidden;
}
.center-view.active { display: flex; flex-direction: column; }

/* ====== TERMINAL ====== */
.terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
}

.terminal-output {
  flex: 1;
  overflow-y: visible;
  padding-bottom: 8px;
  line-height: 1.6;
  word-wrap: break-word;
}

.terminal-output .line { margin-bottom: 2px; }
.terminal-output .line-system { color: var(--cyan-dim); }
.terminal-output .line-error { color: var(--red); }
.terminal-output .line-success { color: var(--green); }
.terminal-output .line-warning { color: var(--amber); }
.terminal-output .line-info { color: var(--text-dim); }
.terminal-output .line-input { color: var(--text-bright); }
.terminal-output .line-header {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.terminal-prompt { color: var(--cyan); font-size: 12px; white-space: nowrap; }

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  caret-color: var(--cyan);
}

/* ====== WORLD MAP ====== */
.map-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#world-map {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.map-info {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}
.map-info-title { font-size: 11px; color: var(--cyan); letter-spacing: 2px; margin-bottom: 4px; }
.map-info-text { font-size: 11px; color: var(--text-dim); max-width: 300px; }

.map-node {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(0, 229, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.map-node:hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 15px var(--cyan), 0 0 30px rgba(0, 229, 255, 0.5);
}
.map-node.selected {
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 20px rgba(0, 230, 118, 0.3);
}
.map-node-label {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 1px;
}

/* ====== MARKET ====== */
.market-container, .shop-container {
  flex: 1;
  padding: 20px;
  overflow-y: visible;
}

.market-header, .shop-header {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.market-list, .shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-card, .shop-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.contract-card:hover, .shop-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-panel-hover);
  box-shadow: var(--glow);
}
.contract-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.contract-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.contract-title { font-size: 14px; font-weight: 600; color: var(--text-bright); }
.contract-pay { color: var(--green); font-weight: 600; }
.contract-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.5; }
.contract-meta { display: flex; gap: 16px; font-size: 11px; }
.contract-meta span { color: var(--text-dim); }
.contract-meta .difficulty { font-weight: 500; }
.diff-easy { color: var(--green); }
.diff-medium { color: var(--amber); }
.diff-hard { color: var(--red); }
.diff-legendary { color: #ff00ff; text-shadow: 0 0 8px rgba(255,0,255,0.6); }

/* Shop cards */
.shop-card { display: flex; align-items: center; gap: 16px; }
.shop-icon { font-size: 24px; width: 40px; text-align: center; }
.shop-info { flex: 1; }
.shop-name { font-size: 13px; font-weight: 600; color: var(--text-bright); margin-bottom: 2px; }
.shop-desc { font-size: 11px; color: var(--text-dim); }
.shop-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}
.shop-card.owned .shop-price { color: var(--green); }
.shop-card.owned { border-color: rgba(0, 230, 118, 0.2); }

/* ====== MISSION INFO (right panel) ====== */
.mission-active { padding: 4px; }
.mission-title { font-size: 13px; font-weight: 600; color: var(--cyan); margin-bottom: 8px; }
.mission-objective { font-size: 11px; color: var(--text); margin-bottom: 12px; line-height: 1.5; }
.mission-steps { list-style: none; }
.mission-steps li {
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.mission-steps li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.mission-steps li.completed { color: var(--green); text-decoration: line-through; opacity: 0.6; }
.mission-steps li.completed::before { content: '●'; color: var(--green); }
.mission-steps li.current { color: var(--text-bright); }
.mission-steps li.current::before { content: '◉'; color: var(--cyan); }

/* ====== COMMS ====== */
.comm-msg {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.comm-msg:last-child { border-bottom: none; }
.comm-sender { color: var(--cyan); font-weight: 500; }
.comm-time { color: var(--text-dim); font-size: 10px; float: right; }
.comm-text { color: var(--text); margin-top: 2px; line-height: 1.4; }

/* ====== BOTTOM BAR ====== */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 16px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.bottom-left, .bottom-right { color: var(--text-dim); }
.bottom-center { flex: 1; text-align: center; }

.conn-status { display: flex; align-items: center; gap: 6px; }
.conn-status.connected { color: var(--green); }

.notification {
  color: var(--amber);
  animation: notifPulse 2s ease-out forwards;
}
@keyframes notifPulse {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.version { color: var(--text-dim); font-size: 10px; letter-spacing: 1px; }

/* ====== MUSIC PLAYER (left panel section) ====== */
.mp-section { flex: 0 0 auto; }
.mp-section .panel-body { padding: 10px 12px; }

.mp-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-title {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.mp-progress { display: flex; align-items: center; }

.mp-bar {
  flex: 1;
  height: 3px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.mp-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.3s linear;
}

.mp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s;
  line-height: 1;
}
.mp-btn:hover { color: var(--cyan); }
.mp-btn.active { color: var(--cyan); }
.mp-play-btn { font-size: 14px; }
.mp-vol-btn { font-size: 11px; margin-left: auto; }

.mp-vol {
  width: 50px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 229, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.mp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
}
.mp-vol::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 200px 1fr 220px; }
}
@media (max-width: 800px) {
  .main-layout { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .left-panel, .right-panel { display: none; }
}

/* ── Netrun logo dropdown menu ── */
.logo-menu-wrapper { position: relative; }
.logo-small { cursor: pointer; }

.logo-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 180px;
  background: #0a0e17;
  border: 1px solid var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.15), inset 0 0 30px rgba(0, 255, 255, 0.03);
  z-index: 9999;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.logo-dropdown.open { display: block; }

.logo-dropdown .menu-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 1px;
  transition: background 0.1s, color 0.1s;
}
.logo-dropdown .menu-item:hover {
  background: var(--cyan);
  color: #0a0e17;
}
.logo-dropdown .menu-sep {
  height: 1px;
  background: rgba(0, 255, 255, 0.2);
  margin: 2px 0;
}

/* About modal */
.about-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.about-modal-overlay.open { display: flex; }

.about-modal {
  background: #0a0e17;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
  padding: 30px;
  min-width: 320px;
  max-width: 420px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.about-modal h2 {
  color: var(--cyan);
  font-size: 18px;
  letter-spacing: 4px;
  margin: 0 0 10px;
}
.about-modal p {
  color: var(--text-dim, #8892b0);
  font-size: 11px;
  line-height: 1.6;
  margin: 8px 0;
}
.about-modal .about-close {
  margin-top: 20px;
  padding: 6px 20px;
  background: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  transition: background 0.15s, color 0.15s;
}
.about-modal .about-close:hover {
  background: var(--cyan);
  color: #0a0e17;
}

/* ====== HELP TAB ====== */
.help-container {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.help-container h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.help-container .help-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.help-container h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 2px;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.help-container h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-bright);
  margin: 16px 0 8px;
}

.help-container p {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 10px;
}

.help-container code {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
}

.help-container .help-cmd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 11px;
}

.help-cmd-table th {
  text-align: left;
  color: var(--cyan);
  font-weight: 600;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-bright);
  letter-spacing: 1px;
  font-size: 10px;
}

.help-cmd-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.help-cmd-table td:first-child {
  color: var(--cyan);
  white-space: nowrap;
  font-weight: 500;
}

.help-container .help-tip {
  background: rgba(0, 229, 255, 0.05);
  border-left: 2px solid var(--cyan);
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 11px;
  color: var(--text);
}

.help-container .help-tip.warning {
  border-left-color: var(--amber);
  background: rgba(255, 171, 0, 0.05);
}

.help-container .help-tip.danger {
  border-left-color: var(--red);
  background: rgba(255, 23, 68, 0.05);
}

.help-container .help-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 16px;
}

.help-tool-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 10px 12px;
  font-size: 11px;
}

.help-tool-card .htc-name {
  color: var(--text-bright);
  font-weight: 600;
  margin-bottom: 2px;
}

.help-tool-card .htc-desc {
  color: var(--text-dim);
  font-size: 10px;
}

.help-tool-card .htc-price {
  color: var(--green);
  font-size: 10px;
  margin-top: 4px;
}

.help-container .help-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
  font-size: 11px;
}

.help-flow .flow-step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
  color: var(--text);
}

.help-flow .flow-arrow {
  color: var(--cyan);
  font-size: 13px;
}

.help-container .diff-label {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
}
