/* ==========================================================================
   MEDICAL CONNECTION — DESIGN SYSTEM & DIRECTORY ENGINE STYLESHEET
   Aesthetics: Modern Medical Glassmorphism, Dynamic Gradients & Micro-interactions
   ========================================================================== */

/* ── Google Fonts Import ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ── Typography Tokens ───────────────────────────────────────── */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: var(--font-heading);

    /* ── Harmonious Medical HSL Palette ───────────────────────────── */
    --primary: 217 91% 60%;          /* Vivid Royal Azure */
    --primary-hover: 217 95% 52%;
    --primary-dark: 217 92% 46%;
    --primary-glow: 217 91% 60% / 0.16;

    --accent: 172 82% 40%;           /* Medical Emerald / Cyan Teal */
    --accent-glow: 172 82% 40% / 0.18;

    --secondary-accent: 265 83% 60%; /* Clinical Violet / Indigo Accent */

    --success: 152 76% 40%;         /* Emerald Verified */
    --warning: 38 92% 52%;          /* Amber Gold */
    --danger: 348 83% 58%;          /* Coral Red */

    /* ── Light Theme Canvas & Surface Tokens ───────────────────────── */
    --bg-base: 220 28% 97.5%;
    --bg-surface: 0 0% 100%;
    --bg-surface-glass: 0 0% 100% / 0.82;
    --bg-surface-subtle: 220 25% 96%;
    --bg-surface-elevated: 0 0% 100%;
    --border-color: 220 20% 90%;
    --border: var(--border-color);
    --border-color-hover: 217 91% 60% / 0.35;

    --text-primary: 222 47% 12%;
    --text-secondary: 217 19% 46%;
    --text-muted: 218 14% 66%;

    /* ── Radiuses & Depth ────────────────────────────────────────── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 10px -2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 45px -8px rgba(15, 23, 42, 0.12);
    --shadow-primary-glow: 0 10px 30px -5px hsl(var(--primary) / 0.35);

    --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Dark Theme Support ──────────────────────────────────────────── */
.dark-mode {
    --bg-base: 224 45% 7%;
    --bg-surface: 224 40% 11%;
    --bg-surface-glass: 224 40% 11% / 0.85;
    --bg-surface-subtle: 224 35% 15%;
    --bg-surface-elevated: 224 38% 17%;
    --border-color: 224 30% 19%;
    --border: var(--border-color);
    --border-color-hover: 217 91% 60% / 0.5;

    --text-primary: 210 40% 98%;
    --text-secondary: 215 20% 72%;
    --text-muted: 215 15% 50%;

    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 35px -5px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 50px -10px rgba(0, 0, 0, 0.7);
}

/* ── Global Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--bg-base));
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: hsl(var(--text-primary));
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Ambient Background Glows ────────────────────────────────────── */
.bg-glow {
    position: fixed;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, hsl(var(--primary) / 0.12) 0%, transparent 70%);
    top: -220px;
    left: -120px;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
}

.bg-glow-right {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsl(var(--accent) / 0.11) 0%, transparent 70%);
    top: 150px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(95px);
}

/* ── Glassmorphism Utility ───────────────────────────────────────── */
.glass-panel {
    background: hsl(var(--bg-surface-glass));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-color-hover);
}

/* ── Typography & Gradient Text ──────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-teal {
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn, .search-btn, .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    outline: none;
    gap: 8px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary, .search-btn {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(210 95% 48%));
    color: #ffffff !important;
    box-shadow: var(--shadow-primary-glow);
}

.btn-primary:hover, .search-btn:hover {
    background: linear-gradient(135deg, hsl(var(--primary-hover)), hsl(210 95% 42%));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px hsl(var(--primary) / 0.45);
}

.btn-secondary {
    background: hsl(var(--bg-surface));
    color: hsl(var(--text-primary));
    border: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: hsl(var(--bg-surface-subtle));
    border-color: hsl(var(--border-color-hover));
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--primary));
    border: 1.5px solid hsl(var(--primary) / 0.4);
}

.btn-outline:hover {
    background: hsl(var(--primary) / 0.08);
    border-color: hsl(var(--primary));
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    box-shadow: 0 6px 20px -3px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(37, 211, 102, 0.45);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ── Badges & Chips ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge--verified {
    background: hsl(var(--success) / 0.12);
    color: hsl(var(--success));
    border: 1px solid hsl(var(--success) / 0.25);
}

.badge--featured {
    background: linear-gradient(135deg, hsl(var(--warning) / 0.15), hsl(var(--primary) / 0.15));
    color: hsl(var(--warning));
    border: 1px solid hsl(var(--warning) / 0.35);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: hsl(var(--accent));
    box-shadow: 0 0 0 0 hsl(var(--accent) / 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 hsl(var(--accent) / 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px hsl(var(--accent) / 0);
    }
    100% {
        box-shadow: 0 0 0 0 hsl(var(--accent) / 0);
    }
}

/* ── Container Layout ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-padded {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: linear-gradient(180deg, transparent 0%, hsl(var(--primary) / 0.03) 100%);
    border-top: 1px solid hsl(var(--border-color));
    border-bottom: 1px solid hsl(var(--border-color));
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 2rem;
    color: hsl(var(--text-primary));
}

.section-header .section-subtitle {
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
    margin-top: 6px;
}

.view-all-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: hsl(var(--primary));
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    color: hsl(var(--primary-hover));
    transform: translateX(4px);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid hsl(var(--border-color));
    background: hsl(var(--bg-surface-glass));
    backdrop-filter: blur(20px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px -2px hsl(var(--primary) / 0.4);
    transition: var(--transition);
}

.logo:hover .logo-icon-box {
    transform: rotate(-6deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: hsl(var(--text-primary));
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.92rem;
    color: hsl(var(--text-secondary));
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--primary));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: hsl(var(--text-primary));
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
}

/* ==========================================================================
   HERO SECTION & SEARCH HUB
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 90px 24px 70px 24px;
    text-align: center;
    overflow: visible;
    z-index: 1;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    box-shadow: var(--shadow-subtle);
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: hsl(var(--text-secondary));
    max-width: 660px;
    margin: 0 auto 40px auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ── Floating Hero Search Card ───────────────────────────────────── */
.hero-search-card {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-xl);
    padding: 10px;
    box-shadow: var(--shadow-lg), 0 0 0 1px hsl(var(--border-color));
    max-width: 860px;
    margin: 0 auto 30px auto;
    position: relative;
    z-index: 50;
    transition: var(--transition);
}

.hero-search-card:focus-within {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 20px 45px -10px hsl(var(--primary) / 0.2), 0 0 0 3px hsl(var(--primary) / 0.12);
}

.hero-search-form .search-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
    gap: 8px;
}

.search-field {
    position: relative;
    padding: 8px 14px;
    text-align: left;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.search-field:focus-within {
    background: hsl(var(--bg-surface-subtle));
}

.search-field--what {
    border-right: 1px solid hsl(var(--border-color));
}

.search-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--text-muted));
    margin-bottom: 3px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
    outline: none;
}

.search-input::placeholder {
    color: hsl(var(--text-muted));
    font-weight: 400;
}

