/* ==========================================================================
   ZOTAS MODERN DESIGN SYSTEM & BACKBONE
   Responsive, Fluid Typography, No-Cards Architecture, Dark & Light Mode
   ========================================================================== */

/* Register CSS custom properties for smooth color interpolation across themes */
@property --em-c1 {
    syntax: '<color>';
    inherits: true;
    initial-value: #38bdf8;
}

@property --em-c2 {
    syntax: '<color>';
    inherits: true;
    initial-value: #60a5fa;
}

@property --brand-c1 {
    syntax: '<color>';
    inherits: true;
    initial-value: #ffffff;
}

@property --brand-c2 {
    syntax: '<color>';
    inherits: true;
    initial-value: #38bdf8;
}

@property --brand-c3 {
    syntax: '<color>';
    inherits: true;
    initial-value: #60a5fa;
}

:root, [data-theme="dark"] {
    --app-accent: #38bdf8;
    --app-accent-glow: rgba(56, 189, 248, 0.35);
    --em-c1: #38bdf8;
    --em-c2: #60a5fa;
    --brand-c1: #ffffff;
    --brand-c2: #38bdf8;
    --brand-c3: #60a5fa;
    --text-primary: #ffffff;
    --text-secondary: rgba(226, 232, 240, 0.88);
    --text-muted: rgba(148, 163, 184, 0.85);
}

[data-theme="light"] {
    --app-accent: #0284c7;
    --app-accent-glow: rgba(2, 132, 199, 0.25);
    --em-c1: #0284c7;
    --em-c2: #2563eb;
    --brand-c1: #0f172a;
    --brand-c2: #0284c7;
    --brand-c3: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
}

html, body {
    transition: --brand-c1 0.8s ease-in-out,
                --brand-c2 0.8s ease-in-out,
                --brand-c3 0.8s ease-in-out,
                --em-c1 0.8s ease-in-out,
                --em-c2 0.8s ease-in-out,
                background-color 0.8s ease-in-out,
                color 0.8s ease-in-out;
}

/* ==========================================================================
   Synchronized Theme Transitions (Matching Index: 0.8s ease-in-out)
   Ensures ALL text, surfaces, backgrounds, and borders transition in lockstep
   ========================================================================== */
body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, strong, small, b, i, label, button,
.zotas-hero-title,
.zotas-hero-lead,
.stream-heading,
.lead-text,
.body-text,
.conveyor-step-num,
.conveyor-station-title,
.conveyor-station-desc,
.feature-tag,
.conveyor-publications-header,
.publications-badge,
.publications-title,
.publications-subtitle,
.publication-item,
.publication-item-main,
.publication-authors,
.publication-journal-badge,
.publication-year,
.publication-arrow,
.tutorial-open-title,
.tutorial-step-number,
.tuto-tab-btn,
.tuto-tab-num,
.sample-download-box,
.sample-download-label,
.sample-download-row,
.btn-sample-download,
.software-requirements-bar,
.req-col-title,
.req-col-sub,
.req-list,
.req-list li,
.req-list li::before,
.partners-title,
.feature-stream-title,
.feature-stream-desc,
.learn-more-title,
.learn-more-authors,
.learn-more-journal,
.learn-more-year,
.site-footer,
.footer-credit,
.footer-credit a,
.collab-badge,
.collab-text,
.collab-text a,
.download-badge,
.spec-chip,
.nav-link,
.nav-brand-text,
.nav-ellipsis-btn,
.application__action,
.application__action span,
.download-sample-title,
.download-pill,
.btn-modern,
.btn-modern-download,
.btn-modern-primary,
.btn-modern-ghost {
    transition: color 0.8s ease-in-out;
}

.site-header {
    transition: background 0.8s ease-in-out,
                backdrop-filter 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
}

.collab-capsule,
.feature-stream-row,
.learn-more-container,
.learn-more-item,
.download-software-card,
.feature-node-podium,
.spec-chip,
.download-pill,
.btn-modern-download,
.btn-modern-ghost,
.conveyor-station,
.feature-tag,
.publication-item,
.publication-journal-badge,
.software-window,
.software-requirements-bar,
.download-logo-podium,
.btn-sample-download,
.tutorial-tabs-cycle {
    transition: background-color 0.8s ease-in-out,
                background 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out,
                color 0.8s ease-in-out,
                transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.conveyor-publications,
.sample-download-box,
.stream-divider,
.site-footer {
    transition: border-color 0.8s ease-in-out;
}

/* --- 1. Top Navigation Bar (Fixed, Scroll-Aware, Adaptive) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h, 74px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.8s ease-in-out,
                backdrop-filter 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
    border-bottom: 1px solid transparent;
    background: transparent;
}

.site-header.is-scrolled {
    background: rgba(5, 28, 34, 0.85);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .site-header.is-scrolled {
    background: rgba(236, 244, 253, 0.88);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 3.5vw, 2.8rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Brand area */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.nav-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.nav-brand-logo img,
.nav-brand-logo svg {
    width: 46px;
    height: 46px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.45));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.nav-brand:hover .nav-brand-logo img,
.nav-brand:hover .nav-brand-logo svg {
    transform: scale(1.08);
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.75));
}

.nav-brand-text {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--brand-c1) 0%, var(--brand-c2) 60%, var(--brand-c3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: --brand-c1 0.8s ease-in-out, --brand-c2 0.8s ease-in-out, --brand-c3 0.8s ease-in-out;
}

