@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ============ DESIGN TOKENS (Cozy Medical + Internal Power) ============ */
:root {
    --primary-hue: 215;
    --primary: hsl(var(--primary-hue), 88%, 54%);
    --primary-dark: hsl(var(--primary-hue), 88%, 44%);
    --primary-light: hsl(var(--primary-hue), 88%, 95%);
    --primary-glow: hsla(var(--primary-hue), 88%, 54%, 0.28);

    /* Medical Teal/Emerald Accent (Cozy + Trust) */
    --accent-teal: #0d9488;
    --accent-emerald: #059669;
    --accent-glow: rgba(13, 148, 136, 0.25);

    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.35s cubic-bezier(.4,0,.2,1);
    --font-en: 'Outfit', system-ui, sans-serif;
    --font-ar: 'Tajawal', system-ui, sans-serif;
    --font: 'Outfit', 'Tajawal', system-ui, sans-serif;
    --shadow-sm: 0 2px 5px rgba(0,0,0,.03);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, .06);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, .09);
    --shadow-xl: 0 28px 70px rgba(15, 23, 42, .12);
}

[data-theme="dark"] {
    --bg: #090e1a;
    --bg-alt: #0f172a;
    --surface: #1e293b;
    --surface-glass: rgba(30, 41, 59, 0.82);
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-light: #1e293b;
    --primary-light: hsla(var(--primary-hue), 60%, 30%, 0.35);
    --accent-glow: rgba(20, 184, 166, 0.3);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.25);
    --shadow-md: 0 8px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.45);
    --shadow-xl: 0 28px 70px rgba(0,0,0,.55);
}

/* ============ COLOR THEME PALETTES ============ */
/* 1. Royal Indigo Theme */
[data-color-theme="indigo"] {
    --primary-hue: 224;
    --primary: hsl(224, 76%, 52%);
    --primary-dark: hsl(224, 76%, 42%);
    --primary-light: hsl(224, 76%, 95%);
    --primary-glow: hsla(224, 76%, 52%, 0.25);
}
[data-theme="dark"][data-color-theme="indigo"],
[data-theme="dark"] [data-color-theme="indigo"] {
    --primary-light: hsla(224, 60%, 30%, 0.3);
}

/* 2. Health Emerald Theme */
[data-color-theme="emerald"] {
    --primary-hue: 162;
    --primary: hsl(162, 76%, 36%);
    --primary-dark: hsl(162, 76%, 28%);
    --primary-light: hsl(162, 76%, 95%);
    --primary-glow: hsla(162, 76%, 36%, 0.25);
}
[data-theme="dark"][data-color-theme="emerald"],
[data-theme="dark"] [data-color-theme="emerald"] {
    --primary-light: hsla(162, 60%, 25%, 0.3);
}

/* 3. Oceanic Theme */
[data-color-theme="oceanic"] {
    --primary-hue: 201;
    --primary: hsl(201, 85%, 44%);
    --primary-dark: hsl(201, 85%, 36%);
    --primary-light: hsl(201, 85%, 95%);
    --primary-glow: hsla(201, 85%, 44%, 0.25);
}
[data-theme="dark"][data-color-theme="oceanic"],
[data-theme="dark"] [data-color-theme="oceanic"] {
    --primary-light: hsla(201, 60%, 28%, 0.3);
}


/* ============ RESET ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:80px;overflow-x:clip}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden;transition:background .4s,color .4s}
body.menu-open{overflow:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}

.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ============ NAVBAR ============ */
.navbar{position:fixed;top:0;width:100%;z-index:1000;padding:14px 0;transition:var(--transition);background:transparent}
.navbar.scrolled{background:var(--surface);border-bottom:1px solid var(--border);box-shadow:var(--shadow-sm)}
.nav-content{display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:600;color:var(--text)}
.logo strong{color:var(--primary)}
.logo-mark{width:36px;height:36px;background:linear-gradient(135deg,var(--primary),hsl(var(--primary-hue),91%,72%));border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem}
.nav-center{display:flex;gap:32px;align-items:center}
.nav-center a{color:var(--text-muted);font-weight:500;font-size:.95rem;transition:var(--transition);position:relative;text-decoration:none}
.nav-center a:hover{color:var(--primary)}

/* Dropdown styling */
.nav-dropdown-container {
    position: relative;
    display: inline-block;
}
.nav-dropdown-trigger {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font);
    font-weight: 500;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
}
.nav-dropdown-trigger i {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dropdown-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}
.nav-dropdown-trigger:hover {
    color: var(--primary);
}
.nav-dropdown-popover {
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    width: 340px;
    padding: 10px 0;
    display: none;
    animation: dropdownFadeIn 0.2s ease;
}
[dir="rtl"] .nav-dropdown-popover {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
.popover-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
}
[dir="rtl"] .popover-item {
    text-align: right;
    align-items: flex-start;
}
.popover-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.popover-item i {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.popover-item:hover i {
    color: var(--primary);
}
.font-bold {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    display: block;
}
.popover-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    white-space: normal;
    line-height: 1.4;
    margin-top: 4px;
}

/* Split-Pane Dropdown Layout */
.products-split-popover {
    width: min(660px, 92vw) !important;
    max-width: 92vw !important;
    padding: 0 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.popover-split-body {
    display: flex;
    min-height: 290px;
}
.popover-split-left {
    width: 48%;
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}
[dir="rtl"] .popover-split-left {
    border-right: none;
    border-left: 1px solid var(--border);
}
.popover-split-right {
    width: 52%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    box-sizing: border-box;
    justify-content: flex-start;
}
.popover-left-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    border-radius: 6px;
}
[dir="rtl"] .popover-left-item {
    text-align: right;
}
.popover-left-item:hover, .popover-left-item.active {
    background: var(--primary-light);
    color: var(--primary);
}
.popover-left-item i {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.popover-left-item:hover i, .popover-left-item.active i {
    color: var(--primary);
}
.popover-left-item > div > span:not(.popover-sub) {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    display: block;
}
.popover-left-item:hover > div > span:not(.popover-sub),
.popover-left-item.active > div > span:not(.popover-sub) {
    color: var(--primary) !important;
}
.popover-split-footer {
    background: var(--primary);
    color: #fff !important;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-top: 1px solid var(--border);
}
.popover-split-footer:hover {
    background: var(--primary-dark);
}
.popover-split-footer span {
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.preview-image-box {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, var(--primary-light), var(--border));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 12px;
    border: 1px dashed rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}
.preview-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    text-align: left;
}
[dir="rtl"] .preview-title {
    text-align: right;
}
.preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.preview-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
}
[dir="rtl"] .preview-list-item {
    text-align: right;
}
.preview-list-item i {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 2px;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translate(-50%, 6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.nav-right{display:flex;align-items:center;gap:12px}
.nav-right .btn-nav, .nav-right a.btn{order:1}
.nav-right .nav-controls{display:flex;align-items:center;gap:6px;order:2}
.nav-right #authHeaderZone{order:3}
.nav-right .mobile-menu-btn{order:4}

.icon-btn,.lang-btn{background:var(--bg-alt);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;transition:var(--transition);font-family:var(--font)}
.icon-btn{width:36px;height:36px;border-radius:99px;display:flex;align-items:center;justify-content:center;font-size:1.15rem}
.lang-btn{padding:6px 16px;border-radius:99px;font-size:.85rem;font-weight:600;height:36px;display:inline-flex;align-items:center;justify-content:center}
.icon-btn:hover,.lang-btn:hover{background:var(--primary-light);color:var(--primary);border-color:var(--primary)}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 1.35rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.mobile-menu-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ============ PREMIUM MOBILE & TABLET DRAWER ============ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - 68px);
    background: var(--surface);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 24px 48px;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    animation: mobileDrawerSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    display: flex;
}
@keyframes mobileDrawerSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accordion Categories */
.mobile-acc-group {
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}
.mobile-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 12px 4px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
[dir="rtl"] .mobile-acc-trigger {
    text-align: right;
}
.mobile-acc-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-acc-title i {
    font-size: 1.2rem;
    color: var(--primary);
}
.mobile-acc-chevron {
    transition: transform 0.22s ease;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.mobile-acc-group.open .mobile-acc-chevron {
    transform: rotate(180deg);
}
.mobile-acc-content {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 10px 28px;
}
[dir="rtl"] .mobile-acc-content {
    padding: 4px 28px 10px 0;
}
.mobile-acc-group.open .mobile-acc-content {
    display: flex;
}
.mobile-acc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.mobile-acc-link:hover, .mobile-acc-link:focus {
    background: var(--bg-alt);
    color: var(--primary);
}
.mobile-acc-link i {
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}
.mobile-direct-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: color var(--transition);
}
.mobile-direct-link:hover {
    color: var(--primary);
}
.mobile-direct-link i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Quick Controls Row (Icon only) */
.mobile-drawer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 8px;
}
.mobile-control-icon-btn,
.mobile-control-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-control-icon-btn:hover,
.mobile-control-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
}

