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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

:root {
    /* Color Palette - Prestige Academic */
    --accent-primary: #1a3a5c;
    /* Deep Mission Navy */
    --accent-secondary: #0d9488;
    /* Professional Teal */
    --accent-glow: rgba(13, 148, 136, 0.15);

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Subtle Off-White */
    --bg-tertiary: #f1f5f9;
    --bg-overlay: rgba(255, 255, 255, 0.7);

    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Prestige Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-prestige: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Layout Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --transition-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

h2 {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.65rem;
    font-weight: 700;
}

h4 {
    font-size: 1.35rem;
    font-weight: 600;
}

h5 {
    font-size: 1.15rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Card Heading & Subtitle Visual Hierarchy */
.card-academic .card-title,
.card-academic h5,
.card-academic h6 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.35;
}

.plot-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.plot-header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Enhanced Plotly & Chart Typography Defaults */
.js-plotly-plot .xtick text,
.js-plotly-plot .ytick text {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12px !important;
    fill: #1e293b !important;
}

.js-plotly-plot .g-xtitle text,
.js-plotly-plot .g-ytitle text {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    fill: #0f172a !important;
}

.js-plotly-plot .legendtext {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    fill: #334155 !important;
}

.js-plotly-plot .hovertext text {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
}

/* --- Material Textures --- */
.bg-mesh {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(at 0% 0%, hsla(210, 100%, 98%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(180, 100%, 98%, 1) 0, transparent 50%);
}

.dot-pattern {
    background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
    background-size: 32px 32px;
}

.dot-pattern-animated {
    position: relative;
}

.dot-pattern-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--accent-secondary) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
    pointer-events: none;
    will-change: opacity;
    animation: dotPulse 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.25;
    }
}

/* Layout Utilities */
.section-padding {
    padding: 6rem 0;
}

.container-custom {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

.accent-border-left {
    border-left: 4px solid var(--accent-secondary);
    padding-left: 2rem;
}

.accent-border-top {
    border-top: 4px solid var(--accent-secondary);
    padding-top: 2rem;
}

/* Buttons & Interactions */
.btn-academic {
    background: var(--accent-primary);
    color: #fff;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-standard);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-academic:hover {
    background: #0d2640;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px rgba(26, 58, 92, 0.3);
}

.btn-academic:active {
    transform: translateY(0);
}

/* Dropdown Refinement - "Not Default" Style */
.form-select-prestige {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.8rem 2.8rem 0.8rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d9488' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 18px 14px;
    appearance: none;
    transition: var(--transition-standard);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.form-select-prestige:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background-color: #fff;
    transform: translateY(-1px);
}

.form-select-prestige:hover {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-md);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
    z-index: 9999;
    border: none;
    box-shadow: var(--shadow-prestige);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px) scale(1.1);
}

/* Modal Customization */
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

/* Chart Container Stability (Prevent disappearing/flickering on hover) */
.card-academic canvas,
.plot-card canvas,
canvas {
    transform: none !important;
    transition: none !important;
}

.card-academic:hover canvas,
.plot-card:hover canvas {
    transform: none !important;
    transition: none !important;
}

/* Enhanced Card Hover (subtle border/shadow without moving layout) */
.card-academic:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.1);
}

/* Global / strain pages: no lift or chart pop */
body.no-card-lift .card-academic,
body.no-card-lift .card-academic:hover,
body.no-card-lift .plot-card,
body.no-card-lift .plot-card:hover,
body.no-card-lift .kpi:hover {
    transform: none !important;
}
body.no-card-lift .card-academic:hover {
    box-shadow: none;
    border-color: var(--border-light);
}
body.no-card-lift .card-academic:hover canvas {
    transform: none !important;
}

/* Search Result Highlight */
mark {
    background: #fef08a;
    color: #1a3a5c;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* Table Row Hover Prominence */
.table-hover tbody tr:hover {
    background-color: var(--bg-tertiary) !important;
}

/* Tooltip Customization */
.tooltip {
    --bs-tooltip-bg: var(--accent-primary);
    --bs-tooltip-color: #fff;
}

.discovery-glow {
    position: relative;
}

.discovery-glow::after {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Glassmorphism Classes */
.glass-prestige {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Section Title Refinement */
.section-title {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-secondary);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Visual Hierarchy & Feedback */
.card-academic {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-standard);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-academic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: var(--accent-secondary);
    transition: var(--transition-standard);
    z-index: 2;
}

.card-academic:hover {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 12px 30px -8px rgba(13, 148, 136, 0.12);
}

.card-academic:hover::before {
    height: 100%;
}

.card-stat-v2 {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card-stat-v2 i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    transition: var(--transition-standard);
}

.card-stat-v2:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
}

.card-stat-v2:hover i {
    background: var(--accent-secondary);
    color: white;
}

/* Navigation System */
.top-header-v2 {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
}

.header-ils-logo {
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.nav-v2 {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-standard);
}

.nav-link-v2 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-standard);
    position: relative;
    display: inline-block;
}

