:root {
  --navy: #0f1b2d;
  --navy-2: #142338;
  --navy-3: #1c2e46;
  --sage: #a9b8a3;
  --sage-strong: #c7d2c3;
  --text: #f7f8fb;
  --muted: #d9e0ea;
  --panel: rgba(20, 32, 50, .56);
  --panel-strong: rgba(15, 27, 45, .72);
  --border: rgba(255,255,255,.14);
  --shadow: 0 25px 70px rgba(5, 10, 18, .28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1727 0%, #122036 50%, #14253c 100%);
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: brightness(.52) saturate(.92);
  transform: scale(1.02);
  z-index: 0;
}

.hero-backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,20,33,.46) 0%, rgba(12,24,40,.64) 25%, rgba(13,24,38,.84) 100%),
    radial-gradient(circle at top left, rgba(169,184,163,.16), transparent 24%);
  z-index: 0;
}

.topbar,
.footer,
.glass,
.card,
.hero-panel,
.meta-chip {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar,
.footer {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(22,35,55,.44);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sage-strong);
}

.brand span {
  display: block;
  font-size: 30px;
  letter-spacing: -.04em;
  margin-top: 6px;
  color: #fff;
  font-weight: 800;
}

.topbar nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar nav a {
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 600;
  color: #f7fafc;
}

.topbar nav a:hover {
  background: rgba(255,255,255,.09);
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  gap: 22px;
  align-items: start;
}

.hero-panel,
.card,
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 34px;
}

.kicker {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-strong);
}

.hero-title {
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 10px 0 14px;
}

.hero-copy {
  font-size: 18px;
  line-height: 1.7;
  color: #edf2f7;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.meta-chip {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.meta-chip strong {
  display: block;
  color: var(--sage-strong);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.meta-chip span {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.side-stack,
.stack {
  display: grid;
  gap: 22px;
}

.card {
  padding: 24px;
}

.card h3 {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-strong);
  margin: 0 0 10px;
}

.card h2 {
  font-size: 30px;
  letter-spacing: -.03em;
  margin: 0 0 10px;
}

.card p {
  line-height: 1.7;
  color: #f1f4f8;
  margin: 0 0 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(169,184,163,.96), rgba(149,164,143,.86));
  color: #142338;
}

.btn-muted {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.btn-danger {
  background: rgba(163,77,77,.18);
  border-color: rgba(255,140,140,.2);
  color: #fff;
}

.form-card {
  max-width: 980px;
  margin: 18px auto;
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-weight: 600;
  color: #f5f7fa;
}

.input,
.select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  padding: 14px 15px;
  background: rgba(255,255,255,.07);
  color: #fff;
  outline: none;
  font: inherit;
}

.input::placeholder,
textarea::placeholder {
  color: #d7e0ea;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 14px center;
  background-size: auto, 18px;
  padding-right: 44px;
  min-height: 54px;
}

.select:focus,
.input:focus,
textarea:focus {
  border-color: rgba(169,184,163,.45);
  box-shadow: 0 0 0 3px rgba(169,184,163,.14);
}

select option {
  background: #1b2a3d;
  color: #ffffff;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(169,184,163,.14);
  border: 1px solid rgba(169,184,163,.22);
  margin-bottom: 16px;
}

.notice.error {
  background: rgba(180,74,74,.14);
  border-color: rgba(255,120,120,.22);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge.ok {
  background: rgba(169,184,163,.18);
  border-color: rgba(169,184,163,.24);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.stat .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage-strong);
}

.stat .value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-top: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
}

.sidebar {
  padding: 20px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  margin-bottom: 8px;
}

.sidebar a:hover {
  background: rgba(255,255,255,.11);
}

.table-shell {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.04);
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  vertical-align: top;
  text-align: left;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage-strong);
}

tr:last-child td {
  border-bottom: none;
}

.muted {
  color: #d8dfeb;
}

.small {
  font-size: 14px;
  color: #d8dfeb;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px auto 24px;
}

.person-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.person-tab {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.person-tab.active {
  background: rgba(169,184,163,.24);
  border-color: rgba(169,184,163,.35);
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.mt-0 {
  margin-top: 0;
}

@media (max-width: 1040px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .admin-layout,
  .form-grid,
  .stat-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand span {
    font-size: 24px;
  }

  .topbar,
  .footer {
    margin-left: 14px;
    margin-right: 14px;
  }

  .page-wrap {
    padding: 18px 14px 34px;
  }
}