/* ============ BUTTONS ============ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 22px;border-radius:99px;font-weight:600;font-size:.95rem;border:none;cursor:pointer;transition:var(--transition);font-family:var(--font)}
.btn-xl{padding:14px 30px;font-size:1.05rem;border-radius:99px}
.btn-full{width:100%}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 14px var(--primary-glow)}
.btn-primary:hover{background:var(--primary-dark);transform:translateY(-2px);box-shadow:0 8px 25px var(--primary-glow)}
.btn-outline{background:transparent;color:var(--text);border:1.5px solid var(--border)}
.btn-outline:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.btn-ghost{background:transparent;color:var(--text-secondary);border:1.5px solid var(--border)}
.btn-ghost:hover{border-color:var(--primary);color:var(--primary)}
.btn-white{background:#fff;color:var(--primary-dark);font-weight:700}
.btn-white:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.btn-ghost-white{background:transparent;border:1.5px solid rgba(255,255,255,.3);color:#fff}
.btn-ghost-white:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.6)}
.btn-nav{padding:0 20px;height:36px;font-size:.9rem;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}

/* ============ STATIC AMBIENT LIGHTING (COZY + MEDICAL PRECISION) ============ */
/* Static, motionless background light anchors to eliminate visual dizziness */

/* ============ HERO ============ */
.hero{position:relative;padding:140px 0 0;text-align:center;overflow:hidden;min-height:100vh}
.hero-glow{position:absolute;border-radius:50%;filter:blur(140px);pointer-events:none;opacity:0.12}
.hero-glow-1{
    width:650px;
    height:650px;
    background:radial-gradient(circle, #2563eb 0%, #0d9488 65%, transparent 100%);
    top:-200px;
    left:-150px;
}
.hero-glow-2{
    width:580px;
    height:580px;
    background:radial-gradient(circle, #0284c7 0%, #0f766e 65%, transparent 100%);
    bottom:5%;
    right:-150px;
}
.hero-glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(150px);
    opacity: 0.08;
}

[data-theme="dark"] .hero-glow {
    opacity: 0.16;
}
[data-theme="dark"] .hero-glow-1 {
    background: radial-gradient(circle, #1d4ed8 0%, #0f766e 70%, transparent 100%);
}
[data-theme="dark"] .hero-glow-2 {
    background: radial-gradient(circle, #0369a1 0%, #064e3b 70%, transparent 100%);
}
[data-theme="dark"] .hero-glow-3 {
    background: radial-gradient(circle, #047857 0%, transparent 70%);
    opacity: 0.12;
}

.hero-grid-bg{position:absolute;inset:0;background-image:radial-gradient(var(--border) 1px,transparent 1px);background-size:32px 32px;opacity:.35;pointer-events:none}
[data-theme="dark"] .hero-grid-bg{opacity:.12}

.hero-inner{position:relative;z-index:2}
.hero-badge{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:40px;background:var(--primary-light);color:var(--primary);font-weight:600;font-size:.88rem;margin-bottom:28px;border:1px solid hsla(var(--primary-hue),91%,60%,.15)}
.hero h1{font-size:clamp(2.4rem,5.5vw,4.2rem);font-weight:800;line-height:1.12;letter-spacing:-.03em;margin-bottom:24px;color:var(--text)}
.hero-sub{font-size:1.2rem;color:var(--text-muted);max-width:640px;margin:0 auto 40px;line-height:1.7}
.hero-actions{display:flex;gap:14px;justify-content:center;margin-bottom:56px;flex-wrap:wrap}
.hero-stats{display:flex;justify-content:center;gap:40px;margin-bottom:64px;flex-wrap:wrap}
.hero-stat{text-align:center}
.hero-stat strong{display:block;font-size:1.6rem;font-weight:800;color:var(--primary)}
.hero-stat span{font-size:.88rem;color:var(--text-muted);font-weight:500}
.stat-divider{width:1px;background:var(--border);margin:4px 0}

/* Hero Mockup */
.hero-mockup-wrapper{position:relative;z-index:2}
.hero-mockup{border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-xl);border:1px solid var(--border);background:var(--surface)}
.mockup-chrome,.frame-chrome{height:42px;background:var(--bg-alt);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 16px;gap:8px}
.mockup-chrome .dot,.frame-chrome .dot{width:12px;height:12px;border-radius:50%;background:var(--border)}
.mockup-chrome .dot:first-child{background:#ef4444}.mockup-chrome .dot:nth-child(2){background:#f59e0b}.mockup-chrome .dot:nth-child(3){background:#22c55e}
.frame-chrome .dot:first-child{background:#ef4444}.frame-chrome .dot:nth-child(2){background:#f59e0b}.frame-chrome .dot:nth-child(3){background:#22c55e}
.chrome-url{margin-left:16px;padding:4px 16px;background:var(--bg);border-radius:6px;font-size:.8rem;color:var(--text-muted);border:1px solid var(--border)}
.mockup-img,.screenshot-img{width:100%;display:block}

/* ============ SECTIONS SHARED ============ */
.section-label{display:inline-block;font-size:.85rem;font-weight:700;text-transform:none;letter-spacing:.08em;color:var(--primary);margin-bottom:12px}
.section-title{font-size:clamp(1.8rem,3.5vw,2.8rem);font-weight:800;letter-spacing:-.02em;margin-bottom:16px;color:var(--text)}
.section-sub{font-size:1.1rem;color:var(--text-muted);max-width:600px;margin:0 auto 56px;line-height:1.7}
section{text-align:center}

/* ============ FEATURES ============ */
.features-section{padding:120px 0;position:relative}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:left}
.feature-card{
    background:var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:32px;
    transition:var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--icon-color, var(--primary)), transparent);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover{
    transform:translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    border-color: var(--primary);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon{width:52px;height:52px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:20px;color:var(--icon-color,var(--primary));background:color-mix(in srgb,var(--icon-color,var(--primary)) 12%,transparent)}
.feature-card h3{font-size:1.1rem;font-weight:700;margin-bottom:10px}
.feature-card p{color:var(--text-muted);font-size:.92rem;line-height:1.6}

/* ============ BENTO MODULES ============ */
.modules-section{padding:120px 0;background:var(--bg-alt);position:relative}
.bento{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;text-align:left}
.bento-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:32px;
    transition:all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}
.bento-card:hover{
    transform:translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color:var(--primary);
}
[data-theme="dark"] .bento-card:hover{
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.bento-icon{
    width:50px;
    height:50px;
    border-radius:14px;
    background:var(--primary-light);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.45rem;
    margin-bottom:20px;
    transition:all 0.3s ease;
}
.bento-card:hover .bento-icon{
    background:var(--primary);
    color:#fff;
    transform:scale(1.08);
}
.bento-card h3{font-size:1.18rem;font-weight:700;margin-bottom:10px;color:var(--text-main)}
.bento-card p{color:var(--text-muted);font-size:.92rem;line-height:1.65;flex-grow:1;margin-bottom:16px}
.bento-tag{
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    margin-top:auto;
    padding:4px 12px;
    border-radius:20px;
    font-size:.75rem;
    font-weight:600;
    background:var(--primary-light);
    color:var(--primary);
}

/* ============ SCREENSHOTS ============ */
.screenshots-section{padding:120px 0}
.screenshots-tabs{display:flex;justify-content:center;gap:8px;margin-bottom:40px;flex-wrap:wrap}
.ss-tab{padding:10px 24px;border-radius:40px;border:1.5px solid var(--border);background:transparent;color:var(--text-muted);font-weight:600;font-size:.92rem;cursor:pointer;transition:var(--transition);font-family:var(--font)}
.ss-tab:hover{border-color:var(--primary);color:var(--primary)}
.ss-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.screenshot-viewer{max-width:1000px;margin:0 auto}
.screenshot-frame{border-radius:var(--radius-xl);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-lg);background:var(--surface)}
.screenshot-img{transition:opacity .4s}

/* ============ PRICING ============ */
.pricing-section{padding:120px 0;background:var(--bg-alt)}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;text-align:left;align-items:stretch}
.pricing-grid-3{grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch}
.pricing-grid-4{grid-template-columns:repeat(4,1fr);gap:20px}
.price-card{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-xl);padding:36px;position:relative;transition:var(--transition)}
.price-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.price-card.featured{border-color:var(--primary);box-shadow:0 8px 40px var(--primary-glow);transform:scale(1.03)}
.price-card.featured:hover{transform:scale(1.03) translateY(-4px)}
.price-card-dark{background:linear-gradient(135deg,#0f172a,#1e293b);border-color:#334155;color:#f1f5f9}
.price-card-dark .price-desc,.price-card-dark .price-features li{color:#94a3b8}
.price-card-dark .amount,.price-card-dark h3{color:#f1f5f9}
.price-card-dark .btn-outline{border-color:#475569;color:#f1f5f9}
.price-card-dark .btn-outline:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
[data-theme="dark"] .price-card-dark{background:linear-gradient(135deg,#1e293b,#334155);border-color:#475569}
.price-badge{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--primary);color:#fff;padding:6px 20px;border-radius:20px;font-size:.8rem;font-weight:700;white-space:nowrap;z-index:4}
.plan-promo-pill{position:absolute;top:34px;right:20px;z-index:6;display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,rgba(245,158,11,0.14),rgba(217,119,6,0.22));color:#d97706;border:1px solid rgba(245,158,11,0.45);border-radius:99px;padding:3px 10px;font-size:.72rem;font-weight:700;box-shadow:0 2px 8px rgba(245,158,11,0.12);pointer-events:none;letter-spacing:-.01em;white-space:nowrap}
[dir="rtl"] .plan-promo-pill{right:auto;left:20px}
.price-header{min-height:76px;display:flex;flex-direction:column;justify-content:flex-start}
.price-header h3{font-size:1.3rem;font-weight:700;margin-bottom:6px}
.price-desc{color:var(--text-muted);font-size:.88rem;margin-bottom:20px;line-height:1.4}
.price-amount{margin-bottom:32px;display:flex;align-items:baseline;gap:2px}
.price-strikethrough{text-decoration:line-through;opacity:.45;font-size:1.4rem;margin-right:6px;font-weight:600;color:var(--text-muted)}
[dir="rtl"] .price-strikethrough{margin-right:0;margin-left:6px}
.price-discounted{font-size:3rem;font-weight:800;letter-spacing:-.03em;color:var(--text)}
.currency{font-size:1.4rem;font-weight:700;color:var(--text-muted)}
.amount{font-size:3rem;font-weight:800;letter-spacing:-.03em;color:var(--text)}
.amount-custom{font-size:2.4rem;color:var(--primary)}
.period{font-size:.9rem;color:var(--text-muted);font-weight:500;margin-left:4px}
.plan-member-rates{display:flex;align-items:center;justify-content:space-around;background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-md);padding:8px 12px;margin-bottom:16px;font-size:.82rem}
.plan-rate-item{display:inline-flex;align-items:center;gap:6px;color:var(--text-secondary)}
.plan-rate-item i{font-size:.95rem;flex-shrink:0}
.plan-rate-item .rate-role{font-weight:600}
.plan-rate-item .rate-price{font-weight:700;color:var(--text)}
.plan-rate-item .rate-price.rate-free{color:#10b981}
.plan-rate-item .rate-unit{font-size:.75rem;font-weight:400;color:var(--text-muted)}
.plan-rate-divider{width:1px;height:18px;background:var(--border);margin:0 4px}
[dir="rtl"] .plan-member-rates{direction:rtl}
.price-features{flex:1 1 auto;margin-bottom:32px;display:flex;flex-direction:column;justify-content:flex-start}
.price-features li{display:flex;align-items:center;gap:10px;padding:7px 0;color:var(--text-secondary);font-size:.88rem}
.price-features li.feature-lead{font-weight:700;color:var(--text);padding-bottom:10px;margin-bottom:6px;border-bottom:1px dashed var(--border)}
.price-card-dark .price-features li.feature-lead{color:#f8fafc;border-bottom-color:#334155}
.price-features i{color:var(--primary);font-size:1.1rem;flex-shrink:0}
.price-card .btn{margin-top:auto}

/* ============ WHATSAPP ADD-ON ============ */
.whatsapp-section{padding:100px 0}
.wa-table-wrapper{max-width:800px;margin:0 auto;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-md)}
.wa-table{width:100%;border-collapse:collapse;text-align:center;font-size:.95rem}
.wa-table thead{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}
.wa-table th{padding:16px 20px;font-weight:700;font-size:.9rem}
.wa-table td{padding:14px 20px;border-bottom:1px solid var(--border);background:var(--surface);color:var(--text-secondary)}
.wa-table tbody tr:last-child td{border-bottom:none}
.wa-table tbody tr:hover td{background:var(--bg-alt)}
.wa-table td:first-child{text-align:left;font-weight:500}
[dir="rtl"] .wa-table td:first-child{text-align:right}
.wa-best{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;padding:4px 14px;border-radius:20px;font-weight:700;font-size:.85rem}

/* ============ CTA ============ */
.cta-section{padding:120px 0;background:linear-gradient(135deg,hsl(var(--primary-hue),91%,48%),hsl(250,70%,56%));color:#fff;position:relative;overflow:hidden}
.cta-glow{position:absolute;width:600px;height:600px;background:rgba(255,255,255,.08);border-radius:50%;top:-200px;right:-100px;pointer-events:none}
.cta-inner{position:relative;z-index:2}
.cta-section h2{font-size:clamp(1.8rem,3.5vw,2.8rem);font-weight:800;margin-bottom:16px}
.cta-section p{font-size:1.15rem;opacity:.85;max-width:560px;margin:0 auto 40px}
.cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ============ FOOTER ============ */
.footer{padding:80px 0 24px;background:var(--surface);border-top:1px solid var(--border)}
.footer-top{display:grid;grid-template-columns:1.2fr 3.2fr;gap:48px;margin-bottom:48px;text-align:left}
.footer-brand .logo{margin-bottom:16px}
.footer-brand p{color:var(--text-muted);max-width:320px;font-size:.95rem;line-height:1.7}
.footer-social-links {display:flex;align-items:center;gap:10px;margin-top:20px}
.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
    text-decoration: none;
}
.footer-social-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.footer-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.footer-col{display:flex;flex-direction:column;align-items:flex-start}
.footer-col h4{font-weight:700;margin-bottom:16px;font-size:.92rem;color:var(--text);text-transform:uppercase;letter-spacing:0.04em;width:100%}
.footer-col a{display:block;width:100%;color:var(--text-muted);font-size:.88rem;padding:5px 0;transition:var(--transition);text-decoration:none}
.footer-col a:hover{color:var(--primary);transform:translateX(2px)}
[dir="rtl"] .footer-col a:hover{transform:translateX(-2px)}
[dir="rtl"] .footer-col{align-items:flex-start}
.footer-bottom{border-top:1px solid var(--border);padding-top:24px;text-align:center;color:var(--text-muted);font-size:.85rem}

/* ============ ANIMATIONS ============ */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s cubic-bezier(.4,0,.2,1),transform .7s cubic-bezier(.4,0,.2,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ============ RTL & ARABIC TYPOGRAPHY ============ */
[dir="rtl"], [lang="ar"] {
    --font: var(--font-ar);
    font-family: var(--font-ar) !important;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6 {
    font-family: var(--font-ar) !important;
    letter-spacing: normal !important;
}
[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] a, [dir="rtl"] div, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea,
[lang="ar"] p, [lang="ar"] span, [lang="ar"] a, [lang="ar"] div, [lang="ar"] button, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea {
    letter-spacing: normal !important;
}
[dir="rtl"] .bento-card,[dir="rtl"] .feature-card,[dir="rtl"] .price-card,[dir="rtl"] .footer-top{text-align:right}
[dir="rtl"] .chrome-url{margin-left:0;margin-right:16px}
[dir="rtl"] .price-features li{flex-direction:row}

/* ============ RESPONSIVE ============ */
@media(min-width:1025px){
    .mobile-menu{display:none !important}
    .mobile-menu-btn{display:none !important}
}
@media(max-width:1200px){
    .pricing-grid-4{grid-template-columns:repeat(2,1fr)}
    .price-card.featured{transform:none}
    .price-card.featured:hover{transform:translateY(-4px)}
}
@media(max-width:1024px){
    .nav-center, .nav-right .btn-nav { display: none !important; }
    .mobile-menu-btn { display: inline-flex !important; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-lg { grid-column: span 2; }
    .footer-cols { grid-template-columns: repeat(2, 1fr) !important; gap: 32px !important; }
    .presentation-grid, .presentation-grid.grid-reverse { grid-template-columns: 1fr !important; gap: 50px !important; }
    .presentation-grid.grid-reverse .presentation-text { order: 1 !important; }
    .presentation-grid.grid-reverse .presentation-visual { order: 2 !important; }
}
@media(max-width:768px){
    .nav-center,.nav-right .btn{display:none}
    .mobile-menu-btn{display:inline-flex}
    .nav-controls{display:none !important}
    .features-grid,.bento,.pricing-grid,.pricing-grid-3,.pricing-grid-4{grid-template-columns:1fr}
    .bento-lg{grid-column:span 1}
    .hero{padding:120px 0 0}
    .hero-stats{gap:24px}
    .stat-divider{display:none}
    .footer-top{grid-template-columns:1fr;gap:40px}
    .footer-cols{grid-template-columns:1fr !important;gap:32px !important}
    .price-card.featured{transform:none}
    .price-card.featured:hover{transform:translateY(-4px)}
    .nav-right{gap:8px}
    .nav-right .btn-nav{display:none}
    .wa-table{font-size:.8rem}
    .wa-table th,.wa-table td{padding:10px 8px}
    .hero-glow { max-width: 90vw; max-height: 90vw; filter: blur(90px); }
    .alive-backdrop-sheet { width: 100% !important; right: 0 !important; left: 0 !important; }
    .pills-row-wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .pills-row-wrap::-webkit-scrollbar {
        display: none;
    }
    .inline-pill-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
@media(max-width:480px){
    .hero h1{font-size:clamp(1.85rem, 6vw, 2.3rem)}
    .presentation-title{font-size:clamp(1.85rem, 6vw, 2.3rem) !important}
    .hero-actions, .presentation-actions{flex-direction:column !important;align-items:stretch !important;width:100% !important;gap:12px !important}
    .hero-actions .btn, .presentation-actions .btn{width:100% !important;justify-content:center !important}
    .hero-presentation .alive-photo-frame {
        width: min(280px, 85vw) !important;
        height: auto !important;
        max-height: 440px !important;
    }
    .hero-presentation .alive-photo-frame img {
        height: 100% !important;
        max-height: 440px !important;
    }
    .container { padding: 0 16px; }
}

/* ============ PATIENT DIRECTORY SEARCH ============ */
.directory-section {
    padding: 100px 0;
    background: var(--surface);
}
[data-theme="dark"] .directory-section {
    background: var(--bg-alt);
}
.search-bar-container {
    display: flex;
    gap: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    max-width: 900px;
    margin: 0 auto 48px;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}
[data-theme="dark"] .search-bar-container {
    background: var(--bg);
}
.search-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-field i {
    color: var(--text-muted);
    font-size: 1.2rem;
}
.search-field input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font);
    font-size: .95rem;
}
.search-field input::placeholder {
    color: var(--text-muted);
}
.spec-field {
    border-left: 1px solid var(--border);
    padding-left: 16px;
}
[dir="rtl"] .spec-field {
    border-left: none;
    border-right: 1px solid var(--border);
    padding-left: 0;
    padding-right: 16px;
}
.popover-btn {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}
[dir="rtl"] .popover-btn {
    text-align: right;
}
.popover-btn .caret-icon {
    font-size: 1rem;
    transition: var(--transition);
}
.popover-menu-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 20;
    max-height: 250px;
    overflow-y: auto;
}
.popover-menu-content.open {
    display: block;
}
.popover-option {
    padding: 10px 16px;
    font-size: .9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
[dir="rtl"] .popover-option {
    text-align: right;
}
.popover-option:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.popover-option.active {
    background: var(--primary);
    color: #fff;
}
.geo-btn {
    padding: 10px 16px;
    font-size: .9rem;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
    min-height: 200px;
}
.clinic-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.clinic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.clinic-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.clinic-doc-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}
.clinic-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--bg-alt);
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.clinic-info-row {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: .88rem;
    margin-bottom: 8px;
    align-items: flex-start;
}
.clinic-info-row i {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 2px;
}
.clinic-distance {
    align-self: flex-start;
    font-size: .85rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 12px;
}
.empty-state, .loading-state {
    grid-column: span 3;
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
}
.empty-state i, .loading-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
}
.loading-state i {
    animation: rotate 1s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Responsive overrides for search section */
@media(max-width: 768px) {
    .search-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .spec-field {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 12px;
    }
    [dir="rtl"] .spec-field {
        border-right: none;
        border-top: 1px solid var(--border);
        padding-right: 0;
        padding-top: 12px;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .empty-state, .loading-state {
        grid-column: span 1;
    }
}

/* Custom navigation button icon and popovers styling */
.nav-btn-icon {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 99px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    box-shadow: var(--shadow-sm) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}
.nav-btn-icon:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}
.nav-btn-icon i {
    font-size: 1.25rem !important;
    color: var(--text-main) !important;
    transition: var(--transition) !important;
}
.nav-btn-icon:hover i {
    color: var(--primary) !important;
}

.action-popover-menu {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    background-color: var(--surface);
}
.action-popover-menu .popover-item {
    transition: var(--transition);
}
.action-popover-menu .popover-item:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* Stepper Timeline styles */
.stepper-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg) !important;
}
.stepper-card:hover div i {
    transform: scale(1.1);
}

/* Modern Flowing Stepper Connector */
.modern-connector-line {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #10b981, #34d399, #3b82f6);
    background-size: 200% auto;
    animation: flowLight 3s linear infinite;
    border-radius: 99px;
    position: relative;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.modern-connector-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.stepper-card:hover + .stepper-connector-container .modern-connector-badge {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4) !important;
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes flowLight {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Three-Pane Dropdown (Specialties) */
.specialties-triple-popover {
    width: min(760px, 92vw) !important;
    max-width: 92vw !important;
    padding: 0 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.specialties-triple-popover .popover-split-left {
    width: 28% !important;
}
.specialties-triple-popover .popover-split-right {
    width: 40% !important;
}
.popover-split-middle {
    width: 32%;
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}
[dir="rtl"] .popover-split-middle {
    border-right: none;
    border-left: 1px solid var(--border);
}
.popover-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
[dir="rtl"] .popover-category-item {
    text-align: right;
}
.popover-category-item:hover, .popover-category-item.active {
    background: var(--primary-light);
    color: var(--primary);
}
.popover-category-item i {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.popover-category-item:hover i, .popover-category-item.active i {
    color: var(--primary);
}

/* ==========================================================================
   MODERN HOMEPAGE PRESENTATION SECTIONS & PHOTO CONTAINERS
   ========================================================================== */
.presentation-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    transition: background 0.3s ease;
}

.presentation-section.section-alt {
    background: var(--background);
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.presentation-grid.grid-reverse {
    grid-template-columns: 1fr 1fr;
}

/* Grid reverse ordering */
.presentation-grid.grid-reverse .presentation-text {
    order: 2;
}

.presentation-grid.grid-reverse .presentation-visual {
    order: 1;
}

[dir="rtl"] .presentation-grid.grid-reverse .presentation-text {
    order: 2;
}

[dir="rtl"] .presentation-grid.grid-reverse .presentation-visual {
    order: 1;
}

.presentation-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.presentation-desc {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Specialty Chips Bar */
.specialties-chips-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.chip-item:hover, .chip-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Feature Bullets */
.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.bullet-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.bullet-item:hover .bullet-icon {
    transform: scale(1.1) rotate(4deg);
}

.bullet-item h4 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.bullet-item p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.presentation-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Modern Ultra Photo Containers */
.modern-photo-container {
    position: relative;
    border-radius: 28px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px -15px rgba(0, 102, 255, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.modern-photo-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -20px rgba(0, 102, 255, 0.2), 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 102, 255, 0.3);
}

.modern-photo-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.photo-overlay-glow {
    position: absolute;
    inset: 12px;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0, 102, 255, 0.08);
}

/* Photo Floating Badges */
.photo-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-floating-badge:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.badge-top-left {
    top: 24px;
    left: 24px;
}

.badge-bottom-right {
    bottom: 24px;
    right: 24px;
}

.badge-top-right {
    top: 24px;
    right: 24px;
}

.badge-bottom-left {
    bottom: 24px;
    left: 24px;
}

[dir="rtl"] .badge-top-left {
    top: 24px;
    left: auto;
    right: 24px;
}

[dir="rtl"] .badge-bottom-right {
    bottom: 24px;
    right: auto;
    left: 24px;
}

[dir="rtl"] .badge-top-right {
    top: 24px;
    right: auto;
    left: 24px;
}

[dir="rtl"] .badge-bottom-left {
    bottom: 24px;
    left: auto;
    right: 24px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.badge-icon-success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.badge-icon-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.badge-icon-accent {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.badge-icon-info {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.badge-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.badge-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 2px;
}

/* Responsive Presentation Section */
@media (max-width: 992px) {
    .presentation-grid, .presentation-grid.grid-reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .presentation-grid.grid-reverse .presentation-text {
        order: 1;
    }
    
    .presentation-grid.grid-reverse .presentation-visual {
        order: 2;
    }
    
    .presentation-title {
        font-size: 1.85rem;
    }
    
    .photo-floating-badge {
        padding: 10px 14px;
    }
    
    .badge-top-left { top: -10px; left: -10px; }
    .badge-bottom-right { bottom: -10px; right: -10px; }
    .badge-top-right { top: -10px; right: -10px; }
    .badge-bottom-left { bottom: -10px; left: -10px; }
}

/* ==========================================================================
   ALIVE GEOMETRIC PHOTO CONTAINER DESIGN (Inspired by Reference Design)
   ========================================================================== */
.alive-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Dynamic Angled Backdrop Sheet */
.alive-backdrop-sheet {
    position: absolute;
    top: 5%;
    right: -5%;
    left: auto;
    width: 105%;
    height: 90%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.85) 0%, rgba(0, 102, 255, 0.95) 50%, rgba(139, 92, 246, 0.9) 100%);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    border-radius: 40px;
    z-index: 1;
    opacity: 0.9;
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.25);
    transition: transform 0.5s ease;
}

.presentation-section.section-alt .alive-backdrop-sheet {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(239, 68, 68, 0.85) 50%, rgba(168, 85, 247, 0.9) 100%);
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
}

.alive-container-wrapper:hover .alive-backdrop-sheet {
    transform: scale(1.03) rotate(-1deg);
}

/* Floating Graphic Orbs */
.alive-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    animation: orbPulse 6s ease-in-out infinite alternate;
}

.orb-1 {
    width: 110px;
    height: 110px;
    top: -25px;
    right: -25px;
    left: auto;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.orb-2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: -20px;
    right: auto;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.orb-3 {
    width: 50px;
    height: 50px;
    top: 40%;
    left: -35px;
    right: auto;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Striped Accent Element */
.alive-striped-accent {
    position: absolute;
    bottom: 30px;
    right: -30px;
    left: auto;
    width: 90px;
    height: 60px;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.7) 6px,
        transparent 6px,
        transparent 14px
    );
    opacity: 0.8;
}

/* Alive Main Photo Frame (Floating Card / Device Mockup) */
.alive-photo-frame {
    position: relative;
    z-index: 3;
    background: transparent;
    border: none;
    border-radius: 28px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
    animation: floatAlive 5s ease-in-out infinite alternate;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .alive-photo-frame {
    border-color: transparent;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
}

.alive-container-wrapper:hover .alive-photo-frame {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.35);
}

.alive-photo-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}

/* Floating Animations */
@keyframes floatAlive {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    100% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
}

@keyframes orbPulse {
    0% {
        transform: scale(1) translateY(0px);
    }
    100% {
        transform: scale(1.1) translateY(-6px);
    }
}

/* LTR and RTL Adjustments for Alive Sheet & Orbs */
[dir="rtl"] .alive-backdrop-sheet {
    right: auto;
    left: -5%;
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
}

[dir="rtl"] .presentation-section.section-alt .alive-backdrop-sheet {
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}

[dir="rtl"] .orb-1 {
    right: auto;
    left: -25px;
}

[dir="rtl"] .orb-2 {
    left: auto;
    right: -20px;
}

[dir="rtl"] .orb-3 {
    left: auto;
    right: -35px;
}

[dir="rtl"] .alive-striped-accent {
    right: auto;
    left: -30px;
}

/* Responsive Alive Container */
@media (max-width: 992px) {
    .alive-container-wrapper {
        max-width: 100%;
        padding: 10px;
    }
    
    .alive-photo-frame img {
        height: 300px;
    }
    
    .orb-1 { width: 70px; height: 70px; top: -15px; right: -15px; }
    .orb-2 { width: 50px; height: 50px; bottom: -15px; left: -15px; }
    .orb-3 { display: none; }
}

/* ==========================================================================
   LONGER STADIUM PILL & DISTINCT HOMEPAGE SHAPES (No White Border)
   ========================================================================== */

/* 1. Hero Longer Stadium Pill Capsule (520px height) */
.hero-presentation .alive-photo-frame {
    border-radius: 999px !important;
    width: 320px !important;
    height: 520px !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -10px rgba(0, 102, 255, 0.3);
}

.hero-presentation .alive-photo-frame img {
    border-radius: 999px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Matching Pill Background Sheet Behind First Image */
.hero-presentation .alive-backdrop-sheet {
    clip-path: none !important;
    border-radius: 999px !important;
    width: 320px !important;
    height: 520px !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-44%, -46%) rotate(-8deg) !important;
    opacity: 0.85;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.9) 0%, rgba(0, 102, 255, 0.95) 50%, rgba(139, 92, 246, 0.9) 100%);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.3);
}

.hero-presentation .alive-container-wrapper:hover .alive-backdrop-sheet {
    transform: translate(-44%, -46%) rotate(-12deg) scale(1.03) !important;
}

[dir="rtl"] .hero-presentation .alive-backdrop-sheet {
    transform: translate(-56%, -46%) rotate(8deg) !important;
}

/* ==========================================================================
   HERO SHORTCUT ACTION LINKS
   ========================================================================== */
.hero-shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff !important;
    background: var(--primary);
    border: none;
    border-radius: 99px;
    padding: 3px 12px;
    margin-inline-start: 8px;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-shortcut-link:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--primary-glow);
}

[data-theme="dark"] .hero-shortcut-link {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}

[data-theme="dark"] .hero-shortcut-link:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    box-shadow: 0 8px 22px var(--primary-glow);
}