.nav-link-v2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    background: var(--accent-secondary);
    transform: scaleX(0);
    transition: var(--transition-standard);
    border-radius: 2px;
}

.nav-link-v2:hover {
    color: var(--accent-primary);
    background: rgba(13, 148, 136, 0.05);
}

.nav-link-v2:hover:after {
    transform: scaleX(1);
}

.nav-link-v2.active {
    color: var(--accent-primary);
}

.nav-link-v2.active:after {
    transform: scaleX(1);
}

/* Navigation Dropdown Enhancements (Prestige UI) */
.nav-link-v2.dropdown-toggle::after {
    display: none !important;
}

.navbar-nav .dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    background: #ffffff;
    padding: 0.5rem 0;
    min-width: 270px;
    z-index: 1050;
    margin-top: 6px !important;
}

.navbar-nav .dropdown-item {
    padding: 0.65rem 1.15rem;
    color: var(--text-primary);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
    margin: 1px 6px;
    width: auto;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(13, 148, 136, 0.07);
    color: var(--accent-primary);
    transform: translateX(3px);
}

.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
    background-color: rgba(13, 148, 136, 0.12);
    color: var(--accent-primary);
    font-weight: 700;
}

@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

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

/* Footer Excellence */
.footer-prestige {
    background: var(--accent-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 6rem 0 3rem;
    border-top: 4px solid var(--accent-secondary);
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-secondary);
    border-radius: 2px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-standard);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #fff;
    padding-left: 10px;
}

/* Micro-interactions */
.hover-lift {
    transition: var(--transition-standard);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Table Cleanup */
.table-clean {
    width: 100%;
    border-collapse: collapse;
}

.table-clean th {
    background: var(--bg-secondary);
    text-align: left;
    padding: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
}

.table-clean td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.table-clean tr:hover {
    background: var(--bg-secondary);
}

/* Partner Identity Tiles */
.partner-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-standard);
    box-shadow: var(--shadow-sm);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-md);
}

.partner-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(20%);
    transition: var(--transition-standard);
}

.partner-card:hover .partner-logo-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Work Package Refinement */
.work-card {
    transition: var(--transition-standard);
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: var(--radius-md);
}

.work-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-prestige);
}

.work-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    transition: var(--transition-standard);
}

.work-card:hover .work-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Map Excellence */
#map {
    height: 450px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* ═══════════════════════════════════════════════
   SCROLL-TRIGGERED ANIMATIONS
   Add class "animate-on-scroll" to any element.
   Optional modifiers: .anim-fade, .anim-up, .anim-left, .anim-right, .anim-scale
   Stagger: add .anim-delay-1 through .anim-delay-5
═══════════════════════════════════════════════ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.anim-left {
    transform: translateX(-40px) translateY(0);
}

.animate-on-scroll.anim-right {
    transform: translateX(40px) translateY(0);
}

.animate-on-scroll.anim-scale {
    transform: scale(0.92) translateY(0);
}

.animate-on-scroll.anim-fade {
    transform: translateY(0);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Ensure all data tables, search results, accordions, and categories are always 100% visible */
div[id^="cat-"],
div[id^="catBody-"],
.cat-header-prestige,
#searchResults,
#geneResults,
.table-responsive,
.table,
tbody,
tr {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Stagger delays */
.anim-delay-1 {
    transition-delay: 0.1s;
}

.anim-delay-2 {
    transition-delay: 0.2s;
}

.anim-delay-3 {
    transition-delay: 0.3s;
}

.anim-delay-4 {
    transition-delay: 0.4s;
}

.anim-delay-5 {
    transition-delay: 0.5s;
}

.anim-delay-6 {
    transition-delay: 0.6s;
}

/* Card hover lift */
.card-academic {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-academic:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-prestige);
}

/* Navbar entrance */
@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: navSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Section title underline grow */
@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

/* Counter tick animation */
@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.stat-animate {
    animation: countPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Shimmer loading effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer-loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Badge pulse */
@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    }
}

