/* ============================================================================
   MEDIORA — Styles ported 1:1 from MedioraOLD/Content/Site.css
   ============================================================================ */

:root {
    /* Sprint-2.6.10 recolor: brand collapsed to single teal (v2 token
       --color-primary further down). The old v1 --primary-blue and
       --accent-cyan tokens are gone; their consumers were migrated to
       var(--color-primary) and --gradient-brand. --accent-emerald and
       --accent-gold stay as explicit semantic tokens for medical status. */
    --accent-emerald: #10b981;
    --accent-gold: #f59e0b;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --bg-primary: #0A1628;
    --bg-secondary: #0f1d2f;
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(10, 22, 40, 0.85);
    --glass-card: rgba(26, 43, 74, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #0A1628 0%, #1A2B4A 50%, #2A3B5F 100%);
    --gradient-brand: linear-gradient(135deg, #00D4AA 0%, #10B981 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --z-dropdown: 100;
    --z-fixed: 300;
    --z-modal: 400;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* RTL for Hebrew */
html[dir="rtl"] .mud-drawer--left { left: auto; right: 0; }

/* ============================================================================
   BACKGROUND ELEMENTS — from Site.css
   ============================================================================ */

.background-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}
/* Sprint-2.6.10 recolor: all three orbs unified to teal at varied alpha for
   depth. The old palette had orb-1 blue, orb-2 emerald, orb-3 cyan - too
   noisy and off-brand. Single-hue triple-orb with alpha variance gives the
   same "ambient depth" without competing colors. */
.orb-1 { width: 500px; height: 500px; top: -150px; right: -100px; background: radial-gradient(circle, rgba(0,212,170,0.3) 0%, transparent 70%); }
.orb-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: radial-gradient(circle, rgba(0,212,170,0.18) 0%, transparent 70%); animation-delay: 8s; }
.orb-3 { width: 350px; height: 350px; top: 50%; left: 50%; background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%); animation-delay: 16s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 30px); }
}

.grid-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
}

/* ============================================================================
   NAVBAR — from Site.css
   ============================================================================ */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-fixed);
    backdrop-filter: blur(20px);
    background: var(--glass-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-base);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
@media (min-width: 1024px) { .navbar-container { padding: var(--space-md) var(--space-2xl); } }

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    z-index: var(--z-dropdown);
}
.logo-image { height: 32px; width: auto; }
@media (min-width: 768px) { .logo-image { height: 40px; } }

.nav-links { display: none; }
@media (min-width: 1024px) { .nav-links { display: flex; align-items: center; gap: 4px; } }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-icon { font-size: 14px; color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }

.language-switcher { display: none; }
@media (min-width: 640px) {
    .language-switcher {
        display: flex; gap: 4px;
        background: rgba(255,255,255,0.05);
        padding: 4px;
        border-radius: var(--radius-full);
        border: 1px solid rgba(255,255,255,0.1);
    }
}

.lang-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 10px;
    background: transparent; border: none;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.6);
    font-size: var(--text-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.lang-btn.active { background: var(--color-primary); color: var(--color-bg); }

.btn-upload { display: none; }
@media (min-width: 768px) {
    .btn-upload {
        display: flex; align-items: center; gap: 6px;
        padding: 10px 18px;
        background: var(--color-primary);
        color: var(--color-bg);
        text-decoration: none;
        font-weight: 600;
        font-size: var(--text-sm);
        border-radius: var(--radius-full);
        border: none;
        cursor: pointer;
        transition: all var(--transition-base);
        box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
    }
    .btn-upload:hover { transform: translateY(-2px); }
}

.btn-login {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(180, 197, 214, 0.3);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}
.btn-login:hover {
    background: rgba(0, 212, 170, 0.10);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
/* Mobile tap-target: bump the always-visible nav login button to meet
   WCAG 2.5.5 / iOS HIG 44x44 minimum. Desktop sizing untouched. */
@media (max-width: 768px) {
    .btn-login { min-height: 44px; padding: 10px 18px; }
}

/* ---------------------------------------------------------------------------
   Mobile hamburger toggle — visible <1024px. Plain <button>; toggled by the
   vanilla-JS handler `medioraInitMobileNav` in App.razor (idempotent, runs
   pre-SignalR-circuit). 44x44 hit area; WCAG 2.5.5 / iOS HIG compliant.
   --------------------------------------------------------------------------- */
.navbar-hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.navbar-hamburger:hover,
.navbar-hamburger:focus-visible {
    background: rgba(0, 212, 170, 0.10);
    border-color: var(--color-primary);
    outline: none;
}
.navbar-hamburger__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
    transform-origin: center;
}
.navbar-hamburger[aria-expanded="true"] {
    background: rgba(0, 212, 170, 0.12);
    border-color: var(--color-primary);
}
.navbar-hamburger[aria-expanded="true"] .navbar-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger[aria-expanded="true"] .navbar-hamburger__bar:nth-child(2) { opacity: 0; }
.navbar-hamburger[aria-expanded="true"] .navbar-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .navbar-hamburger { display: none; } }