/* ==========================================================================
   2-COLUMN PRESENTATION GRID WITH STACKED MODULES & SPECIALIZATIONS PILLS
   ========================================================================== */
.dual-pills-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.pills-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Segmented Control Switcher with Smooth Sliding Indicator */
.pills-segmented-control {
    position: relative;
    display: inline-flex;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
}

.segmented-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 114, 245, 0.4);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), width 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.pills-segmented-control.ready .segmented-indicator {
    opacity: 1;
}

.segmented-tab-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

.segmented-tab-btn i {
    font-size: 1.1rem;
    color: var(--primary);
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-tab-btn:hover {
    color: var(--text);
}

.segmented-tab-btn:active {
    transform: scale(0.96);
}

.segmented-tab-btn.active {
    color: #ffffff !important;
}

.segmented-tab-btn.active i {
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .pills-segmented-control {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 4px;
        gap: 3px;
    }

    .segmented-tab-btn {
        flex: 1 1 50%;
        min-width: 0;
        padding: 8px 6px;
        font-size: clamp(0.72rem, 3.1vw, 0.82rem);
        gap: 5px;
    }

    .segmented-tab-btn i {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .segmented-tab-btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Panel Motion Effects */
.segmented-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.segmented-panel.panel-entering {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
}

.segmented-panel:not(.active) {
    display: none !important;
}

.pills-row-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.86rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.inline-pill-btn i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.inline-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-alt);
}

.inline-pill-btn.active {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.inline-pill-btn.active i {
    color: var(--primary) !important;
}

[data-theme="dark"] .inline-pill-btn.active {
    color: #ffffff !important;
}

[data-theme="dark"] .inline-pill-btn.active i {
    color: #ffffff !important;
}

.pill-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    transition: var(--transition);
}

.pill-more-link .lang-en,
.pill-more-link .lang-ar {
    align-items: center;
    gap: 6px;
    line-height: 1;
}

[dir="rtl"] .pill-more-link .lang-en,
[lang="ar"] .pill-more-link .lang-en {
    display: none !important;
}

[dir="rtl"] .pill-more-link .lang-ar,
[lang="ar"] .pill-more-link .lang-ar {
    display: inline-flex !important;
}

html:not([dir="rtl"]) .pill-more-link .lang-ar,
html[dir="ltr"] .pill-more-link .lang-ar {
    display: none !important;
}

html:not([dir="rtl"]) .pill-more-link .lang-en,
html[dir="ltr"] .pill-more-link .lang-en {
    display: inline-flex !important;
}

.pill-more-link i {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    top: 1px;
    transition: transform 0.2s ease;
}

[dir="rtl"] .pill-more-link i {
    top: 2px;
}

.pill-more-link:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
    text-decoration: none;
}