.hero-search-form .search-btn {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
    height: 100%;
}

/* ── Autocomplete Dropdown Popover ────────────────────────────────── */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    text-align: left;
}

.autocomplete-dropdown li {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: hsl(var(--text-primary));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.autocomplete-dropdown li:hover {
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
}

.autocomplete-type-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: hsl(var(--bg-surface-subtle));
    color: hsl(var(--text-muted));
    text-transform: uppercase;
}

/* ── Quick Category Pills ────────────────────────────────────────── */
.quick-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.quick-category-label {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    font-weight: 500;
    margin-right: 4px;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: hsl(var(--text-secondary));
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.quick-pill:hover {
    background: hsl(var(--bg-surface));
    border-color: hsl(var(--primary) / 0.5);
    color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -3px hsl(var(--primary) / 0.15);
}

.quick-pill .pill-icon {
    font-size: 1rem;
    line-height: 1;
}

.quick-pill--more {
    color: hsl(var(--primary));
    font-weight: 600;
    border-color: hsl(var(--primary) / 0.3);
    background: hsl(var(--primary) / 0.05);
}

/* ==========================================================================
   STATS / TRUST KPI BANNER
   ========================================================================== */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    margin: -10px auto 40px auto;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--accent) / 0.15));
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    line-height: 1.1;
}

.stat-desc {
    font-size: 0.82rem;
    color: hsl(var(--text-secondary));
    margin-top: 2px;
}

/* ==========================================================================
   SERVICE CATEGORIES GRID — REFINED GLASS CARDS
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.category-card {
    --card-ring: hsl(var(--primary) / 0);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 22px 0;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 100% at 100% 0%, hsl(var(--primary) / 0.07) 0%, transparent 58%),
        hsl(var(--bg-surface-glass));
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid hsl(var(--border-color));
    box-shadow:
        inset 0 1px 0 hsl(0 0% 100% / 0.7),
        var(--shadow-subtle);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.34s ease,
        border-color 0.34s ease;
}

.dark-mode .category-card {
    box-shadow:
        inset 0 1px 0 hsl(0 0% 100% / 0.05),
        var(--shadow-subtle);
}

/* Gradient hairline that fades in along the top edge on hover */
.category-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: left center;
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

/* Soft brand-tinted ambient bloom behind the icon */
.category-card::after {
    content: '';
    position: absolute;
    top: -58px;
    left: -34px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.16) 0%, transparent 68%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-5px);
    border-color: hsl(var(--primary) / 0.34);
    box-shadow:
        inset 0 1px 0 hsl(0 0% 100% / 0.85),
        0 20px 44px -14px hsl(var(--primary) / 0.22),
        var(--shadow-md);
    outline: none;
}

.category-card:hover::before,
.category-card:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.category-card:hover::after,
.category-card:focus-visible::after {
    opacity: 1;
}

/* ── Icon Tile ─────────────────────────────────────────────────── */
.category-icon-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 15px;
    background:
        linear-gradient(140deg, hsl(var(--primary) / 0.16) 0%, hsl(var(--accent) / 0.14) 100%);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 16px;
    border: 1px solid hsl(var(--primary) / 0.16);
    box-shadow: 0 6px 16px -8px hsl(var(--primary) / 0.45);
    transition:
        background 0.34s ease,
        color 0.34s ease,
        border-color 0.34s ease,
        box-shadow 0.34s ease,
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-icon-wrapper i,
.category-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.category-icon-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-icon-wrapper,
.category-card:focus-visible .category-icon-wrapper {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(140deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px -8px hsl(var(--primary) / 0.5);
}

/* ── Heading Row ───────────────────────────────────────────────── */
.category-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.category-name {
    font-family: var(--font-heading);
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: hsl(var(--text-primary));
    transition: color 0.28s ease;
}

.category-card:hover .category-name {
    color: hsl(var(--primary-hover));
}

.category-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: hsl(var(--primary) / 0.09);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.16);
    white-space: nowrap;
}

/* ── Body Copy (service sub-page variant) ─────────────────────── */
.category-blurb {
    font-size: 0.86rem;
    line-height: 1.55;
    color: hsl(var(--text-secondary));
    margin: 0 0 4px;
}

/* ── Service Tag Cloud ────────────────────────────────────────── */
.category-services {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    margin: 6px 0 18px;
    flex: 1;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.735rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 4px 9px;
    border-radius: 7px;
    background: hsl(var(--bg-surface-subtle));
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color));
    transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.service-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsl(var(--accent) / 0.7);
    margin-right: 6px;
    flex-shrink: 0;
}

.service-tag--more {
    background: transparent;
    border-style: dashed;
    color: hsl(var(--primary));
    font-weight: 700;
    cursor: default;
}

.service-tag--more::before {
    display: none;
}

.category-card:hover .service-tag {
    border-color: hsl(var(--primary) / 0.22);
    color: hsl(var(--text-primary));
}

/* ── Footer CTA Bar ───────────────────────────────────────────── */
.category-footer-link {
    margin-top: auto;
    margin-inline: -22px;
    padding: 13px 22px;
    border-top: 1px solid hsl(var(--border-color));
    background: hsl(var(--primary) / 0.035);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.category-footer-link i,
.category-footer-link svg {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-footer-link,
.category-card:focus-visible .category-footer-link {
    background: hsl(var(--primary) / 0.09);
    border-color: hsl(var(--primary) / 0.22);
    color: hsl(var(--primary-hover));
}

.category-card:hover .category-footer-link i,
.category-card:focus-visible .category-footer-link i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   POPULAR CITIES GRID
   ========================================================================== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.city-card {
    padding: 22px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.city-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-md);
}

.city-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.city-card:hover .city-icon {
    background: hsl(var(--primary));
    color: #ffffff;
}

.city-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.city-count {
    font-size: 0.82rem;
    color: hsl(var(--text-muted));
    margin-top: 2px;
}

/* ==========================================================================
   WHY CHOOSE US / VALUE PROPOSITIONS
   ========================================================================== */
.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.value-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    text-align: left;
}

.value-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, hsl(var(--accent) / 0.15), hsl(var(--primary) / 0.15));
    color: hsl(var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.value-card p {
    color: hsl(var(--text-secondary));
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   CALL TO ACTION BANNER (FOR HEALTHCARE PROVIDERS)
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, hsl(222 47% 12%), hsl(224 40% 18%));
    border: 1px solid hsl(222 40% 25%);
    border-radius: var(--radius-xl);
    padding: 50px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 60px auto 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, hsl(var(--primary) / 0.25) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner-content h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.cta-banner-content p {
    color: hsl(215 20% 75%);
    font-size: 1.05rem;
    max-width: 600px;
}

.cta-banner-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   SEARCH RESULTS & DIRECTORY LISTINGS PAGE
   ========================================================================== */
.search-page-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 24px;
    align-items: flex-start;
}

.search-sidebar {
    padding: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid hsl(var(--border-color));
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-heading {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: hsl(var(--text-primary));
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    margin-bottom: 6px;
}

.filter-group select, .filter-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid hsl(var(--border-color));
    background: hsl(var(--bg-surface));
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.filter-group select:focus, .filter-group input[type="text"]:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.filter-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

.sidebar-category-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 6px 0;
}

