/**
 * Dr. Mahar Kashif Rasheed Official Website
 * Interactive Medical Widgets & Clinical Calculators Stylesheet
 * 
 * Includes:
 * 1. Metabolic Health & Diabetes Risk Calculator (Bugfix: No overlaps, fluid SVG gauge)
 * 2. Interactive Symptom & Body Explorer (Bugfix: Touch horizontal scroll, fade indicators)
 * 3. Interactive 3D Phone App Screen Switcher (Bugfix: Responsive frame, scrolling action chips, HUD scaling)
 * 4. Live Doctor Availability & OPD Triage Clock (Bugfix: Days:Hours:Mins:Secs fluid fit, wrapping chips)
 */

/* ─── CSS VARIABLES & THEME TOKENS ───────────────────────────────── */
:root {
    --widget-primary: #059669;
    --widget-primary-dark: #064e3b;
    --widget-primary-deep: #022c22;
    --widget-primary-light: #10b981;
    --widget-primary-soft: #ecfdf5;
    --widget-primary-glow: rgba(16, 185, 129, 0.28);

    --widget-accent: #2563eb;
    --widget-accent-light: #38bdf8;
    --widget-accent-soft: #eff6ff;

    --widget-amber: #d97706;
    --widget-amber-soft: #fffbeb;
    --widget-red: #dc2626;
    --widget-red-soft: #fef2f2;
    --widget-purple: #7c3aed;
    --widget-purple-soft: #f5f3ff;

    --widget-slate-900: #0f172a;
    --widget-slate-800: #1e293b;
    --widget-slate-700: #334155;
    --widget-slate-600: #475569;
    --widget-slate-500: #64748b;
    --widget-slate-400: #94a3b8;
    --widget-slate-200: #e2e8f0;
    --widget-slate-100: #f1f5f9;
    --widget-slate-50:  #f8fafc;
    --widget-white:     #ffffff;

    --widget-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --widget-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --widget-font-mono: 'JetBrains Mono', monospace;

    --widget-radius-sm: 8px;
    --widget-radius-md: 14px;
    --widget-radius-lg: 20px;
    --widget-radius-xl: 28px;
    --widget-radius-full: 9999px;

    --widget-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    --widget-shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --widget-shadow-lg: 0 24px 50px -12px rgba(6, 78, 59, 0.14), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
    --widget-shadow-card: 0 16px 40px -12px rgba(15, 23, 42, 0.09);
    --widget-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Box Sizing & Containment */
.widget-section-wrapper *,
.widget-section-wrapper *::before,
.widget-section-wrapper *::after,
.phone-interactive-component *,
.triage-clock-component * {
    box-sizing: border-box;
}

/* ─── COMMON WIDGET LAYOUT CONTAINERS ────────────────────────────── */
.widget-section-wrapper {
    position: relative;
    padding: clamp(48px, 6vw, 76px) 0;
    background: transparent;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.widget-section-wrapper.bg-tint {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.4) 0%, rgba(248, 250, 252, 1) 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.widget-header-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(28px, 4vw, 42px) auto;
    padding: 0 12px;
}

.widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--widget-primary-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--widget-radius-full);
    color: var(--widget-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.widget-badge svg {
    color: var(--widget-primary);
}

.widget-title {
    font-family: var(--widget-font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--widget-slate-900);
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.widget-subtitle {
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    color: var(--widget-slate-600);
    line-height: 1.65;
}

/* ==================================================================
   1. METABOLIC HEALTH & DIABETES RISK CALCULATOR
   ================================================================== */
.calc-card-container {
    background: var(--widget-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--widget-radius-xl);
    box-shadow: var(--widget-shadow-lg);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.calc-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #f59e0b 80%, #ef4444 100%);
    z-index: 10;
}

.calc-grid-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    width: 100%;
}

@media (max-width: 980px) {
    .calc-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Left Form Pane */
.calc-input-pane {
    padding: clamp(24px, 4vw, 40px);
    border-right: 1px solid var(--widget-slate-200);
    background: #ffffff;
    width: 100%;
}

@media (max-width: 980px) {
    .calc-input-pane {
        border-right: none;
        border-bottom: 1px solid var(--widget-slate-200);
    }
}

.calc-section-title {
    font-family: var(--widget-font-display);
    font-size: clamp(1.15rem, 2vw, 1.28rem);
    font-weight: 700;
    color: var(--widget-slate-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 5;
    line-height: 1.3;
}

.calc-section-title span.step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--widget-primary-dark);
    color: var(--widget-white);
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: var(--widget-radius-full);
    flex-shrink: 0;
}

.calc-input-group {
    margin-bottom: 24px;
    width: 100%;
}

.calc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.calc-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--widget-slate-800);
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-value-display {
    font-family: var(--widget-font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--widget-primary-dark);
    background: var(--widget-primary-soft);
    padding: 4px 10px;
    border-radius: var(--widget-radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

/* Range Sliders */
.calc-range-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--widget-radius-full);
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.2s ease;
    display: block;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--widget-primary);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--widget-primary-dark);
}