.pill-more-link:hover i {
    transform: translateX(3px);
}

[dir="rtl"] .pill-more-link:hover i {
    transform: translateX(-3px);
}

[data-theme="dark"] .pill-more-link {
    color: #60a5fa;
}

[data-theme="dark"] .pill-more-link:hover {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
}










/* ==========================================================================
   3 DISTINCT ORGANIC BLOB SHAPES & MATCHING FLUID BACKDROPS
   ========================================================================== */


/* --- Image 2 / Section 1: TibSpace Discovery (Upright Vertical Bandage Shape - No Leaning) --- */
#tibspace-platform .alive-photo-frame {
    border-radius: 90px 40px 90px 40px / 40px 90px 40px 90px !important;
    transform: none !important;
    overflow: hidden !important;
}
#tibspace-platform .alive-photo-frame img {
    border-radius: 90px 40px 90px 40px / 40px 90px 40px 90px !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
#tibspace-platform .alive-backdrop-sheet {
    clip-path: none !important;
    border-radius: 90px 40px 90px 40px / 40px 90px 40px 90px !important;
    top: 14px !important;
    right: -16px !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.9) 0%, rgba(0, 102, 255, 0.95) 50%, rgba(139, 92, 246, 0.9) 100%) !important;
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.3) !important;
}
#tibspace-platform .alive-container-wrapper:hover .alive-backdrop-sheet {
    transform: translate(-6px, 6px) scale(1.02) !important;
}


