/* ═══════════════════════════════════════════════════════════
   Healthray-Inspired Clinical SaaS Design System
   Clinic WA Automation — AI Healthcare & Practice OS
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Brand & Clinical Palette */
    --brand: #1a73e8;
    --brand-dark: #0f58bb;
    --brand-hover: #1557b0;
    --brand-tint: #eff6ff;
    --brand-tint-2: #e0edff;
    --brand-glow: rgba(26, 115, 232, 0.24);

    /* Secondary Clinical Accents */
    --accent-cyan: #0284c7;
    --accent-emerald: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;

    /* Dark Navy (Healthray high-contrast sections) */
    --navy-950: #050d1a;
    --navy-900: #08172e;
    --navy-800: #0f2444;
    --navy-700: #193660;

    /* Base Surfaces */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-subtle: #f1f5f9;
    --bg-card: #ffffff;

    /* Typography & Ink */
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-muted: #64748b;
    --ink-light: #94a3b8;
    --ink-on-dark: #f8fafc;
    --ink-on-dark-muted: #cbd5e1;

    /* Borders & Lines */
    --line: #e2e8f0;
    --line-subtle: #f1f5f9;
    --border-color: #e2e8f0;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #1a73e8 0%, #0284c7 100%);
    --grad-primary-hover: linear-gradient(135deg, #0f58bb 0%, #0369a1 100%);
    --grad-navy: linear-gradient(168deg, #08172e 0%, #0f274a 60%, #153664 100%);
    --grad-sidebar: linear-gradient(168deg, #08172e 0%, #0f274a 60%, #153664 100%);
    --grad-hero-glow: radial-gradient(circle at 50% 30%, rgba(26, 115, 232, 0.08) 0%, rgba(2, 132, 199, 0.03) 40%, transparent 70%);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-soft: 0 2px 4px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 16px 36px -4px rgba(26, 115, 232, 0.12), 0 8px 16px -2px rgba(15, 23, 42, 0.05);
    --shadow-lift: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 10px 30px -5px rgba(26, 115, 232, 0.35);

    /* Legacy compatibility tokens for auth & admin */
    --cream-bg: #f8fafc;
    --cream-card: #ffffff;
    --cream-subtle: #f1f5f9;
    --cream-deep: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-on-dark: #f8fafc;
    --text-on-dark-muted: #cbd5e1;
    --green-700: #1a73e8;
    --green-600: #1a73e8;
    --green-500: #0284c7;
    --green-300: #38bdf8;
    --green-100: #e0f2fe;
    --green-050: #f0f9ff;
}

/* ── Reset & Base ─────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

.icon {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

.icon-inline {
    width: 1em;
    height: 1em;
    stroke-width: 2.1;
    vertical-align: -0.14em;
    margin-right: .45em;
    flex-shrink: 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Top Announcement Bar ─────────────────────────────────── */
.top-notice-bar {
    background: var(--navy-900);
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 8px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-notice-bar .pill-tag {
    background: rgba(26, 115, 232, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 8px;
    display: inline-block;
}
.top-notice-bar a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 6px;
}

/* ── Buttons (Healthray Style) ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: inherit;
    border-radius: var(--radius-md);
    padding: 11px 22px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--brand-glow);
    color: #ffffff;
}

.btn-ghost {
    background: #ffffff;
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-tint);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.84rem;
}

/* ── Sticky Header / Nav ──────────────────────────────────── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: all 0.2s ease;
}
.landing-nav.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-tint);
    border: 1px solid rgba(26, 115, 232, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
}
.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--brand-tint);
    color: var(--brand);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.92rem;
    font-weight: 600;
}
.nav-links a {
    color: var(--ink-soft);
    transition: color 0.15s ease;
    padding: 6px 0;
    position: relative;
}
.nav-links a:hover {
    color: var(--brand);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Mobile drawer */
.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--ink);
}
.nav-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}
.nav-mobile-drawer.open {
    visibility: visible;
    opacity: 1;
}
.nav-mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}
.nav-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 290px;
    bottom: 0;
    background: #ffffff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-mobile-drawer.open .nav-mobile-panel {
    transform: translateX(0);
}
.nav-mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 1.2rem;
    color: var(--ink-soft);
}
.nav-mobile-panel a {
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-subtle);
}

/* ── Hero Section (Healthray Style with ECG pulse) ────────── */
.hero {
    position: relative;
    padding: 64px 0 84px;
    background: var(--bg);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(26, 115, 232, 0.08) 0%, rgba(2, 132, 199, 0.04) 40%, transparent 70%);
    pointer-events: none;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-tint);
    border: 1px solid rgba(26, 115, 232, 0.25);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 22px;
}

