:root {
    --primary: #071bd8;
    --primary-dark: #07115f;
    --primary-soft: #eef3ff;
    --accent: #ff6b0a;
    --accent-dark: #d94c00;
    --health: #16a34a;
    --ink: #101828;
    --muted: #64748b;
    --soft: #f4f7fb;
    --line: #dce5f3;
}

body {
    color: var(--ink);
    background: #fbfdff;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.text-primary-brand { color: var(--primary-dark) !important; }
.btn-primary-brand {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(7, 27, 216, .16);
}
.btn-primary-brand:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-brand {
    border-color: rgba(7, 27, 216, .25);
    color: var(--primary);
    background: #fff;
}
.btn-outline-brand:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-glass {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.28);
    color: #fff;
    backdrop-filter: blur(12px);
}
.btn-glass:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.navbar-logo {
    width: 172px;
    height: 42px;
    object-fit: contain;
    display: block;
}
.brand-logo, .brand-symbol {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #0a4df5);
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 27, 216, .22);
}
img.brand-logo {
    object-fit: cover;
    background: none;
    box-shadow: none;
}

.site-navbar {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(220,229,243,.9);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
    backdrop-filter: blur(16px);
}
.navbar .nav-link { color: #344054; font-weight: 600; }
.navbar .nav-link:hover { color: var(--primary); }

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 107, 10, .34), transparent 29%),
        radial-gradient(circle at 14% 18%, rgba(22, 163, 74, .18), transparent 25%),
        linear-gradient(135deg, #07115f 0%, #071bd8 56%, #142fb8 100%);
    color: #fff;
    padding: 92px 0 70px;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -34% -8%;
    height: 45%;
    background: #fbfdff;
    transform: skewY(-4deg);
    transform-origin: left top;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: 0;
}
.hero .lead { max-width: 640px; color: rgba(255,255,255,.82); }
.hero-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 8px;
    padding: 22px;
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(3, 7, 38, .28);
}
.hero-card-header, .quick-service {
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-card-header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.hero-card-header span { color: var(--muted); font-size: .9rem; }
.hero-card-header strong { display: block; font-size: 1.15rem; }
.hero-logo {
    width: 82px;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}
.login-logo {
    width: 132px;
    height: 154px;
    object-fit: contain;
    display: inline-block;
}
.quick-service {
    padding: 14px;
    border-radius: 8px;
    background: var(--soft);
    margin-bottom: 12px;
}
.quick-service i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
}
.quick-service strong { display: block; }
.quick-service span, .hero-contact { color: var(--muted); font-size: .92rem; }
.hero-contact {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.hero-contact p { margin: 0 0 8px; }
.hero-contact a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.hero-contact a:hover { color: var(--accent); }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 610px;
    margin-top: 34px;
}
.hero-stats div {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
}
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 1.15rem; }
.hero-stats span { color: rgba(255,255,255,.72); font-size: .85rem; }
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
}
.section-title { font-weight: 900; color: var(--primary-dark); }
.services-section {
    padding: 56px 0;
    background: linear-gradient(180deg, #fff, var(--primary-soft));
}
.service-icon {
    width: 46px; height: 46px; display: inline-grid; place-items: center;
    border-radius: 8px; color: #fff; background: var(--primary);
}
.medicine-card, .service-card, .metric-card, .table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .07);
}
.medicine-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.medicine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(16, 24, 40, .11);
}
.service-card { padding: 22px; }
.service-card h5 { margin: 0; font-weight: 800; }
.medicine-card h5 { font-weight: 800; min-height: 48px; }
.medicine-card .p-3 { padding: 18px !important; }
.stock-badge { background: #fff4eb; color: #9a3412; border: 1px solid #fed7aa; }
.map-placeholder,
.location-panel {
    min-height: 280px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef3ff, #fff);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    text-align: center;
}
.medicine-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
    padding: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.medicine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.prescription-band {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 107, 10, .38), transparent 30%),
        linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 26px 60px rgba(7, 17, 95, .2);
}
.prescription-band h2 { max-width: 720px; font-weight: 900; }
.prescription-band p { max-width: 680px; color: rgba(255,255,255,.76); }
.prescription-band .section-kicker { color: #ffb077; }
.location-panel {
    min-height: 220px;
    padding: 22px;
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.location-panel i {
    color: var(--accent);
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.location-panel h5 { color: var(--primary-dark); font-weight: 800; }
.location-panel p { color: var(--muted); margin-bottom: 10px; }
.location-panel span { color: var(--primary); font-weight: 800; }
.location-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 27, 216, .25);
    box-shadow: 0 18px 42px rgba(16, 24, 40, .12);
}
.site-footer, .admin-sidebar { background: #07115f; color: #fff; }
.footer-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
}
.footer-link:hover { color: #fff; }
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 50;
    width: 54px; height: 54px; display: grid; place-items: center;
    border-radius: 50%; background: #22c55e; color: #fff; font-size: 28px;
    box-shadow: 0 12px 24px rgba(34,197,94,.35); text-decoration: none;
}

.admin-layout { min-height: 100vh; display: flex; background: #f4f8fb; }
.admin-sidebar { width: 250px; position: fixed; inset: 0 auto 0 0; padding: 18px; overflow-y: auto; }
.admin-brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 22px; }
.brand-mark {
    width: 46px;
    height: 52px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}
.admin-menu { display: grid; gap: 6px; }
.admin-menu a { color: rgba(255,255,255,.86); text-decoration: none; padding: 11px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
.admin-menu a:hover { background: rgba(255,255,255,.14); color: #fff; }
.admin-content { margin-left: 250px; width: calc(100% - 250px); padding: 24px; }
.metric-card { padding: 18px; }
.metric-icon { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--primary-dark); }

@media (max-width: 991px) {
    .hero { padding: 70px 0 52px; }
    .hero-stats { grid-template-columns: 1fr; }
    .section-heading { align-items: start; flex-direction: column; }
    .prescription-band { grid-template-columns: 1fr; padding: 24px; }
    .admin-layout { display: block; }
    .admin-sidebar { position: static; width: 100%; }
    .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-content { margin-left: 0; width: 100%; padding: 16px; }
}

@media print {
    .admin-sidebar, .no-print, .wa-float, .navbar, .site-footer { display: none !important; }
    .admin-content { margin: 0; width: 100%; padding: 0; }
}
