:root {
  --bg: #070b12;
  --bg-soft: #0d1320;
  --card: #111a2b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef3ff;
  --muted: #9db0c8;
  --brand: #ff7a1a;
  --brand-2: #19d7c2;
  --ok: #24d37b;
  --warn: #ffcc33;
  --danger: #ff5964;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 500px at -10% -20%, rgba(255, 122, 26, 0.22), transparent 52%),
              radial-gradient(1000px 500px at 110% 0%, rgba(25, 215, 194, 0.2), transparent 58%),
              linear-gradient(180deg, #070b12 0%, #060910 100%);
}

a {
  color: inherit;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 26px rgba(255, 122, 26, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-primary {
  border: none;
  color: #0b111d;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-muted {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  border-color: rgba(255, 89, 100, 0.5);
  color: #ffdce0;
}

.hero {
  background: linear-gradient(160deg, rgba(255, 122, 26, 0.1), rgba(25, 215, 194, 0.08) 55%, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 38px;
  line-height: 1.08;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-radius: 18px;
  padding: 16px;
}

.kpi-title {
  color: var(--muted);
  font-size: 13px;
}

.kpi-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}

.status-ok {
  color: var(--ok);
}

.status-warn {
  color: var(--warn);
}

.status-danger {
  color: var(--danger);
}

.section-title {
  margin: 22px 0 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 21px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
}

.input:focus {
  border-color: rgba(255, 122, 26, 0.7);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.help {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.tariff-list {
  display: grid;
  gap: 10px;
}

.tariff {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tariff-meta {
  display: grid;
  gap: 4px;
}

.tariff-title {
  font-weight: 700;
}

.tariff-sub {
  color: var(--muted);
  font-size: 13px;
}

.toast-wrap {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
  z-index: 50;
}

.toast {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: #101a2b;
}

.link {
  color: #7ed9ff;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 31px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 16px 12px 40px;
  }

  .nav {
    margin-bottom: 16px;
  }
}
