:root {
  --bg: #0b1220;
  --panel: #121d31;
  --panel-soft: #182742;
  --ink: #e7eefc;
  --muted: #9db0d0;
  --accent: #23a6f0;
  --accent-2: #1f7cd5;
  --danger: #f17373;
  --ok: #52d38f;
  --border: #243758;
  --shadow: 0 24px 60px rgba(2, 12, 31, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 90% -10%, rgba(35, 166, 240, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31, 124, 213, 0.2), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

nav { background: #0d1520cc; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #1e2e44; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; gap: 8px; height: 58px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #e8eef6; font-weight: 800; font-size: 19px; margin-right: auto; letter-spacing: -.01em; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: #9fb0c9; text-decoration: none; font-size: 14px; padding: 6px 14px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-links a:hover { background: #1a2740; color: #e8eef6; }
.nav-links a.active { background: #1a2740; color: #8ab4ff; }
.nav-dl { background: #2563eb; color: #fff !important; border-radius: 9px; font-weight: 600; padding: 7px 16px !important; }
.nav-dl:hover { background: #1d4ed8 !important; color: #fff !important; }

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.card {
  background: linear-gradient(145deg, rgba(18, 29, 49, 0.98), rgba(13, 24, 42, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: #0b1528;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 11px 16px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.btn.secondary,
button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  background: rgba(18, 30, 52, 0.8);
}

.status.error {
  border-color: rgba(241, 115, 115, 0.6);
  color: #ffc8c8;
}

.status.success {
  border-color: rgba(82, 211, 143, 0.6);
  color: #bcf4d5;
}

.status.info {
  color: #d4e2ff;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 8px;
  color: var(--muted);
}

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

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