.sidebar-service-link, .sidebar-city-link {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 4px;
}

.sidebar-service-link:hover, .sidebar-city-link:hover, .sidebar-service-link.active {
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
    font-weight: 600;
}

/* ── Search Main Results Column ──────────────────────────────────── */
.search-header {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-bottom: 12px;
}

.breadcrumb a {
    color: hsl(var(--text-secondary));
}

.breadcrumb a:hover {
    color: hsl(var(--primary));
}

.search-h1 {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.results-count {
    color: hsl(var(--text-secondary));
    font-size: 0.92rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.result-card--featured {
    border-color: hsl(var(--warning) / 0.4);
    box-shadow: 0 8px 30px -4px hsl(var(--warning) / 0.1);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.result-card-inner {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 24px;
    align-items: center;
}

.result-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: hsl(var(--bg-surface-subtle));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(var(--border-color));
}

.result-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-logo-placeholder {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--primary));
}

.result-type {
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--accent));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-name {
    font-size: 1.3rem;
    margin: 2px 0 4px 0;
}

.result-name a:hover {
    color: hsl(var(--primary));
}

.result-branch {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

.result-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-top: 6px;
}

.result-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.service-chip {
    font-size: 0.78rem;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: hsl(var(--bg-surface-subtle));
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color));
}

.service-chip em {
    font-style: normal;
    color: hsl(var(--success));
    font-weight: 600;
    margin-left: 4px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

/* ==========================================================================
   PROVIDER DETAIL PROFILE PAGE STYLING
   ========================================================================== */
.provider-page {
    padding: 24px 0 80px 0;
}

/* ── Hero Profile Card with Cover Banner ─────────────────────────── */
.provider-hero-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.provider-cover {
    height: 180px;
    background: linear-gradient(135deg, hsl(217 91% 32%), hsl(222 47% 14%), hsl(172 82% 28%));
    position: relative;
    padding: 24px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.cover-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 40%, hsl(var(--primary) / 0.3) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, hsl(var(--accent) / 0.25) 0%, transparent 60%);
    opacity: 0.8;
}

.cover-badge-group {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.facility-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Profile Identity Bar (Overlapping) ─────────────────────────── */
.provider-profile-bar {
    padding: 0 36px 28px 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.provider-avatar-box {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: hsl(var(--bg-surface));
    border: 4px solid hsl(var(--bg-surface));
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.provider-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-avatar-fallback {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: hsl(var(--success));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid hsl(var(--bg-surface));
}

.avatar-verified-badge svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.provider-profile-info {
    padding-top: 14px;
}

.provider-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.provider-type-tag {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.city-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: hsl(var(--text-muted));
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.provider-name {
    font-size: 2.1rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    line-height: 1.2;
    margin-bottom: 2px;
}

.provider-parent-org {
    font-size: 1rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
    margin-bottom: 12px;
}

.provider-quick-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.provider-address-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: hsl(var(--text-secondary));
}

.meta-icon {
    width: 15px;
    height: 15px;
    color: hsl(var(--primary));
}

.provider-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: hsl(var(--warning) / 0.1);
    border: 1px solid hsl(var(--warning) / 0.25);
}

.stars-gold {
    color: hsl(var(--warning));
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.review-count {
    color: hsl(var(--text-muted));
    font-size: 0.8rem;
}

.provider-cta-deck {
    padding-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── In-Page Sub Navigation Tabs ─────────────────────────────────── */
.provider-nav-tabs {
    display: flex;
    gap: 8px;
    padding: 0 36px 14px 36px;
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-tab-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    transition: var(--transition);
}

.nav-tab-link:hover, .nav-tab-link.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* ── 2-Column Layout ─────────────────────────────────────────────── */
.provider-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    align-items: flex-start;
}

.provider-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.provider-section {
    padding: 32px;
    border-radius: var(--radius-xl);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.section-title-icon {
    width: 20px;
    height: 20px;
    color: hsl(var(--primary));
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Facility Features Grid ──────────────────────────────────────── */
.facility-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    transition: var(--transition);
}

.feature-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, hsl(var(--primary) / 0.12), hsl(var(--accent) / 0.12));
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.84rem;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

.provider-bio-box {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border-color));
}

.bio-subtitle {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.provider-description {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── Services & Transparent Pricing List ─────────────────────────── */
.services-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-row-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    transition: var(--transition);
    gap: 16px;
}

.service-row-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-subtle);
    transform: translateX(4px);
}

.service-row-info {
    flex-grow: 1;
}

.service-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.service-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.service-link:hover {
    color: hsl(var(--primary));
}

.status-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.status-pill--warn {
    background: hsl(var(--warning) / 0.12);
    color: hsl(var(--warning));
}

.status-pill--success {
    background: hsl(var(--success) / 0.12);
    color: hsl(var(--success));
}

.service-note {
    font-size: 0.82rem;
    color: hsl(var(--text-muted));
    margin-top: 4px;
}

.service-row-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.service-turnaround {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: hsl(var(--text-secondary));
    background: hsl(var(--bg-surface-subtle));
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.service-price-tag .price-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: hsl(var(--text-primary));
}

.price-val--ask {
    font-size: 0.85rem !important;
    color: hsl(var(--text-muted));
    font-weight: 600 !important;
}

/* ── Doctor Cards Grid ───────────────────────────────────────────── */
.doctors-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-profile-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    align-items: center;
    transition: var(--transition);
}

.doctor-profile-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

.doctor-photo-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface-subtle));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-avatar-fallback {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: hsl(var(--primary));
}

.doc-badge-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: hsl(var(--success));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-badge-verified svg {
    width: 11px;
    height: 11px;
    stroke-width: 3;
}

.doctor-name {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.doctor-name a:hover {
    color: hsl(var(--primary));
}

.doctor-specialty-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: hsl(var(--accent) / 0.12);
    color: hsl(var(--accent));
    text-transform: uppercase;
    margin-bottom: 6px;
}

.doctor-qualification {
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

.doctor-experience-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    margin-top: 4px;
}

.schedule-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    margin-top: 8px;
    flex-wrap: wrap;
}

.schedule-chips {
    display: flex;
    gap: 4px;
}

.day-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
}

.doctor-action-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 150px;
}

.doc-fee-box {
    text-align: right;
    margin-bottom: 4px;
}

.fee-lbl {
    display: block;
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
}

.fee-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: hsl(var(--text-primary));
}

/* ── Reviews & Testimonials ──────────────────────────────────────── */
.reviews-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.overall-rating-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
}

.big-score {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: hsl(var(--text-primary));
    line-height: 1;
}

.rating-sub {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.patient-review-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
}

.review-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.15));
    color: hsl(var(--primary));
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.review-date-str {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
}

.review-headline {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: hsl(var(--text-primary));
}

.review-text-content {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

.add-review-wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid hsl(var(--border-color));
}

.write-review-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.star-picker-modern {
    display: inline-flex;
    gap: 4px;
}

.star-picker-modern .star-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: hsl(var(--border-color));
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.star-picker-modern .star-btn:hover,
.star-picker-modern .star-btn.active {
    color: hsl(var(--warning));
    transform: scale(1.15);
}