/* Detailed Navigation Links (Desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1.8vw, 1.8rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary, rgba(226, 232, 240, 0.88));
    padding: 0.5rem 0.3rem;
    position: relative;
    transition: color 0.8s ease-in-out;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary, #ffffff);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #0f172a;
}

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

/* Right Actions Cluster */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

/* User Avatar Button */
.nav-user-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    background: rgba(11, 49, 74, 0.7);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
    cursor: pointer;
    transition: transform 0.25s ease,
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-user-btn:hover {
    transform: scale(1.08);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}

.nav-user-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Navigation Menu Button: Three Horizontal Bars (Clean Hamburger, No enclosing round div) */
.nav-ellipsis-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--text-primary, #ffffff);
    cursor: pointer;
    padding: 8px 4px;
    gap: 5px;
    height: 38px;
    width: 34px;
    transition: color 0.8s ease-in-out, opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="light"] .nav-ellipsis-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a;
}

.nav-ellipsis-btn:hover {
    background: transparent !important;
    border: none !important;
    opacity: 0.75;
    transform: scale(1.05);
}

.nav-ellipsis-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.8s ease-in-out;
}

.nav-ellipsis-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-ellipsis-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-ellipsis-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-ellipsis-btn.is-open {
    color: #38bdf8;
}

[data-theme="light"] .nav-ellipsis-btn.is-open {
    color: #0284c7;
}

/* Mobile Dropdown Menu Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: var(--header-h, 74px);
    left: 0;
    right: 0;
    background: rgba(5, 28, 34, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 1.5rem clamp(1.2rem, 4vw, 2.5rem);
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
}

[data-theme="light"] .mobile-nav-drawer {
    background: rgba(236, 244, 253, 0.97);
    border-bottom-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.mobile-nav-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-drawer .nav-link {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="light"] .mobile-nav-drawer .nav-link {
    border-bottom-color: rgba(15, 23, 42, 0.07);
}

/* Responsive Navbar Breakpoints */
@media (max-width: 850px) {
    .nav-brand-text {
        display: none !important; /* Hide text on small screens */
    }
    .nav-links {
        display: none !important; /* Hide direct links */
    }
    .nav-ellipsis-btn {
        display: flex;
    }
    .mobile-nav-drawer {
        display: flex;
    }
}

/* --- 2. Collaborator Notice Capsule (Glass Pill) --- */
.collab-banner {
    width: 100%;
    max-width: 1100px;
    margin: calc(var(--header-h, 74px) + 1.2rem) auto 1rem auto;
    padding: 0 1.2rem;
}

.collab-capsule {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.4rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.12);
    backdrop-filter: blur(12px);
    transition: border-color 0.8s ease-in-out, background 0.8s ease-in-out, box-shadow 0.8s ease-in-out, transform 0.25s ease;
}

[data-theme="light"] .collab-capsule {
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

.collab-capsule:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(6, 182, 212, 0.14);
    transform: translateY(-1px);
    transition: border-color 0.8s ease-in-out,
                background 0.8s ease-in-out,
                transform 0.25s ease;
}

/* Compact, neutral flash notice for main-page feedback. */
.flash-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 1100px;
    margin: calc(var(--header-h, 74px) + 1.2rem) auto 1rem;
    padding: 0.35rem 1.2rem;
    color: var(--text-secondary, rgba(226, 232, 240, 0.88));
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: center;
    transition: color 0.8s ease-in-out;
}

.flash-notice > i {
    flex: 0 0 auto;
    color: var(--app-accent, #38bdf8);
    transition: color 0.8s ease-in-out;
}

.flash-notice-message {
    min-width: 0;
}

.flash-notice-message p {
    margin: 0;
}

@media (max-width: 600px) {
    .flash-notice {
        justify-content: flex-start;
        margin-right: 1rem;
        margin-left: 1rem;
        padding-right: 0.25rem;
        padding-left: 0.25rem;
        text-align: left;
    }
}

.collab-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
    flex-shrink: 0;
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.05); }
}