.badge-pulse {
    animation: badgePulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Table row entrance */
.table tbody tr {
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero consortium naming */
.hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
    margin-bottom: 1.75rem;
}

.hero-dom4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    color: #22d3ee;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    line-height: 1;
    letter-spacing: -0.04em;
    padding-top: 0.2rem;
    white-space: nowrap;
}

.sehat-acronym {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    border-left: 2px solid rgba(34, 211, 238, 0.45);
}

.sehat-acronym li {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    line-height: 1.2;
}

.sehat-letter {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    color: #22d3ee;
    width: 1.7rem;
    flex-shrink: 0;
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.sehat-word {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 576px) {
    .hero-brand {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sehat-acronym {
        padding-left: 0.9rem;
    }
}

/* Strain catalog + strain profile: no hover lift, no scroll pop-in */
body.no-card-lift .navbar {
    animation: none !important;
}
body.no-card-lift .animate-on-scroll,
body.no-card-lift .animate-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
body.no-card-lift .card-academic,
body.no-card-lift .card-academic:hover,
body.no-card-lift .plot-card,
body.no-card-lift .plot-card:hover,
body.no-card-lift .kpi,
body.no-card-lift .kpi:hover,
body.no-card-lift .strain-tile,
body.no-card-lift .strain-tile:hover {
    transform: none !important;
    transition: none !important;
}
body.no-card-lift .card-academic:hover,
body.no-card-lift .strain-tile:hover,
body.no-card-lift .plot-card:hover {
    box-shadow: none !important;
    border-color: var(--border-light) !important;
}
body.no-card-lift .card-academic:hover::before {
    transform: none !important;
    height: 0 !important;
    display: none !important;
}

.plot-card { position: relative; }
.js-plotly-plot .nsewdrag,
.js-plotly-plot .nsdrag,
.js-plotly-plot .ewdrag,
.js-plotly-plot .cursor-crosshair {
    cursor: pointer !important;
}
.js-plotly-plot .zoombox,
.js-plotly-plot .zoombox-corners {
    display: none !important;
}
.plotly-notifier {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════
   CLICKABLE AFFORDANCES & INTERACTIVE UI TOKENS
══════════════════════════════════════════════════════════ */
.card-clickable {
    cursor: pointer !important;
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    color: inherit !important;
}

.card-clickable:hover {
    border-color: var(--accent-secondary) !important;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.15);
    transform: translateY(-2px);
    color: inherit !important;
}

.card-clickable .badge-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.card-clickable:hover .badge-action {
    background: var(--accent-secondary) !important;
    color: #ffffff !important;
}

/* Pipeline Funnel Matrix */
.pipeline-funnel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.pipeline-step {
    flex: 1 1 180px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.pipeline-step.active-step {
    border-color: var(--accent-secondary);
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.pipeline-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--accent-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pipeline-step .step-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.pipeline-step .step-metric {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.pipeline-step .step-desc {
    font-size: 0.72rem;
    color: #64748b;
}

/* High-Contrast Scientific Tags */
.tag-domain-bacteria { background: #ecfdf5; color: #0d9488; border: 1px solid #a7f3d0; }
.tag-domain-archaea { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.tag-domain-viruses { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.tag-domain-eukaryota { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* ══════════════════════════════════════════════════════════
   PORTAL AUTHENTICATION & DATA GATING STYLES
══════════════════════════════════════════════════════════ */
.portal-page-locked,
html.portal-locked-early {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

html.portal-locked-early body {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

html.portal-locked-early body > *:not(#portalAuthModal):not(.navbar):not(script):not(style),
body.portal-page-locked main,
body.portal-page-locked section,
body.portal-page-locked .container:not(.modal-dialog *):not(.navbar *) {
    filter: blur(12px) !important;
    pointer-events: none !important;
    user-select: none !important;
    opacity: 0.15 !important;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.portal-locked-blur {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.55;
    transition: filter 0.3s ease, opacity 0.3s ease;
    max-height: 480px !important;
    overflow: hidden !important;
}

.portal-lock-overlay-container {
    position: relative;
    max-height: 520px;
    overflow: hidden;
}

body.portal-logged-in .portal-lock-overlay-container {
    max-height: none !important;
    overflow: visible !important;
}

.portal-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(5px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.shake-animation {
    animation: portalShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes portalShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}