/* Design system: тёплый тёмный премиум */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0a09;
  --bg-elevated: #1c1917;
  --bg-card: #292524;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.15);
  --positive: #22c55e;
  --negative: #ef4444;
  --link: #f59e0b;
  --link-hover: #fbbf24;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.4);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card:last-child {
  margin-bottom: 0;
}

/* Typography */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}

.label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.value {
  font-weight: 500;
  color: var(--text);
}

.value-accent {
  font-weight: 700;
  color: var(--accent);
}

.value-mono {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

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

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

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* Inputs */
.input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Rows */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.row:last-child {
  border-bottom: none;
}

/* Links */
.a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.a:hover {
  color: var(--link-hover);
}

/* Utility */
.positive { color: var(--positive); font-weight: 500; }
.negative { color: var(--negative); font-weight: 500; }
.text-muted { color: var(--text-muted); }
.loading { color: var(--text-muted); }
.error { color: var(--negative); font-size: 0.875rem; margin-top: 0.5rem; }
