:root{
  --bg: #f3f6f9;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;

  --brand: #2f6f84;
  --brand-dark: #23586a;

  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; font-family:"Lato",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); background:var(--bg); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ width:min(1180px, 92%); margin:0 auto; }
.muted{ color:var(--muted); }
.req{ color:#ef4444; font-weight:900; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; border:1px solid transparent;
  font-weight:900; font-size:14px; cursor:pointer;
  transition:transform .06s ease, opacity .2s ease, background .2s ease;
}
.btn:active{ transform:translateY(1px); }

.btn--primary{ background:var(--brand); color:#fff; }
.btn--primary:hover{ background:var(--brand-dark); }
.btn--ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.35); }
.btn--ghost:hover{ background:rgba(255,255,255,.10); }
.btn--white{ background:#fff; color:#0f172a; border-color:rgba(15,23,42,.12); }
.btn--white:hover{ background:rgba(255,255,255,.92); }
.btn--block{ width:100%; }

/* ===== TOP BAR (Public) ===== */
.topbar{
  position: sticky; top:0; z-index:100;
  background: linear-gradient(180deg, #2c6c80, #245e6f);
  color:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{ width:44px; height:44px; object-fit:contain; }
.brand__title{ font-weight:900; font-size:18px; line-height:1; }
.brand__sub{ font-weight:700; opacity:.95; font-size:12px; margin-top:4px; }

.topbar__actions{ display:flex; gap:10px; align-items:center; }

/* ===== HERO ===== */
.hero{ padding:22px 0 18px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}
.hero__card{
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  padding: 22px;
}
.hero__card h1{ margin:0 0 8px; font-size:36px; font-weight:900; }
.hero__card p{ margin:0; color:var(--muted); font-weight:700; line-height:1.55; }
.hero__badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.badge{
  display:inline-flex; padding:8px 10px; border-radius:999px;
  font-weight:900; font-size:12px;
  background:#e7f0f5; color:#1d4d5f;
}

.hero__image{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(47,111,132,.20), rgba(47,111,132,.05)),
    url("assets/hero.png") center/cover no-repeat;
}

/* ===== SECTION / PANEL ===== */
.section{ padding: 18px 0 60px; }
.panel{
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  padding: 18px;
}
.panel--narrow{ width:min(520px, 92%); margin:0 auto; }

.panel__head h2{ margin:0; font-size:18px; font-weight:900; }
.panel__head p{ margin:6px 0 0; color:var(--muted); font-weight:700; }

.panel__head--row{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }

/* ===== FORM ===== */
.form{ margin-top:14px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
label{ font-weight:900; font-size:13px; }

input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background:#fff;
  font-size:14px;
  outline:none;
}
textarea{ resize:vertical; min-height:110px; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.msg{
  margin: 10px 0 0;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.hint{
  display:block;
  margin-top: 10px;
  text-align:center;
  color: var(--muted);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.foot{ padding:18px 0; }
.foot__inner{ display:flex; justify-content:space-between; font-weight:800; color:var(--muted); }

/* ===== ADMIN BAR ===== */
.adminbar{
  position: sticky; top:0; z-index:100;
  background: linear-gradient(180deg, #2c6c80, #245e6f);
  color:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.adminbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
.adminbar__title{ font-weight:900; font-size:18px; }
.adminbar__sub{ font-weight:700; opacity:.95; font-size:12px; margin-top:4px; }

.adminbar__right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.adminbar__label{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:13px; }
.adminbar__select{
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.25);
}

/* ===== TABLE ===== */
.tableWrap{ overflow:auto; border-radius: 14px; border:1px solid rgba(15,23,42,.08); margin-top:12px; }
.tbl{ width:100%; border-collapse: collapse; min-width: 980px; background:#fff; }
.tbl th, .tbl td{ padding:12px 12px; border-bottom: 1px solid rgba(15,23,42,.08); vertical-align: top; }
.tbl th{ text-align:left; background:#eef5f8; font-weight:900; font-size:12px; letter-spacing:.3px; }
.tbl td{ font-weight:700; font-size:13px; }

.pillStatus{
  display:inline-flex;
  padding:6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
}

.actionRow{ display:flex; gap:8px; flex-wrap:wrap; }
.actionRow .btn{ padding:8px 10px; border-radius: 12px; font-size:13px; }

.btn--ok{ background:#16a34a; color:#fff; }
.btn--ok:hover{ opacity:.95; }
.btn--bad{ background:#ef4444; color:#fff; }
.btn--bad:hover{ opacity:.95; }

/* ===== MODAL ===== */
.modal{ display:none; position:fixed; inset:0; z-index:99999; }
.modal[aria-hidden="false"]{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.45); }
.modal__card{
  position:relative;
  width:min(820px, 92%);
  margin: 60px auto;
  background:#fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.10);
  overflow:hidden;
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  background:#eef5f8;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.modal__title{ font-weight:900; }
.modal__close{
  border:0; background:transparent; cursor:pointer;
  font-size:18px; font-weight:900;
}
.modal__body{
  margin:0;
  padding: 16px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .grid-2{ grid-template-columns: 1fr; }
  .foot__inner{ flex-direction:column; gap:8px; align-items:center; }
}