:root {
  --navy: #07142b;
  --blue: #102b56;
  --gold: #dfb95d;
  --ink: #18243a;
  --muted: #68768a;
  --line: #dce4ef;
  --soft: #f4f8fc;
  --white: #fff;
  --danger: #b3261e;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); line-height: 1.5; }
a { color: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.label { margin: 0 0 8px; color: #b78225; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 2rem; }
.muted, .panel-head p { color: var(--muted); margin: 8px 0 0; }

form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 800; font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
textarea { resize: vertical; }
.button {
  justify-self: start;
  min-height: 46px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.alert {
  margin: 16px 0;
  padding: 12px 14px;
  color: #123518;
  background: #def6df;
  border: 1px solid #b8dfbc;
  border-radius: 8px;
}
.alert-error { color: var(--danger); background: #ffe9e7; border-color: #ffc8c2; }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 42px);
  color: var(--white);
  background: var(--navy);
}
.admin-topbar strong { display: block; }
.admin-topbar span { color: rgba(255, 255, 255, 0.68); }
.admin-topbar nav { display: flex; align-items: center; gap: 18px; }
.admin-topbar a { color: var(--gold); text-decoration: none; font-weight: 800; }

.admin-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 70px;
  display: grid;
  gap: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stats article,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(7, 20, 43, 0.06);
}
.stats article { padding: 22px; }
.stats span { display: block; color: var(--muted); font-weight: 800; }
.stats strong { display: block; margin-top: 6px; font-size: 2.2rem; }
.panel { padding: clamp(20px, 3vw, 30px); }
.panel-head { margin-bottom: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wide { grid-column: 1 / -1; }
.service-editor { display: grid; gap: 12px; margin-bottom: 16px; }
.service-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.list { display: grid; gap: 10px; }
.list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  background: var(--soft);
  border-radius: 8px;
}
.list strong { display: block; }
.list span { color: var(--muted); font-size: 0.86rem; }
.list form { display: block; }
.list button {
  color: var(--danger);
  background: transparent;
  border: 1px solid #f0c0bc;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.approval-list {
  display: grid;
  gap: 12px;
}
.approval-list article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--soft);
  border-radius: 8px;
}
.approval-list strong,
.approval-list span {
  display: block;
}
.approval-list span,
.approval-list p,
.muted {
  color: var(--muted);
}
.approval-list p { margin: 6px 0 0; }
.actions {
  display: flex;
  align-items: start;
  gap: 8px;
}
.actions form { display: block; }
.actions button {
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}
.actions .danger {
  color: var(--danger);
  background: transparent;
  border: 1px solid #f0c0bc;
}

@media (max-width: 820px) {
  .admin-topbar,
  .two-col,
  .form-grid,
  .service-row,
  .stats {
    grid-template-columns: 1fr;
  }
  .admin-topbar { display: grid; }
  .approval-list article,
  .actions { display: grid; }
}