/* --- Image 3 / Section 2: ClinicOS SaaS Platform (Longer & Wider Horizontal Bandage Capsule - No Leaning) --- */
#clinicos-saas .alive-container-wrapper {
    position: relative;
    max-width: 600px !important;
    margin: 0 auto;
}

#clinicos-saas .alive-photo-frame {
    width: 100% !important;
    height: 340px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: 0 25px 50px -10px rgba(245, 158, 11, 0.3) !important;
    overflow: hidden !important;
    transform: none !important;
}

#clinicos-saas .alive-photo-frame img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Matching Un-tilted Backdrop Sheet Behind Image 3 */
#clinicos-saas .alive-backdrop-sheet {
    clip-path: none !important;
    border-radius: 999px !important;
    top: 16px !important;
    left: -16px !important;
    width: 100% !important;
    height: 340px !important;
    transform: none !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.85) 0%, rgba(239, 68, 68, 0.8) 50%, rgba(168, 85, 247, 0.85) 100%) !important;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.25) !important;
}

#clinicos-saas .alive-container-wrapper:hover .alive-backdrop-sheet {
    transform: translate(6px, 6px) scale(1.02) !important;
}






/* --- Image 4 / Section 3: Patient Portal (Organic Splash Blob C) --- */
#patient-portal-section .alive-photo-frame {
    border-radius: 50% 50% 35% 65% / 60% 35% 65% 40% !important;
    overflow: hidden !important;
}
#patient-portal-section .alive-photo-frame img {
    border-radius: 50% 50% 35% 65% / 60% 35% 65% 40% !important;
}
#patient-portal-section .alive-backdrop-sheet {
    clip-path: none !important;
    border-radius: 50% 50% 35% 65% / 60% 35% 65% 40% !important;
    top: 3% !important;
    right: -4% !important;
    width: 105% !important;
    height: 94% !important;
    transform: rotate(-7deg) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(6, 182, 212, 0.95) 50%, rgba(139, 92, 246, 0.9) 100%) !important;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3) !important;
}
#patient-portal-section .alive-container-wrapper:hover .alive-backdrop-sheet {
    transform: rotate(-11deg) scale(1.03) !important;
}