/* ECG Animated Headline (Signature Healthray Feature) */
.hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.pulse-word {
    position: relative;
    display: inline-block;
    color: var(--brand);
    white-space: nowrap;
}
.ecg-path-svg {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 18px;
    overflow: visible;
}
.ecg-path {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: ecgStroke 2.6s ease-out 0.4s forwards;
}
@keyframes ecgStroke {
    to { stroke-dashoffset: 0; }
}

.hero p.lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 26px;
}

/* Hero checkmark list */
.hero-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 34px;
}
.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.94rem;
    color: var(--ink);
    font-weight: 600;
}
.hero-points .icon-check {
    width: 20px;
    height: 20px;
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    flex-wrap: wrap;
}
.hero-proof strong {
    color: var(--ink);
}
.hero-proof .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line);
}

/* ── Hero Right: Interactive Card & Simulator ─────────────── */
.hero-right-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 24px;
    position: relative;
}

/* Tab bar inside card */
.hero-card-tabs {
    display: flex;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.hero-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}
.hero-tab-btn.active {
    background: #ffffff;
    color: var(--brand);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.hero-tab-content {
    display: none;
}
.hero-tab-content.active {
    display: block;
}

/* Lead Form in Hero */
.hero-lead-form {
    padding: 8px 4px;
}
.hero-lead-form h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--ink);
}
.hero-lead-form p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.form-field-compact {
    margin-bottom: 14px;
}
.form-field-compact label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}
.form-field-compact input,
.form-field-compact select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--bg-alt);
    color: var(--ink);
    transition: all 0.15s ease;
}
.form-field-compact input:focus,
.form-field-compact select:focus {
    outline: none;
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

/* Phone Simulator View inside Hero Scene */
.hero-scene {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.phone-mock {
    width: 280px;
    height: 470px;
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 0 10px #1e293b, 0 0 0 12px #94a3b8;
    overflow: hidden;
    position: relative;
    transform: rotateY(-10deg) rotateX(4deg);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-topbar {
    background: #075e54;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.phone-topbar .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-topbar .who {
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
}
.phone-topbar .status {
    font-size: 0.68rem;
    opacity: 0.88;
    display: block;
}

.phone-chat {
    background: #efeae2;
    background-image: radial-gradient(#d1d7db 1px, transparent 1px);
    background-size: 16px 16px;
    height: calc(100% - 60px);
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
    white-space: pre-wrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: bubbleIn 0.25s ease;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.bubble.in {
    align-self: flex-start;
    background: #ffffff;
    color: #111827;
    border-top-left-radius: 2px;
}
.bubble.out {
    align-self: flex-end;
    background: #d9fdd3;
    color: #111827;
    border-top-right-radius: 2px;
}
.bubble.typing {
    align-self: flex-end;
    background: #d9fdd3;
    padding: 10px 14px;
    display: flex;
    gap: 4px;
}
.bubble.typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #54656f;
    animation: typeBounce 1s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Floating Status Badges */
.float-card {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow-lift);
    z-index: 5;
    transition: all 0.2s ease;
    pointer-events: none;
}
.float-card small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.fc-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fc-1 { top: 30px; right: -25px; }
.fc-1 .fc-icon { background: #dcfce7; color: var(--accent-emerald); }
.fc-2 { bottom: 40px; right: -20px; }
.fc-2 .fc-icon { background: #e0f2fe; color: var(--brand); }
.fc-3 { top: 190px; left: -30px; }
.fc-3 .fc-icon { background: #fee2e2; color: var(--accent-red); }

/* ── Compliance & Certifications Strip (Healthray signature) ─ */
.compliance-strip {
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 44px 0;
}
.compliance-head {
    text-align: center;
    margin-bottom: 28px;
}
.compliance-head .eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
}
.compliance-head h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
    margin-top: 4px;
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.comp-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.comp-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(26, 115, 232, 0.08);
    transform: translateY(-3px);
}
.comp-card .comp-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.comp-card strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.comp-card span {
    font-size: 0.72rem;
    color: var(--ink-muted);
}

/* ── Navy Stats Section (Healthray Dark Section) ──────────── */
.stats-navy-section {
    background: var(--navy-900);
    color: #ffffff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.stats-navy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(26, 115, 232, 0.22) 0%, transparent 60%);
    pointer-events: none;
}
.stats-navy-section .container {
    position: relative;
    z-index: 2;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-box {
    padding: 12px;
}
.stat-box b {
    display: block;
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.stat-box b.accent-blue {
    color: #60a5fa;
}
.stat-box span {
    font-size: 0.86rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* ── Shared Section Styles ────────────────────────────────── */
.section {
    padding: 84px 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-head {
    max-width: 680px;
    margin-bottom: 48px;
}
.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}
.section-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.section-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}
.section-head p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ── Clinical Modules Grid (Healthray Style) ──────────────── */
.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.module-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow-card-hover);
}
.module-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
}
.module-icon-wrap.m-blue { background: #eff6ff; color: var(--brand); }
.module-icon-wrap.m-cyan { background: #ecfeff; color: var(--accent-cyan); }
.module-icon-wrap.m-emerald { background: #ecfdf5; color: var(--accent-emerald); }
.module-icon-wrap.m-amber { background: #fffbeb; color: var(--accent-amber); }
.module-icon-wrap.m-red { background: #fef2f2; color: var(--accent-red); }
.module-icon-wrap.m-purple { background: #faf5ff; color: #9333ea; }

.module-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}
.module-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 14px;
}
.module-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
    background: var(--bg-alt);
    color: var(--ink-muted);
}

/* ── 3-Step Workflow ──────────────────────────────────────── */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}
.workflow-step {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.2s ease;
}
.workflow-step:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}
.step-number-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px var(--brand-glow);
}
.workflow-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}
.workflow-step p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ── Doctor Testimonials (Healthray Style) ─────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.t-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.t-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
}
.t-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.t-card blockquote {
    font-size: 0.94rem;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}
.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line-subtle);
    padding-top: 16px;
}
.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--brand-tint-2);
}
.t-author-info b {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
}
.t-author-info span {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.faq-item.open {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.08);
}
.faq-question {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}
.faq-icon-arrow {
    width: 20px;
    height: 20px;
    color: var(--ink-muted);
    transition: transform 0.2s ease;
}
.faq-item.open .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--brand);
}
.faq-answer {
    padding: 0 22px 20px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.65;
    display: none;
}
.faq-item.open .faq-answer {
    display: block;
}