.login-to-review-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: hsl(var(--primary) / 0.06);
    border: 1px dashed hsl(var(--primary) / 0.3);
    font-size: 0.92rem;
}

.login-prompt-link {
    color: hsl(var(--primary));
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.provider-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.widget-heading {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.widget-subtitle {
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 16px;
    line-height: 1.5;
}

.sidebar-booking-form .form-group {
    margin-bottom: 14px;
}

.sidebar-booking-form .form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    margin-bottom: 5px;
}

.open-24h-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: hsl(var(--success) / 0.12);
    color: hsl(var(--success));
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.hours-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
}

.hours-item--today {
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
    font-weight: 600;
}

.today-marker {
    font-size: 0.7rem;
    font-style: normal;
    background: hsl(var(--primary));
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.sidebar-address-text {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
    margin-bottom: 14px;
}

.map-preview-box {
    margin-bottom: 16px;
}

.map-fake-preview {
    height: 100px;
    background: linear-gradient(135deg, hsl(210 20% 93%), hsl(210 20% 88%));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(var(--border-color));
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid hsl(var(--border-color));
}

.contact-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.contact-lbl {
    color: hsl(var(--text-muted));
}

.contact-val {
    font-weight: 600;
    color: hsl(var(--primary));
}

.other-branches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-network-card {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    transition: var(--transition);
}

.branch-network-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateX(4px);
}

.branch-card-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: hsl(var(--text-primary));
}

.branch-card-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
    margin-top: 2px;
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.modal-inner {
    width: 100%;
    max-width: 520px;
    padding: 36px;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 10;
    background: hsl(var(--bg-surface));
    box-shadow: var(--shadow-lg), 0 0 50px -10px hsl(var(--primary) / 0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: hsl(var(--bg-surface-subtle));
    border: 1px solid hsl(var(--border-color));
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: hsl(var(--text-secondary));
    transition: var(--transition);
}

.modal-close:hover {
    background: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.footer-main {
    background-color: hsl(var(--bg-surface));
    border-top: 1px solid hsl(var(--border-color));
    padding: 70px 5% 30px 5%;
    margin-top: 90px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.footer-brand p {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    max-width: 340px;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: hsl(var(--text-primary));
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: hsl(var(--primary));
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-muted));
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 1024px) {
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .value-props-grid {
        grid-template-columns: 1fr;
    }
    .search-page-layout {
        grid-template-columns: 1fr;
    }
    .search-sidebar {
        position: static;
    }
    .provider-layout, .doctor-layout {
        grid-template-columns: 1fr;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    .cta-banner-content p {
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   DOCTOR DETAIL PROFILE PAGE
   ========================================================================== */
.doctor-detail-page {
    padding-top: 24px;
    padding-bottom: 80px;
}

.doctor-hero-wrapper {
    position: relative;
    margin-bottom: 28px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.doctor-hero-banner {
    height: 130px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.25) 0%, hsl(var(--accent) / 0.18) 50%, hsl(var(--bg-surface-elevated)) 100%);
    position: relative;
}

.doctor-hero-card {
    margin-top: -55px;
    position: relative;
    z-index: 10;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: hsl(var(--bg-surface) / 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border) / 0.6);
    box-shadow: var(--shadow-lg), 0 20px 40px -15px hsl(var(--primary) / 0.12);
}

.doctor-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.doctor-avatar-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.doctor-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 4px solid hsl(var(--bg-surface));
    box-shadow: 0 12px 28px -6px hsl(var(--primary) / 0.35);
}

.doctor-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    border: 4px solid hsl(var(--bg-surface));
    box-shadow: 0 12px 28px -6px hsl(var(--primary) / 0.35);
}

.doctor-status-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--success) / 0.3);
    color: hsl(var(--success));
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.doctor-hero-main {
    min-width: 0;
}

.doctor-title-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.doctor-main-name {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.doctor-specialty-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-quals-line {
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 10px;
    font-weight: 500;
}

.doctor-affiliation-line {
    font-size: 0.92rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.doctor-affiliation-line a {
    color: hsl(var(--text-secondary));
    text-decoration: underline;
    text-decoration-color: hsl(var(--primary) / 0.4);
    font-weight: 600;
}

.doctor-hero-side-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 210px;
    text-align: right;
}

.doctor-fee-display {
    background: hsl(var(--primary) / 0.08);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    text-align: right;
}

.doctor-fee-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.doctor-fee-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: hsl(var(--primary));
}

.doctor-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border) / 0.6);
}

.stat-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: hsl(var(--bg-surface-elevated) / 0.6);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border) / 0.4);
}

.stat-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-metric-val {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.2;
}

.stat-metric-desc {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
    font-weight: 500;
}

/* Doctor Nav Tabs */
.doctor-nav-bar {
    position: sticky;
    top: 72px;
    z-index: 100;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: hsl(var(--bg-surface) / 0.88);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border) / 0.6);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: var(--shadow-sm);
}

.doctor-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.doctor-nav-tab:hover,
.doctor-nav-tab.active {
    background: hsl(var(--primary));
    color: #fff;
    box-shadow: 0 4px 12px -2px hsl(var(--primary) / 0.4);
}

/* Layout Grid */
.doctor-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.doctor-main-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.doctor-section-box {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border) / 0.6);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 130px;
}

.section-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.section-box-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.doctor-bio-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: hsl(var(--text-secondary));
}

.doctor-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.highlight-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: hsl(var(--bg-surface-elevated) / 0.6);
    border: 1px solid hsl(var(--border) / 0.5);
    text-align: center;
}

.highlight-card i {
    width: 28px;
    height: 28px;
    color: hsl(var(--primary));
    margin-bottom: 8px;
}

.highlight-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    margin: 0;
}

/* Conditions & Treatments Grid */
.conditions-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.condition-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border) / 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
    transition: all 0.2s ease;
}

.condition-pill:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px -2px hsl(var(--primary) / 0.15);
}

.condition-pill i {
    width: 14px;
    height: 14px;
    color: hsl(var(--primary));
}

/* Practice & OPD Schedule Cards */
.opd-location-card {
    background: hsl(var(--bg-surface-elevated) / 0.6);
    border: 1px solid hsl(var(--border) / 0.7);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.opd-location-card:last-child {
    margin-bottom: 0;
}

.opd-loc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.opd-loc-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 4px;
}

.opd-loc-title a {
    color: hsl(var(--text-primary));
    transition: color 0.2s;
}

.opd-loc-title a:hover {
    color: hsl(var(--primary));
}

.opd-loc-address {
    font-size: 0.88rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 6px;
}

.opd-timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.opd-day-slot-card {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.opd-day-slot-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 4px 12px -3px hsl(var(--primary) / 0.15);
}

.opd-day-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opd-time-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.opd-book-slot-btn {
    margin-top: 6px;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.2);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.opd-book-slot-btn:hover {
    background: hsl(var(--primary));
    color: #fff;
}