/* Mobile nav drawer — slide-down panel under the fixed navbar. Direction-
   agnostic (full-width), so RTL "just works" with logical text-align: start
   on links. Hidden at >=1024px (desktop nav-links visible there). */
.mobile-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: calc(var(--z-fixed) - 1);
    max-height: calc(100vh - 64px);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) {
    .mobile-drawer { top: 72px; max-height: calc(100vh - 72px); }
}
@media (min-width: 1024px) { .mobile-drawer { display: none; } }

.mobile-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-drawer__sep {
    height: 1px;
    margin: var(--space-sm) 0;
    background: rgba(255, 255, 255, 0.08);
}
.mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base);
    cursor: pointer;
    text-align: start;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.mobile-drawer__link i {
    width: 18px;
    color: var(--color-primary);
    text-align: center;
}
.mobile-drawer__link:hover,
.mobile-drawer__link:focus-visible {
    background: rgba(0, 212, 170, 0.08);
    border-color: rgba(0, 212, 170, 0.30);
    color: #FFFFFF;
    outline: none;
}
.mobile-drawer__link--primary {
    background: var(--color-primary);
    color: var(--color-bg);
    font-weight: 600;
}
.mobile-drawer__link--primary i { color: var(--color-bg); }
.mobile-drawer__link--primary:hover,
.mobile-drawer__link--primary:focus-visible {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: transparent;
    transform: translateY(-1px);
}
.mobile-drawer__link--button {
    font: inherit;
}
.mobile-drawer__lang {
    display: flex;
    gap: 4px;
    margin-top: var(--space-md);
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-full);
}
.mobile-drawer__lang-btn {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-drawer__lang-btn:hover,
.mobile-drawer__lang-btn:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    outline: none;
}
.mobile-drawer__lang-btn.is-active {
    background: var(--color-primary);
    color: var(--color-bg);
}

main { padding-top: 80px; }

/* ============================================================================
   FOOTER — from Site.css
   ============================================================================ */

.footer {
    background: rgba(10,22,40,0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}
@media (min-width: 768px) { .footer { padding: var(--space-4xl) 0 var(--space-2xl); } }

.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }
@media (min-width: 640px) { .footer-container { padding: 0 var(--space-xl); } }
@media (min-width: 1024px) { .footer-container { padding: 0 var(--space-2xl); } }

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
@media (min-width: 640px) { .footer-content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-content { grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-3xl); margin-bottom: var(--space-3xl); } }

.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }

.footer-logo { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.footer-tagline { color: rgba(255,255,255,0.6); margin-bottom: var(--space-lg); line-height: 1.6; font-size: var(--text-sm); }
@media (min-width: 768px) { .footer-tagline { font-size: var(--text-base); } }

.footer-social { display: flex; gap: var(--space-sm); }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: all var(--transition-base);
}
.footer-social a:hover { background: var(--color-primary); transform: translateY(-2px); }

.footer-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-md); color: var(--color-primary); }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: var(--text-sm); transition: all var(--transition-fast); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
    display: flex; flex-direction: column; gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; padding-top: var(--space-2xl); } }

.footer-legal { display: flex; flex-direction: column; gap: var(--space-sm); }
.copyright { color: rgba(255,255,255,0.5); font-size: var(--text-xs); }
@media (min-width: 768px) { .copyright { font-size: var(--text-sm); } }

.medical-disclaimer { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.5); font-size: var(--text-xs); }

.footer-badges { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
@media (min-width: 768px) { .footer-badges { gap: var(--space-md); } }

.trust-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.trust-badge i { color: var(--accent-emerald); }

/* ============================================================================
   LANDING CONTAINER
   ============================================================================ */

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}
@media (min-width: 640px) { .landing-container { padding-left: var(--space-xl); padding-right: var(--space-xl); } }
@media (min-width: 1024px) { .landing-container { padding-left: var(--space-2xl); padding-right: var(--space-2xl); } }

.landing-section-padding { padding: 60px 0; }
@media (min-width: 768px) { .landing-section-padding { padding: 80px 0; } }

.landing-section-padding-large { padding: 80px 0; }

/* ============================================================================
   CTA BUTTONS — exact from Site.css
   ============================================================================ */

.cta-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}
@media (min-width: 640px) { .cta-container { flex-direction: row; flex-wrap: wrap; } }

.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: var(--text-base);
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    width: 100%;
}
@media (min-width: 640px) { .cta-primary, .cta-secondary { width: auto; padding: 16px 32px; } }

.cta-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.cta-primary:hover { transform: translateY(-2px); }

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.cta-secondary:hover { border-color: var(--color-primary); background: rgba(0, 212, 170, 0.1); }