.calc-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--widget-primary);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.calc-ticks-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-family: var(--widget-font-mono);
    color: var(--widget-slate-400);
    margin-top: 6px;
    width: 100%;
}

/* Biomarker Tab Switcher */
.calc-mode-switcher {
    display: flex;
    background: var(--widget-slate-100);
    padding: 4px;
    border-radius: var(--widget-radius-md);
    margin-bottom: 16px;
    gap: 4px;
    width: 100%;
}

.calc-mode-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: var(--widget-radius-sm);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    font-weight: 700;
    color: var(--widget-slate-600);
    cursor: pointer;
    transition: var(--widget-transition);
    text-align: center;
}

.calc-mode-btn.active {
    background: var(--widget-white);
    color: var(--widget-slate-900);
    box-shadow: var(--widget-shadow-sm);
}

/* Activity Level Buttons */
.calc-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 520px) {
    .calc-activity-grid {
        grid-template-columns: 1fr;
    }
}

.calc-activity-card {
    border: 1px solid var(--widget-slate-200);
    background: var(--widget-slate-50);
    padding: 12px 14px;
    border-radius: var(--widget-radius-md);
    cursor: pointer;
    transition: var(--widget-transition);
    text-align: left;
    width: 100%;
}

.calc-activity-card:hover {
    border-color: var(--widget-primary-light);
    background: #ffffff;
    transform: translateY(-1px);
}

.calc-activity-card.active {
    border-color: var(--widget-primary);
    background: var(--widget-primary-soft);
    box-shadow: 0 0 0 1px var(--widget-primary);
}

.calc-activity-card h5 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--widget-slate-900);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-activity-card p {
    font-size: 0.74rem;
    color: var(--widget-slate-500);
    margin: 0;
    line-height: 1.35;
}

/* Checkbox Toggles */
.calc-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 580px) {
    .calc-checkboxes-grid {
        grid-template-columns: 1fr;
    }
}

.calc-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--widget-slate-50);
    border: 1px solid var(--widget-slate-200);
    border-radius: var(--widget-radius-md);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--widget-slate-700);
    transition: var(--widget-transition);
    user-select: none;
    width: 100%;
    word-break: break-word;
}

.calc-check-label:hover {
    border-color: var(--widget-slate-400);
    background: var(--widget-white);
}

.calc-check-label.checked {
    border-color: var(--widget-primary);
    background: var(--widget-primary-soft);
    color: var(--widget-primary-dark);
}