/* Credentials / Timeline */
.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.credential-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.credential-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: hsl(var(--accent) / 0.12);
    color: hsl(var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.credential-details h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.credential-details p {
    font-size: 0.88rem;
    color: hsl(var(--text-muted));
    margin: 0;
}

/* Doctor Sidebar Sticky */
.doctor-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-booking-card {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--primary) / 0.3);
    box-shadow: var(--shadow-md), 0 10px 25px -10px hsl(var(--primary) / 0.2);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.sidebar-booking-card .widget-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-booking-card .widget-subtitle {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-bottom: 18px;
}

.doctor-guarantee-list {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid hsl(var(--border) / 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guarantee-point {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: hsl(var(--text-secondary));
}

.guarantee-point i {
    width: 14px;
    height: 14px;
    color: hsl(var(--success));
}

.emergency-disclaimer-card {
    background: hsl(var(--danger) / 0.06);
    border: 1px solid hsl(var(--danger) / 0.2);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}

.emergency-disclaimer-card h4 {
    color: hsl(var(--danger));
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.emergency-disclaimer-card p {
    font-size: 0.82rem;
    color: hsl(var(--text-muted));
    margin: 0;
    line-height: 1.5;
}

/* FAQ Cards */
.doctor-faqs-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doctor-faq-item {
    background: hsl(var(--bg-surface-elevated) / 0.5);
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.doctor-faq-item h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: hsl(var(--text-primary));
}

.doctor-faq-item p {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: hsl(var(--bg-surface));
        border-bottom: 1px solid hsl(var(--border-color));
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-auth {
        display: none;
    }
    .nav-auth.nav-open {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    .hero-search-form .search-row {
        grid-template-columns: 1fr;
    }
    .search-field--what {
        border-right: none;
        border-bottom: 1px solid hsl(var(--border-color));
    }
    .hero-search-form .search-btn {
        width: 100%;
        padding: 14px;
    }
    .stats-banner {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .result-card-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .result-actions {
        flex-direction: row;
        width: 100%;
    }
    .provider-profile-bar {
        grid-template-columns: 1fr;
        padding: 0 20px 20px 20px;
        text-align: center;
    }
    .provider-avatar-box {
        margin: -50px auto 0 auto;
    }
    .provider-tag-row {
        justify-content: center;
    }
    .provider-quick-meta {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    .provider-cta-deck {
        justify-content: center;
        width: 100%;
    }
    .provider-cta-deck .btn {
        flex: 1 1 100%;
    }
    .provider-nav-tabs {
        padding: 12px 20px;
    }
    .facility-features-grid {
        grid-template-columns: 1fr;
    }
    .service-row-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .service-row-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    .doctor-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .doctor-photo-wrap {
        margin: 0 auto;
    }
    .schedule-summary {
        justify-content: center;
    }
    .doctor-action-side {
        align-items: center;
        width: 100%;
    }
    .doc-fee-box {
        text-align: center;
    }
    .doctor-hero-card {
        padding: 24px 18px;
    }
    .doctor-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .doctor-avatar-wrap {
        margin: 0 auto;
    }
    .doctor-title-badges {
        justify-content: center;
    }
    .doctor-specialty-subtitle {
        justify-content: center;
    }
    .doctor-affiliation-line {
        justify-content: center;
    }
    .doctor-hero-side-cta {
        text-align: center;
        width: 100%;
        min-width: 0;
    }
    .doctor-fee-display {
        text-align: center;
    }
    .doctor-stats-ribbon {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .doctor-content-grid {
        grid-template-columns: 1fr;
    }
    .doctor-highlights-grid {
        grid-template-columns: 1fr;
    }
    .doctor-sidebar-column {
        position: static;
    }
    .opd-loc-header {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

/* ==========================================================================
   MODAL SYSTEM & BACKDROP (Fixes unhidden modals & popups)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal[hidden],
.modal.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border) / 0.8);
    border-radius: var(--radius-xl, 18px);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px hsl(var(--border) / 0.4);
    padding: 32px;
    animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-muted));
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.modal-close:hover {
    background: hsl(var(--danger) / 0.12);
    color: hsl(var(--danger));
    border-color: hsl(var(--danger) / 0.3);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid hsl(var(--border) / 0.6);
    text-align: left;
}

.modal-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.modal-header p {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   FORM CONTROLS & APPOINTMENT INPUTS (Fixes unstyled/ugly forms)
   ========================================================================== */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-control,
.form-select {
    width: 100%;
    padding: 11px 15px;
    font-size: 0.92rem;
    font-family: inherit;
    color: hsl(var(--text-primary));
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md, 10px);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-control::placeholder {
    color: hsl(var(--text-muted));
    font-size: 0.88rem;
}

.form-control:focus,
.form-select:focus {
    border-color: hsl(var(--primary));
    background: hsl(var(--bg-surface));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}

textarea.form-control {
    resize: vertical;
    min-height: 85px;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Enhanced Sticky Sidebar Booking Card */
.sidebar-booking-card {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--primary) / 0.25);
    border-top: 4px solid hsl(var(--primary));
    box-shadow: 0 15px 35px -10px hsl(var(--primary) / 0.15), 0 4px 10px rgba(0,0,0,0.05);
    border-radius: var(--radius-xl, 16px);
    padding: 24px;
    position: relative;
}

.sidebar-booking-card .widget-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.22rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    margin-bottom: 4px;
}

.sidebar-booking-card .widget-subtitle {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-bottom: 18px;
    line-height: 1.45;
}

.sidebar-lead-form button[type="submit"] {
    margin-top: 8px;
    box-shadow: 0 8px 20px -4px hsl(var(--primary) / 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-lead-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px hsl(var(--primary) / 0.45);
}

/* ==========================================================================
   NO RESULTS / EMPTY STATE (Modern, Helpful, Premium)
   ========================================================================== */
.no-results {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl, 20px);
    padding: 56px 36px;
    text-align: center;
    max-width: 720px;
    margin: 30px auto;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.no-results-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 0 10px hsl(var(--primary) / 0.04);
}

.no-results h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.no-results p {
    font-size: 0.96rem;
    color: hsl(var(--text-secondary));
    max-width: 520px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

.no-results-suggestions {
    margin-bottom: 28px;
    padding-top: 24px;
    border-top: 1px solid hsl(var(--border) / 0.6);
}

.no-results-suggestions-title {
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(var(--text-muted));
    margin-bottom: 12px;
}

.no-results-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.no-results-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.08);
    border: 1px solid hsl(var(--primary) / 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.no-results-pill:hover {
    background: hsl(var(--primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px hsl(var(--primary) / 0.3);
}

.no-results-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   DOCTORS LISTING PAGE & DOCTOR CARDS
   ========================================================================== */
.doctors-header-banner {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.06));
    border-bottom: 1px solid hsl(var(--border));
    padding: 44px 0 36px 0;
    margin-bottom: 32px;
}

.doctors-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
}

.doctors-header-inner h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: hsl(var(--text-primary));
    margin-bottom: 8px;
}

.doctors-header-inner p {
    font-size: 1.05rem;
    color: hsl(var(--text-secondary));
    max-width: 640px;
    margin: 0;
}

.doctor-card {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl, 16px);
    padding: 24px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.doctor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.08);
    border-color: hsl(var(--primary) / 0.4);
}

.doctor-card-photo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border));
}

.doctor-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.15));
}