.collab-text {
    font-size: clamp(0.85rem, 1.25vw, 0.95rem);
    color: var(--text-secondary, rgba(226, 232, 240, 0.9));
    line-height: 1.45;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .collab-text {
    color: #334155;
}

.collab-text a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .collab-text a {
    color: #0284c7;
}

.collab-text a:hover {
    color: #7dd3fc;
    transition: color 0.8s ease-in-out;
}

@media (max-width: 640px) {
    .collab-capsule {
        border-radius: 16px;
        align-items: flex-start;
        padding: 0.85rem 1.1rem;
    }
    .collab-pulse-dot {
        margin-top: 5px;
    }
}

/* --- 3. Fluid Typography & Scannable Layouts --- */
.max-prose {
    max-width: 65ch;
}

.lead-text {
    font-size: clamp(1.12rem, 1.8vw, 1.4rem);
    line-height: 1.55;
    font-weight: 500;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1.2rem;
}

[data-theme="light"] .lead-text {
    color: #0f172a;
}

.body-text {
    font-size: clamp(0.96rem, 1.15vw, 1.05rem);
    line-height: 1.72;
    color: var(--text-secondary, rgba(226, 232, 240, 0.86));
    margin-bottom: 1.2rem;
}

[data-theme="light"] .body-text {
    color: #334155;
}

.download-manual-link {
    color: var(--app-accent, var(--zotas-accent, #38bdf8));
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.8s ease-in-out;
}

.download-manual-link:hover {
    color: var(--app-accent-strong, var(--zotas-accent, #7dd3fc));
    text-decoration: underline;
}

/* ========================================================================== 
   Academic Literature & Associated Publications Module
   Authoritative scientific framing (journal tags, DOI citations, peer-reviewed badges)
   ========================================================================== */
.publications-container,
.learn-more-container {
    max-width: 740px;
    margin: 3.5rem auto 1.5rem auto;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .publications-container,
[data-theme="light"] .learn-more-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(2, 132, 199, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.publications-header,
.learn-more-header {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

[data-theme="light"] .publications-header,
[data-theme="light"] .learn-more-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.publications-badge,
.learn-more-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .publications-badge,
[data-theme="light"] .learn-more-badge {
    color: #0284c7;
}

.publications-title,
.learn-more-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary, #ffffff);
    margin: 0;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .publications-title,
[data-theme="light"] .learn-more-title {
    color: #0f172a;
}

.publications-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted, rgba(148, 163, 184, 0.85));
    margin: 0;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .publications-subtitle {
    color: #64748b;
}

.publications-list,
.learn-more-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.publication-item,
.learn-more-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out,
                color 0.8s ease-in-out;
}

[data-theme="light"] .publication-item,
[data-theme="light"] .learn-more-item {
    background: rgba(15, 23, 42, 0.025);
    border-color: rgba(15, 23, 42, 0.08);
}

.publication-item:hover,
.learn-more-item:hover {
    transform: translateX(4px);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.16);
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.16s ease,
                border-color 0.16s ease,
                box-shadow 0.16s ease;
}

[data-theme="light"] .publication-item:hover,
[data-theme="light"] .learn-more-item:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
}

.publication-item-main,
.learn-more-item-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.publication-authors,
.learn-more-authors {
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--text-primary, #ffffff);
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .publication-authors,
[data-theme="light"] .learn-more-authors {
    color: #0f172a;
}

.publication-journal-badge {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    letter-spacing: 0.02em;
    transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out, color 0.8s ease-in-out;
}

[data-theme="light"] .publication-journal-badge {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.22);
    color: #0284c7;
}

.learn-more-journal {
    font-size: 0.84rem;
    font-style: italic;
    color: var(--text-muted, rgba(148, 163, 184, 0.85));
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .learn-more-journal {
    color: #64748b;
}

.publication-meta,
.learn-more-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.publication-year,
.learn-more-year {
    font-size: 0.86rem;
    font-weight: 600;
    color: #38bdf8;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .publication-year,
[data-theme="light"] .learn-more-year {
    color: #0284c7;
}

.publication-arrow,
.learn-more-arrow {
    font-size: 0.9rem;
    color: #38bdf8;
    transition: transform 0.18s ease, color 0.8s ease-in-out;
}

[data-theme="light"] .publication-arrow,
[data-theme="light"] .learn-more-arrow {
    color: #0284c7;
}

.publication-item:hover .publication-arrow,
.learn-more-item:hover .learn-more-arrow {
    transform: translate(2px, -2px);
}

/* Micro-Pillars for the scientific protocol */
.feature-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 1.8rem 0;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid #06b6d4;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
    transition: background 0.8s ease-in-out, transform 0.25s ease;
}

[data-theme="light"] .pillar-item {
    background: rgba(15, 23, 42, 0.02);
}

.pillar-item:hover {
    background: rgba(6, 182, 212, 0.08);
    transform: translateX(4px);
}

.pillar-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary, #ffffff);
}

[data-theme="light"] .pillar-title {
    color: #0f172a;
}

.pillar-desc {
    font-size: 0.9rem;
    line-height: 1.52;
    color: var(--text-muted, rgba(148, 163, 184, 0.85));
}

/* Progressive Disclosure Drawer */
.protocol-drawer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: #38bdf8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem 0;
    margin: 0.8rem 0;
    transition: color 0.8s ease-in-out, gap 0.2s ease;
}

.protocol-drawer-toggle:hover {
    color: #7dd3fc;
    gap: 0.75rem;
}

.protocol-drawer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
}

.protocol-drawer-content.is-open {
    max-height: 800px;
    opacity: 1;
}

/* --- 4. Video Tutorial Players (Square 1:1 Native Resolution, Zero Cropping) --- */
.video-frame-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.8s ease-in-out, border-color 0.8s ease-in-out, transform 0.35s ease;
}

[data-theme="light"] .video-frame-wrap {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.08);
}

.video-frame-wrap:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 16px 44px rgba(6, 182, 212, 0.25);
}

.video-frame-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-badge-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.video-frame-wrap.is-playing .video-badge-overlay {
    opacity: 0 !important;
    pointer-events: none;
}

/* Clarified Download Buttons */
.btn-modern-download {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s ease-in-out,
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                color 0.8s ease-in-out;
}

[data-theme="light"] .btn-modern-download {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(2, 132, 199, 0.35);
    color: #0f172a;
}

.btn-modern-download:hover {
    background: rgba(6, 182, 212, 0.16);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s ease-in-out,
                background 0.8s ease-in-out,
                border-color 0.8s ease-in-out;
}

.btn-modern-download:active {
    transform: translateY(0) scale(0.98);
}

.btn-download-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-download-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.btn-download-text small {
    font-size: 0.76rem;
    color: #38bdf8;
    opacity: 0.9;
    transition: color 0.8s ease-in-out;
}

/* ==========================================================================
   Sample TIFF Download Module in Tutorial (Both downloads on same row)
   ========================================================================== */
.sample-download-box,
.download-sample-box {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.8s ease-in-out;
}