/* ==========================================================================
   STRICT LEFT / RIGHT TEXT ALIGNMENT (No Centered Distractions)
   ========================================================================== */
.hero-content,
.hero-text,
.hero-title,
.hero-desc,
.hero-content p,
.presentation-text,
.presentation-title,
.presentation-desc,
.feature-bullets,
.bullet-item,
.bullet-item div {
    text-align: left !important;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .hero-text,
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-desc,
[dir="rtl"] .hero-content p,
[dir="rtl"] .presentation-text,
[dir="rtl"] .presentation-title,
[dir="rtl"] .presentation-desc,
[dir="rtl"] .feature-bullets,
[dir="rtl"] .bullet-item,
[dir="rtl"] .bullet-item div {
    text-align: right !important;
}


.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0 32px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bullet-item .bullet-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==========================================================================
   INTERACTIVE SPECIALTY SLIDER / CHIPS BAR
   ========================================================================== */
.specialties-chips-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 32px;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.chip-item:hover, .chip-item.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
    transform: translateY(-2px);
}

.specialty-photo-transition {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.specialty-photo-transition.fading {
    opacity: 0.2;
    transform: scale(0.97);
}

/* Dedicated Doctor Search Page Styles */
.search-input-field:focus,
.search-select-field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 114, 245, 0.15) !important;
}

.search-select-field option {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    padding: 10px;
}

.doctor-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Hide Developer APIs links from navigation menu and footer */
[data-product="apidocs"],
a[href*="apidocs"] {
    display: none !important;
}

/* ==========================================================================
   PRICING CALCULATOR & FEATURES MATRIX INTERACTIVE ENGINE
   ========================================================================== */

.features-matrix-section {
    padding: 80px 0 100px;
    background: var(--bg);
    position: relative;
}

/* Compact Integrated Calculator Toolbar (Strict Single Line) */
.pricing-calc-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 12px 24px;
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
}

@media (max-width: 820px) {
    .pricing-calc-toolbar {
        flex-wrap: wrap;
        width: auto;
        gap: 14px;
        padding: 14px 18px;
    }
}

.calc-toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-toolbar-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Billing Cycle Toggle */
.calc-cycle-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px;
}

.calc-cycle-btn {
    padding: 6px 16px;
    border-radius: 99px;
    border: none;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-cycle-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.calc-discount-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Inline Stepper */
.calc-inline-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-alt);
    overflow: hidden;
}

.calc-inline-stepper .calc-step-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.calc-inline-stepper .calc-step-btn:hover {
    background: var(--surface);
    color: var(--primary);
}

.calc-inline-stepper .calc-step-val {
    width: 40px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    border: none;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
}

.calc-inline-stepper .calc-step-val::-webkit-outer-spin-button,
.calc-inline-stepper .calc-step-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.plan-calc-subtext {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* ==========================================================================
   COMPARE FEATURES MATRIX TABLE STYLES (Clean, Modern, Crisp SaaS Layout)
   ========================================================================== */

.features-matrix-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.pub-matrix-scroll-container {
    overflow-x: auto;
    position: relative;
}

.pub-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}

[dir="rtl"] .pub-matrix-table {
    text-align: right;
}

/* 1. Compact, Clean Matrix Table Header */
.pub-matrix-table thead th {
    background: var(--surface);
    padding: 16px 20px;
    border-bottom: 2px solid var(--border);
    vertical-align: middle;
}

.pub-matrix-table th.col-feature {
    width: 44%;
    min-width: 260px;
}

.col-feat-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.col-feat-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.pub-matrix-table th.col-plan {
    text-align: center;
    width: 18%;
    min-width: 140px;
    padding: 14px 16px;
    vertical-align: middle;
}

.col-plan-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.col-plan-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.col-plan-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-top: 2px;
}

.col-plan-price .price-num {
    font-size: 1.05rem;
    font-weight: 800;
}

.col-plan-price .price-unit {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pub-matrix-table th.col-plan.featured {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-inline: 1.5px solid rgba(37, 99, 235, 0.22);
}

.plan-featured-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 9px;
    border-radius: 99px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    margin-bottom: 3px;
}

/* 2. Category Header Row (Level 2) - Interactive Collapsible */
.pub-cat-row {
    background: var(--bg-alt);
    border-top: 1.5px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.pub-cat-row:hover {
    background: rgba(37, 99, 235, 0.07);
}

.pub-cat-row:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.pub-cat-row td {
    padding: 12px 22px;
    font-weight: 800;
    font-size: 0.94rem;
    color: var(--text);
    background: var(--bg-alt);
}

.pub-cat-row:hover td {
    background: rgba(37, 99, 235, 0.08);
}

.cat-row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cat-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-title-group .cat-icon {
    color: var(--primary);
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.pub-cat-row:hover .cat-title-group .cat-icon {
    transform: scale(1.12);
}

.cat-title-text {
    font-weight: 800;
    color: var(--text);
    font-size: 0.92rem;
}

.cat-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

[data-theme="dark"] .cat-toggle-wrap {
    background: rgba(255, 255, 255, 0.06);
}

.pub-cat-row:hover .cat-toggle-wrap {
    background: rgba(37, 99, 235, 0.16);
}

.cat-toggle-icon {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.pub-cat-row:hover .cat-toggle-icon {
    color: var(--primary);
}

.pub-cat-row.collapsed .cat-toggle-icon {
    transform: rotate(-90deg);
}

[dir="rtl"] .pub-cat-row.collapsed .cat-toggle-icon {
    transform: rotate(90deg);
}

/* 6. Feature Item Row (Level 3) & Animated Transitions */
.pub-feat-row {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.12s ease;
}

.pub-feat-row.collapsed {
    display: none !important;
}

.pub-feat-row:hover {
    background: rgba(37, 99, 235, 0.025);
}

.pub-feat-row td {
    padding: 11px 22px;
    vertical-align: middle;
}

.pub-feat-row td.plan-cell {
    text-align: center;
    padding: 11px 10px;
}

.pub-feat-row td.plan-cell.featured {
    background: rgba(37, 99, 235, 0.035);
    border-inline: 1.5px solid rgba(37, 99, 235, 0.14);
}

.feat-name-text {
    font-weight: 600;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.35;
}

.matrix-check-icon {
    color: var(--accent-emerald, #10b981);
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.2));
}

.matrix-cross-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0.35;
}

/* Custom Text / Limit Note Badge in Matrix Cells */
.matrix-custom-note-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.matrix-custom-note-badge:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: translateY(-1px);
}