.calc-check-input {
    width: 17px;
    height: 17px;
    accent-color: var(--widget-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Right Evaluation Pane */
.calc-result-pane {
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(175deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

/* SPEEDOMETER GAUGE - 100% Fluid & Anti-Collision Structure */
.calc-gauge-container {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 4px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.calc-svg-gauge {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.calc-gauge-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 14;
    stroke-linecap: round;
}

.calc-gauge-meter {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

/* Score Number Safely Sits in Lower Center of Arc */
.calc-gauge-score-wrap {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    width: 100%;
}

.calc-gauge-score-number {
    font-family: var(--widget-font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--widget-slate-900);
    letter-spacing: -0.03em;
    margin: 0;
}

.calc-gauge-score-max {
    font-size: 0.72rem;
    color: var(--widget-slate-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Dedicated Badge Row in Normal Document Flow */
.calc-gauge-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 16px 0;
    width: 100%;
}

.calc-risk-badge-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--widget-radius-full);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: var(--widget-transition);
    max-width: 100%;
    word-break: break-word;
}

.calc-risk-badge-box.tier-optimal {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.calc-risk-badge-box.tier-moderate {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.calc-risk-badge-box.tier-elevated {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.calc-risk-badge-box.tier-crisis {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Metric Equivalents Matrix */
.calc-metrics-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 18px 0;
    width: 100%;
}

@media (max-width: 600px) {
    .calc-metrics-matrix {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.calc-metric-chip {
    background: var(--widget-white);
    border: 1px solid var(--widget-slate-200);
    padding: 8px 10px;
    border-radius: var(--widget-radius-md);
    text-align: center;
    width: 100%;
}

.calc-metric-chip span.label {
    display: block;
    font-size: 0.7rem;
    color: var(--widget-slate-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.calc-metric-chip span.val {
    font-family: var(--widget-font-mono);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--widget-slate-900);
}

/* Kitchen as Medicine Protocol Box */
.calc-protocol-card {
    background: var(--widget-white);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--widget-radius-lg);
    padding: clamp(14px, 3vw, 18px);
    margin-top: 10px;
    box-shadow: var(--widget-shadow-sm);
    position: relative;
    width: 100%;
}

.calc-protocol-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.calc-protocol-header svg {
    color: var(--widget-primary);
    flex-shrink: 0;
}

.calc-protocol-header h4 {
    font-family: var(--widget-font-display);
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--widget-primary-dark);
    margin: 0;
}

.calc-herbal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.calc-herbal-pill {
    background: var(--widget-primary-soft);
    color: var(--widget-primary-dark);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--widget-radius-full);
}

.calc-protocol-body {
    font-size: 0.82rem;
    color: var(--widget-slate-600);
    line-height: 1.5;
    margin-bottom: 14px;
}

.calc-protocol-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

@media (max-width: 540px) {
    .calc-protocol-actions {
        flex-direction: column;
    }
}

.btn-calc-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--widget-radius-md);
    font-size: 0.84rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--widget-transition);
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-calc-cta.primary {
    background: var(--widget-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-calc-cta.primary:hover {
    background: var(--widget-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 78, 59, 0.35);
}

.btn-calc-cta.secondary {
    background: var(--widget-slate-100);
    color: var(--widget-slate-800);
    border: 1px solid var(--widget-slate-200);
}

.btn-calc-cta.secondary:hover {
    background: #ffffff;
    border-color: var(--widget-slate-400);
}


/* ==================================================================
   2. INTERACTIVE SYMPTOM & BODY EXPLORER
   ================================================================== */
.symptom-explorer-card {
    background: var(--widget-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--widget-radius-xl);
    box-shadow: var(--widget-shadow-lg);
    overflow: hidden;
    width: 100%;
}

/* Horizontal Scroll Tab Bar with Fade Indicators */
.symptom-nav-wrapper {
    position: relative;
    width: 100%;
    background: var(--widget-slate-50);
    border-bottom: 1px solid var(--widget-slate-200);
    overflow: hidden;
}

.symptom-nav-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    background: linear-gradient(to right, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.95));
    pointer-events: none;
    z-index: 5;
}

.symptom-nav-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 8px;
    padding: 10px 14px 0 14px;
    width: 100%;
}

.symptom-nav-bar::-webkit-scrollbar {
    display: none;
}

.symptom-tab-button {
    scroll-snap-align: start;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--widget-radius-md) var(--widget-radius-md) 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--widget-slate-600);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--widget-transition);
    position: relative;
}

.symptom-tab-button:hover {
    color: var(--widget-slate-900);
    background: rgba(255, 255, 255, 0.6);
}

.symptom-tab-button.active {
    background: var(--widget-white);
    color: var(--widget-primary-dark);
    border-color: var(--widget-slate-200);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.symptom-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--widget-primary);
}

.symptom-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--widget-radius-sm);
    background: var(--widget-slate-200);
    color: var(--widget-slate-700);
    font-size: 0.95rem;
    transition: var(--widget-transition);
    flex-shrink: 0;
}