[data-theme="light"] .sample-download-box,
[data-theme="light"] .download-sample-box {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.sample-download-label,
.download-sample-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted, rgba(148, 163, 184, 0.9));
    margin-bottom: 0.65rem;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .sample-download-label,
[data-theme="light"] .download-sample-title {
    color: #64748b;
}

.sample-download-row,
.download-sample-pills {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
}

.btn-sample-download,
.download-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 9px;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
}

[data-theme="light"] .btn-sample-download,
[data-theme="light"] .download-pill {
    background: rgba(2, 132, 199, 0.07);
    border-color: rgba(2, 132, 199, 0.24);
    color: #0284c7;
}

.btn-sample-download:hover,
.download-pill:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.3);
}

.btn-sample-download:active,
.download-pill:active {
    transform: translateY(0) scale(0.98);
}

.btn-sample-download svg,
.download-pill i {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .sample-download-row,
    .download-sample-pills {
        flex-direction: column;
    }
}

.video-frame-wrap:hover .video-badge-overlay {
    opacity: 0.25;
}

/* --- 5. Institutional Partner Gallery --- */
.partners-stream {
    width: 100%;
    max-width: 1100px;
    margin: 4.5rem auto 2.5rem auto;
    text-align: center;
    padding: 0 1.2rem;
}

.partners-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted, rgba(148, 163, 184, 0.7));
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(2rem, 5vw, 4rem);
}

.partner-logo {
    max-height: 52px;
    width: auto;
    /* Keep the filter function list identical in both themes so the browser
       can interpolate it during the same 0.8s gradient cross-fade. */
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.6);
    transition: filter 0.8s ease-in-out,
                transform 0.3s ease,
                opacity 0.8s ease-in-out;
}

[data-theme="light"] .partner-logo {
    filter: grayscale(100%) brightness(1) invert(0) opacity(0.65);
}

/* --- 5. Institutional Partner Gallery --- */
.partners-stream {
    width: 100%;
    max-width: 1100px;
    margin: 4.5rem auto 2.5rem auto;
    text-align: center;
    padding: 0 1.2rem;
}

.partners-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted, rgba(148, 163, 184, 0.7));
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(2rem, 5vw, 4rem);
}

.partner-logo {
    max-height: 52px;
    width: auto;
    /* Keep the filter function list identical in both themes so the browser
       can interpolate it during the same 0.8s gradient cross-fade. */
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.6);
    transition: filter 0.8s ease-in-out,
                transform 0.3s ease,
                opacity 0.8s ease-in-out;
}

[data-theme="light"] .partner-logo {
    filter: grayscale(100%) brightness(1) invert(0) opacity(0.65);
}

.partner-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.06);
}

/* ==========================================================================
   TWO-COLOR THEME GRADIENT FOR <EM> (BioDevs Inspiration)
   Emphasizes key words, titles, and software names in the active app gradient
   ========================================================================== */

