html,
body {
  min-height: 100%;
  background: #070b12;
  color: #dce7f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

.terminal-bg {
  background:
    linear-gradient(180deg, rgba(18, 28, 43, 0.96), rgba(7, 11, 18, 1)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 42px);
}

.panel {
  border: 1px solid rgba(125, 154, 190, 0.22);
  background: rgba(13, 21, 33, 0.92);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.panel-soft {
  border: 1px solid rgba(125, 154, 190, 0.16);
  background: rgba(18, 29, 45, 0.72);
  border-radius: 8px;
}

.nav-btn {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 6px;
  color: #8fa6c2;
}

.nav-btn.active,
.nav-btn:hover {
  color: #f4f8ff;
  background: rgba(59, 130, 246, 0.16);
}

.up {
  color: #ff4d5e;
}

.down {
  color: #18c37e;
}

.tag {
  border: 1px solid rgba(120, 147, 180, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #a9bad1;
  white-space: nowrap;
}

.risk-low { color: #18c37e; }
.risk-mid { color: #f9c74f; }
.risk-high { color: #ff4d5e; }

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: #7f95b2;
  font-weight: 500;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
}

td,
th {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(125, 154, 190, 0.12);
  vertical-align: top;
}

input,
select {
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(125, 154, 190, 0.26);
  background: rgba(5, 9, 15, 0.76);
  color: #e7eefb;
  padding: 0 10px;
  outline: none;
}

button.primary {
  height: 36px;
  border-radius: 6px;
  padding: 0 14px;
  background: #2563eb;
  color: white;
  font-weight: 600;
}

button.secondary {
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(125, 154, 190, 0.34);
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-weight: 600;
}

button.danger {
  height: 36px;
  border-radius: 6px;
  padding: 0 14px;
  background: #dc2626;
  color: white;
  font-weight: 600;
}

button.ghost {
  height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  border: 1px solid rgba(125, 154, 190, 0.26);
  color: #c7d5e8;
}

.footer-risk {
  color: #91a4bd;
  border-top: 1px solid rgba(125, 154, 190, 0.14);
  padding: 18px 0 24px;
}

.mobile-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav-btn {
  flex: 0 0 auto;
  min-width: 72px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(125, 154, 190, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: #b9c8dc;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mobile-nav-btn.active {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.42), rgba(30, 64, 175, 0.32));
  color: #ffffff;
}

.chart-wrap {
  height: 280px;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .panel,
  .panel-soft {
    border-radius: 7px;
  }

  .chart-wrap {
    height: 220px;
  }

  td,
  th {
    padding: 8px 10px;
    font-size: 13px;
  }

  input,
  select,
  button.primary,
  button.danger,
  button.ghost {
    min-height: 40px;
  }

  .tag {
    font-size: 11px;
  }

  .mobile-nav-btn {
    min-width: 78px;
    height: 44px;
  }
}