.symptom-tab-button.active .symptom-tab-icon {
    background: var(--widget-primary-soft);
    color: var(--widget-primary-dark);
}

/* Symptom Main Content Area */
.symptom-pane-content {
    padding: clamp(20px, 4vw, 36px);
    width: 100%;
}

.symptom-top-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--widget-slate-100);
    padding-bottom: 18px;
    width: 100%;
}

@media (max-width: 640px) {
    .symptom-top-summary {
        flex-direction: column;
    }
}

.symptom-title-group h3 {
    font-family: var(--widget-font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 800;
    color: var(--widget-slate-900);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.symptom-title-group p {
    font-size: clamp(0.86rem, 1.4vw, 0.94rem);
    color: var(--widget-slate-600);
    margin: 0;
    max-width: 600px;
    line-height: 1.55;
}

.symptom-severity-badge {
    padding: 6px 14px;
    border-radius: var(--widget-radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* 3-Column Diagnostic Spectrum (Full 100% Mobile Width) */
.symptom-spectrum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    width: 100%;
}

@media (max-width: 900px) {
    .symptom-spectrum-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.symptom-box {
    border-radius: var(--widget-radius-lg);
    padding: clamp(16px, 3vw, 22px);
    border: 1px solid var(--widget-slate-200);
    background: var(--widget-slate-50);
    position: relative;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.symptom-box.root-cause {
    border-color: rgba(239, 68, 68, 0.25);
    background: #fffafa;
}

.symptom-box.blindspot {
    border-color: rgba(245, 158, 11, 0.25);
    background: #fffdf5;
}

.symptom-box.prescription {
    border-color: rgba(16, 185, 129, 0.3);
    background: #f0fdf4;
}

.symptom-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.symptom-box-header svg {
    flex-shrink: 0;
}

.symptom-box.root-cause .symptom-box-header svg { color: var(--widget-red); }
.symptom-box.blindspot .symptom-box-header svg { color: var(--widget-amber); }
.symptom-box.prescription .symptom-box-header svg { color: var(--widget-primary); }

.symptom-box-header h4 {
    font-family: var(--widget-font-display);
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--widget-slate-900);
    margin: 0;
}

.symptom-box-desc {
    font-size: 0.84rem;
    color: var(--widget-slate-700);
    line-height: 1.55;
    margin-bottom: 12px;
}

.symptom-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symptom-list-items li {
    font-size: 0.8rem;
    color: var(--widget-slate-600);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.symptom-list-items li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Interactive Symptom Burden Interactive Checklist */
.symptom-burden-container {
    background: var(--widget-slate-900);
    color: #ffffff;
    border-radius: var(--widget-radius-lg);
    padding: clamp(18px, 3.5vw, 26px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
    width: 100%;
}

@media (max-width: 800px) {
    .symptom-burden-container {
        grid-template-columns: 1fr;
    }
}

.symptom-checklist-title {
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-interactive-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.symptom-tag-check {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 11px;
    border-radius: var(--widget-radius-sm);
    font-size: 0.78rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: var(--widget-transition);
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .symptom-tag-check {
        width: 100%;
    }
}

.symptom-tag-check:hover {
    background: rgba(255, 255, 255, 0.16);
}

.symptom-tag-check.active {
    background: rgba(16, 185, 129, 0.25);
    border-color: #34d399;
    color: #ffffff;
}

.symptom-score-output-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--widget-radius-md);
    padding: 16px 18px;
    text-align: center;
    width: 100%;
}

.symptom-score-output-box p.label {
    font-size: 0.74rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.symptom-score-output-box h4.score-text {
    font-family: var(--widget-font-mono);
    font-size: 1.25rem;
    color: #34d399;
    font-weight: 800;
    margin-bottom: 8px;
}

.symptom-score-output-box a.btn-symptom-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: var(--widget-radius-full);
    text-decoration: none;
    transition: var(--widget-transition);
    width: 100%;
}

.symptom-score-output-box a.btn-symptom-consult:hover {
    background: #059669;
    transform: translateY(-1px);
}


/* ==================================================================
   3. INTERACTIVE 3D PHONE APP SCREEN SWITCHER
   ================================================================== */
.phone-interactive-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    perspective: 1200px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Top Screen Switcher Tabs */
.phone-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.05);
    padding: 6px;
    border-radius: var(--widget-radius-full);
    border: 1px solid rgba(226, 232, 240, 0.9);
    max-width: 100%;
}

@media (max-width: 600px) {
    .phone-tabs-bar {
        border-radius: var(--widget-radius-lg);
        width: 100%;
        max-width: 320px;
    }
    .phone-tab-btn {
        flex: 1 1 45%;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.74rem;
    }
}

.phone-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--widget-radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--widget-slate-600);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--widget-transition);
}