:root, [data-theme="dark"] {
    --em-gradient: linear-gradient(120deg, #38bdf8 0%, #60a5fa 100%);
}

[data-theme="light"] {
    --em-gradient: linear-gradient(120deg, #0284c7 0%, #2563eb 100%);
}

[data-app="daniotracker"], [data-app="daniotracker"][data-theme="dark"] {
    --em-gradient: linear-gradient(120deg, #fb923c 0%, #ef4444 100%);
}

[data-app="daniotracker"][data-theme="light"] {
    --em-gradient: linear-gradient(120deg, #ea580c 0%, #dc2626 100%);
}

[data-app="danioache"], [data-app="danioache"][data-theme="dark"] {
    --em-gradient: linear-gradient(120deg, #fb7185 0%, #e11d48 100%);
}

[data-app="danioache"][data-theme="light"] {
    --em-gradient: linear-gradient(120deg, #e11d48 0%, #9f1239 100%);
}

em {
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(120deg, var(--em-c1) 0%, var(--em-c2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline;
    transition: --em-c1 0.8s ease-in-out, --em-c2 0.8s ease-in-out;
}

/* Hero Section */
.zotas-hero {
    max-width: 1000px;
    margin: calc(var(--header-h, 74px) + clamp(2.5rem, 6vw, 5rem)) auto 2.5rem auto;
    text-align: center;
    padding: 0 1.2rem;
}

.collab-banner ~ .zotas-hero {
    margin-top: 2rem;
}

.zotas-hero-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: clamp(1.75rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1.2rem;
}

.zotas-hero-title em {
    white-space: nowrap;
}

[data-theme="light"] .zotas-hero-title {
    color: #0f172a;
}

.zotas-hero-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: var(--text-secondary, rgba(226, 232, 240, 0.88));
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 2rem auto;
}

[data-theme="light"] .zotas-hero-lead {
    color: #475569;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
}

.hero-cta-group .application__action {
    padding: 0.75rem 0.2rem;
    font-size: 1.05rem;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s ease-in-out,
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                color 0.8s ease-in-out,
                filter 0.16s ease;
}

.btn-modern:hover {
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.16s ease,
                border-color 0.16s ease,
                color 0.16s ease,
                filter 0.16s ease;
}

.btn-modern:active {
    transform: translateY(0) scale(0.98);
}

.btn-modern-primary {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.55);
    filter: brightness(1.08);
}

.btn-modern-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-modern-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .btn-modern-ghost {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

.btn-modern-ghost:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-2px);
}

.btn-modern-ghost:active {
    transform: translateY(0) scale(0.98);
}

/* Stream Section (Flux Continu Layout) */
.stream-section {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.stream-heading {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary, #ffffff);
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .stream-heading {
    color: #0f172a;
}

/* ==========================================================================
   Tutorial Stream & Three-Tab Cycle (Centered, Responsive)
   ========================================================================== */
.tutorial-tabs-cycle {
    display: none; /* Hidden on desktop */
}

.tutorial-open-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.8rem, 2.8vw, 2.6rem);
    margin-top: 2rem;
    align-items: start;
}

.tutorial-open-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    width: 100%;
}

.tutorial-open-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .tutorial-open-title {
    color: #0f172a;
}

.tutorial-open-item .body-text {
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .tutorial-tabs-cycle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin: 0 auto 2rem auto;
        padding: 0.3rem 0.35rem;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        border-radius: 9999px;
        width: fit-content;
        max-width: 95%;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        transition: background 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
    }

    [data-theme="light"] .tutorial-tabs-cycle {
        background: rgba(15, 23, 42, 0.04);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }

    .tuto-tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 1.05rem;
        border-radius: 9999px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--text-muted, rgba(148, 163, 184, 0.85));
        font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
        font-size: 0.84rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.8s ease-in-out,
                    border-color 0.8s ease-in-out,
                    box-shadow 0.8s ease-in-out,
                    color 0.8s ease-in-out;
    }

    [data-theme="light"] .tuto-tab-btn {
        color: #64748b;
    }

    .tuto-tab-btn .tuto-tab-num {
        font-family: var(--font-hero, 'Space Grotesk', sans-serif);
        font-weight: 800;
        font-size: 0.86rem;
        color: #38bdf8;
        letter-spacing: -0.02em;
        transition: color 0.8s ease-in-out;
    }

    [data-theme="light"] .tuto-tab-btn .tuto-tab-num {
        color: #0284c7;
    }

    .tuto-tab-btn.active {
        background: rgba(6, 182, 212, 0.2);
        border-color: rgba(56, 189, 248, 0.45);
        color: #ffffff;
        box-shadow: 0 2px 12px rgba(6, 182, 212, 0.25);
    }

    [data-theme="light"] .tuto-tab-btn.active {
        background: #ffffff;
        border-color: rgba(2, 132, 199, 0.35);
        color: #0f172a;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    }

    .tutorial-open-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .tutorial-open-item {
        display: none;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }

    .tutorial-open-item.is-active-tab {
        display: flex;
        animation: fadeInTuto 0.32s ease;
    }

    /* Give the active tutorial video most of the available mobile width. */
    .video-frame-wrap {
        width: min(88vw, 420px);
        max-width: 100%;
        margin: 0 auto 0.5rem auto;
        border-radius: 14px;
    }

    /* On small screens, hide the hover badge since videos autoplay */
    .video-badge-overlay {
        display: none !important;
    }

    .tutorial-open-item .body-text {
        max-width: 440px;
        margin: 0 auto;
        text-align: center;
    }

    .sample-download-box {
        width: 100%;
        max-width: 400px;
        margin: 1rem auto 0 auto;
    }
}

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

/* ==========================================================================
   Open Feature Stream (Flux Continu Scientific Architecture)
   Replaces boxed cards grid with an open, responsive, fluid stream
   ========================================================================== */
.feature-stream {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.2rem 0 3rem;
}

.feature-stream-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: clamp(1.2rem, 3vw, 2.2rem);
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease;
    overflow: hidden;
}

[data-theme="light"] .feature-stream-row {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(2, 132, 199, 0.12);
}

.feature-stream-row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
}

[data-theme="light"] .feature-stream-row:hover {
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.32);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

.feature-row-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    transition: opacity 0.3s ease;
}

.feature-stream-row:hover .feature-row-glow {
    opacity: 1;
}

.feature-node-podium {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.15);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                color 0.8s ease-in-out;
}

.feature-stream-row:hover .feature-node-podium {
    transform: scale(1.06);
    background: rgba(6, 182, 212, 0.2);
    border-color: #38bdf8;
}

[data-theme="light"] .feature-node-podium {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.22);
    color: #0284c7;
}

.feature-stream-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-stream-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary, #ffffff);
    margin: 0;
}

[data-theme="light"] .feature-stream-title {
    color: #0f172a;
}

.feature-stream-desc {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    line-height: 1.65;
    color: var(--text-secondary, rgba(226, 232, 240, 0.88));
    margin: 0;
}

[data-theme="light"] .feature-stream-desc {
    color: #334155;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.feature-tag {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out, color 0.8s ease-in-out;
}

[data-theme="light"] .feature-tag {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.18);
}

@media (max-width: 640px) {
    .feature-stream-row {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
}

/* ==========================================================================
   Conveyor Architecture (Horizontal Continuous Pipeline with Integrated Literature)
   ========================================================================== */
.conveyor-card {
    position: relative;
    margin: 2rem 0 3.5rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

[data-theme="light"] .conveyor-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.conveyor-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    position: relative;
}

.conveyor-station {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.15rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 3px solid #38bdf8;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out,
                color 0.8s ease-in-out;
}

[data-theme="light"] .conveyor-station {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.07);
    border-top-color: #0284c7;
}

.conveyor-station:hover {
    transform: translateY(-4px);
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    border-top-color: #38bdf8;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

[data-theme="light"] .conveyor-station:hover {
    background: rgba(2, 132, 199, 0.05);
    border-color: rgba(2, 132, 199, 0.3);
    border-top-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.1);
}