.doctor-card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.doctor-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.doctor-card-name {
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0;
    color: hsl(var(--text-primary));
}

.doctor-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.doctor-card-name a:hover {
    color: hsl(var(--primary));
}

.doctor-card-specialties {
    font-size: 0.92rem;
    font-weight: 600;
    color: hsl(var(--accent));
}

.doctor-card-qualification {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
}

.doctor-card-hospital {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: hsl(var(--text-secondary));
    margin-top: 4px;
}

.doctor-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 180px;
}

.doctor-card-fee {
    text-align: right;
}

.doctor-card-fee-label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--text-muted));
}

.doctor-card-fee-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: hsl(var(--primary));
}

.doctor-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

@media (max-width: 860px) {
    .doctor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .doctor-card-photo-wrap {
        margin: 0 auto;
    }
    .doctor-card-badges,
    .doctor-card-hospital {
        justify-content: center;
    }
    .doctor-card-actions {
        align-items: center;
        width: 100%;
    }
    .doctor-card-fee {
        text-align: center;
    }
}

/* ==========================================================================
   COUNTRY PICKER PILL & MODAL (For Geolocation & Country Selector)
   ========================================================================== */
.nav-country-selector {
    display: flex;
    align-items: center;
    margin-right: 6px;
}

.country-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-pill-btn:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--bg-surface));
    transform: translateY(-1px);
}

.country-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.country-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.country-select-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg, 12px);
    background: hsl(var(--bg-surface-elevated));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-primary));
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.country-select-card:hover,
.country-select-card.active {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-2px);
}

/* ==========================================================================
   HOMEPAGE: TOP HEALTHCARE FACILITIES SHOWCASE — REFINED GLASS CARDS
   ========================================================================== */
.facilities-showcase-section {
    position: relative;
    padding: 72px 0 64px 0;
    background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.045) 0%, transparent 68%);
}

.facilities-showcase-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.facilities-showcase-topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.facilities-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.08);
    padding: 5px 12px 5px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    border: 1px solid hsl(var(--primary) / 0.18);
}

.facilities-showcase-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: hsl(var(--text-primary));
    margin: 0;
}

.facilities-showcase-subtitle {
    font-size: 0.96rem;
    color: hsl(var(--text-secondary));
    margin: 8px 0 0 0;
    max-width: 620px;
}

/* ── Filter Tabs ───────────────────────────────────────────────── */
.facility-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px;
    background: hsl(var(--bg-surface-subtle) / 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-full);
    width: fit-content;
}

.facility-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.facility-tab-btn:hover {
    color: hsl(var(--text-primary));
    background: hsl(var(--bg-surface) / 0.7);
}

.facility-tab-btn.active {
    background: hsl(var(--primary));
    color: #ffffff;
    box-shadow: 0 6px 16px -4px hsl(var(--primary) / 0.45);
}

.facility-tab-btn:focus-visible {
    outline: 2px solid hsl(var(--primary) / 0.5);
    outline-offset: 2px;
}

/* ── Grid ──────────────────────────────────────────────────────── */
.facility-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* ── Card Shell ────────────────────────────────────────────────── */
.facility-card-item {
    --facility-accent: var(--primary);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-xl);
    background: hsl(var(--bg-surface-glass));
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid hsl(var(--border-color));
    box-shadow:
        inset 0 1px 0 hsl(0 0% 100% / 0.7),
        var(--shadow-subtle);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.34s ease,
        border-color 0.34s ease;
}

.dark-mode .facility-card-item {
    box-shadow:
        inset 0 1px 0 hsl(0 0% 100% / 0.05),
        var(--shadow-subtle);
}

.facility-card-item[data-category*="lab"]    { --facility-accent: 152 76% 40%; }
.facility-card-item[data-category*="clinic"] { --facility-accent: 265 83% 60%; }

/* Gradient hairline reveal on hover */
.facility-card-item::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--facility-accent)), hsl(var(--accent)));
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: left center;
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
}

.facility-card-item:hover {
    transform: translateY(-5px);
    border-color: hsl(var(--facility-accent) / 0.32);
    box-shadow:
        inset 0 1px 0 hsl(0 0% 100% / 0.85),
        0 22px 46px -16px hsl(var(--facility-accent) / 0.28),
        var(--shadow-md);
}

.facility-card-item:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

/* ── Cover Banner ──────────────────────────────────────────────── */
.facility-card-cover {
    position: relative;
    height: 84px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    background:
        radial-gradient(90% 130% at 12% 0%, hsl(var(--facility-accent) / 0.2) 0%, transparent 62%),
        radial-gradient(80% 120% at 100% 100%, hsl(var(--accent) / 0.16) 0%, transparent 60%),
        hsl(var(--bg-surface-subtle) / 0.75);
    border-bottom: 1px solid hsl(var(--border-color) / 0.7);
    transition: background 0.34s ease;
}

.facility-card-item:hover .facility-card-cover {
    background:
        radial-gradient(90% 130% at 12% 0%, hsl(var(--facility-accent) / 0.28) 0%, transparent 62%),
        radial-gradient(80% 120% at 100% 100%, hsl(var(--accent) / 0.2) 0%, transparent 60%),
        hsl(var(--bg-surface-subtle) / 0.75);
}

/* ── Type Badge & Verified Tag ─────────────────────────────────── */
.facility-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: hsl(var(--bg-surface) / 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.25);
    white-space: nowrap;
}

.facility-type-badge i,
.facility-type-badge svg {
    width: 13px;
    height: 13px;
}

.facility-type-badge.type-hospital {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary) / 0.28);
    background: hsl(var(--primary) / 0.1);
}

.facility-type-badge.type-lab {
    color: hsl(152 76% 34%);
    border-color: hsl(152 76% 40% / 0.3);
    background: hsl(152 76% 40% / 0.1);
}

.dark-mode .facility-type-badge.type-lab {
    color: hsl(152 66% 55%);
}

.facility-type-badge.type-clinic {
    color: hsl(265 83% 54%);
    border-color: hsl(265 83% 60% / 0.3);
    background: hsl(265 83% 60% / 0.1);
}

.dark-mode .facility-type-badge.type-clinic {
    color: hsl(265 90% 74%);
}

.facility-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: hsl(var(--success) / 0.14);
    color: hsl(var(--success));
    border: 1px solid hsl(var(--success) / 0.28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.facility-verified-tag i,
.facility-verified-tag svg {
    width: 13px;
    height: 13px;
}

/* ── Card Body ─────────────────────────────────────────────────── */
.facility-card-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px 18px 20px;
}

.facility-avatar-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: -32px;
    margin-bottom: 12px;
}

.facility-logo-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 17px;
    background: hsl(var(--bg-surface));
    border: 2px solid hsl(var(--bg-surface));
    box-shadow:
        0 10px 22px -8px rgba(15, 23, 42, 0.28),
        0 0 0 1px hsl(var(--border-color) / 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.34s ease;
}

.facility-card-item:hover .facility-logo-avatar {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 16px 28px -10px rgba(15, 23, 42, 0.32),
        0 0 0 1px hsl(var(--facility-accent) / 0.4);
}