/* ============================================================================
   STATS GRID — exact from Site.css
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-item { text-align: center; }
.stat-value { font-size: 32px; font-weight: 700; color: #00D4AA; margin-bottom: 4px; }
.stat-label { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

/* ============================================================================
   SECTION HEADERS — exact from Site.css
   ============================================================================ */

.section-header { text-align: center; margin-bottom: var(--space-2xl); }
@media (min-width: 768px) { .section-header { margin-bottom: var(--space-3xl); } }

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(90deg, #ffffff 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (min-width: 768px) { .section-title { font-size: var(--text-5xl); } }

.section-subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}
@media (min-width: 768px) { .section-subtitle { font-size: var(--text-xl); } }

/* ============================================================================
   RTL — from rtl.css
   ============================================================================ */

[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .cta-container { flex-direction: row-reverse; }
@media (max-width: 639px) { [dir="rtl"] .cta-container { flex-direction: column; } }
[dir="rtl"] .cta-primary i, [dir="rtl"] .cta-secondary i { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .stats-grid { direction: rtl; }

/* Hebrew font optimization — Heebo loaded from Google Fonts (App.razor) gets
   first preference. Rubik/Assistant listed as secondary system fallbacks on
   devices that happen to have them. Inter stays last for mixed content
   (latin glyphs inside Hebrew sentences). */
html[lang="he"],
html[lang="he"] body,
html[lang="he"] input,
html[lang="he"] textarea,
html[lang="he"] button,
[dir="rtl"],
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] button, [dir="rtl"] li, [dir="rtl"] span {
    font-family: 'Heebo', 'Rubik', 'Assistant', 'Noto Sans Hebrew', 'Segoe UI', 'Arial', 'Inter', system-ui, sans-serif;
}

/* ============================================================================
   UPLOAD PAGE — from Upload.aspx inline styles
   ============================================================================ */

.upload-container {
    max-width: 1000px;
    margin: 80px auto 40px;
    padding: 0 24px;
}

.upload-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upload-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
}

.upload-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 40px;
}

.upload-zone {
    border: 2px dashed rgba(0, 212, 170, 0.5);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(0, 212, 170, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 32px;
}
.upload-zone:hover {
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.1);
    transform: translateY(-2px);
}

.upload-icon { font-size: 64px; color: #00d4aa; margin-bottom: 20px; }
.upload-text { font-size: 18px; color: #ffffff; margin-bottom: 8px; }
.upload-formats { font-size: 14px; color: rgba(255, 255, 255, 0.6); }

.upload-button {
    background: linear-gradient(135deg, #00d4aa 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 24px;
}
.upload-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4); }
.upload-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.processing-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}

.processing-spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 3px solid rgba(0, 212, 170, 0.3);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-text { color: #10b981; font-size: 16px; font-weight: 500; }

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    color: #ef4444;
    text-align: center;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}