.conveyor-step-num {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #38bdf8;
    letter-spacing: -0.04em;
    margin-bottom: 0.55rem;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .conveyor-step-num {
    color: #0284c7;
}

.conveyor-station-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 0.55rem 0;
    line-height: 1.35;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .conveyor-station-title {
    color: #0f172a;
}

.conveyor-station-desc {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.88rem;
    line-height: 1.62;
    color: var(--text-secondary, rgba(226, 232, 240, 0.86));
    margin: 0 0 0.9rem 0;
    flex-grow: 1;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .conveyor-station-desc {
    color: #334155;
}

/* Publications embedded inside the conveyor card below the four cards */
.conveyor-publications {
    margin-top: 2.2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
    transition: border-color 0.8s ease-in-out;
}

[data-theme="light"] .conveyor-publications {
    border-top-color: rgba(2, 132, 199, 0.18);
}

.conveyor-publications-header {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.conveyor-publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.2rem;
    row-gap: 0.35rem;
}

/* Borderless editorial reference styling (no outer border box) */
.conveyor-publications-grid .publication-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.82rem 0.25rem;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: border-color 0.8s ease-in-out,
                background-color 0.8s ease-in-out,
                padding 0.2s ease,
                transform 0.2s ease,
                color 0.8s ease-in-out;
}

[data-theme="light"] .conveyor-publications-grid .publication-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.16) !important;
    box-shadow: none !important;
}

.conveyor-publications-grid .publication-item:hover {
    background: rgba(56, 189, 248, 0.045) !important;
    border-bottom-color: #38bdf8 !important;
    box-shadow: none !important;
    transform: translateX(4px);
    padding-left: 0.6rem;
    padding-right: 0.4rem;
    border-radius: 4px !important;
}

[data-theme="light"] .conveyor-publications-grid .publication-item:hover {
    background: rgba(2, 132, 199, 0.045) !important;
    border-bottom-color: #0284c7 !important;
    box-shadow: none !important;
    transform: translateX(4px);
    padding-left: 0.6rem;
    padding-right: 0.4rem;
}

@media (max-width: 1040px) {
    .conveyor-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .conveyor-publications-grid {
        grid-template-columns: 1fr;
        row-gap: 0.2rem;
    }

    /* Don't display author names on small screens */
    .conveyor-publications-grid .publication-authors {
        display: none !important;
    }

.conveyor-publications-grid .publication-item {
        padding: 0.72rem 0.15rem;
    }

    .conveyor-publications-grid .publication-journal-badge {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .conveyor-ribbon {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Site Footer (Replicating the generous empty space below text as on Index)
   ========================================================================== */
.site-footer {
    margin-top: clamp(3rem, 6vh, 5rem);
    padding-top: clamp(1.5rem, 2.5vh, 2.2rem);
    padding-bottom: clamp(3rem, 6vh, 4.5rem);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.8s ease-in-out;
}

[data-theme="light"] .site-footer {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.footer-credit {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--text-muted, rgba(148, 163, 184, 0.8));
    margin: 0;
    transition: color 0.8s ease-in-out;
}

.footer-credit a {
    color: var(--app-accent, var(--zotas-accent, var(--subtitle-color)));
    transition: color 0.8s ease-in-out;
}

.footer-credit a:hover {
    color: var(--app-accent-strong, var(--zotas-accent, var(--subtitle-color)));
}

/* --- Tutorial Steps Styling (Clean Box-Free Numerals, Centered) --- */
.tutorial-step-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.65rem;
}

.tutorial-step-number {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: #38bdf8;
    letter-spacing: -0.04em;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .tutorial-step-number {
    color: #0284c7;
}

/* ==========================================================================
   Download Software Card (Illustrated Desktop Mockup, Fully Responsive)
   Satisfies #download-software anchor with authentic screenshot illustrations
   ========================================================================== */
.download-software-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    padding: 0;
    margin: 2rem 0 3.5rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

[data-theme="light"] .download-software-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.download-software-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.download-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.download-title-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.65rem;
}

/* Icon Podium: Exact match to index page, made a bit bigger */
.download-title-row .icon-podium {
    position: relative;
    width: 5.75rem;
    height: 5.75rem;
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
    flex-shrink: 0;
    cursor: pointer;
}

.download-title-row .icon-blue {
    background: #0b314a;
    border: 1px solid rgba(6, 182, 212, 0.45);
}

[data-theme="light"] .download-title-row .icon-blue {
    background: #072238;
    border: 1px solid rgba(2, 132, 199, 0.6);
}

.download-title-row .icon-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.download-title-row .icon-aura {
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    filter: blur(14px);
    opacity: 0.25;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: -1;
    background: #06b6d4;
}

.download-title-row .app-svg-icon {
    width: 74px;
    height: 74px;
    display: block;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.download-title-row .icon-podium:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.45);
}

.download-title-row .icon-podium:hover .icon-aura {
    opacity: 0.65;
    transform: scale(1.18);
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38bdf8;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .download-badge {
    color: #0284c7;
}

.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.6rem 0 1rem 0;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary, rgba(226, 232, 240, 0.85));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out, color 0.8s ease-in-out;
}

[data-theme="light"] .spec-chip {
    background: rgba(15, 23, 42, 0.035);
    border-color: rgba(15, 23, 42, 0.08);
    color: #475569;
}

.download-software-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.65rem;
}

.download-software-actions .btn-modern,
.download-software-actions .btn-sample-download {
    flex: 0 0 236px;
    width: 236px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    padding: 0.8rem 1.25rem;
    box-sizing: border-box;
}