.btn-cell-note-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cell-note-edit:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
}

/* Feature Row Drag-and-Drop Reordering Styles */
.feature-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    color: var(--text-muted);
    cursor: grab;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    margin-inline-end: 6px;
}

.matrix-feature-row:hover .feature-drag-handle,
.feature-drag-handle:hover {
    opacity: 1;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.12);
}

.feature-drag-handle:active {
    cursor: grabbing;
}

.matrix-feature-row {
    transition: background 0.15s ease, opacity 0.15s ease;
}

.matrix-feature-row.is-dragging {
    opacity: 0.4;
    background: rgba(37, 99, 235, 0.08) !important;
    outline: 2px dashed var(--primary);
    outline-offset: -2px;
}

.matrix-feature-row.drag-over-top {
    box-shadow: inset 0 3.5px 0 0 var(--primary) !important;
    background: rgba(37, 99, 235, 0.06);
}

.matrix-feature-row.drag-over-bottom {
    box-shadow: inset 0 -3.5px 0 0 var(--primary) !important;
    background: rgba(37, 99, 235, 0.06);
}

/* Floating '?' Information Popover Tooltip (Per AGENTS.md rules) */
.matrix-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(37, 99, 235, 0.25);
    margin-inline-start: 6px;
    transition: all 0.2s ease;
    position: relative;
    vertical-align: middle;
}

.matrix-info-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.15);
}

.floating-matrix-popover {
    position: absolute;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px; /* Strict AGENTS.md requirement */
    box-shadow: var(--shadow-lg); /* Strict AGENTS.md requirement */
    padding: 16px;
    z-index: 1000;
    pointer-events: auto;
    animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

[dir="rtl"] .floating-matrix-popover {
    text-align: right;
}


/* ==========================================================================
   AUTHENTIC CLINICOS LIVE INTERFACE SHOWCASE (1:1 CODE-DRIVEN UI)
   ========================================================================== */
.clinicos-showcase-section {
    padding: 60px 0 100px;
    background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.08), transparent 70%), var(--bg);
    position: relative;
    overflow: hidden;
}

.clinicos-hero-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 40px;
}

.clinicos-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.25);
    margin-bottom: 16px;
}

.clinicos-live-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Workspace Window Frame */
.clinicos-window-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1240px;
}

/* Window Top Control Bar */
.clinicos-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--surface-card, rgba(255, 255, 255, 0.03));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.clinicos-tab-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.clinicos-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clinicos-tab-btn:hover {
    color: var(--text-main);
}

.clinicos-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.window-meta-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 1:1 ClinicOS Inner Shell */
.clinicos-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 640px;
    background: var(--bg);
}

@media (max-width: 992px) {
    .clinicos-shell {
        grid-template-columns: 1fr;
    }
    .clinicos-sidebar {
        display: none;
    }
}

/* Left Sidebar (Exact 1:1 ClinicOS Floating Theme) */
.clinicos-sidebar {
    background: var(--surface);
    border-inline-end: 1px solid var(--border);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 12px;
    border-bottom: 1px solid var(--border);
}

.logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.sidebar-nav-item i {
    font-size: 1.15rem;
}

.sidebar-nav-item:hover {
    background: var(--hover-bg, rgba(255, 255, 255, 0.05));
    color: var(--text-main);
}

.sidebar-nav-item.active {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Right Workspace Container */
.clinicos-workspace {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
}

/* Workspace Top Bar */
.workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.workspace-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.workspace-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
}

.topbar-icon-btn .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
}

.topbar-lang-pill {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.76rem;
    font-weight: 700;
    gap: 4px;
}

.topbar-lang-pill .active-lang {
    background: #0284c7;
    color: #fff;
    padding: 2px 6px;
    border-radius: 99px;
}

.topbar-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline-start: 10px;
    border-inline-start: 1px solid var(--border);
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.user-name-role {
    display: flex;
    flex-direction: column;
}

.user-name-role .uname {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.user-name-role .urole {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Workspace Panels */
.workspace-panel {
    display: none;
    padding: 24px;
    flex: 1;
    animation: fadeInView 0.2s ease;
}

.workspace-panel.active {
    display: block;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Appointments Table Toolbar */
.appt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.appt-date-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
}

.appt-search-box {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.appt-right-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.tool-btn-primary {
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Real 1:1 Table */
.clinicos-live-table-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.clinicos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

[dir="rtl"] .clinicos-table {
    text-align: right;
}

.clinicos-table th {
    padding: 12px 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.clinicos-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
    white-space: nowrap;
}

.clinicos-table tr:last-child td {
    border-bottom: none;
}

.clinicos-table tr:hover td {
    background: var(--hover-bg, rgba(255, 255, 255, 0.02));
}

/* Exact UI Badges from Screenshots */
.pat-cell {
    display: flex;
    flex-direction: column;
}
.pat-name {
    font-weight: 700;
    color: var(--text-main);
}
.pat-mrn {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-exam {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-review {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-referral {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-clinic-loc {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-status-inprogress {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-status-confirmed {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-status-scheduled {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-paid {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
}

.badge-unpaid {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
}

.queue-cell {
    display: flex;
    flex-direction: column;
}
.queue-ticket {
    font-weight: 700;
    color: var(--text-main);
}
.queue-status-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.action-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.act-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}
.act-btn.primary {
    color: #0284c7;
    font-weight: 700;
}
.act-btn.danger {
    color: #ef4444;
}

/* 2. Executive Dashboard Styles */
.dash-welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dash-welcome-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.dash-welcome-sub {
    font-size: 0.86rem;
    color: var(--text-muted);
}
.dash-op-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dash-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-footnote {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.stat-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.stat-icon-blue { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.stat-icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-icon-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.dash-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .dash-panels-grid {
        grid-template-columns: 1fr;
    }
}

.dash-subpanel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.subpanel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.diag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.diag-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diag-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.diag-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}
.diag-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.diag-right-count {
    text-align: right;
}
.diag-count-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}
.diag-count-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.insight-callout {
    border-inline-start: 3px solid #0284c7;
    background: var(--bg);
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-main);
}
[dir="rtl"] .insight-callout {
    border-radius: 8px 0 0 8px;
}

/* 3. Patient EHR View */
.ehr-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.ehr-pat-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ehr-pat-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ehr-pat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ehr-pat-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}
.ehr-pat-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.ehr-allergy-alert {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .vitals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vital-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}
.vital-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.vital-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-main);
}
.vital-unit {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}
.vital-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 4px;
}

/* 4. Laboratory Hub */
.lab-test-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.lab-test-table th {
    padding: 10px 12px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
}
.lab-test-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}
.badge-flag-high {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.72rem;
}
.badge-flag-normal {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.72rem;
}

/* ==========================================================================
   CLINICOS HERO INTRO SECTION & FLOATING TELEMETRY BADGES
   ========================================================================== */
.clinicos-hero-section {
    padding: 105px 0 50px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.09) 0%, transparent 60%);
}

.clinicos-hero-section .container {
    max-width: 1240px;
    width: 95%;
    padding: 0 20px;
}

[data-theme="dark"] .clinicos-hero-section {
    background: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.16) 0%, transparent 60%);
}

.clinicos-hero-intro {
    max-width: 900px;
    margin: 0 auto 24px;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.hero-pill-badge i {
    font-size: 1rem;
    color: var(--primary);
}

.hero-intro-title,
[dir="rtl"] .hero-intro-title {
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 auto 16px !important;
    text-align: center !important;
    max-width: 860px;
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-intro-sub,
[dir="rtl"] .hero-intro-sub {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto !important;
    text-align: center !important;
    width: 100%;
}

/* ==========================================================================
   INTERACTIVE PATIENT JOURNEY PIPELINE (HERO VISUAL ENGINE)
   ========================================================================== */
.hero-pipeline-container {
    position: relative;
    max-width: 1200px;
    margin: 34px auto 0;
    width: 100%;
}

/* 4-Stage Step Navigation Buttons */
.pipeline-steps-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.pipeline-step-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    user-select: none;
}

[dir="rtl"] .pipeline-step-btn {
    text-align: right;
}

.pipeline-step-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pipeline-step-btn.active {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.24);
}

