/* 
   AfrahSoft Technologies - Modern Enterprise SaaS Stylesheet
   Cloud Platforms for Healthcare & Education
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    --brand-primary: #4f46e5;
    --brand-primary-dark: #3730a3;
    --brand-health: #0284c7;
    --brand-health-dark: #0369a1;
    --brand-edu: #059669;
    --brand-edu-dark: #047857;
    --dark-slate: #0f172a;
    --dark-surface: #0b0f19;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --bg-page: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* ─── Navbar ─── */
.afrah-nav {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.afrah-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
}

.brand-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.afrah-nav .nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.afrah-nav .nav-link:hover {
    color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
}

.afrah-nav .nav-link.active {
    color: var(--brand-primary);
    font-weight: 700;
}

/* ─── Buttons ─── */
.btn-afrah-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 9px;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-afrah-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}

.btn-afrah-outline {
    background: #ffffff;
    color: #334155 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    border-radius: 9px;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-afrah-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.btn-health-pill {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white !important;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-edu-pill {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white !important;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* ─── Hero Section ─── */
.hero-section {
    position: relative;
    padding: 80px 0 65px 0;
    background: radial-gradient(circle at 85% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 10% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
                #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.hero-heading {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #0f172a;
}

.hero-heading .gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #0284c7 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheading {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 620px;
}

/* Hero Console Card */
.hero-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.preview-bar {
    background: #f8fafc;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #10b981; }

/* ─── Interactive Product Switcher ─── */
.product-switcher-container {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 6px;
    display: inline-flex;
    gap: 8px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
}

.switcher-btn {
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switcher-btn.active.health {
    background: #ffffff;
    color: var(--brand-health-dark);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
    border: 1px solid #bae6fd;
}

.switcher-btn.active.edu {
    background: #ffffff;
    color: var(--brand-edu-dark);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
    border: 1px solid #a7f3d0;
}

/* ─── Feature Cards ─── */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 22px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.f-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.f-icon-health {
    background: #eff6ff;
    color: #0284c7;
}

.f-icon-edu {
    background: #ecfdf5;
    color: #059669;
}

.f-icon-core {
    background: #eef2ff;
    color: #4f46e5;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 14px;
}

.feature-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

/* ─── Metric & Stats Section ─── */
.stats-banner {
    background: #0f172a;
    border-radius: 18px;
    padding: 45px 30px;
    color: white;
    margin: 60px 0;
}

.stat-num {
    font-size: 40px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12.5px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ─── Interactive ROI Calculator ─── */
.calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.range-slider-styled {
    width: 100%;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

/* ─── Floating WhatsApp ─── */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    background: #25d366;
    color: white !important;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ─── Footer ─── */
.afrah-footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 70px 0 30px 0;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

.afrah-footer h5 {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afrah-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 8px;
}

.afrah-footer a:hover {
    color: #ffffff;
    transform: translateX(2px);
}


/* ─── Screenshot Display & Mockup Frames ─── */
.screenshot-mockup-frame {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.screenshot-mockup-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px -10px rgba(15, 23, 42, 0.2);
    border-color: #94a3b8;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-hover-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.screenshot-mockup-frame:hover .screenshot-hover-badge {
    background: var(--brand-primary);
    opacity: 1;
}

/* Lightbox Modal */
.image-lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.image-lightbox-modal .modal-body {
    padding: 0;
    position: relative;
    text-align: center;
}

.lightbox-big-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}


/* =====================================================================
   HOSPITAL PAGE REDESIGN + WHATSAPP AUTOMATION  (prefix: hx-)
   ===================================================================== */
html { scroll-behavior: smooth; }
.hx-anchor { scroll-margin-top: 130px; }

:root {
    --wa-green: #25d366;
    --wa-deep: #075e54;
    --wa-ink: #06201b;
    --wa-chat-bg: #ece5dd;
    --wa-out: #d9fdd3;
}

/* ─── Hero ─── */
.hx-hero { padding: 72px 0 56px; background: #fff; border-bottom: 1px solid var(--border-subtle); }
.hx-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; max-width: 15ch; }
.hx-hero .hx-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 52ch; margin: 18px 0 28px; }
.hx-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #e8fbef; color: #0b7a3b; border: 1px solid #b8efcc; }
.hx-chip.blue { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.hx-hero-visual { position: relative; padding-bottom: 36px; }
.hx-float-msg { position: absolute; left: -22px; bottom: 0; width: 270px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -8px rgba(7, 94, 84, .35); border: 1px solid #d1f5de; font-size: 13px; line-height: 1.45; }
.hx-float-msg .hx-fm-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wa-deep); margin-bottom: 4px; font-size: 12.5px; }
.hx-float-msg .hx-fm-head i { color: var(--wa-green); font-size: 16px; }
.hx-float-msg .hx-fm-time { color: #94a3b8; font-size: 11px; margin-top: 4px; text-align: right; }

/* ─── Stat strip ─── */
.hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px; margin-top: -34px; position: relative; z-index: 2; box-shadow: var(--shadow-soft); }
.hx-stat { padding: 20px 24px; border-right: 1px solid var(--border-subtle); }
.hx-stat:last-child { border-right: 0; }
.hx-stat b { display: block; font-family: 'Outfit', sans-serif; font-size: 1.7rem; line-height: 1.1; color: var(--text-primary); }
.hx-stat span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 767px) {
    .hx-stats { grid-template-columns: 1fr 1fr; }
    .hx-stat:nth-child(2) { border-right: 0; }
    .hx-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
    .hx-float-msg { position: static; width: 100%; margin-top: 14px; }
}

/* ─── Sticky section nav ─── */
.hx-subnav { position: sticky; top: 64px; z-index: 1030; background: rgba(248, 250, 252, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); margin-top: 36px; }
.hx-subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.hx-subnav a { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: #475569; text-decoration: none; padding: 7px 14px; border-radius: 8px; }
.hx-subnav a:hover { background: #eef2ff; color: var(--brand-primary); }
.hx-subnav a.wa { color: #0b7a3b; }
.hx-subnav a.wa:hover { background: #e8fbef; }
.hx-subnav a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* ─── WhatsApp automation (dark section) ─── */
.hx-wa { background: var(--wa-ink); color: #cfe7df; padding: 84px 0; position: relative; overflow: hidden; }
.hx-wa::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(37, 211, 102, .09) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hx-wa .container { position: relative; }
.hx-wa h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; max-width: 20ch; }
.hx-wa .hx-sub { max-width: 58ch; color: #9cc5ba; margin: 14px 0 34px; }
.hx-wa .hx-chip, .hx-band .hx-chip { background: rgba(37, 211, 102, .14); color: #6ff0a4; border-color: rgba(37, 211, 102, .35); }

.hx-mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.hx-mod-btn { text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: #d6ece4; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; font-family: inherit; }
.hx-mod-btn i { font-size: 18px; color: #6ff0a4; }
.hx-mod-btn small { display: block; font-weight: 500; font-size: 11.5px; color: #86b3a6; }
.hx-mod-btn:hover { background: rgba(255, 255, 255, .08); }
.hx-mod-btn[aria-selected="true"] { background: var(--wa-green); border-color: var(--wa-green); color: #04301f; }
.hx-mod-btn[aria-selected="true"] i, .hx-mod-btn[aria-selected="true"] small { color: #0a4a2e; }
.hx-mod-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 575px) { .hx-mod-grid { grid-template-columns: 1fr 1fr; } }

.hx-triggers { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 6px 20px; }
.hx-trigger { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hx-trigger:last-child { border-bottom: 0; }
.hx-trigger > i { color: #6ff0a4; font-size: 18px; margin-top: 2px; }
.hx-trigger b { color: #fff; font-weight: 700; display: block; font-size: 15px; }
.hx-trigger span { font-size: 13.5px; color: #9cc5ba; }

/* ─── Phone mockup ─── */
.hx-phone { width: 100%; max-width: 330px; margin: 0 auto; background: #0b0f19; border-radius: 38px; padding: 10px; box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.hx-phone-screen { border-radius: 30px; overflow: hidden; background: var(--wa-chat-bg); height: 640px; display: flex; flex-direction: column; }
.hx-phone-bar { background: var(--wa-deep); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.hx-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--wa-deep); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.hx-phone-bar b { display: block; font-size: 14px; line-height: 1.2; }
.hx-phone-bar small { font-size: 11px; opacity: .8; }
.hx-chat { flex: 1; padding: 14px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; background-image: radial-gradient(rgba(7, 94, 84, .06) 1px, transparent 1px); background-size: 16px 16px; }
.hx-day { align-self: center; background: #fff; color: #64748b; font-size: 11px; padding: 3px 10px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.hx-bubble { max-width: 86%; padding: 7px 10px 5px; border-radius: 10px; font-size: 13px; line-height: 1.4; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); white-space: pre-line; }
.hx-bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.hx-bubble.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.hx-bubble .hx-time { display: block; text-align: right; font-size: 10px; color: #8696a0; margin-top: 2px; }
.hx-bubble strong { font-weight: 700; }
.hx-doc { display: flex; align-items: center; gap: 10px; background: #f0f2f5; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.hx-doc i { font-size: 26px; color: #dc2626; }
.hx-doc b { display: block; font-size: 12.5px; font-weight: 600; }
.hx-doc small { color: #8696a0; font-size: 11px; }
.hx-quick { align-self: flex-start; width: 86%; display: flex; flex-direction: column; gap: 4px; }
.hx-quick span { background: #fff; color: #027eb5; text-align: center; font-weight: 600; font-size: 13px; padding: 8px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.hx-phone-foot { background: #f0f2f5; padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8696a0; }
.hx-phone-foot div { flex: 1; background: #fff; border-radius: 18px; padding: 7px 12px; }
.hx-demo-note { text-align: center; font-size: 12px; color: #6f9d90; margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
    .hx-chat > * { animation: hxPop .28s ease-out both; }
    @keyframes hxPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ─── Module panels (real screenshots) ─── */
.hx-panel { background: #fff; border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
.hx-panel-body { padding: 36px; }
.hx-panel h3 { font-size: 1.6rem; margin: 10px 0 12px; }
.hx-panel .hx-checks { list-style: none; padding: 0; margin: 0; }
.hx-panel .hx-checks li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14.5px; color: #334155; }
.hx-panel .hx-checks i { color: #16a34a; margin-top: 3px; }
.hx-panel-shot { background: #f1f5f9; padding: 28px; display: flex; align-items: center; height: 100%; }
.hx-wa-strip { display: flex; align-items: flex-start; gap: 14px; background: #f0fdf4; border-top: 1px solid #bbf7d0; padding: 16px 36px; }
.hx-wa-strip > i { font-size: 22px; color: #16a34a; margin-top: 1px; }
.hx-wa-strip b { color: #14532d; font-size: 14px; display: block; margin-bottom: 6px; }
.hx-wa-strip .hx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-wa-strip .hx-tags span { background: #fff; border: 1px solid #bbf7d0; color: #166534; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 767px) { .hx-panel-body { padding: 22px; } .hx-wa-strip { padding: 14px 22px; } .hx-panel-shot { padding: 16px; } }

/* ─── How it works ─── */
.hx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border-subtle); border-radius: 16px; background: #fff; overflow: hidden; }
.hx-step { padding: 30px 28px; border-right: 1px solid var(--border-subtle); }
.hx-step:last-child { border-right: 0; }
.hx-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-family: 'Outfit', sans-serif; }
.hx-step h4 { font-size: 1.12rem; margin-bottom: 6px; }
.hx-step p { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 767px) { .hx-steps { grid-template-columns: 1fr; } .hx-step { border-right: 0; border-bottom: 1px solid var(--border-subtle); } .hx-step:last-child { border-bottom: 0; } }

/* ─── Home page WhatsApp band ─── */
.hx-band { background: var(--wa-ink); color: #cfe7df; border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.hx-band h2 { color: #fff; max-width: 22ch; }
.hx-band .hx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.hx-band .hx-pills span { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #e3f5ee; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.hx-band .hx-pills i { color: #6ff0a4; }
.btn-wa { background: var(--wa-green); color: #04301f !important; font-weight: 700; padding: 11px 22px; border-radius: 9px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; border: 0; transition: transform .2s, box-shadow .2s; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 211, 102, .4); }
@media (max-width: 767px) { .hx-band { padding: 26px; } }


/* ─── ABHA + Ayushman section ─── */
.hx-abdm { background: #fff; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 84px 0; }
.hx-abdm h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; max-width: 24ch; }
.hx-abha-card { position: relative; border-radius: 20px; padding: 24px 24px 20px; color: #fff; background: linear-gradient(135deg, #0b5ed7 0%, #0a7f8f 100%); box-shadow: 0 24px 50px -16px rgba(10, 94, 215, .45); max-width: 440px; overflow: hidden; }
.hx-abha-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -70px; background: rgba(255, 255, 255, .1); }
.hx-abha-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; opacity: .92; position: relative; z-index: 1; }
.hx-abha-no { font-family: 'Outfit', sans-serif; font-size: 1.65rem; font-weight: 700; letter-spacing: .06em; margin: 26px 0 4px; position: relative; z-index: 1; }
.hx-abha-meta { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.hx-abha-meta small { display: block; opacity: .75; font-size: 11px; }
.hx-abha-meta b { font-size: 14px; font-weight: 600; }
.hx-qr { width: 58px; height: 58px; background: #fff; border-radius: 8px; padding: 5px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.hx-qr i { background: #0f172a; border-radius: 1px; }
.hx-qr i.o { background: transparent; }
.hx-feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.hx-feature-list li { display: flex; gap: 14px; }
.hx-feature-list .ic { width: 38px; height: 38px; border-radius: 10px; background: #e0f2fe; color: #0369a1; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.hx-feature-list b { display: block; font-size: 15px; color: var(--text-primary); }
.hx-feature-list span { font-size: 13.5px; color: var(--text-muted); }

.hx-jay { border: 1px solid var(--border-subtle); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: var(--shadow-soft); }
.hx-jay-head { padding: 22px 28px; background: #fff7ed; border-bottom: 1px solid #fed7aa; display: flex; gap: 14px; align-items: center; }
.hx-jay-head > i { font-size: 28px; color: #ea580c; }
.hx-jay-head b { font-family: 'Outfit', sans-serif; font-size: 1.15rem; display: block; color: #7c2d12; }
.hx-jay-head span { font-size: 13.5px; color: #9a3412; }
.hx-jay-steps { list-style: none; margin: 0; padding: 10px 28px 18px; position: relative; }
.hx-jay-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 16px 0; position: relative; }
.hx-jay-steps li::before { content: ""; position: absolute; left: 16px; top: 50px; bottom: -16px; width: 2px; background: #fed7aa; }
.hx-jay-steps li:last-child::before { display: none; }
.hx-jay-n { width: 34px; height: 34px; border-radius: 50%; background: #ea580c; color: #fff; font-weight: 800; font-family: 'Outfit', sans-serif; display: flex; align-items: center; justify-content: center; z-index: 1; }
.hx-jay-steps h4 { font-size: 1.05rem; margin: 4px 0 4px; }
.hx-jay-steps p { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; }
.hx-jay-wa { display: inline-flex; gap: 8px; align-items: center; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.hx-jay-wa i { color: #16a34a; }
.hx-note { font-size: 12.5px; color: var(--text-muted); margin-top: 22px; display: flex; gap: 8px; }
@media (max-width: 575px) { .hx-jay-head, .hx-jay-steps { padding-left: 18px; padding-right: 18px; } }

/* ─── Hospital ABHA Onboarding Checklist ─── */
.hx-onboard { background: #fdfbf7; border-top: 1px solid #fde68a; border-bottom: 1px solid #fed7aa; padding: 75px 0; }
.hx-req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.hx-req-card { background: #fff; border: 1px solid #fed7aa; border-radius: 16px; padding: 26px; box-shadow: 0 4px 18px rgba(180, 83, 9, 0.05); position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.hx-req-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(180, 83, 9, 0.1); border-color: #f59e0b; }
.hx-req-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.hx-req-num { width: 38px; height: 38px; border-radius: 10px; background: #fff7ed; color: #c2410c; border: 1.5px solid #fed7aa; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hx-req-title h4 { font-size: 1.15rem; margin-bottom: 4px; color: #7c2d12; }
.hx-req-title span { font-size: 12.5px; color: #9a3412; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.hx-req-body { font-size: 13.5px; color: #475569; line-height: 1.6; }
.hx-req-list { list-style: none; padding: 0; margin: 14px 0 0; }
.hx-req-list li { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #334155; }
.hx-req-list li i { color: #d97706; margin-top: 2px; flex-shrink: 0; }
.hx-req-badge { display: inline-flex; align-items: center; gap: 6px; background: #fef3c7; color: #92400e; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-top: 10px; }

.hx-gov-box { background: linear-gradient(135deg, #064e3b 0%, #047857 100%); color: #ecfdf5; border-radius: 16px; padding: 28px 32px; margin-top: 36px; box-shadow: 0 12px 30px rgba(6, 78, 59, 0.2); }
.hx-gov-box h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.hx-gov-box p { font-size: 14px; color: #a7f3d0; margin-bottom: 0; }
@media (max-width: 991px) { .hx-req-grid { grid-template-columns: 1fr; } }

/* ─── High-Fidelity Interactive UI Cards for Panels ─── */
.hx-ui-window { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 14px; box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15); overflow: hidden; font-size: 12.5px; }
.hx-ui-titlebar { background: #0f172a; color: #94a3b8; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 600; border-bottom: 1px solid #1e293b; }
.hx-ui-dots { display: flex; gap: 6px; }
.hx-ui-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hx-ui-dots span.dot-red { background: #ef4444; }
.hx-ui-dots span.dot-yel { background: #f59e0b; }
.hx-ui-dots span.dot-grn { background: #10b981; }
.hx-ui-body { padding: 18px 20px; background: #f8fafc; }
.hx-ui-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; }
.hx-ui-kpi small { display: block; font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; }
.hx-ui-kpi b { font-size: 16px; color: #0f172a; font-family: 'Outfit', sans-serif; }
.hx-ui-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 12px; }
.hx-ui-table th { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; padding: 6px 10px; }
.hx-ui-table td { background: #fff; padding: 10px 12px; font-size: 12px; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.hx-ui-table td:first-child { border-left: 1px solid #f1f5f9; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.hx-ui-table td:last-child { border-right: 1px solid #f1f5f9; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.hx-ui-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.hx-ui-pill.pill-green { background: #dcfce7; color: #15803d; }
.hx-ui-pill.pill-blue { background: #dbeafe; color: #1d4ed8; }
.hx-ui-pill.pill-amber { background: #fef3c7; color: #b45309; }
.hx-ui-pill.pill-purple { background: #f3e8ff; color: #7e22ce; }