.download-software-actions .btn-modern i,
.download-software-actions .btn-modern svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Illustrated Desktop Software Mockup Frame */
.download-software-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.software-window {
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    border: 1.5px solid #000000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.8s ease-in-out, background-color 0.8s ease-in-out, border-color 0.8s ease-in-out;
}

[data-theme="light"] .software-window {
    background: #ffffff;
    border-color: #000000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.software-window:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
}

.software-window-screen {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000000;
    cursor: pointer;
}

.software-screenshot-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1005 / 682;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* Requirements bar stuck seamlessly below the illustration window */
.software-requirements-bar {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.2fr;
    gap: 0.9rem;
    padding: 0.95rem 1.25rem;
    background-color: rgba(3, 14, 22, 0.95);
    border-top: 1.5px solid #000000;
    transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out;
}

[data-theme="light"] .software-requirements-bar {
    background-color: #f8fafc;
    border-top-color: #000000;
}

.req-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.req-col-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.01em;
    margin: 0;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .req-col-title {
    color: #0284c7;
}

.req-col-sub {
    font-size: 0.78rem;
    color: var(--text-muted, rgba(148, 163, 184, 0.85));
    margin: 0;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .req-col-sub {
    color: #64748b;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.req-list li {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.79rem;
    line-height: 1.4;
    color: var(--text-secondary, rgba(226, 232, 240, 0.85));
    position: relative;
    padding-left: 0.75rem;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .req-list li {
    color: #334155;
}

.req-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: 700;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .req-list li::before {
    color: #0284c7;
}

@media (max-width: 600px) {
    .software-requirements-bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 920px) {
    .download-software-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-software-actions {
        width: 100%;
        margin-top: 0.65rem;
    }
}

@media (min-width: 641px) and (max-width: 920px) {
    .download-software-actions {
        display: flex;
        flex-direction: row;
        gap: 0.85rem;
    }

    .download-software-actions .btn-modern,
    .download-software-actions .btn-sample-download {
        flex: 1 1 0px;
        max-width: 250px;
        width: 240px;
        justify-content: center;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .download-title-row {
        gap: 0.85rem;
    }

    .download-title-row .icon-podium {
        width: 4.6rem;
        height: 4.6rem;
        border-radius: 0.95rem;
    }

    .download-title-row .app-svg-icon {
        width: 58px;
        height: 58px;
    }

    .download-software-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.7rem;
    }

    .download-software-actions .btn-modern,
    .download-software-actions .btn-sample-download {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.94rem;
        white-space: nowrap;
        height: 48px;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Modern Auth Modal & User Profile Styles (RGPD & Dark/Light Adaptive)
   ========================================================================== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3, 15, 23, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.modal-blur > *:not(.auth-modal-overlay) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    background: rgba(6, 26, 36, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 35px rgba(6, 182, 212, 0.16);
    backdrop-filter: blur(24px);
    padding: 2.2rem 2rem 2rem;
    box-sizing: border-box;
    transform: scale(0.92) translateY(18px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme="light"] .auth-modal-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(2, 132, 199, 0.22);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14), 0 0 30px rgba(2, 132, 199, 0.08);
}

.auth-modal-overlay.active .auth-modal-card {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.8s ease-in-out,
                background-color 0.8s ease-in-out,
                transform 0.2s ease;
    padding: 0;
}

.auth-modal-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-logo-podium {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.auth-modal-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0.2rem 0 0.35rem;
    letter-spacing: -0.02em;
}

.auth-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.auth-modal-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.4;
}

/* Tabs switcher */
.auth-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.25rem;
    gap: 4px;
    transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out;
}

[data-theme="light"] .auth-tabs-nav {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.auth-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
}

.auth-tab-btn:hover {
    color: var(--text-primary, #ffffff);
}

.auth-tab-btn.active {
    background: rgba(6, 182, 212, 0.18);
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.14);
}

[data-theme="light"] .auth-tab-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Tab Panels */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: authPanelFade 0.25s ease forwards;
}

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

.auth-field {
    margin-bottom: 1.05rem;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #cbd5e1);
    margin-bottom: 0.45rem;
}

.auth-label i {
    color: #38bdf8;
    font-size: 0.82rem;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-size: 0.78rem;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.8s ease-in-out;
}

.auth-forgot-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border-radius: 10px;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.92rem;
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                color 0.8s ease-in-out,
                box-shadow 0.25s ease;
    box-sizing: border-box;
}

[data-theme="light"] .auth-input {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.auth-input:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
}

.auth-terms-row {
    margin: 1.1rem 0 1.25rem;
    font-size: 0.82rem;
    color: var(--text-secondary, #cbd5e1);
}

.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    line-height: 1.45;
}

