:root {
    --navy: #0c2340;
    --navy-2: #16345c;
    --teal: #00a19a;
    --teal-dark: #007f7a;
    --sand: #f4f1ea;
    --ink: #1c2430;
    --muted: #5b6573;
    --danger: #c44536;
    --ok: #1f8a4c;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 18px 40px rgba(12, 35, 64, .08);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--sand);
}

.brand { text-decoration: none; color: inherit; }
.brand-mark {
    display: block;
    font-weight: 700;
    letter-spacing: .22em;
    font-size: .92rem;
}
.brand-sub { display: block; font-size: .8rem; opacity: .75; }

.public-body { background: radial-gradient(1200px 500px at 10% -10%, #d7f3f1 0%, var(--sand) 45%); }
.public-top { background: transparent; }
.public-top .brand-mark { color: var(--navy); letter-spacing: .28em; }
.public-main { padding: 12px 0 64px; }
.public-footer {
    color: var(--muted);
    font-size: .85rem;
    border-top: 1px solid rgba(12,35,64,.08);
}
.public-footer a { color: var(--navy); text-decoration: none; }

.hero-card, .form-card, .choice-card, .thanks-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-kicker {
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal-dark);
    font-size: .78rem;
    font-weight: 600;
}

.choice-card {
    display: block;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: transform .15s ease, border-color .15s ease;
    height: 100%;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--teal); color: inherit; }
.choice-card h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: .4rem; }
.choice-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: #e6f7f6; color: var(--teal-dark);
    display: grid; place-items: center; font-weight: 700; margin-bottom: 16px;
}

.btn-haleon {
    background: var(--teal);
    border: 0;
    color: #fff;
    font-weight: 600;
    padding: .8rem 1.2rem;
    border-radius: 12px;
}
.btn-haleon:hover { background: var(--teal-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border: 0; border-radius: 12px; font-weight: 600; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-deliver {
    background: var(--ok);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    width: 100%;
}

.form-card { padding: 28px; }
.form-label { font-weight: 600; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.clinic-fields { display: none; }
.clinic-fields.show { display: block; }

.qr-frame {
    background: #fff;
    border: 10px solid var(--sand);
    border-radius: 16px;
    padding: 12px;
    display: inline-block;
}
.qr-frame img { width: 240px; height: 240px; }

.admin-body { background: #eef1f5; }
.admin-sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: 240px;
    background: var(--navy);
    color: #fff;
    display: none;
    flex-direction: column;
    z-index: 20;
}
@media (min-width: 992px) {
    .admin-sidebar { display: flex; }
    .admin-content { margin-left: 240px; }
}
.admin-sidebar .brand-mark { color: #fff; }
.admin-sidebar .brand-sub { color: #7adcd6; }
.admin-sidebar .nav-link {
    color: rgba(255,255,255,.78);
    border-radius: 10px;
    padding: .65rem .9rem;
    margin-bottom: 4px;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover { background: var(--navy-2); color: #fff; }
.sidebar-user { padding-bottom: 24px; }
.sidebar-user a { color: #7adcd6; text-decoration: none; }

.admin-content { min-height: 100vh; }
.admin-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e8ee;
}
.admin-main { padding: 20px; }

.kpi {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    height: 100%;
}
.kpi .label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.kpi .value { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }

.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; font-weight: 600;
}
.status-ok { background: #e5f7ec; color: var(--ok); }
.status-no { background: #fdecea; color: var(--danger); }
.status-wait { background: #fff4d6; color: #8a6a12; }

.result-card { border-radius: 20px; padding: 24px; color: #fff; }
.result-card.available { background: linear-gradient(160deg, #1f8a4c, #146338); }
.result-card.delivered { background: linear-gradient(160deg, #c44536, #8e2a22); }
.result-card.invalid { background: linear-gradient(160deg, #5b6573, #2f3640); }

.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-soft { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--shadow); }

.reader-box {
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}
#reader video { width: 100% !important; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