.success-icon { font-size: 48px; color: #10b981; margin-bottom: 16px; }
.success-text { color: #10b981; font-size: 18px; font-weight: 600; margin-bottom: 12px; }

.download-link {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
}
.download-link:hover { background: #059669; transform: translateY(-2px); }

/* Upload features grid */
.upload-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.upload-feature-item { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: center; text-align: center; }
.upload-feature-icon { font-size: 32px; color: #00d4aa; margin-bottom: 12px; width: 100%; }
.upload-feature-title { font-size: 14px; color: #ffffff; font-weight: 600; margin-bottom: 4px; width: 100%; }
.upload-feature-desc { font-size: 12px; color: rgba(255, 255, 255, 0.6); width: 100%; }

/* ============================================================================
   SHARED FORM ELEMENTS — used across Login, Register, Upload
   ============================================================================ */

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: #00d4aa; }
.form-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.otp-input {
    font-size: 28px;
    letter-spacing: 10px;
    text-align: center;
}

.info-banner {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
    color: #00D4AA;
    font-size: 14px;
}

/* Auth card — premium glass look */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.auth-logo span {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #00d4aa;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    margin-bottom: 32px;
}

.auth-field { margin-bottom: 18px; }

.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}
.form-input.has-icon { padding-left: 44px; }
.form-input.has-icon:focus + .input-icon,
.form-input:focus ~ .input-icon { color: #00d4aa; }

/* Auth primary button — gradient with white text + visible spinner */
.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #00d4aa 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}
.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
}
.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* White spinner visible on green bg */
.btn-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.auth-step-badge {
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
    color: #00d4aa;
    font-size: 14px;
    line-height: 1.5;
}
.auth-step-badge i { margin-right: 8px; }
.auth-step-badge strong { color: #ffffff; }

.auth-resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    color: #00d4aa;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}
.auth-resend-btn:hover:not(:disabled) { border-color: #00d4aa; background: rgba(0, 212, 170, 0.08); }
.auth-resend-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-back-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}
.auth-back-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.auth-back-btn i { margin-right: 6px; }

.auth-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 28px;
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

.auth-link {
    color: #00d4aa;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link:hover { color: #10b981; text-decoration: underline; }

/* RTL auth */
[dir="rtl"] .input-icon { left: auto; right: 16px; }
[dir="rtl"] .form-input.has-icon { padding-left: 16px; padding-right: 44px; }
[dir="rtl"] .auth-back-btn i { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .auth-step-badge i { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .auth-link { margin-left: 0; margin-right: 6px; }

/* ============================================================================
   TABLE STYLES — History, Report
   ============================================================================ */

.table-th {
    padding: 12px 16px;
    text-align: left;
    color: #00d4aa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}
.table-row:hover { background: rgba(255, 255, 255, 0.03); }

.table-td {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

/* Risk badges */
.risk-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.risk-badge.risk-low { background: #10b981; }
.risk-badge.risk-medium { background: #f59e0b; }
.risk-badge.risk-high { background: #ef4444; }
.risk-badge.risk-unknown { background: #64748b; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.status-badge.status-completed { background: #10b981; }
.status-badge.status-failed { background: #ef4444; }
.status-badge.status-uploaded,
.status-badge.status-parsing,
.status-badge.status-analyzing,
.status-badge.status-generatingpdf { background: #00D4AA; }

/* ============================================================================
   LANDING v2 — Stage 1 (Redesign — EN only, skeleton)
   Hero / HowItWorks / Longitudinal / Multilingual / Security / Pricing / FAQ

   Brand tokens (--color-primary etc.). Sprint-2.6.10 collapsed the older
   --primary-blue / --accent-cyan tokens into this single brand-teal set;
   they are no longer present at top-of-file.
   ============================================================================ */

:root {
    --color-primary:            #00D4AA;
    --color-primary-dim:        rgba(0, 212, 170, 0.15);
    --color-primary-border:     rgba(0, 212, 170, 0.35);
    --color-bg:                 #0A1628;
    --color-bg-card:            #0F1B2D;
    --color-border:             #1B2942;
    --color-text-secondary:     #B4C5D6;
    --color-text-muted:         #7A8FA8;
}

/* ─── Shared v2 section header ─── */
.section-header-v2 {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-title-v2 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.section-subtitle-v2 {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}
@media (max-width: 768px) {
    .section-title-v2 { font-size: 28px; }
    .section-subtitle-v2 { font-size: 16px; }
    .section-header-v2 { margin-bottom: 40px; }
}

/* ─── Shared v2 buttons ─── */
.btn-primary-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-primary);
    color: #0A1628;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
    cursor: pointer;
}
.btn-primary-v2:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--color-primary-dim);
}
/* Mobile tap-target: hero CTA bumped above 44x44; 48px gives generous
   thumb area on the landing's primary conversion action. */
@media (max-width: 768px) {
    .btn-primary-v2 { min-height: 48px; }
}
.btn-secondary-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease;
}
.btn-secondary-v2:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ─── SECTION 1 — Hero v2 (rebuilt) ─── */
/* Text-only hero. The interactive demo below carries the visual weight,
   so no in-hero mockup, no secondary CTA, no two-column split. Single
   centered column, generous padding, headline + sub + one CTA. */
.hero-v2 { padding: 96px 0 56px; }
.hero-v2__layout {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-v2__badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-primary-border);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}
.hero-v2__title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}
.hero-v2__subhead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0 0 32px;
    max-width: 620px;
}
.hero-v2__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 1024px) {
    .hero-v2 { padding: 64px 0 32px; }
    .hero-v2__title { font-size: 36px; }
    .hero-v2__subhead { font-size: 16px; }
}

/* ─── SECTION 1b — Demo (interactive lab-results explainer, rebuilt) ─── */
/* Two-pane: Hebrew sample lab form (always direction:rtl, language-
   invariant) on one side; per-page-language explanation panel on the
   other. Selecting a row updates the chip + title + body. All data is
   server-rendered static; activation toggled by medioraInitDemoLabResults
   (App.razor) on hover / click / focus / Enter+Space. Fully client-side -
   no SignalR round-trip, no fetch, no OpenAI. Default active marker:
   vitd (OutOfRange / red chip).
   Foundation palette only (teal + navy + glass). Semantic green/amber/
   red are confined to the right-panel status chip (.demo-v2__chip--*) -
   the form's flag column uses neutral muted text so it reads as
   "unreadable Hebrew chrome" rather than competing with the chip. */
.demo-v2 { padding: 56px 0 80px; }
@media (min-width: 768px) { .demo-v2 { padding: 64px 0 120px; } }

.demo-v2__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}
@media (min-width: 960px) {
    .demo-v2__layout { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* LEFT - Hebrew sample lab form (always RTL inside, regardless of page lang) */
.demo-v2__form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    direction: rtl;
    display: flex;
    flex-direction: column;
}
.demo-v2__form-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px;
}
.demo-v2__form-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
}
.demo-v2__form-headrow,
.demo-v2__form-row {
    display: grid;
    /* Three columns: Test (Latin code) | Result (value + inline flag tag) | Range */
    grid-template-columns: 1.1fr 1.6fr 1fr;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}
.demo-v2__form-headrow > span {
    padding: 10px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: var(--color-text-muted);
}
.demo-v2__form-row {
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    outline: none;
}
.demo-v2__form-row > .demo-v2__cell {
    padding: 12px 8px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.4;
}
/* Mobile tap-target: demo marker rows are the primary interactive
   surface of the section. Desktop padding 12px keeps rows tight; 14px
   on mobile clears the 44x44 minimum unambiguously (14*2 + 14*1.4 ~= 48px). */
@media (max-width: 768px) {
    .demo-v2__form-row > .demo-v2__cell { padding: 14px 8px; }
}
.demo-v2__form-row:hover { background: rgba(0, 212, 170, 0.06); }
.demo-v2__form-row:focus-visible {
    background: rgba(0, 212, 170, 0.10);
    box-shadow: inset 0 0 0 2px var(--color-primary-border);
}
.demo-v2__form-row.is-active {
    background: rgba(0, 212, 170, 0.12);
    box-shadow: inset 0 0 0 2px var(--color-primary-border);
}
/* Code + Range cells: force LTR + tabular nums so the Latin codes
   ("HbA1c", "25-OH Vitamin D") and the numeric range strings
   ("< 5.7 %", "30-100") render LTR consistently inside the form's
   RTL container. */
.demo-v2__cell--code,
.demo-v2__cell--range {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}
.demo-v2__cell--code  { color: #FFFFFF; font-weight: 600; }
.demo-v2__cell--range { color: var(--color-text-secondary); font-weight: 500; }
/* Result cell is a flex row containing the numeric value + an inline
   Hebrew flag tag. Source order: value first, flag after, so under
   the form's direction:rtl the value sits to the right of the tag -
   which matches how Israeli lab printouts attach the flag to the
   value visually. */
.demo-v2__cell--result {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.demo-v2__value {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    color: #FFFFFF;
    font-weight: 600;
}
/* Flag pill - Hebrew word (תקין / גבוה / נמוך) tinted by row severity.
   Per the foundation-rule allowance, semantic green/amber/red are
   permitted here AND on the right-panel chip - and nowhere else on
   the landing. The pill inherits the form's RTL direction so Hebrew
   reads naturally. */
.demo-v2__flag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}
.demo-v2__flag--green { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.demo-v2__flag--amber { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.demo-v2__flag--red   { background: rgba(239, 68, 68, 0.15);  color: #EF4444; }

/* RIGHT - explanation panel (follows page direction; LTR on en/ru today,
   inherits RTL once HE copy lands and the section flips on). */
.demo-v2__explain {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.demo-v2__panel { display: none; }
.demo-v2__panel.is-active {
    display: block;
    animation: demo-v2-fade 200ms ease both;
}
@keyframes demo-v2-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.demo-v2__panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
/* Status chip. The ONLY place the semantic colour trio is permitted on
   the demo, per foundation rules. */
.demo-v2__chip {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    direction: ltr;
    unicode-bidi: isolate;
}
.demo-v2__chip--normal     { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.demo-v2__chip--borderline { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.demo-v2__chip--outofrange { background: rgba(239, 68, 68, 0.15);  color: #EF4444; }
.demo-v2__panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}
.demo-v2__panel-body {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}
.demo-v2__disclaimer {
    margin-top: 24px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
    line-height: 1.55;
}

/* RTL host. Default grid auto-flips column order; this explicit selector
   pins the form's `direction: rtl` invariant so a future refactor or an
   inherited cascade can't accidentally flip the Hebrew form back to LTR.
   Regression-guarded by RtlPolishTests.AppCss_DemoForm_StaysHebrewRtlEvenInRtlHost. */
[dir="rtl"] .demo-v2__form { direction: rtl; }

/* ─── SECTION 2 — How it works v2 ─── */
.howitworks-v2 { padding: 120px 0; }
.howitworks-v2__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
}
.step-card {
    position: relative;
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: transform 250ms ease, border-color 250ms ease;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary-border);
}
.step-card__num {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.22;
    line-height: 1;
    letter-spacing: -0.02em;
}
.step-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 16px 0 20px;
}
.step-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px;
}
.step-card__body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0;
}
.step-card__arrow {
    align-self: center;
    font-size: 28px;
    color: var(--color-primary);
    opacity: 0.5;
}
@media (max-width: 900px) {
    .howitworks-v2 { padding: 80px 0; }
    .howitworks-v2__grid { grid-template-columns: 1fr; }
    .step-card__arrow {
        text-align: center;
        transform: rotate(90deg);
        margin: 4px auto;
    }
}

/* ─── SECTION 3 — Longitudinal ─── */
.longitudinal { padding: 120px 0; }
.longitudinal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.longitudinal__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.longitudinal__title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.longitudinal__body {
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0 0 28px;
}
.longitudinal__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}
.longitudinal__bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}
.longitudinal__bullets li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--color-primary);
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-dim);
    border-radius: 50%;
    font-size: 11px;
    margin-top: 2px;
}
.longitudinal__chart {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
}
@media (max-width: 900px) {
    .longitudinal { padding: 80px 0; }
    .longitudinal__grid { grid-template-columns: 1fr; gap: 40px; }
    .longitudinal__title { font-size: 28px; }
    .longitudinal__body { font-size: 16px; }
}

/* ─── SECTION 4 — Multilingual ─── */
.multilingual-v2 { padding: 120px 0; }
.multilingual-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.multilingual-v2__card {
    padding: 36px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-align: center;
    transition: transform 250ms ease, border-color 250ms ease;
}
.multilingual-v2__card:hover {
    border-color: var(--color-primary-border);
    transform: translateY(-4px);
}
.multilingual-v2__flag {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 20px;
}
.multilingual-v2__lang {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 14px;
}
.multilingual-v2__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}
.multilingual-v2__card[dir="rtl"] { text-align: right; }
@media (max-width: 768px) {
    .multilingual-v2 { padding: 80px 0; }
    .multilingual-v2__grid { grid-template-columns: 1fr; }
}

/* ─── SECTION 5 — Security ─── */
.security { padding: 120px 0; }
.security__container { max-width: 900px; }
.security__badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.security__badge {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.security__badge-icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-dim);
    border-radius: 10px;
}
.security__badge-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px;
}
.security__badge-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}
.security__footer { text-align: center; margin-top: 32px; }
.security__link {
    font-size: 15px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.security__link:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .security { padding: 80px 0; }
    .security__badges { grid-template-columns: 1fr; }
}