.pipeline-step-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
}

.pipeline-step-btn.completed {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.03);
}

.pipeline-step-btn.completed .step-num {
    color: #10b981;
    opacity: 0.9;
}

/* Directional Flow Chevron Connectors */
.pipeline-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.92rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.pipeline-flow-arrow i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    transform: translateX(0.5px);
}

[dir="rtl"] .pipeline-flow-arrow i {
    transform: rotate(180deg) translateX(1.5px);
}

.pipeline-flow-arrow:hover {
    transform: scale(1.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.pipeline-flow-arrow.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
    animation: flowArrowPulse 1.8s infinite ease-in-out;
}

.pipeline-flow-arrow.completed {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
}

@keyframes flowArrowPulse {
    0%, 100% {
        transform: scale(1) translateX(0);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.12) translateX(3px);
        box-shadow: 0 0 14px 2px rgba(59, 130, 246, 0.35);
    }
}

[dir="rtl"] @keyframes flowArrowPulse {
    0%, 100% {
        transform: scale(1) translateX(0);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.12) translateX(-3px);
        box-shadow: 0 0 14px 2px rgba(59, 130, 246, 0.35);
    }
}

.step-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.06em;
}

.step-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.step-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.step-title,
.step-title-en,
.step-title-ar {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-tag,
.step-tag-en,
.step-tag-ar {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Active Pipeline Stage Card */
.pipeline-stage-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 20px 48px -10px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .pipeline-stage-card {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 20px 52px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pipeline-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.pipeline-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: liveDotPulse 2s infinite;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pipeline-speed-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.09);
    border: 1px solid rgba(59, 130, 246, 0.18);
    padding: 4px 12px;
    border-radius: 99px;
}

/* Feature 3-Card Grid */
.pipeline-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pipeline-feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s ease;
}

.pipeline-feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pipeline-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.pipeline-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.35;
}

.pipeline-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Animated Progress Line */
.pipeline-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-alt);
}

.pipeline-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6, #f59e0b);
}

@keyframes pipelineProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@media (max-width: 960px) {
    .pipeline-steps-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pipeline-flow-arrow {
        display: none;
    }
    .pipeline-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .pipeline-steps-nav {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WORKSPACE SHOWCASE SECTION (AFTER MODULES)
   ========================================================================== */
.workspace-showcase-section {
    padding: 80px 0 70px;
    position: relative;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.workspace-showcase-section .container {
    max-width: 1360px;
    width: 95%;
    padding: 0 20px;
}

.section-header-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.section-header-center .section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-header-center .section-title {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
}

.section-header-center .section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CLINICOS ZANDA-STYLE SPLIT SHOWCASE (COMPACT PROPORTIONAL FIT)
   ========================================================================== */
.zanda-showcase-container {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 10px;
    margin-bottom: 6px;
    width: 100%;
}

/* Left Column: Feature Accordion Cards */
.zanda-features-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zanda-features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
    padding-left: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

[dir="rtl"] .zanda-features-list {
    padding-right: 2px;
    padding-left: 4px;
}

.zanda-features-list::-webkit-scrollbar {
    width: 4px;
}

.zanda-features-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

/* Feature Card */
.zanda-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 13px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.zanda-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.06);
}

.zanda-card.active {
    align-items: flex-start;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.2), 0 0 0 1px var(--primary);
}

[data-theme="dark"] .zanda-card {
    background: #111a2e;
    border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .zanda-card:hover {
    background: #16223b;
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .zanda-card.active {
    background: #172440;
    border-color: #60a5fa;
    box-shadow: 0 6px 20px -4px rgba(59, 130, 246, 0.3), 0 0 0 1px #60a5fa;
}

.zanda-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.zanda-card:hover .zanda-card-icon {
    transform: scale(1.06);
}

.zanda-card-body {
    flex: 1;
    min-width: 0;
}

.zanda-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.zanda-card.active .zanda-card-title {
    color: var(--primary);
}

[data-theme="dark"] .zanda-card.active .zanda-card-title {
    color: #93c5fd;
}

.zanda-card-expand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}

.zanda-card.active .zanda-card-expand {
    max-height: 110px;
    opacity: 1;
    margin-top: 5px;
}

.zanda-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 5px;
}

.zanda-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.zanda-card-link:hover {
    gap: 7px;
}

.zanda-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    width: 0%;
}

@keyframes zandaProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Right Column: Stage Canvas */
.zanda-stage-col {
    display: flex;
    align-items: center;
}

.zanda-stage-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 45%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 14px 34px -10px rgba(99, 102, 241, 0.22);
}

[data-theme="dark"] .zanda-stage-canvas {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(59, 130, 246, 0.18) 100%), #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.zanda-stage-mockup {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.38);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] .zanda-stage-mockup {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 52px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.zanda-stage-canvas:hover .zanda-stage-mockup {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 24px 56px -10px rgba(15, 23, 42, 0.45);
}

.zanda-mockup-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zanda-stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.zanda-stage-img.fading {
    opacity: 0.2;
    transform: scale(0.98);
}

.zanda-stage-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.zanda-stage-loading.visible {
    opacity: 1;
}

.zanda-stage-loading i {
    font-size: 1.8rem;
    color: var(--primary);
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .zanda-showcase-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .zanda-features-list {
        max-height: 320px;
    }
    .zanda-stage-canvas {
        min-height: 420px;
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    .zanda-stage-canvas {
        min-height: 300px;
        padding: 16px 12px;
        border-radius: 20px;
    }
    .zanda-stage-mockup {
        border-radius: 12px;
    }
    .zanda-card {
        padding: 12px 14px;
        border-radius: 14px;
    }
    .zanda-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   QUOTATION REQUEST MODAL STYLES
   ========================================================================== */
.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.quote-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.quote-modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Clips outer edges cleanly to rounded corners - NO outside scrollbar */
    padding: 0;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}
.quote-modal-overlay.active .quote-modal-card {
    transform: translateY(0) scale(1);
}
.quote-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}
.quote-modal-close:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--primary);
    transform: rotate(90deg);
}
[dir="rtl"] .quote-modal-card {
    text-align: right;
}
[dir="rtl"] .quote-modal-close {
    right: auto;
    left: 24px;
}

.quote-modal-header {
    padding: 28px 32px 14px;
    padding-right: 64px;
    flex-shrink: 0;
    margin-bottom: 0;
}
[dir="rtl"] .quote-modal-header {
    padding-right: 32px;
    padding-left: 64px;
}

/* Scrollable Modal Body strictly inside the card */
.quote-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 24px 28px 32px;
}
[dir="rtl"] .quote-modal-body {
    padding: 6px 32px 28px 24px;
}

/* Firefox custom scrollbar */
@supports (-moz-appearance: none) {
    .quote-modal-body {
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
    }
    [data-theme="dark"] .quote-modal-body {
        scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    }
}

/* WebKit / Chromium custom sleek scrollbar (No arrows, elegant inset pill) */
.quote-modal-body::-webkit-scrollbar {
    width: 6px;
}
.quote-modal-body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.quote-modal-body::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}
.quote-modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 99px;
}
.quote-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

[data-theme="dark"] .quote-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}
[data-theme="dark"] .quote-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}
.quote-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.quote-modal-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.25;
}
.quote-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

/* Summary Box */
.quote-summary-box {
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.quote-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.quote-summary-plan {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
}
.quote-summary-cycle {
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    padding: 3px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}
.quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.quote-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quote-summary-stat .stat-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}
.quote-summary-stat .stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}
.quote-summary-stat .quote-price-highlight {
    color: var(--primary);
}

/* Form inputs */
.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 580px) {
    .quote-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.quote-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quote-form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
}
.quote-form-group input,
.quote-form-group select,
.quote-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.quote-form-group input:focus,
.quote-form-group select:focus,
.quote-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.quote-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Anti-Robot Widget */
.quote-robot-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    margin: 18px 0 20px;
}
.quote-robot-left {
    display: flex;
    align-items: center;
}
.quote-robot-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    user-select: none;
}
.quote-robot-checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
}
.quote-robot-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
}
.quote-robot-badge i {
    font-size: 1.4rem;
    color: #10b981;
}
.quote-security-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Alerts and Actions */
.quote-form-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.quote-form-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.quote-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
}
.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success State */
.quote-success-state {
    text-align: center;
    padding: 24px 12px;
}
.quote-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.quote-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
}
.quote-success-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 24px;
}
.quote-ref-card {
    background: var(--bg-alt);
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.quote-ref-code {
    font-family: monospace;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}