/* ── Final Call To Action (Healthray Style) ───────────────── */
.cta-navy-band {
    background: var(--navy-900);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(8, 23, 46, 0.25);
}
.cta-navy-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(26, 115, 232, 0.3) 0%, transparent 60%);
    pointer-events: none;
}
.cta-text {
    position: relative;
    z-index: 2;
    max-width: 620px;
}
.cta-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.cta-text p {
    font-size: 1.02rem;
    color: #94a3b8;
    line-height: 1.6;
}
.cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.landing-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 64px 0 32px;
    color: var(--ink-soft);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand-col p {
    font-size: 0.9rem;
    margin-top: 14px;
    color: var(--ink-muted);
    max-width: 320px;
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}
.footer-links a {
    color: var(--ink-soft);
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--brand);
}

.footer-bottom {
    border-top: 1px solid var(--line-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--ink-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Scroll Reveal Utility ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (LOGIN & SIGNUP) — MODERN MEDICAL BLUE ALIGNED
   ═══════════════════════════════════════════════════════════ */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
}
.auth-visual {
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #ffffff;
}
.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(26, 115, 232, 0.3) 0%, transparent 70%);
}
.auth-visual-inner {
    position: relative;
    z-index: 2;
    max-width: 440px;
}
.auth-visual h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 28px 0 16px;
}
.auth-visual p {
    color: #94a3b8;
    font-size: 0.96rem;
    line-height: 1.6;
}
.auth-points {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}
.auth-points .icon {
    color: #60a5fa;
    width: 18px;
    height: 18px;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
}
.auth-card {
    width: 100%;
    max-width: 420px;
}
.auth-card .brand {
    color: var(--ink);
    margin-bottom: 30px;
}
.auth-card h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ink);
}
.auth-card .sub {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0 0 28px;
}
.form-field {
    margin-bottom: 20px;
}
.form-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .icon-left {
    position: absolute;
    left: 14px;
    color: var(--ink-muted);
    width: 17px;
    height: 17px;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--bg-alt);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-wrap input:focus {
    outline: none;
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}
.input-wrap .pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    padding: 6px;
    display: flex;
}
.input-wrap .pw-toggle:hover {
    color: var(--brand);
}