/* ─── SECTION 6 — Pricing v2 ─── */
.pricing-v2 { padding: 120px 0; }
.pricing-v2__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.pricing-v2__card {
    position: relative;
    padding: 32px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 250ms ease, border-color 250ms ease;
}
.pricing-v2__card:hover:not(.pricing-v2__card--disabled) {
    transform: translateY(-4px);
    border-color: var(--color-primary-border);
}
.pricing-v2__card--recommended {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.05) 0%, var(--color-bg-card) 70%);
}
.pricing-v2__card--disabled { opacity: 0.72; }
.pricing-v2__badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    background: var(--color-primary);
    color: #0A1628;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pricing-v2__header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.pricing-v2__tier {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pricing-v2__price {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.02em;
}
.pricing-v2__period {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 6px;
}
.pricing-v2__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}
.pricing-v2__features li {
    padding: 8px 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.45;
    position: relative;
    padding-left: 22px;
}
.pricing-v2__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}
.pricing-v2__btn {
    display: block;
    padding: 12px 20px;
    background: var(--color-primary);
    color: #0A1628;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
    width: 100%;
    font-family: inherit;
}
.pricing-v2__btn:hover:not(.pricing-v2__btn--disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--color-primary-dim);
}
.pricing-v2__btn--disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    box-shadow: none;
}
.pricing-v2__btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}
.pricing-v2__btn--secondary:hover {
    background: rgba(0, 212, 170, 0.10);
    color: var(--color-primary);
}
@media (max-width: 768px) {
    .pricing-v2 { padding: 80px 0; }
}

