:root {
  --night: #061724;
  --night-2: #0b2434;
  --turquoise: #14c8d4;
  --turquoise-dark: #0798a7;
  --red: #e53935;
  --soft: #f3f7fa;
  --line: #d9e4ec;
  --text: #112131;
  --muted: #627386;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(120deg, #eef4f7, #ffffff);
}

.topbar {
  min-height: 92px;
  padding: 18px 36px;
  background: linear-gradient(120deg, var(--night), var(--night-2));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 2px solid var(--turquoise);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 330px;
}

.brand-mark {
  width: 128px;
  height: 52px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #c7d5df;
  line-height: 1.35;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.btn {
  border: 1px solid rgba(20, 200, 212, .65);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, .04);
}

.btn.primary,
.nav a.primary {
  background: linear-gradient(120deg, var(--turquoise), var(--turquoise-dark));
  color: #06212d;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto;
}

.hero,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(6, 23, 36, .08);
}

.hero {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: var(--turquoise-dark);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card {
  padding: 20px;
}

.card strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.module-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  color: var(--text);
}

.module-card span {
  color: var(--turquoise-dark);
  font-weight: 800;
}

.panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(6, 23, 36, .08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.search-bar input {
  flex: 1 1 360px;
}

.status {
  margin: 12px 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.code-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--night);
  color: var(--turquoise);
  font-family: Consolas, Monaco, monospace;
  font-weight: 700;
  overflow-x: auto;
}

.table-wrap {
  overflow-x: auto;
}

.product-thumb,
.image-placeholder {
  width: 58px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef5f8;
  object-fit: contain;
  color: var(--turquoise-dark);
  font-weight: 800;
}

.stock-ok {
  color: #087a5b;
  font-weight: 800;
}

.stock-empty {
  color: var(--red);
  font-weight: 800;
}

.focus-flash {
  outline: 3px solid rgba(20, 200, 212, .45);
  transition: outline-color .8s ease;
}

input,
select {
  min-height: 44px;
  border: 1px solid #b9c9d6;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #edf4f8;
  font-size: 13px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .topbar,
  .hero {
    display: block;
  }

  .brand {
    min-width: 0;
    margin-bottom: 18px;
  }

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