:root {
  --bg: #070a12;
  --panel: #0e1424;
  --panel2: #121b31;
  --text: #eef4ff;
  --muted: #9fb0cc;
  --line: #22304d;
  --accent: #3d7cff;
  --accent2: #8b5cf6;
  --danger: #ef4444;
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top left, #162a58 0, #070a12 38%, #05070c 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  background: rgba(7, 10, 18, .75);
  z-index: 5;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, #3d7cff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(61, 124, 255, .35);
}

.logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 10px;
}

nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

nav a:hover {
  color: white;
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 42px;
  align-items: start;
  padding: 70px 6%;
}

.hero-text {
  padding-top: 60px;
}

.eyebrow {
  color: #7fb0ff;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1,
.admin-wrap h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  margin: 12px 0;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.card {
  background: linear-gradient(180deg, rgba(18, 27, 49, .92), rgba(9, 14, 27, .92));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.form-card h2,
.card h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: #c9d6ee;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #080d19;
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 124, 255, .12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

button {
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(61, 124, 255, .28);
}

button:hover {
  filter: brightness(1.1);
}

button.secondary {
  width: auto;
  background: #121b31;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.message {
  min-height: 22px;
  color: #7fb0ff;
  font-weight: 800;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 35px;
}

.admin-wrap {
  padding: 55px 6%;
}

.login-card {
  max-width: 460px;
  margin: 30px auto;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.catalog-form {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 140px;
  gap: 12px;
  align-items: end;
}

.catalog-form button {
  margin-top: 0;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(8, 13, 25, .72);
}

.report-card h3 {
  margin: 6px 0;
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111b31;
  border: 1px solid var(--line);
  color: #b9c9e5;
  font-size: 12px;
  margin: 3px;
}

.critical {
  border-color: var(--danger);
  color: #fecaca;
}

.high {
  border-color: #f97316;
  color: #fed7aa;
}

.medium {
  border-color: #eab308;
  color: #fef08a;
}

.low {
  border-color: #22c55e;
  color: #bbf7d0;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.status-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.status-row select {
  padding: 10px;
}

.status-row button {
  margin: 0;
  padding: 11px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }

  .hero-text {
    padding-top: 0;
  }

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

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

  .topbar {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .dash-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
}