:root {
  --bg: #0b0f14;
  --panel: #131920;
  --panel-border: #232b35;
  --text: #e6edf3;
  --text-dim: #8b98a5;
  --accent: #4cc9f0;
  --accent-2: #80ed99;
  --warn: #f4a261;
  --bad: #e76f51;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.hero {
  margin-bottom: 32px;
}

header.hero h1 {
  font-size: 1.9rem;
  margin: 0 0 6px;
}

header.hero p {
  color: var(--text-dim);
  margin: 0;
  max-width: 640px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.card .label {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.card .value {
  font-size: 1.5rem;
  font-weight: 600;
}

.card .sub {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 4px;
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--panel-border);
}

th { color: var(--text-dim); font-weight: 500; }

tr.us td { color: var(--accent); font-weight: 600; }
tr.market td { color: var(--accent-2); }

.chart-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(76, 201, 240, 0.12);
  color: var(--accent);
  border: 1px solid rgba(76, 201, 240, 0.3);
}

.feature-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.feature-bar-row .name {
  width: 220px;
  flex-shrink: 0;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-bar-track {
  flex: 1;
  background: var(--panel-border);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.feature-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.coming-soon {
  color: var(--text-dim);
  font-style: italic;
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius);
  padding: 18px;
}

form.feedback textarea, form.feedback input[type=text], form.admin-login input {
  width: 100%;
  background: #0e141b;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

form.feedback textarea { min-height: 110px; resize: vertical; }

button, .btn {
  background: var(--accent);
  color: #06232c;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
}

button:hover { opacity: 0.9; }

.notice {
  background: rgba(128, 237, 153, 0.12);
  border: 1px solid rgba(128, 237, 153, 0.35);
  color: var(--accent-2);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

footer {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 50px;
}

footer a { color: var(--text-dim); }

.error { color: var(--bad); margin-bottom: 10px; }

@media (prefers-color-scheme: light) {
  /* This dashboard is dark-themed by design (matches the rest of the
     uplinklab.dev family); intentionally not offering a light variant. */
}