.phone-tab-btn:hover {
    color: var(--widget-slate-900);
    background: rgba(255, 255, 255, 0.6);
}

.phone-tab-btn.active {
    background: var(--widget-white);
    color: var(--widget-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.phone-tab-btn svg {
    flex-shrink: 0;
}

/* 3D Phone Chassis Device Frame */
.phone-device-chassis {
    width: 100%;
    max-width: 330px;
    height: 640px;
    background: #0a0f1d;
    border-radius: 46px;
    box-shadow: 
        0 0 0 3px #2b3345,
        0 0 0 6px #121826,
        0 24px 50px -15px rgba(2, 44, 34, 0.35),
        0 12px 30px -5px rgba(15, 23, 42, 0.25);
    position: relative;
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    cursor: grab;
    margin: 0 auto;
}

.phone-device-chassis:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .phone-device-chassis {
        max-width: 320px;
        height: 610px;
        margin: 0 auto;
        transform: none !important; /* Disable 3D tilt on mobile/tablets to prevent overflow */
    }
}

@media (max-width: 360px) {
    .phone-device-chassis {
        max-width: 290px;
        height: 570px;
        padding: 6px;
        border-radius: 36px;
    }
    .phone-viewport-screen {
        border-radius: 28px;
    }
}

/* Glass Reflection Overlay */
.phone-device-chassis::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 46px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 45%);
    pointer-events: none;
    z-index: 100;
}

/* Inner Screen Display */
.phone-viewport-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status Bar & Dynamic Island */
.phone-status-bar {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--widget-font-mono);
    position: relative;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

.phone-island-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 20px;
    background: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.island-camera-lens {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111e38;
    box-shadow: inset 0 0 2px #38bdf8;
}

.island-mic {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1e293b;
}

.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Screen Views Container */
.phone-screens-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    width: 100%;
}

.phone-sub-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    width: 100%;
}

.phone-sub-screen::-webkit-scrollbar {
    display: none;
}

.phone-sub-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 10;
}