/* ─── SECTION 7 — FAQ ─── */
.faq { padding: 120px 0; }
.faq__container { max-width: 800px; }
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq__item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 200ms ease;
}
.faq__item[open] { border-color: var(--color-primary-border); }
.faq__summary {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::after {
    content: "+";
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 400;
    transition: transform 200ms ease;
    flex-shrink: 0;
    line-height: 1;
}
.faq__item[open] .faq__summary::after { transform: rotate(45deg); }
.faq__answer {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}
@media (max-width: 768px) {
    .faq { padding: 80px 0; }
    .faq__summary { padding: 16px 20px; font-size: 15px; }
    .faq__answer { padding: 0 20px 16px; }
}

/* ─── Disclaimer strip (sticky-style over footer) ─── */
.disclaimer-strip {
    padding: 24px 0;
    background: rgba(0, 212, 170, 0.04);
    border-top: 3px solid var(--color-primary);
    border-bottom: 1px solid var(--color-border);
}
.disclaimer-strip__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.disclaimer-strip__text i {
    color: var(--color-primary);
    margin-right: 8px;
}
@media (max-width: 768px) {
    .disclaimer-strip__text { font-size: 13px; }
}

/* ============================================================================
   LANDING v2 — Stage 2 fixes (RTL, Twemoji, multilingual alignment)
   ============================================================================ */

/* Issue 5 — Multilingual card: ALWAYS center, regardless of dir.
   (Removes the previous rtl override that made HE card text-align: right.) */
.multilingual-v2__card[dir="rtl"] { text-align: center; direction: rtl; }

/* Issue 5 — Twemoji: flag/security emoji rendered as <img class="emoji">
   by twemoji.parse(). Default sizing is tiny; upsize to match original emoji. */
img.emoji {
    height: 1em;
    width:  1em;
    margin: 0 0.05em 0 0.1em;
    vertical-align: -0.1em;
    display: inline-block;
}
.multilingual-v2__flag img.emoji { height: 48px; width: 48px; margin: 0; }
.security__badge-icon  img.emoji { height: 24px; width: 24px; margin: 0; }

/* Issue 3 — RTL arrow direction in How It Works.
   Desktop: arrows are → between 3 cards. In RTL, flip to ←.
   Mobile: arrows rotate to ↓ (direction-agnostic) — keep original rotation. */
[dir="rtl"] .step-card__arrow {
    transform: scaleX(-1);
}
@media (max-width: 900px) {
    [dir="rtl"] .step-card__arrow {
        transform: rotate(90deg);
    }
}

/* Issue 4 — RTL bullets in Longitudinal section.
   Flex row with dir=rtl auto-reverses children, so ::before (✓) naturally
   appears on the right. We just need to right-align wrapped text lines. */
[dir="rtl"] .longitudinal__bullets li { text-align: right; }

/* Issue 4 — RTL Pricing v2 feature list.
   Uses absolute-positioned ::before; must move from left:0 to right:0. */
[dir="rtl"] .pricing-v2__features li {
    padding-left: 0;
    padding-right: 22px;
    text-align: right;
}
[dir="rtl"] .pricing-v2__features li::before {
    left: auto;
    right: 0;
}

/* Issue 4 — RTL pricing "Recommended" badge flips to left edge. */
[dir="rtl"] .pricing-v2__badge { right: auto; left: 20px; }

/* ============================================================================
   FOOTER v2 — Mediora-focused, SLAtech brand style (5-column grid)
   Black bg for contrast with landing navy; old .footer class untouched
   for MainLayout / internal pages that may still reference it.
   ============================================================================ */

.footer-v2 {
    background: #000000;
    padding: 80px 0 60px;
    margin-top: 96px;
    color: #7A8FA8;
}
.footer-v2__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.footer-v2__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-v2__column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.footer-v2__header {
    font-size: 14px;
    font-weight: 500;
    color: #B4C5D6;
    margin: 0 0 12px;
}
.footer-v2__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.footer-v2__links li { line-height: 2.0; }
.footer-v2__link {
    font-size: 14px;
    font-weight: 400;
    color: #7A8FA8;
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-v2__link:hover,
.footer-v2__link:focus-visible { color: var(--color-primary); }

/* Brand column */
.footer-v2__brand { justify-content: flex-start; }
.footer-v2__brand-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}
.footer-v2__brand-text {
    font-size: 14px;
    line-height: 1.6;
    color: #B4C5D6;
    margin: 0 0 24px;
    max-width: 460px;
}
.footer-v2__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 999px;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
    align-self: flex-start;
}
.footer-v2__status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
    animation: mediora-pulse 2s ease-in-out infinite;
}
@keyframes mediora-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* Bottom strip */
.footer-v2__bottom {
    padding-top: 32px;
    border-top: 1px solid #1B2942;
}
.footer-v2__bottom-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #7A8FA8;
}
.footer-v2__email {
    color: #7A8FA8;
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-v2__email:hover,
.footer-v2__email:focus-visible { color: var(--color-primary); }
.footer-v2__copyright { color: #7A8FA8; }

/* Tablet — 2x2 + Brand spanning on top */
@media (max-width: 1024px) {
    .footer-v2__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-v2__brand {
        grid-column: 1 / -1;
        order: -1;
    }
    .footer-v2__brand-text { max-width: none; }
}

/* Mobile — single column */
@media (max-width: 768px) {
    .footer-v2 { padding: 48px 0 32px; margin-top: 64px; }
    .footer-v2__container { padding: 0 20px; }
    .footer-v2__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
    .footer-v2__bottom-strip { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   LANDING v2 — Stage 2.1 bug-fix additions
   ============================================================================ */

/* Bug 1 — Emoji font stack fallback. If Twemoji fails to load, browser at
   least tries native color-emoji fonts before falling back to letter glyphs. */
.multilingual-v2__flag,
.security__badge-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
                 "Twemoji Mozilla", "EmojiOne Color", sans-serif;
}

/* Bug 5 — Anchor-scroll offset so section headlines don't duck under the
   fixed navbar. 80px = navbar height + breathing room. */
#features,
#how-it-works,
#pricing,
#faq {
    scroll-margin-top: 80px;
}

/* Bug 8 — Multilingual cards: equal-height rows + vertical centering so
   HE card (shorter body) lines up with EN/RU. */
.multilingual-v2__grid { grid-auto-rows: 1fr; }
.multilingual-v2__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   ADMIN PANEL — Sprint 2.1 hotfix
   Dark-themed drawer + navy content surface. MudBlazor's default light
   palette paints MudDrawer/MudMainContent white; we force the admin scope
   to the navy dashboard look instead.
   ============================================================================ */

.admin-root {
    min-height: 100vh;
    background: #0A1628;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.admin-banner {
    background: #B91C1C;
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    z-index: 1300;
    position: relative;
}
.admin-banner__email { opacity: 0.85; }
.admin-banner__role {
    background: #fff;
    color: #B91C1C;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.admin-layout { background: #0A1628; }

.admin-root .mud-appbar { background-color: #0A1628 !important; }

/* Dark drawer — override MudBlazor default Surface (white). */
.admin-drawer.mud-drawer,
.admin-drawer .mud-drawer-content {
    background-color: #0F1D33 !important;
    color: #E5E7EB !important;
    border-inline-end: 1px solid rgba(255,255,255,0.06);
}
.admin-drawer .mud-nav-link {
    color: #D1D5DB !important;
}
.admin-drawer .mud-nav-link:hover {
    background-color: rgba(255,255,255,0.06) !important;
    color: #FFFFFF !important;
}
.admin-drawer .mud-nav-link.active,
.admin-drawer .mud-nav-link.mud-nav-link-active {
    background-color: rgba(0,212,170,0.14) !important;
    color: #00D4AA !important;
}
.admin-drawer .mud-nav-link .mud-nav-link-icon,
.admin-drawer .mud-nav-link .mud-icon-root {
    color: inherit !important;
}
.admin-drawer .mud-divider {
    border-color: rgba(255,255,255,0.08) !important;
}

/* Navy content surface — MudMainContent defaults to Surface (white). */
.admin-content.mud-main-content,
.admin-content {
    background: #0A1628 !important;
    color: #fff;
    min-height: calc(100vh - 48px);
}
.admin-content .mud-container { color: #fff; }

.admin-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-align: center;
}

/* AppBar identity chips (Sprint 2.1.1 exit button + admin identity). */
.admin-appbar__email {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin: 0 8px;
}
.admin-appbar__role {
    background: #B91C1C;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-inline-end: 8px;
}

/* ============================================================================
   RTL LEAK FIXES (Sprint-2.6.10 Web RTL polish)
   ----------------------------------------------------------------------------
   Mirrors for LTR-default rules that the earlier RTL pass missed. Each one
   points back to the original rule line for context. Found via grep audit:
   any padding-left/padding-right/margin-left/margin-right/left/right that
   affects layout but had no [dir="rtl"] override.
   ============================================================================ */

/* line 278: .footer-links a:hover slides text right on LTR; mirror to slide left in RTL */
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }

/* line 793: .processing-spinner sits to the LEFT of text on LTR (margin-right gap);
   in RTL the spinner sits to the RIGHT of text, so the gap moves to the left */
[dir="rtl"] .processing-spinner { margin-right: 0; margin-left: 12px; }

/* line 1059: .table-th header cells aligned left on LTR; in RTL align right */
[dir="rtl"] .table-th { text-align: right; }

/* line 1249: .hero-v2__mockup pushes itself to the right edge of its grid cell on LTR
   via margin-left: auto; in RTL we want it pushed to the left edge.
   The direction:ltr override is load-bearing: .hero-v2__mockup is an inline
   SVG with viewBox="0 0 500 450" and <text> elements at positive x coords
   ("HbA1c" at x=44, etc.). Without direction:ltr, the document's RTL
   direction cascades into the SVG and flips text-anchor: SVG <text> at
   x=44 starts rendering LEFTWARD into negative x, overflows the SVG's
   left edge (SVG default overflow:visible), and gets clipped by the
   viewport's left edge. Symptom on /he/: "HbA1c" -> "bA1c",
   "Hemoglobin" -> "oglobin", "MONTHS" -> "ONTHS" - first letters of
   each label cut off. */
[dir="rtl"] .hero-v2__mockup { margin-left: 0; margin-right: auto; direction: ltr; }

/* line 1386: .longitudinal__chart is the same shape as .hero-v2__mockup -
   an inline <svg viewBox="0 0 500 350"> with <text> labels at positive x
   coords. Outer margin is symmetric (margin: 0 auto) so no margin mirror
   is needed, but the SVG still inherits [dir="rtl"] from the document
   which flips internal text-anchor and clips labels off the left side of
   the chart. Same direction:ltr override as the hero mockup, scoped to
   this SVG only. Visible on /he/ landing #features section. */
[dir="rtl"] .longitudinal__chart { direction: ltr; }

/* line 1524: .pricing-v2__badge anchored to the right of the card on LTR; in RTL the
   visual "top corner accent" position should mirror to the left */
[dir="rtl"] .pricing-v2__badge { right: auto; left: 20px; }

/* line 1691: .disclaimer-strip__text icon sits before the text on LTR (margin-right gap);
   in RTL the icon sits after the text visually, so the gap moves to the left */
[dir="rtl"] .disclaimer-strip__text i { margin-right: 0; margin-left: 8px; }