.facility-logo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: hsl(var(--facility-accent));
    background: linear-gradient(140deg, hsl(var(--facility-accent) / 0.18), hsl(var(--accent) / 0.12));
}

.facility-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(var(--success));
    background: hsl(var(--success) / 0.09);
    border: 1px solid hsl(var(--success) / 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
    white-space: nowrap;
}

/* ── Identity ──────────────────────────────────────────────────── */
.facility-name {
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.32;
    margin: 0 0 6px 0;
    color: hsl(var(--text-primary));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.facility-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.facility-name a:hover {
    color: hsl(var(--facility-accent));
}

.facility-address-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.83rem;
    line-height: 1.45;
    color: hsl(var(--text-muted));
    margin-bottom: 12px;
}

.facility-address-line i,
.facility-address-line svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: hsl(var(--facility-accent));
}

.facility-address-line span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Rating ────────────────────────────────────────────────────── */
.facility-rating-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 11px;
    border-radius: var(--radius-full);
    background: hsl(var(--bg-surface-subtle) / 0.8);
    border: 1px solid hsl(var(--border-color) / 0.7);
    font-size: 0.82rem;
}

.facility-rating-badge .stars {
    color: hsl(var(--warning));
    font-size: 0.86rem;
    letter-spacing: 1px;
    line-height: 1;
}

.facility-rating-badge .score {
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.facility-rating-badge .count {
    color: hsl(var(--text-muted));
    font-size: 0.76rem;
}

/* ── Diagnostic Services ───────────────────────────────────────── */
.facility-services-container {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed hsl(var(--border-color));
}

/* When the services block is absent, the action row takes over the pin */
.facility-actions-group {
    margin-top: auto;
}

.facility-services-container + .facility-actions-group {
    margin-top: 16px;
}

.facility-services-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--text-muted));
    margin-bottom: 9px;
}

.facility-services-label i,
.facility-services-label svg {
    color: hsl(var(--facility-accent));
}

.facility-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.facility-service-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.735rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 4px 9px;
    border-radius: 7px;
    background: hsl(var(--bg-surface-subtle));
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color));
    transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.facility-service-chip--more {
    background: hsl(var(--facility-accent) / 0.08);
    border-color: hsl(var(--facility-accent) / 0.24);
    border-style: dashed;
    color: hsl(var(--facility-accent));
    font-weight: 700;
}

.facility-card-item:hover .facility-service-chip {
    border-color: hsl(var(--facility-accent) / 0.24);
    color: hsl(var(--text-primary));
}

/* ── Actions ───────────────────────────────────────────────────── */
.facility-actions-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.btn-facility-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.845rem;
    font-weight: 600;
    background: hsl(var(--facility-accent));
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px -6px hsl(var(--facility-accent) / 0.45);
    transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.btn-facility-view:hover {
    background: hsl(var(--facility-accent) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px hsl(var(--facility-accent) / 0.55);
}

.btn-facility-view i,
.btn-facility-view svg {
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-facility-view:hover i,
.btn-facility-view:hover svg {
    transform: translateX(3px);
}

.btn-facility-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: 0.845rem;
    font-weight: 600;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 18px -6px rgba(37, 211, 102, 0.4);
    transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.btn-facility-wa:hover {
    background: #1eb956;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(37, 211, 102, 0.5);
}

.btn-facility-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    background: hsl(var(--bg-surface-subtle));
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color));
    text-decoration: none;
    transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.btn-facility-call:hover {
    background: hsl(var(--facility-accent) / 0.1);
    border-color: hsl(var(--facility-accent) / 0.3);
    color: hsl(var(--facility-accent));
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px hsl(var(--facility-accent) / 0.4);
}

.facility-card-item:focus-within {
    border-color: hsl(var(--facility-accent) / 0.45);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .facilities-showcase-title {
        font-size: 1.7rem;
    }
    .facility-filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .facility-filter-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .facilities-showcase-section {
        padding: 52px 0 44px 0;
    }
    .facility-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .btn-facility-view {
        font-size: 0.8rem;
        padding: 11px 12px;
    }
    .btn-facility-wa {
        padding: 11px 12px;
    }
}

/* ── Sidebar Location & Service Live Filter ──────────────────────── */
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sidebar-country-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.location-filter-wrapper, .service-filter-wrapper {
    margin-bottom: 12px;
}

.location-filter-box, .service-filter-box {
    position: relative;
    display: flex;
    align-items: center;
}

.location-filter-icon, .service-filter-icon {
    position: absolute;
    left: 10px;
    color: hsl(var(--text-muted));
    pointer-events: none;
}

.location-filter-input, .service-filter-input {
    width: 100%;
    padding: 7px 28px 7px 32px;
    font-size: 0.82rem;
    color: hsl(var(--text-primary));
    background: hsl(var(--bg-card, 222 47% 8%));
    border: 1px solid hsl(var(--border-color, 222 30% 18%));
    border-radius: var(--radius-sm, 6px);
    transition: all 0.2s ease;
    outline: none;
}

.location-filter-input:focus, .service-filter-input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.location-filter-clear, .service-filter-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: hsl(var(--text-muted));
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

.location-filter-clear:hover, .service-filter-clear:hover {
    color: hsl(var(--text-primary));
}

.location-filter-stats, .service-filter-stats {
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    margin-top: 4px;
    padding-left: 2px;
}

.sidebar-city-link,
.sidebar-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.sidebar-city-link .location-name-wrap,
.sidebar-service-link .service-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-city-link .location-count-tag,
.sidebar-service-link .location-count-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    background: hsl(var(--bg-card) / 0.6);
    border: 1px solid hsl(var(--border-color) / 0.5);
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 6px;
}

.sidebar-city-link.active .location-count-tag,
.sidebar-service-link.active .location-count-tag {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
    border-color: hsl(var(--primary) / 0.3);
}

.btn-toggle-locations,
.btn-toggle-services {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    background: hsl(var(--primary) / 0.05);
    border: 1px dashed hsl(var(--primary) / 0.25);
    border-radius: var(--radius-sm, 6px);
    color: hsl(var(--primary));
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-locations:hover,
.btn-toggle-services:hover {
    background: hsl(var(--primary) / 0.12);
    border-color: hsl(var(--primary) / 0.45);
}

.location-no-results, .service-no-results {
    padding: 12px 10px;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    text-align: center;
    background: hsl(var(--primary) / 0.03);
    border-radius: var(--radius-sm, 6px);
    margin: 6px 0;
}

.filter-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    color: hsl(var(--danger, 0 72% 51%));
    text-decoration: underline;
    margin-top: 10px;
    cursor: pointer;
}

.filter-reset-link:hover {
    color: hsl(var(--danger, 0 72% 60%));
}

/* ── Active Filters Bar & Removable Pills ────────────────────────── */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: hsl(var(--bg-surface-elevated, 222 47% 11%) / 0.7);
    border: 1px solid hsl(var(--border-color, 222 30% 18%));
    border-radius: var(--radius-md, 8px);
    backdrop-filter: blur(10px);
}

.active-filters-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    white-space: nowrap;
}

