:root {
  --teunis-blue: #0062ad;
  --teunis-blue-dark: #004a84;
  --teunis-red: #e32e26;
  --teunis-red-dark: #b8201a;
  --bg0: #071018;
  --paper: #f4f7fb;
  --ink: #102033;
  --muted: #5a6b7d;
  --line: rgba(16, 32, 51, 0.12);
  --ok: #0f7a5a;
  --warn: #b7791f;
  --danger: var(--teunis-red);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 74, 132, 0.14);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at -5% -10%, rgba(227, 46, 38, 0.10), transparent 50%),
    radial-gradient(900px 520px at 110% 0%, rgba(0, 98, 173, 0.12), transparent 48%),
    linear-gradient(180deg, #eef3f9 0%, var(--paper) 42%, #e8eef6 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.9);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.brand img {
  height: 42px;
  width: auto;
}
.brand-tag {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-left: 2px solid var(--teunis-red);
  padding-left: .65rem;
}

.nav { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.nav a, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: .18s ease;
}
.nav a:hover { background: rgba(0, 98, 173, .08); color: var(--teunis-blue-dark); }
.btn {
  background: var(--teunis-blue); color: #fff; border-color: var(--teunis-blue);
}
.btn:hover { background: var(--teunis-blue-dark); border-color: var(--teunis-blue-dark); transform: translateY(-1px); }
.btn-accent { background: var(--teunis-red); border-color: var(--teunis-red); color: #fff; }
.btn-accent:hover { background: var(--teunis-red-dark); border-color: var(--teunis-red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(0,98,173,.06); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .7rem; font-size: .82rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(7,16,24,.94) 0%, rgba(0,74,132,.88) 55%, rgba(227,46,38,.55) 140%),
    #0a1a2a;
  color: #fff;
  padding: 2.2rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  animation: rise .7s ease both;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -60px;
  width: 220px; height: 220px;
  border: 18px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-logo { height: 48px; width: auto; margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 .4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.86); line-height: 1.55; }
.hero-meta { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: rise .6s ease both;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 74, 132, .1);
  border-color: rgba(0, 98, 173, .28);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 .35rem;
  letter-spacing: 0.01em;
  color: var(--teunis-blue-dark);
}
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.card .meta { margin-top: .85rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

.panel {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.panel h2 {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-size: 1.55rem;
  color: var(--teunis-blue-dark);
  letter-spacing: .02em;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.badge-ok { background: rgba(15,122,90,.12); color: var(--ok); }
.badge-warn { background: rgba(183,121,31,.14); color: var(--warn); }
.badge-danger { background: rgba(227,46,38,.12); color: var(--danger); }
.badge-muted { background: rgba(16,32,51,.08); color: var(--muted); }
.badge-free { background: rgba(0,98,173,.12); color: var(--teunis-blue-dark); }

.alert {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600;
  animation: rise .35s ease both;
}
.alert-success { background: rgba(15,122,90,.12); color: var(--ok); }
.alert-error { background: rgba(227,46,38,.12); color: var(--danger); }
.alert-info { background: rgba(0,98,173,.1); color: var(--teunis-blue-dark); }

label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
input, select, textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(0,98,173,.3); border-color: var(--teunis-blue);
}
.form-row { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.radio-row input { width: auto; }

.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: linear-gradient(155deg, #050b12 0%, #0a1f36 45%, #001a33 70%, #3a1010 120%);
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: rise .55s ease both;
}
.login-card .login-logo { height: 44px; width: auto; margin-bottom: 1.1rem; }
.login-card h1 {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 .25rem;
  font-size: 2.1rem;
  color: var(--teunis-blue);
}
.login-card .sub { color: var(--muted); margin-bottom: 1.5rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.25rem;
}
.stat {
  background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
}
.stat strong {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 1.7rem; color: var(--teunis-blue);
}
.stat span { color: var(--muted); font-size: .85rem; }

.compat-warn {
  background: rgba(183,121,31,.1); border: 1px solid rgba(183,121,31,.25);
  border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem;
}

.product-thumb {
  width: 48px; height: 48px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.product-thumb--lg { width: 160px; height: 160px; margin-bottom: .5rem; }
.product-thumb--empty {
  display: inline-block; background: rgba(0,98,173,.06);
}

.product-card { overflow: hidden; }
.product-card__media {
  margin: -1.1rem -1.1rem 1rem;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(0,98,173,.08), rgba(227,46,38,.06));
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__placeholder {
  display: grid; place-items: center; height: 100%; min-height: 120px;
  color: var(--muted); font-size: .9rem; font-weight: 600;
}
.product-card__placeholder--lg { min-height: 280px; border-radius: 16px; border: 1px solid var(--line); }

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.4fr;
  gap: 1.5rem;
  align-items: start;
}
.product-detail__media {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff;
}
.product-detail__media img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}

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

.site-footer {
  max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 2rem;
  color: var(--muted); font-size: .85rem;
  display: flex; align-items: center; gap: .75rem;
}
.site-footer img { height: 22px; width: auto; opacity: .85; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.6rem 1.2rem; border-radius: 18px; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
}