.auth-checkbox-label input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.auth-checkbox-custom {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 0.05rem;
    overflow: hidden;
    border: 1.5px solid rgba(125, 211, 252, 0.65);
    border-radius: 7px;
    background: rgba(6, 182, 212, 0.06);
    box-shadow: inset 0 0 0 0 rgba(6, 182, 212, 0.85);
    cursor: pointer;
    transition: border-color 0.22s ease,
                box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-checkbox-custom::before {
    content: "";
    position: absolute;
    inset: -35%;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    transform: scale(0);
    transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-checkbox-custom::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2.5px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    opacity: 0;
    transform: rotate(34deg) scale(0.35);
    transition: opacity 0.14s ease 0.08s,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s;
}

.auth-checkbox-label:hover .auth-checkbox-custom {
    border-color: #38bdf8;
    transform: translateY(-1px) scale(1.04);
}

.auth-checkbox-label input[type="checkbox"]:focus-visible + .auth-checkbox-custom {
    outline: 3px solid rgba(56, 189, 248, 0.3);
    outline-offset: 3px;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
    border-color: transparent;
    box-shadow: 0 5px 16px rgba(6, 182, 212, 0.38);
    animation: authCheckboxPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::before {
    transform: scale(1);
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

@keyframes authCheckboxPop {
    0% { transform: scale(1); }
    45% { transform: scale(0.82); }
    100% { transform: scale(1); }
}

.auth-checkbox-label a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Compact footer credit for the narrowest phones.  Keep a deliberate gutter
   around the two author links while allowing the sentence to wrap naturally
   instead of overflowing the viewport. */
@media (max-width: 380px) {
    .site-footer {
        padding-inline: 0.75rem;
    }

    .footer-credit {
        width: min(100%, 21rem);
        margin-inline: auto;
        font-size: 0.7rem;
        line-height: 1.45;
        text-wrap: balance;
    }

    .footer-credit a {
        padding-inline: 0.08rem;
    }
}

/* On narrow displays the auth experience becomes the viewport itself. */
@media (max-width: 640px) {
    .auth-modal-overlay {
        align-items: stretch;
        padding: 0;
        background: rgba(6, 26, 36, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .auth-modal-card,
    [data-theme="light"] .auth-modal-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-content: safe center;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding-top: max(1.5rem, env(safe-area-inset-top));
        padding-right: max(clamp(1.75rem, 7vw, 3rem), env(safe-area-inset-right));
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
        padding-left: max(clamp(1.75rem, 7vw, 3rem), env(safe-area-inset-left));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overscroll-behavior: contain;
    }

    .auth-modal-close {
        top: max(0.75rem, env(safe-area-inset-top));
        right: max(0.75rem, env(safe-area-inset-right));
    }
}

.auth-submit-btn {
    width: 100%;
    justify-content: center;
    height: 48px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.6rem;
}

/* Flash message container */
.auth-flash-container:not(:empty) {
    margin-bottom: 1.1rem;
}

.auth-flash-msg {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.35;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
}

[data-theme="light"] .auth-flash-msg {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

.auth-flash-msg i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* User Profile Menu (when logged in) */
.nav-user-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: rgba(6, 26, 36, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.12);
    backdrop-filter: blur(24px);
    padding: 0.75rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease-in-out,
                border-color 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out,
                color 0.8s ease-in-out;
}

[data-theme="light"] .user-profile-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.user-profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile-header {
    padding: 0.4rem 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

[data-theme="light"] .user-profile-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.user-profile-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary, #ffffff);
    margin: 0 0 0.15rem;
}

.user-profile-status {
    font-size: 0.75rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.user-profile-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-profile-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--text-secondary, #cbd5e1);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background-color 0.8s ease-in-out, color 0.8s ease-in-out;
}

.user-profile-item:hover {
    background: rgba(6, 182, 212, 0.14);
    color: #38bdf8;
}

.user-profile-item.logout {
    color: #f87171;
}

.user-profile-item.logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* ==========================================================================
   Footer Cookie & GDPR Compliance Tag (No Intrusive Popup Banner)
   ========================================================================== */
.footer-compliance-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.cookie-compliance-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    transition: color 0.8s ease-in-out;
}

[data-theme="light"] .cookie-compliance-tag {
    background: transparent;
    border-color: transparent;
}

.cookie-compliance-tag i {
    color: var(--app-accent, var(--zotas-accent, #10b981));
    font-size: 0.82rem;
    transition: color 0.8s ease-in-out;
}

.cookie-compliance-tag a {
    color: var(--app-accent, var(--zotas-accent, #38bdf8));
    text-decoration: none;
    font-weight: 600;
    transition: color 0.8s ease-in-out;
}

.cookie-compliance-tag a:hover {
    text-decoration: underline;
    color: var(--app-accent-strong, var(--zotas-accent, #7dd3fc));
}

/* ==========================================================================
   Modern Terms & Privacy Policy Page Styling
   ========================================================================== */
.terms-section-card {
    background: rgba(6, 26, 36, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    backdrop-filter: blur(16px);
    transition: border-color 0.8s ease-in-out,
                background 0.8s ease-in-out,
                box-shadow 0.8s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .terms-section-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(2, 132, 199, 0.16);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.terms-section-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1);
}

.terms-section-title {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.terms-section-title span {
    font-family: var(--font-hero, 'Space Grotesk', sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
}

[data-theme="light"] .terms-section-title span {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0284c7;
}

.terms-section-body {
    color: var(--text-secondary, rgba(226, 232, 240, 0.88));
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.94rem;
    line-height: 1.65;
}

[data-theme="light"] .terms-section-body {
    color: #334155;
}

.terms-section-body p {
    margin: 0 0 0.85rem;
}

.terms-section-body p:last-child {
    margin-bottom: 0;
}

.terms-list {
    margin: 0.85rem 0 0.85rem 1.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.terms-list li {
    line-height: 1.55;
}

.terms-cookie-table th,
.terms-cookie-table td {
    padding: 0.75rem 0.85rem;
}

[data-theme="light"] .terms-cookie-table th {
    color: #0284c7 !important;
}

[data-theme="light"] .terms-cookie-table td {
    color: #334155 !important;
}

[data-theme="light"] .terms-cookie-table tbody tr {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}