/* Bottom Home Indicator */
.phone-home-indicator {
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.phone-home-bar {
    width: 110px;
    height: 4px;
    background: #0f172a;
    border-radius: 4px;
}

/* ──────────────────────────────────────────────
   SUB-SCREEN 1: LIVE WHATSAPP-STYLE CHAT
   ────────────────────────────────────────────── */
.chat-app-header {
    background: #075e54;
    color: #ffffff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.chat-avatar-ring {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #128c7e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.chat-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #25d366;
    border: 2px solid #075e54;
    border-radius: 50%;
}

.chat-contact-meta h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-contact-meta p {
    font-size: 0.66rem;
    color: #a7f3d0;
    margin: 0;
}

.chat-messages-stream {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #efeae2;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0);
    background-size: 16px 16px;
    overflow-y: auto;
}

.chat-date-pill {
    align-self: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.chat-msg-bubble {
    max-width: 86%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    word-break: break-word;
}

.chat-msg-bubble.user {
    align-self: flex-end;
    background: #dcf8c6;
    color: #111827;
    border-bottom-right-radius: 2px;
}

.chat-msg-bubble.doctor {
    align-self: flex-start;
    background: #ffffff;
    color: #111827;
    border-bottom-left-radius: 2px;
}

.chat-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.6rem;
    color: #6b7280;
}

.chat-voice-note-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
}

.btn-voice-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #128c7e;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.voice-waveform-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 18px;
    flex: 1;
}

.voice-bar {
    width: 3px;
    background: #059669;
    border-radius: 2px;
    animation: wavePulse 1.2s infinite ease-in-out;
}

@keyframes wavePulse {
    0%, 100% { height: 5px; }
    50% { height: 16px; }
}

/* Chat Quick Action Chips (Horizontally Scrollable without Outward Spill) */
.chat-quick-actions-bar {
    padding: 6px 8px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    flex-shrink: 0;
}

.chat-quick-actions-bar::-webkit-scrollbar {
    display: none;
}

.chat-action-chip {
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--widget-radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--widget-transition);
}

.chat-action-chip:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* ──────────────────────────────────────────────
   SUB-SCREEN 2: HD VIDEO CALL
   ────────────────────────────────────────────── */
.video-screen-layout {
    flex: 1;
    position: relative;
    background: #090d16;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    width: 100%;
}

.video-doc-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 40%, #1e293b 0%, #090d16 80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.video-doc-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    object-fit: cover;
    margin-bottom: 10px;
}

.video-doc-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: center;
}

.video-call-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--widget-radius-full);
}

/* Floating Vitals HUD (Constrained Within Phone Boundaries) */
.video-vitals-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 6px 10px;
    color: #ffffff;
    z-index: 20;
    max-width: calc(100% - 20px);
}

.video-vital-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}

.vital-pulse-heart {
    color: #ef4444;
    animation: heartBeat 1s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Picture in Picture Patient View */
.video-pip-preview {
    position: absolute;
    bottom: 80px;
    right: 10px;
    width: 66px;
    height: 94px;
    background: #1e293b;
    border: 2px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.62rem;
}

/* Video Controls Toolbar */
.video-controls-dock {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 25;
}

.video-btn-tool {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--widget-transition);
}

.video-btn-tool:hover {
    background: rgba(255, 255, 255, 0.35);
}

.video-btn-tool.end-call {
    background: #dc2626;
    border-color: #ef4444;
}

.video-btn-tool.end-call:hover {
    background: #b91c1c;
}

/* ──────────────────────────────────────────────
   SUB-SCREEN 3: DIGITAL PRESCRIPTION VAULT
   ────────────────────────────────────────────── */
.rx-screen-layout {
    flex: 1;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    width: 100%;
}

.rx-card-paper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.rx-clinic-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #059669;
    padding-bottom: 6px;
    margin-bottom: 8px;
    gap: 6px;
}

.rx-letterhead-title h5 {
    font-size: 0.78rem;
    font-weight: 800;
    color: #064e3b;
    margin: 0;
}