.active-filters-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill-removable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: hsl(var(--primary) / 0.12);
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-pill-removable:hover {
    background: hsl(var(--danger, 0 72% 51%) / 0.15);
    border-color: hsl(var(--danger, 0 72% 51%) / 0.4);
    color: hsl(var(--danger, 0 72% 51%));
    transform: translateY(-1px);
}

.pill-remove-x {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.7;
}

.filter-pill-removable:hover .pill-remove-x {
    opacity: 1;
}

.filter-pill-clear-all {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    text-decoration: underline;
    margin-left: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.filter-pill-clear-all:hover {
    color: hsl(var(--danger, 0 72% 51%));
}

/* ── Result Card Attribute Badges ────────────────────────────────── */
.result-attr-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 8px;
}

.attr-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    background: hsl(var(--bg-surface-subtle, 222 30% 14%));
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color, 222 30% 20%));
}

.attr-tag--24h {
    background: hsl(142 70% 45% / 0.12);
    border-color: hsl(142 70% 45% / 0.25);
    color: hsl(142 70% 50%);
}

.attr-tag--walkin {
    background: hsl(200 80% 50% / 0.12);
    border-color: hsl(200 80% 50% / 0.25);
    color: hsl(200 80% 55%);
}

.attr-tag--whatsapp {
    background: #25d36618;
    border-color: #25d36640;
    color: #25d366;
}

.attr-tag--primary {
    background: hsl(270 70% 55% / 0.12);
    border-color: hsl(270 70% 55% / 0.25);
    color: hsl(270 70% 65%);
}

.attr-tag--fast {
    background: hsl(45 90% 50% / 0.12);
    border-color: hsl(45 90% 50% / 0.25);
    color: hsl(45 90% 55%);
}

/* ── Sidebar Filter Subheaders ───────────────────────────────────── */
.filter-subgroup-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--text-muted));
    margin: 14px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid hsl(var(--border-color) / 0.4);
}

/* ==========================================================================
   AUTHENTICATION EXPERIENCE (LOGIN & REGISTRATION)
   Modern Medical Glassmorphism, Dual-Pane Showcase & Micro-interactions
   ========================================================================== */

.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    position: relative;
    z-index: 1;
}

.auth-glow-orbit {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.14) 0%, hsl(var(--accent) / 0.06) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(50px);
    animation: authGlowPulse 10s ease-in-out infinite alternate;
}

@keyframes authGlowPulse {
    0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.auth-container {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    background: hsl(var(--bg-surface-glass));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px hsl(var(--primary) / 0.1);
    overflow: hidden;
    position: relative;
}

/* Left Showcase Panel */
.auth-showcase {
    background: linear-gradient(145deg, hsl(var(--bg-surface-subtle) / 0.95), hsl(var(--bg-base) / 0.98));
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid hsl(var(--border-color) / 0.6);
    overflow: hidden;
}

.auth-showcase::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.18), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: hsl(var(--primary) / 0.12);
    border: 1px solid hsl(var(--primary) / 0.25);
    color: hsl(var(--primary));
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 24px;
}

.auth-showcase-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: hsl(var(--text-primary));
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.auth-showcase-desc {
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: hsl(var(--text-primary));
}

.auth-feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: hsl(var(--accent) / 0.14);
    border: 1px solid hsl(var(--accent) / 0.3);
    color: hsl(var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-trust-strip {
    padding-top: 24px;
    border-top: 1px solid hsl(var(--border-color) / 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-trust-stat {
    display: flex;
    flex-direction: column;
}

.auth-trust-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    line-height: 1.1;
}

.auth-trust-label {
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Right Form Card */
.auth-card {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: hsl(var(--bg-surface));
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

/* Input Fields with Icons */
.auth-field-group {
    margin-bottom: 20px;
}

.auth-field-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: hsl(var(--text-muted));
    width: 17px;
    height: 17px;
    pointer-events: none;
    transition: var(--transition);
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    background: hsl(var(--bg-surface-subtle));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-md);
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.auth-input:focus {
    background: hsl(var(--bg-surface));
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.15);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: hsl(var(--primary));
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.auth-password-toggle:hover {
    color: hsl(var(--text-primary));
    background: hsl(var(--border-color) / 0.4);
}

.auth-field-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    user-select: none;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: hsl(var(--primary));
    cursor: pointer;
}

/* Quick Fill Demo Credentials */
.demo-creds-box {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: hsl(var(--bg-surface-subtle));
    border: 1px dashed hsl(var(--border-color));
}

.demo-creds-title {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--text-muted));
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-creds-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-cred-pill {
    background: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-secondary));
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.demo-cred-pill:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.15);
}

.auth-btn-submit {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 14px -2px hsl(var(--primary) / 0.4);
    letter-spacing: 0.01em;
}

.auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -2px hsl(var(--primary) / 0.55);
    background: linear-gradient(135deg, hsl(var(--primary-hover)), hsl(var(--primary)));
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-switch-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
}

.auth-switch-link {
    color: hsl(var(--primary));
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-switch-link:hover {
    text-decoration: underline;
    color: hsl(var(--primary-hover));
}

/* Responsiveness */
@media (max-width: 960px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-showcase {
        display: none; /* Focus squarely on the form on mobile and small tablets */
    }

    .auth-card {
        padding: 36px 28px;
    }

    .auth-wrapper {
        padding: 32px 16px;
    }
}

/* Auth Validation & Enhanced States */
.auth-input.is-invalid {
    border-color: hsl(var(--danger));
    background: hsl(var(--danger) / 0.04);
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 4px hsl(var(--danger) / 0.18);
    border-color: hsl(var(--danger));
}

.auth-field-error {
    color: hsl(var(--danger));
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-field-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    margin-bottom: 20px;
    transition: var(--transition);
}

.auth-back-link svg {
    width: 14px;
    height: 14px;
    transition: var(--transition);
}

.auth-back-link:hover {
    color: hsl(var(--primary));
    transform: translateX(-3px);
}

.auth-input-highlight {
    animation: authInputGlowPulse 0.8s ease-out;
}

@keyframes authInputGlowPulse {
    0% {
        box-shadow: 0 0 0 5px hsl(var(--accent) / 0.45);
        border-color: hsl(var(--accent));
        background: hsl(var(--accent) / 0.08);
    }
    100% {
        box-shadow: none;
        border-color: hsl(var(--border-color));
        background: hsl(var(--bg-surface-subtle));
    }
}

.demo-cred-pill[data-role="admin"]:hover {
    border-color: hsl(var(--danger));
    color: hsl(var(--danger));
    box-shadow: 0 2px 8px hsl(var(--danger) / 0.15);
}

.demo-cred-pill[data-role="owner"]:hover {
    border-color: hsl(var(--accent));
    color: hsl(var(--accent));
    box-shadow: 0 2px 8px hsl(var(--accent) / 0.15);
}

.demo-cred-pill[data-role="patient"]:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.15);
}

.auth-security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.76rem;
    color: hsl(var(--text-muted));
    letter-spacing: 0.02em;
}

.auth-security-notice svg {
    width: 13px;
    height: 13px;
    color: hsl(var(--success));
}



