:root {
  --bg: #070b14;
  --bg-soft: #0d1322;
  --card: rgba(18, 26, 46, 0.72);
  --card-strong: #111a30;
  --text: #eef3ff;
  --muted: #a5b2d1;
  --primary: #7f8cff;
  --primary-2: #4de2c5;
  --danger: #ff6d84;
  --border: rgba(148, 170, 220, 0.2);
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(127,140,255,0.2), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(77,226,197,0.14), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

a { color: #b7c5ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1060px; margin: 42px auto; padding: 0 18px; }
.narrow { max-width: 470px; }

.hero {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(18,26,46,.9), rgba(12,18,32,.9));
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .38);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9eb0e8;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.8vw, 50px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
p { margin: 0 0 12px; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 850px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
}

.metric {
  border: 1px solid var(--border);
  background: rgba(17, 25, 44, 0.75);
  border-radius: 14px;
  padding: 14px;
}
.metric b { font-size: 24px; display: block; color: var(--text); }
.metric span { color: var(--muted); font-size: 13px; }

.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

.form label { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }
input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #2f3b60;
  background: #0b1224;
  color: var(--text);
  outline: none;
}
input:focus { border-color: #6f84ff; box-shadow: 0 0 0 3px rgba(127,140,255,0.18); }

.btn {
  border: 0;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #061020;
  padding: 11px 15px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #33436f; }
.btn.danger { background: linear-gradient(120deg, #ff7087, #ff9f5a); color: #fff; }

.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.list-clean { margin: 18px 0 0; padding: 0; list-style: none; }
.list-clean li { padding: 9px 0; border-bottom: 1px solid rgba(115,130,172,.22); color: #c3cde8; }

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(116, 133, 178, 0.25);
}
.item p { margin: 6px 0 0; font-size: 14px; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #c6d2f8;
  font-size: 12px;
}

.error {
  background: rgba(92, 26, 40, 0.5);
  color: #ffd1d9;
  border: 1px solid rgba(255,109,132,0.35);
  padding: 10px;
  border-radius: 10px;
}

.small { font-size: 13px; color: var(--muted); }
.brand { font-weight: 800; letter-spacing: .01em; color: #dbe6ff; text-decoration: none; }
.fade-up { animation: fadeUp .45s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .container { margin: 24px auto; }
  .hero { padding: 24px; border-radius: 18px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}