.rx-letterhead-title p {
    font-size: 0.6rem;
    color: #64748b;
    margin: 0;
}

.rx-official-badge {
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.rx-patient-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: #334155;
    background: #f8fafc;
    padding: 5px 7px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.rx-prescriptions-table {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}

.rx-item-line {
    border-left: 3px solid #10b981;
    padding-left: 7px;
}

.rx-item-line h6 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.rx-item-line p {
    font-size: 0.64rem;
    color: #475569;
    margin: 0;
}

.rx-diet-charter-box {
    background: #f0fdf4;
    border: 1px dashed #34d399;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 0.66rem;
    color: #064e3b;
}

.rx-diet-charter-box h6 {
    font-weight: 800;
    margin-bottom: 2px;
}

.rx-qr-stamp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.rx-seal-stamp {
    font-size: 0.58rem;
    font-weight: 800;
    color: #059669;
    text-transform: uppercase;
}

.rx-action-btns-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

.btn-rx-action {
    flex: 1;
    padding: 7px 4px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--widget-transition);
}

.btn-rx-action:hover {
    background: #047857;
}

/* ──────────────────────────────────────────────
   SUB-SCREEN 4: APPOINTMENT TRACKER & QUEUE
   ────────────────────────────────────────────── */
.queue-screen-layout {
    flex: 1;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    width: 100%;
}

.queue-hero-card {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(6, 78, 59, 0.25);
}

.queue-token-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: var(--widget-radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.queue-token-number {
    font-family: var(--widget-font-mono);
    font-size: 2.5rem;
    font-weight: 900;
    color: #34d399;
    line-height: 1;
    margin-bottom: 4px;
}

.queue-status-text {
    font-size: 0.72rem;
    color: #e2e8f0;
}

.queue-vitals-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    width: 100%;
}

.queue-progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    position: relative;
    width: 100%;
}

.queue-step-node {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    z-index: 2;
}

.queue-step-node.completed {
    background: #10b981;
    color: #ffffff;
}

.queue-step-node.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.queue-progress-bar-line {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 3px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
}

.queue-progress-bar-fill {
    height: 100%;
    background: #10b981;
    width: 66%;
}

.queue-details-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.7rem;
    color: #475569;
    margin-top: 8px;
}

.queue-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #f1f5f9;
}

.queue-row span.val {
    font-weight: 700;
    color: #0f172a;
}

.queue-notify-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.72rem;
    color: #1e40af;
    cursor: pointer;
    width: 100%;
}


/* ==================================================================
   4. LIVE DOCTOR AVAILABILITY & OPD TRIAGE CLOCK
   ================================================================== */
.triage-clock-component {
    background: var(--widget-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--widget-radius-xl);
    box-shadow: var(--widget-shadow-lg);
    padding: clamp(20px, 4vw, 36px);
    margin-bottom: 28px;
    width: 100%;
    overflow: hidden;
}

.triage-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid var(--widget-slate-200);
    padding-bottom: 18px;
    margin-bottom: 20px;
    width: 100%;
}

@media (max-width: 640px) {
    .triage-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.triage-live-beacon-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.triage-pulsing-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.triage-pulsing-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.5);
    animation: beaconPulse 2s infinite ease-out;
}

@keyframes beaconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.triage-status-headline h4 {
    font-family: var(--widget-font-display);
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    font-weight: 800;
    color: var(--widget-slate-900);
    margin: 0;
}

.triage-status-headline p {
    font-size: 0.8rem;
    color: var(--widget-slate-500);
    margin: 0;
}

.triage-clock-digital-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--widget-slate-900);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: var(--widget-radius-md);
    font-family: var(--widget-font-mono);
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .triage-clock-digital-box {
        width: 100%;
        justify-content: center;
    }
}

.triage-clock-digital-box svg {
    color: #34d399;
}

/* Clinic Quick Switcher Tabs (Wrapping Cleanly on Mobile) */
.triage-location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    width: 100%;
}

