:root {
  --ink: #111111;
  --muted: #6f6f6f;
  --line: #dedede;
  --soft: #f6f6f6;
}

body {
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.brand-logo {
  max-height: var(--logo-height, 58px);
  width: auto;
}

.hero {
  position: relative;
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero.has-image {
  background-position: center;
  background-size: cover;
  color: #ffffff;
  min-height: 430px;
}

.level-form-hero {
  background: #111111;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  min-height: 320px;
  overflow: hidden;
  padding: 72px 0;
  position: relative;
}

.level-form-hero::before {
  background: rgba(0,0,0,.56);
  content: "";
  inset: 0;
  position: absolute;
}

.level-form-hero .container {
  position: relative;
  z-index: 1;
}

.hero.has-image::before,
.level-card.has-image::before {
  background: rgba(0,0,0,var(--overlay, .55));
  content: "";
  inset: 0;
  position: absolute;
}

.hero .container,
.level-card > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
}

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

.level-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 190px;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.level-card.has-image {
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.level-card.has-image .muted,
.hero.has-image .muted {
  color: rgba(255,255,255,.82);
}

.stat {
  color: #ffffff;
}

.level-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.icon-circle {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.form-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
}

.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.detail-section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.btn-dark {
  background: #111111;
  border-color: #111111;
}

.table thead th {
  white-space: nowrap;
}

.admin-shell {
  min-height: 100vh;
  background: #f8f8f8;
}

.admin-sidebar {
  background: #111111;
  color: #ffffff;
}

.admin-sidebar a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: #ffffff;
}

.stat {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--level-color, #111111);
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 34px;
  }

  .brand-logo {
    max-height: min(var(--logo-height, 58px), 72px);
  }
}