.form-error {
    display: none;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    margin-bottom: 20px;
}
.form-error.show {
    display: flex;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.auth-switch a {
    color: var(--brand);
    font-weight: 700;
}
.auth-switch a:hover {
    text-decoration: underline;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}
.back-home:hover {
    color: var(--brand);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN DASHBOARD SUPPORTING STYLES (PRESERVED)
   ═══════════════════════════════════════════════════════════ */
.admin-shell { min-height: 100vh; background: var(--bg-alt); }
.admin-topbar {
    background: var(--navy-900);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.admin-topbar .brand { color: #ffffff; }
.admin-topbar-actions { display: flex; align-items: center; gap: 14px; }
.admin-badge {
    background: rgba(26, 115, 232, 0.2);
    border: 1px solid rgba(26, 115, 232, 0.4);
    color: #60a5fa;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 100px;
    display: inline-flex; align-items: center; gap: 6px;
}
.admin-main { max-width: 1280px; margin: 0 auto; padding: 32px 28px 60px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 14px;
}
.admin-stat-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.admin-stat-icon.stat-a { background: var(--grad-primary); }
.admin-stat-icon.stat-b { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.admin-stat-icon.stat-c { background: linear-gradient(135deg, #059669, #34d399); }
.admin-stat-icon.stat-d { background: linear-gradient(135deg, #d97706, #fbbf24); }
.admin-stat-icon.stat-e { background: linear-gradient(135deg, #dc2626, #f87171); }
.admin-stat-icon.stat-f { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.admin-stat-icon .icon { width: 20px; height: 20px; }
.admin-stat-card .num { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.admin-stat-card .lbl { font-size: .76rem; color: var(--ink-muted); font-weight: 600; margin-top: 2px; }

.admin-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.admin-panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.admin-panel-head h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }
.admin-panel-head h2 .icon { color: var(--brand); }
.admin-filter-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-filter-tabs .btn-tiny.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.admin-search { position: relative; }
.admin-search input {
    padding: 9px 14px 9px 34px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font-size: .85rem;
    width: 240px;
    font-family: inherit;
    background: var(--bg-alt);
}
.admin-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-muted); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink-muted); font-weight: 700; padding: 12px 18px; background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .87rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--brand-tint); }
.user-cell { display: flex; flex-direction: column; }
.user-cell .biz { font-weight: 700; }
.user-cell .mail { color: var(--ink-muted); font-size: .78rem; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.pill-active { background: #dcfce7; color: #166534; }
.pill-suspended { background: #fee2e2; color: #991b1b; }
.pill-admin { background: #fef3c7; color: #92400e; }
.pill-user { background: var(--line); color: var(--ink-soft); }
.pill-perm { background: rgba(2, 132, 199, 0.1); color: var(--accent-cyan); font-size: .68rem; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.wa-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.wa-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.wa-dot.connected::before { background: var(--accent-emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .btn { padding: 7px 12px; font-size: .78rem; border-radius: 8px; }
.btn-danger-sm { background: #fee2e2; color: #991b1b; }
.btn-danger-sm:hover { background: #fecaca; transform: none; }
.btn-tiny { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.btn-tiny:hover { background: var(--line); transform: none; }
.admin-empty { padding: 60px 20px; text-align: center; color: var(--ink-muted); }

/* Modal & Toast (shared) */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
    display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-backdrop.show { display: flex; }
.modal-box, .modal-card {
    background: #ffffff; border-radius: 18px; padding: 26px; width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lift); max-height: 90vh; overflow-y: auto;
}
.modal-box.modal-box-lg, .modal-card.modal-box-lg { max-width: 820px; }
.modal-box h3, .modal-card h3 { margin: 0 0 18px; font-size: 1.05rem; }
.modal-box select, .modal-box input[type=number], .modal-box input[type=text],
.modal-card select, .modal-card input[type=number], .modal-card input[type=text] {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px;
    font-family: inherit; font-size: .88rem; background: var(--bg-alt);
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.toast-host { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 16px; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 10px;
    font-size: .86rem; font-weight: 600; min-width: 240px; animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.toast.success .icon { color: var(--accent-emerald); }
.toast.error .icon { color: var(--accent-red); }

/* ── Responsive Breakpoints ───────────────────────────────── */
@media (max-width: 1100px) {
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
    .comp-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { max-width: 100%; text-align: left; }
    .hero-right-card { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 980px) {
    .nav-links, .nav-cta .btn { display: none; }
    .nav-hamburger { display: block; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: 1fr; }
    .cta-navy-band { flex-direction: column; text-align: center; padding: 40px 24px; }
    .cta-actions { justify-content: center; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .module-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .phone-mock { width: 250px; height: 420px; }
    .float-card { display: none; }
}