.triage-chip-btn {
    border: 1px solid var(--widget-slate-200);
    background: var(--widget-slate-50);
    padding: 6px 14px;
    border-radius: var(--widget-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--widget-slate-600);
    cursor: pointer;
    transition: var(--widget-transition);
    white-space: nowrap;
}

.triage-chip-btn:hover {
    background: var(--widget-white);
    border-color: var(--widget-primary-light);
    color: var(--widget-slate-900);
}

.triage-chip-btn.active {
    background: var(--widget-primary-dark);
    color: #ffffff;
    border-color: var(--widget-primary-dark);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

/* Countdown & Clinic Spotlight Grid */
.triage-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    background: linear-gradient(145deg, #f8fafc 0%, #ecfdf5 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--widget-radius-lg);
    padding: clamp(16px, 3.5vw, 24px);
    width: 100%;
}

@media (max-width: 820px) {
    .triage-spotlight-grid {
        grid-template-columns: 1fr;
    }
}

.triage-countdown-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.triage-countdown-pane p.tag {
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--widget-primary-dark);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Countdown Digits Row (Fluidly fitting on all screens without overflow) */
.triage-digits-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}

.triage-digit-card {
    background: var(--widget-white);
    border: 1px solid var(--widget-slate-200);
    border-radius: var(--widget-radius-md);
    padding: 8px 6px;
    text-align: center;
    flex: 1;
    min-width: 44px;
    max-width: 76px;
    box-shadow: var(--widget-shadow-sm);
}

.triage-digit-number {
    font-family: var(--widget-font-mono);
    font-size: clamp(1.2rem, 3.2vw, 1.7rem);
    font-weight: 900;
    color: var(--widget-slate-900);
    line-height: 1;
}

.triage-digit-label {
    font-size: clamp(0.56rem, 1.2vw, 0.64rem);
    text-transform: uppercase;
    color: var(--widget-slate-500);
    font-weight: 700;
    margin-top: 3px;
    white-space: nowrap;
}

.triage-digit-colon {
    font-family: var(--widget-font-mono);
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    font-weight: 900;
    color: var(--widget-slate-400);
    margin: 0 1px;
    flex-shrink: 0;
}

/* Detail Clinic Details Pane */
.triage-clinic-info-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.triage-clinic-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.triage-clinic-title-row h3 {
    font-family: var(--widget-font-display);
    font-size: clamp(1.1rem, 2vw, 1.24rem);
    font-weight: 800;
    color: var(--widget-slate-900);
    margin: 0;
}

.triage-badge-pill {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--widget-radius-full);
    background: #d1fae5;
    color: #065f46;
    white-space: nowrap;
}

.triage-address-desc {
    font-size: 0.82rem;
    color: var(--widget-slate-600);
    margin-bottom: 16px;
    line-height: 1.45;
}

.triage-booking-cta-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

@media (max-width: 520px) {
    .triage-booking-cta-row {
        flex-direction: column;
    }
}

.btn-triage-whatsapp {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: var(--widget-radius-md);
    text-decoration: none;
    transition: var(--widget-transition);
    text-align: center;
    width: 100%;
}

.btn-triage-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-triage-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--widget-white);
    border: 1px solid var(--widget-slate-200);
    color: var(--widget-slate-800);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--widget-radius-md);
    text-decoration: none;
    transition: var(--widget-transition);
    text-align: center;
}

.btn-triage-phone:hover {
    background: var(--widget-slate-100);
    border-color: var(--widget-slate-300);
}


/* ==================================================================
   ACCESSIBILITY & PRINT STYLES
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--widget-primary);
    outline-offset: 3px;
}

@media print {
    .calc-card-container,
    .symptom-explorer-card,
    .triage-clock-component {
        box-shadow: none;
        border: 1px solid #000;
    }
    .phone-device-chassis {
        display: none !important;
    }
}
