/* Novin Farm — Design System */
:root {
    --color-primary: #1a7a4c;
    --color-primary-dark: #0f5c38;
    --color-primary-light: #e8f5ee;
    --color-accent: #f0b429;
    --color-bg: #f7faf8;
    --color-surface: #ffffff;
    --color-text: #1a2e24;
    --color-text-muted: #5a6f63;
    --color-border: #dce8e0;
    --color-on-primary: #ffffff;
    --color-header-bg: rgba(255, 255, 255, 0.88);
    --color-header-border: rgba(26, 122, 76, 0.1);
    --color-header-shadow: rgba(26, 46, 36, 0.06);
    --color-hero-bg:
        radial-gradient(ellipse 80% 60% at 10% 40%, rgba(26, 122, 76, 0.14), transparent),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(240, 180, 41, 0.1), transparent),
        linear-gradient(165deg, #ffffff 0%, #f0f7f3 45%, var(--color-bg) 100%);
    --color-image-frame-bg: linear-gradient(135deg, var(--color-primary-light), #ffffff);
    --color-section-white-bg: #ffffff;
    --color-section-chain-bg: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    --color-page-hero-bg: linear-gradient(180deg, #ffffff, var(--color-bg));
    --color-page-hero-product-bg: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    --color-page-hero-extended-bg: linear-gradient(165deg, #ffffff 0%, var(--color-primary-light) 55%, var(--color-bg) 100%);
    --color-page-hero-demo-bg: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 60%);
    --color-page-hero-download-bg: linear-gradient(165deg, #ffffff 0%, var(--color-primary-light) 55%, var(--color-bg) 100%);
    --color-page-hero-about-bg: linear-gradient(165deg, #ffffff 0%, var(--color-primary-light) 50%, var(--color-bg) 100%);
    --color-card-media-bg: linear-gradient(135deg, var(--color-primary-light), #eef6f0);
    --color-badge-bg: rgba(255, 255, 255, 0.9);
    --color-btn-white-bg: #ffffff;
    --color-error-bg: #fef2f2;
    --color-error-border: #fecaca;
    --color-error-text: #991b1b;
    --color-error-shipping-bg: #fff5f5;
    --color-footer-bg: #0f2419;
    --color-blazor-error-bg: #ffffe0;
    --color-combobox-active: rgba(26, 122, 76, 0.08);
    --color-product-card-img-bg: #ffffff;
    --color-input-bg: #ffffff;
    --color-input-text: #1a2e24;
    --shadow-sm: 0 2px 8px rgba(26, 46, 36, 0.06);
    --shadow-md: 0 8px 30px rgba(26, 46, 36, 0.1);
    --shadow-lg: 0 20px 50px rgba(26, 46, 36, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 72px;
    --font-rtl: 'IRANSans', Tahoma, sans-serif;
    --font-ltr: 'InterLocal', 'Segoe UI', system-ui, sans-serif;
    --font: var(--font-rtl);
    --transition: 0.25s ease;
    color-scheme: light;
}

html[data-theme="light"] {
    color-scheme: light;
}

[data-theme="dark"] {
    color-scheme: dark;
    --color-primary: #3cb878;
    --color-primary-dark: #2a9d62;
    --color-primary-light: rgba(60, 184, 120, 0.14);
    --color-accent: #f5c842;
    --color-bg: #0b100e;
    --color-surface: #141c18;
    --color-text: #e4ede8;
    --color-text-muted: #93a89c;
    --color-border: #243329;
    --color-on-primary: #ffffff;
    --color-header-bg: rgba(11, 16, 14, 0.92);
    --color-header-border: rgba(60, 184, 120, 0.14);
    --color-header-shadow: rgba(0, 0, 0, 0.35);
    --color-hero-bg:
        radial-gradient(ellipse 80% 60% at 10% 40%, rgba(60, 184, 120, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(245, 200, 66, 0.06), transparent),
        linear-gradient(165deg, #141c18 0%, #0f1813 45%, var(--color-bg) 100%);
    --color-image-frame-bg: linear-gradient(135deg, rgba(60, 184, 120, 0.12), #141c18);
    --color-section-white-bg: #141c18;
    --color-section-chain-bg: linear-gradient(180deg, #141c18 0%, var(--color-bg) 100%);
    --color-page-hero-bg: linear-gradient(180deg, #141c18, var(--color-bg));
    --color-page-hero-product-bg: linear-gradient(180deg, #141c18 0%, var(--color-bg) 100%);
    --color-page-hero-extended-bg: linear-gradient(165deg, #141c18 0%, rgba(60, 184, 120, 0.1) 55%, var(--color-bg) 100%);
    --color-page-hero-demo-bg: linear-gradient(135deg, rgba(60, 184, 120, 0.12) 0%, var(--color-bg) 60%);
    --color-page-hero-download-bg: linear-gradient(165deg, #141c18 0%, rgba(60, 184, 120, 0.1) 55%, var(--color-bg) 100%);
    --color-page-hero-about-bg: linear-gradient(165deg, #141c18 0%, rgba(60, 184, 120, 0.1) 50%, var(--color-bg) 100%);
    --color-card-media-bg: linear-gradient(135deg, rgba(60, 184, 120, 0.1), #1a2620);
    --color-badge-bg: rgba(20, 28, 24, 0.92);
    --color-btn-white-bg: #1e2a24;
    --color-error-bg: rgba(127, 29, 29, 0.2);
    --color-error-border: rgba(248, 113, 113, 0.35);
    --color-error-text: #fca5a5;
    --color-error-shipping-bg: rgba(127, 29, 29, 0.15);
    --color-footer-bg: #060a08;
    --color-blazor-error-bg: #2a2618;
    --color-combobox-active: rgba(60, 184, 120, 0.14);
    --color-product-card-img-bg: #1a2620;
    --color-input-bg: #1a2620;
    --color-input-text: #e4ede8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.48);
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body:has(.home-page) {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: transparent;
}

.site-main:has(.home-page) {
    background: transparent;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.site { min-height: 100vh; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

.container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

.site-main { min-height: 60vh; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-on-primary);
    box-shadow: 0 4px 14px rgba(26, 122, 76, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--color-on-primary); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

.btn-white {
    background: var(--color-btn-white-bg);
    color: var(--color-primary-dark);
}.btn-white:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-header-border);
    box-shadow: 0 4px 24px var(--color-header-shadow);
    height: var(--header-h);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    text-decoration: none;
}
.site-header__brand:hover { color: var(--color-text); }

.site-header__logo { border-radius: 12px; }

.site-header__logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-on-primary);
    align-items: center;    justify-content: center;
    font-weight: 800;
}

.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.site-header__brand-text strong { font-size: 1.1rem; }
.site-header__brand-text small { font-size: 0.72rem; color: var(--color-text-muted); }

.site-header__toggle-input { display: none; }

.site-header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.site-header__menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: flex-end;
}

.site-header__tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-header__nav a:not(.btn) {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}
.site-header__nav a:not(.btn):hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher__toggle {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    background: var(--color-surface);
}
.lang-switcher__toggle::-webkit-details-marker { display: none; }
.lang-switcher[open] .lang-switcher__toggle { border-color: var(--color-primary); }

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 140px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    z-index: 100;
}

.site--rtl .lang-switcher__menu { inset-inline-end: 0; }
.site--ltr .lang-switcher__menu { inset-inline-end: 0; }

.lang-switcher__item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.9rem;
}
.lang-switcher__item:hover { background: var(--color-primary-light); }
.lang-switcher__item.is-active { font-weight: 700; color: var(--color-primary); }

/* Theme switcher */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    gap: 3px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.theme-switcher__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.theme-switcher__btn svg {
    width: 17px;
    height: 17px;
}

.theme-switcher__btn:hover:not(.is-active) {
    color: var(--color-text);
    background: var(--color-bg);
}

.theme-switcher__btn.is-active[data-theme-choice="light"] {
    background: linear-gradient(145deg, #fff9eb, #e8f5ee);
    color: #c27803;
    box-shadow: 0 2px 10px rgba(194, 120, 3, 0.18);
}

.theme-switcher__btn.is-active[data-theme-choice="dark"] {
    background: linear-gradient(145deg, #1e2f26, #121a16);
    color: #f0d060;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .theme-switcher {
    background: rgba(20, 28, 24, 0.85);
    border-color: var(--color-border);
}

[data-theme="dark"] .theme-switcher__btn.is-active[data-theme-choice="light"] {
    background: rgba(255, 255, 255, 0.07);
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .theme-switcher__btn.is-active[data-theme-choice="dark"] {
    background: linear-gradient(145deg, rgba(60, 184, 120, 0.28), rgba(240, 180, 41, 0.14));
    color: #fde68a;
    box-shadow: 0 2px 12px rgba(60, 184, 120, 0.22);
}

.theme-switcher__btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.theme-switcher__btn:active:not(.is-active) {
    transform: scale(0.94);
}
/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

.hero__inner--solo {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.hero__inner--solo .hero__content {
    padding-inline: 0;
}

.hero__inner--solo .hero__title-block {
    justify-content: center;
    outline: none;
    margin-bottom: 1.75rem;
}

.hero__inner--solo .hero__breeds {
    margin-inline: auto;
}

.hero__inner--solo .hero__subtitle {
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.hero__inner--solo .hero__actions {
    justify-content: center;
    margin-bottom: 1.75rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Hero background slider */
.hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(165deg, #e8f5ee 0%, #d4efe3 38%, #f7faf8 100%);
}

[data-theme="dark"] .hero-slider {
    background:
        linear-gradient(165deg, #0a1512 0%, #0d3b2e 48%, #0b100e 100%);
}

.hero-slider__track {
    position: absolute;
    inset: 0;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: heroSlideFade 30s infinite;
    animation-delay: calc(var(--slide-index) * 5s);
    animation-play-state: paused;
}

.hero-slider.is-ready .hero-slider__slide {
    animation-play-state: running;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    opacity: 0;
    transition: opacity 0.65s ease;
    animation: heroKenBurns 5s ease-out infinite;
    animation-delay: calc(var(--slide-index) * 5s);
    animation-play-state: paused;
}

.hero-slider.is-ready .hero-slider__slide img {
    opacity: 0.82;
    animation-play-state: running;
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.62) 0%,
            rgba(255, 255, 255, 0.48) 50%,
            rgba(255, 255, 255, 0.55) 100%);
    pointer-events: none;
}

[data-theme="dark"] .hero-slider__overlay {
    background:
        linear-gradient(180deg,
            rgba(10, 21, 18, 0.72) 0%,
            rgba(10, 21, 18, 0.52) 50%,
            rgba(10, 21, 18, 0.65) 100%);
}

[data-theme="dark"] .hero-slider.is-ready .hero-slider__slide img {
    opacity: 0.75;
}

.hero-slider__indicators {
    position: absolute;
    bottom: 4.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 2;
    pointer-events: none;
}

.hero-slider__dot {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: rgba(26, 122, 76, 0.22);
    overflow: hidden;
    position: relative;
}

.hero-slider__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: inline-start;
    animation: heroDotProgress 30s linear infinite;
    animation-delay: calc(var(--dot-index) * 5s);
}

@keyframes heroSlideFade {
    0%, 2% { opacity: 0; }
    5%, 14% { opacity: 1; }
    18%, 100% { opacity: 0; }
}

@keyframes heroKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes heroDotProgress {
    0%, 2% { transform: scaleX(0); }
    5% { transform: scaleX(0.15); }
    14% { transform: scaleX(1); }
    18%, 100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider:not(.is-ready) .hero-slider__slide,
    .hero-slider:not(.is-ready) .hero-slider__slide img {
        animation: none;
    }

    .hero-slider.is-ready .hero-slider__slide:first-child {
        opacity: 1;
    }

    .hero-slider.is-ready .hero-slider__slide img {
        animation: none;
        transform: none;
        opacity: 0.82;
    }

    [data-theme="dark"] .hero-slider.is-ready .hero-slider__slide img {
        opacity: 0.75;
    }

    .hero-slider__dot::after {
        animation: none;
        transform: scaleX(0);
    }

    .hero-slider__dot:first-child::after {
        transform: scaleX(1);
        opacity: 1;
    }
}
.hero__content { padding-inline: min(2vw, 1rem); }

.hero__title-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.site--rtl .hero__title-block { flex-direction: row; }
.site--ltr .hero__title-block { flex-direction: row; }

.hero__brand-mark {
    width: clamp(100px, 12vw, 140px);
    height: clamp(100px, 12vw, 140px);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 20px rgba(26, 122, 76, 0.2));
}

.hero__title {
    font-size: clamp(1.65rem, 3.8vw, 2.85rem);
    font-weight: 800;
    line-height: 1.28;
    margin: 0;
    color: var(--color-text);
    outline: none;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__breeds {
    width: 100%;
    max-width: min(1080px, 100%);
    margin-inline: auto;
    margin-top: 0.25rem;
}

.hero__breeds-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: center;
    justify-items: center;
}

.hero__breed-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.35rem;
}

.hero__breed-logo img {
    width: auto;
    max-width: min(100%, 190px);
    max-height: clamp(56px, 7.5vw, 92px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(26, 46, 36, 0.08));
}

.hero__visual { position: relative; padding-inline: min(2vw, 1rem); }

.hero__visual-stack { position: relative; }

.hero__image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: var(--color-image-frame-bg);}

.hero__image-frame--main img {
    width: 100%;
    display: block;
}

.hero__float-card {
    position: absolute;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
    max-width: 200px;
    animation: floatCard 5s ease-in-out infinite;
}

.hero__float-card span {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
}

.hero__float-card small {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
    line-height: 1.4;
}

.hero__float-card--1 {
    top: 8%;
    inset-inline-start: -8%;
    animation-delay: 0s;
}

.hero__float-card--2 {
    bottom: 10%;
    inset-inline-end: -6%;
    animation-delay: 1.2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero__scroll,
.home-section-scroll {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    animation: homeSectionScrollBounce 2s infinite;
    z-index: 900;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.home-section-scroll.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes homeSectionScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section { padding: 5rem 0; }

.home-page {
    position: relative;
    isolation: isolate;
}

.home-page__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-page__bg .hero-slider {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
}

.home-page__bg .hero-slider__indicators {
    display: none;
}

.home-page .home-snap-section {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 0;
    box-sizing: border-box;
}

.home-page .home-snap-section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto calc(100vh - var(--header-h));
}

.home-page .section.home-snap-section:not(#hero) {
    background: transparent;
}

.home-page .section-head h2 {
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .home-page .section-head h2 {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.home-page .feature-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .news-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .top-customer-logo {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-page .customers-showcase,
.home-page .customers-showcase__logos,
.home-page .top-customers-grid--home {
    overflow: visible;
}

[data-theme="dark"] .home-page .feature-card,
[data-theme="dark"] .home-page .product-card,
[data-theme="dark"] .home-page .news-card,
[data-theme="dark"] .home-page .top-customer-logo {
    background: rgba(20, 28, 24, 0.88);
}

.home-page .home-snap-section--tall {
    justify-content: flex-start;
    padding-top: clamp(2.5rem, 6vh, 4rem);
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.home-page .home-snap-section#hero {
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}

.home-page .section.home-snap-section {
    padding-top: clamp(2rem, 5vh, 3rem);
    padding-bottom: clamp(2rem, 5vh, 3rem);
}

.home-scroll-nav {
    position: fixed;
    top: 50%;
    inset-inline-end: max(14px, 2vw);
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(26, 122, 76, 0.22);
    box-shadow: 0 4px 24px rgba(15, 36, 25, 0.14);
}

[data-theme="dark"] .home-scroll-nav {
    background: rgba(20, 28, 24, 0.9);
    border-color: rgba(60, 184, 120, 0.3);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.home-scroll-nav__dot {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(26, 122, 76, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 5px rgba(15, 36, 25, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .home-scroll-nav__dot {
    background: rgba(60, 184, 120, 0.32);
    border-color: rgba(20, 28, 24, 0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.home-scroll-nav__dot:hover {
    background: rgba(26, 122, 76, 0.55);
    transform: scale(1.15);
}

[data-theme="dark"] .home-scroll-nav__dot:hover {
    background: rgba(60, 184, 120, 0.6);
}

.home-scroll-nav__dot.is-active {
    width: 11px;
    height: 24px;
    background: var(--color-primary);
    border-color: var(--color-surface);
    transform: none;
    box-shadow: 0 2px 10px rgba(26, 122, 76, 0.4);
}

[data-theme="dark"] .home-scroll-nav__dot.is-active {
    box-shadow: 0 2px 12px rgba(60, 184, 120, 0.45);
}

.demo-notices {
    list-style: none;
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    border-inline-start: 4px solid var(--color-primary);
}

.demo-notices li {
    position: relative;
    padding-inline-start: 1.25rem;
    margin-bottom: 0.65rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.demo-notices li:last-child { margin-bottom: 0; }

.demo-notices li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
.section-head p { color: var(--color-text-muted); margin: 0; }
.section-cta { text-align: center; margin-top: 2.5rem; }

.section--features { background: var(--color-surface); }
.section--news { background: linear-gradient(180deg, var(--color-bg), var(--color-primary-light)); }

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    color: inherit;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.product-card__media {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--color-card-media-bg);    overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.product-card__badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: var(--color-badge-bg);    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card__title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.product-card__desc { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 1rem; flex: 1; }
.product-card__link { font-weight: 600; color: var(--color-primary); font-size: 0.9rem; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }

.feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 16px;
    font-size: 1.5rem;
}
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.news-card time { font-size: 0.8rem; color: var(--color-text-muted); }
.news-card h2, .news-card h3 { margin: 0.5rem 0; font-size: 1.1rem; }
.news-card p { color: var(--color-text-muted); font-size: 0.92rem; }
.news-card a { font-weight: 600; font-size: 0.9rem; }
.news-card__image-link { display: block; margin: -1.5rem -1.5rem 1rem; }
.news-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}
.news-card__placeholder {
    height: 8px;
    margin: -1.5rem -1.5rem 1rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.35;
}
.news-status { color: var(--color-text-muted); text-align: center; padding: 2rem 0; }
.news-status--error { color: var(--color-danger, #c0392b); }
.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.9rem;
}
.news-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.news-pagination .active {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}
.news-detail__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.news-detail__body {
    line-height: 1.8;
    margin-bottom: 2rem;
}
.news-detail__body p { margin: 0 0 1rem; }

/* CTA banner */
.cta-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-on-primary);
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }.cta-banner p { margin: 0; opacity: 0.9; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero (inner pages) */
.page-hero {
    padding: 4rem 0 2rem;
    background: var(--color-page-hero-bg);
    border-bottom: 1px solid var(--color-border);
}.page-hero h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4vw, 2.75rem); }
.page-hero p, .page-hero .lead { color: var(--color-text-muted); margin: 0; max-width: 720px; }

.page-hero--product {
    padding: 2.5rem 0 0;
    background: var(--color-page-hero-product-bg);
    border-bottom: none;
}
.product-detail-page .section--product-features {
    padding-top: 2.5rem;
}

.product-detail-page .section--product-cta {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.product-detail-hero {
    padding-bottom: 2.5rem;
}

.product-detail-hero--with-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.product-detail-hero__content {
    max-width: 820px;
}

.product-detail-hero--with-visual .product-detail-hero__content {
    max-width: none;
}

.product-detail-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-hero__visual img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(26, 46, 36, 0.12));
}

.product-detail-hero__brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.product-detail-hero__image {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex;    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.product-detail-hero__image img {
    width: 100%;
    height: 100%;
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.product-detail-hero__brand h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    line-height: 1.25;
}

.product-detail-hero__brand .product-tagline {
    margin: 0;
    font-size: 0.98rem;
}

.product-detail-hero__lead {
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.85;
}

.feature-list--product {
    margin-top: 0;
}

.feature-list--product li {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Extended product page (parent + hatching) */
.page-hero--extended {
    background: var(--color-page-hero-extended-bg);
}
.product-extended__en-title {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    text-transform: none;
}

.product-extended__about {
    max-width: 860px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.product-extended__about h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.product-extended__about p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    line-height: 1.85;
}

.product-extended__about p:last-child {
    margin-bottom: 0;
}

.product-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.product-module {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.product-module h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary-light);
}

.product-module ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-module li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.product-module li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.55;
}

.section--product-about {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.section--product-modules {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.feature-list li {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.feature-list li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }

/* Content pages */
.content-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.content-page .lead { font-size: 1.15rem; color: var(--color-text); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { margin-bottom: 0.75rem; }

.contact-map, .content-page__media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

/* Demo form */
.section--demo {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.demo-page__inner {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.page-hero--demo {
    background: var(--color-page-hero-demo-bg);
    padding: 1.75rem 0 0.75rem;
}

.page-hero--demo h1 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin-bottom: 0;
}

.demo-sidebar__card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.demo-sidebar__card h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.demo-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-benefits li {
    position: relative;
    padding-inline-start: 1.15rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.demo-benefits li:last-child { margin-bottom: 0; }

.demo-benefits li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.75rem;
}

.demo-notices--compact {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.demo-notices--compact li {
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.demo-sidebar__alt {
    margin: 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.demo-form-wrap {
    min-width: 0;
    position: relative;
}

.demo-form-wrap::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.demo-form {
    max-width: none;
    background: var(--color-surface);
    padding: 1.35rem 1.5rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.demo-fieldset {
    border: none;
    margin: 0 0 1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--color-border);
}

.demo-fieldset:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.demo-fieldset legend {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 0.65rem;
    padding: 0;
    width: 100%;
}

.demo-fieldset legend::before {
    content: "";
    width: 3px;
    height: 0.95em;
    border-radius: 999px;
    background: var(--color-primary);
    flex-shrink: 0;
}

.demo-customer-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.demo-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: center;
    color: var(--color-text);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    background: var(--color-input-bg);
}

.demo-choice:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: inset 0 0 0 1px rgba(26, 122, 76, 0.08);
}

.demo-choice input { accent-color: var(--color-primary); }

.demo-form .form-grid--demo {
    gap: 0.65rem 0.85rem;
    margin-bottom: 0;
}

.demo-form .form-field {
    gap: 0.2rem;
}

.demo-form .form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.demo-form .form-input {
    padding: 0.52rem 0.7rem;
    font-size: 0.92rem;
    min-height: 2.35rem;
}

.demo-form select.form-input {
    padding-inline-end: 2rem;
}

.demo-facility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    grid-column: 1 / -1;
}

.demo-facility-grid:not(:has(.demo-facility-field:not([hidden]))) {
    display: none;
}

.demo-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.demo-alert {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
}

.demo-alert--hidden { display: none; }

.demo-alert--success {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    color: var(--color-primary-dark);
}

.demo-alert--error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error-text);
}

.demo-state-panel--hidden {
    display: none !important;
}

.demo-state-panel {
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    text-align: center;
}

.demo-state-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
}

.demo-state-panel__icon--success {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.demo-state-panel__icon--warn {
    color: var(--color-error-text);
    background: var(--color-error-bg);
}

.demo-state-panel__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
}

.demo-state-panel__text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    max-width: 36rem;
    margin-inline: auto;
}

.demo-state-panel__text--muted {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.demo-state-panel--unavailable {
    border-color: var(--color-error-border);
    background: linear-gradient(180deg, var(--color-error-bg) 0%, var(--color-surface) 100%);
}

.demo-success-panel {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 55%);
}

.demo-success-panel__number {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 1.25rem auto 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px dashed var(--color-primary);
}

.demo-success-panel__number-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.demo-success-panel__number-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    direction: ltr;
    unicode-bidi: isolate;
}

.demo-request-app--submitted .demo-form,
.demo-form--hidden {
    display: none;
}

.demo-request-app--submitted .demo-alert {
    display: none;
}

.demo-form__actions {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.demo-form__privacy {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.demo-form__actions .btn {
    min-width: 10rem;
    padding: 0.65rem 1.5rem;
}

.form-input--invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.req { color: #dc2626; }

select.form-input {
    cursor: pointer;
    appearance: auto;
}

.demo-combobox {
    position: relative;
}

.demo-combobox__input {
    width: 100%;
}

.demo-combobox__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.15rem);
    left: 0;
    right: 0;
    max-height: 11rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.2rem 0;
    list-style: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.demo-combobox__option {
    padding: 0.42rem 0.7rem;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--color-text);
}

.demo-combobox__option:hover,
.demo-combobox__option.is-active {
    background: var(--color-combobox-active);
}
.site--rtl .demo-combobox__list {
    text-align: right;
}

.demo-facility-field[hidden] {
    display: none !important;
}

#demo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }

.form-input,
textarea.form-input,
select.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
    caret-color: var(--color-primary);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

.form-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.72;
}

.form-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: var(--color-bg);
}

select.form-input option {
    color: var(--color-input-text);
    background-color: var(--color-input-bg);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--color-input-text);
    -webkit-box-shadow: 0 0 0 1000px var(--color-input-bg) inset;
    box-shadow: 0 0 0 1000px var(--color-input-bg) inset;
    transition: background-color 99999s ease-out 0s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 122, 76, 0.15);
}

.form-success {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.form-validation-summary {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: var(--radius-sm);
    color: var(--color-error-text);
    font-size: 0.9rem;
}
.form-input--textarea {
    min-height: 96px;
    resize: vertical;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.form-hint {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.form-hint--error {
    color: var(--color-error-text);
}

.demo-shipping-fee {
    margin: 0;
    padding: 0.75rem 1rem;
    background: var(--color-error-shipping-bg);
    border: 1px solid var(--color-error-border);
    border-radius: var(--radius-sm);
    color: var(--color-error-text);
    font-weight: 700;
}
.accounts-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.accounts-table__head,
.accounts-table__row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: center;
}

.accounts-table__head {
    background: var(--color-primary);
    color: var(--color-on-primary);    font-weight: 600;
    font-size: 0.9rem;
}

.accounts-table__row {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.accounts-table__row:nth-child(even) {
    background: var(--color-bg);
}

.accounts-owner {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.site-footer__contact {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.site-footer__contact a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer__social {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition), opacity var(--transition);
}

.social-link:hover {
    color: var(--color-primary);
}

.social-link--footer {
    color: rgba(255, 255, 255, 0.9);
}

.social-link--footer:hover {
    color: var(--color-on-primary);
}
.social-link--footer .social-link__icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.social-link--footer:hover .social-link__icon {
    opacity: 1;
}

.social-link__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: block;
}

.social-link__label {
    font-size: 0.92rem;
}

.contact-instagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.social-link--inline {
    color: var(--color-primary);
}

.social-link--inline:hover {
    color: var(--color-primary-dark);
}

/* Download page */
.page-hero--download {
    background: var(--color-page-hero-download-bg);
    text-align: center;
}
.page-hero--download.page-hero--compact {
    padding: 2rem 0 1rem;
}

.page-hero--download.page-hero--compact h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    margin-bottom: 0.35rem;
}

.page-hero--download.page-hero--compact .page-hero__lead {
    font-size: 0.95rem;
    max-width: 560px;
}

.page-hero--download .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section--compact {
    padding: 1.5rem 0 2.5rem;
}

.download-section {
    padding-bottom: 0;
}

.download-empty {
    padding: 1.25rem;
    text-align: center;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

/* Download table */
.download-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-surface);
}

.download-table__head,
.download-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem minmax(10rem, 14rem);
    gap: 0.65rem 1rem;
    padding: 0.55rem 1rem;
    align-items: center;
}

.download-table__head {
    background: var(--color-primary);
    color: var(--color-on-primary);    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
}

.download-table__section {
    display: block;
    padding: 0.45rem 1rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
}

.download-table__section:first-of-type {
    border-top: none;
}

.download-table__row { border-top: 1px solid var(--color-border); }
.download-table__row:nth-child(even) { background: var(--color-bg); }

.download-table__name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.download-table__logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.download-table__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.download-table__size {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.download-table__action {
    text-align: end;
}

.download-table__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.download-table__action .btn {
    width: auto;
    min-width: 6.5rem;
}

.download-table__store {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.download-table__store:hover {
    opacity: 0.88;
    color: #fff;
}

.download-table__store img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.download-apps {
    margin-bottom: 1.5rem;
}

.download-apps__heading {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.download-app-card {
    display: grid;
    gap: 1.15rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(26, 122, 76, 0.08), transparent 55%),
        linear-gradient(165deg, var(--color-surface) 0%, var(--color-primary-light) 100%);
    box-shadow: var(--shadow-sm);
}

.download-app-card__intro {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.download-app-card__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--color-on-primary);
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 8px 18px rgba(26, 122, 76, 0.22);
}

.download-app-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text);
}

.download-app-card__meta {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.download-app-card__platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.download-platform {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    backdrop-filter: blur(6px);
}

.download-platform__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
}

.download-platform__label svg {
    color: var(--color-primary);
}

.download-platform__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.download-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.download-chip:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.download-chip--primary {
    color: var(--color-on-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 6px 14px rgba(26, 122, 76, 0.2);
}

.download-chip--primary:hover {
    color: var(--color-on-primary);
}

.download-bazaar {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-inline-start: 0.15rem;
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.download-bazaar:hover {
    transform: translateY(-1px);
    color: var(--color-text);
    border-color: #3cb878;
    box-shadow: 0 8px 18px rgba(60, 184, 120, 0.18);
    text-decoration: none;
}

.download-bazaar img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.download-chip--web {
    color: #fff;
    background: linear-gradient(135deg, #1c1c1e 0%, #3a3a3c 55%, #555 100%);
    box-shadow: 0 6px 14px rgba(28, 28, 30, 0.22);
}

.download-chip--web:hover {
    color: #fff;
}

.download-chip__url {
    opacity: 0.78;
    font-weight: 500;
    font-size: 0.72rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.28);
    padding-inline-start: 0.45rem;
    margin-inline-start: 0.1rem;
}

[data-theme="dark"] .download-app-card {
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(60, 184, 120, 0.12), transparent 55%),
        linear-gradient(165deg, var(--color-surface) 0%, rgba(60, 184, 120, 0.08) 100%);
}

[data-theme="dark"] .download-platform {
    background: rgba(20, 28, 24, 0.72);
}

/* Customers */
.section--customers {
    background: var(--color-bg);
}

.customers-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr;
    gap: 2rem;
    align-items: stretch;
}

.customers-showcase--page {
    margin-top: 0.5rem;
}

.customers-showcase__logos {
    min-width: 0;
}

.customers-impact {
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-on-primary);    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.customers-impact__eyebrow {
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.88;
}

.impact-stat + .impact-stat {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.impact-stat__value {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.impact-stat__title {
    margin: 0.65rem 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.impact-stat__desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.92;
}

.top-customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.top-customers-grid--home {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
}

.top-customers-grid--page {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.top-customer-logo {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 96px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.top-customers-grid--home .top-customer-logo {
    min-height: 110px;
    padding: 1.5rem 1.25rem;
}

.top-customer-logo:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 8px 24px rgba(15, 36, 25, 0.08);
    transform: translateY(-2px);
}

.top-customer-logo img {
    width: 100%;
    max-width: 140px;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.top-customers-grid--home .top-customer-logo img {
    max-width: 150px;
    max-height: 72px;
}

.top-customer-logo:hover img {
    filter: none;
    opacity: 1;
}

.top-customer-logo__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.top-customer-logo:hover .top-customer-logo__name {
    color: var(--color-primary);
}

.top-customer-logo--tooltip {
    position: relative;
}

.top-customer-logo--tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: var(--color-primary-dark);
    color: var(--color-on-primary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    max-width: min(200px, 70vw);
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 20;
    box-shadow: 0 6px 16px rgba(15, 36, 25, 0.22);
}

.top-customer-logo--tooltip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 0.2rem);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-primary-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 20;
}

.top-customer-logo--tooltip:hover::after,
.top-customer-logo--tooltip:focus-visible::after,
.top-customer-logo--tooltip:hover::before,
.top-customer-logo--tooltip:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.top-customer-logo--tooltip:hover::after,
.top-customer-logo--tooltip:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .top-customer-logo--tooltip::after {
    background: var(--color-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .top-customer-logo--tooltip::before {
    border-top-color: var(--color-primary);
}

.text-muted { color: var(--color-text-muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
    background: var(--color-footer-bg);    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--color-on-primary); }
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.site-footer h4 { color: var(--color-on-primary); margin: 0 0 1rem; font-size: 1rem; }.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 950;
    cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* Keep back-to-top above the WhatsApp FAB */
.site:has(.wa-widget) .back-to-top {
    bottom: 5.75rem;
}

/* WhatsApp floating chat widget */
.wa-widget {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    z-index: 960;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}

.wa-widget__fab,
.wa-widget__panel,
.wa-widget__close,
.wa-widget__cta {
    pointer-events: auto;
}

.wa-widget__fab {
    position: relative;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #1faa59;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-widget__fab:hover {
    background: #18964c;
    transform: translateY(-2px);
}

.wa-widget__fab:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.wa-widget__fab-icon,
.wa-widget__fab-close {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-widget__fab-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.wa-widget__fab-close {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 1.6rem;
    line-height: 1;
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-widget.is-open .wa-widget__fab-icon {
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
}

.wa-widget.is-open .wa-widget__fab-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.wa-widget__panel {
    width: min(22rem, calc(100vw - 2rem));
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform-origin: bottom var(--wa-origin, right);
    animation: wa-panel-in 0.22s ease;
}

.site--rtl .wa-widget__panel {
    --wa-origin: left;
}

.site--ltr .wa-widget__panel {
    --wa-origin: right;
}

.wa-widget__panel[hidden] {
    display: none !important;
}

@keyframes wa-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-widget__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #128c47;
    color: #fff;
}

.wa-widget__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
}

.wa-widget__header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.wa-widget__header-text strong {
    font-size: 0.98rem;
    font-weight: 700;
}

.wa-widget__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.92;
}

.wa-widget__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b6f5cb;
    flex-shrink: 0;
}

.wa-widget__close {
    border: 0;
    background: transparent;
    color: inherit;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

.wa-widget__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.wa-widget__body {
    padding: 1rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 170, 89, 0.08), transparent 45%),
        var(--color-bg);
    min-height: 7.5rem;
}

.wa-widget__bubble {
    max-width: 92%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px 14px 14px 4px;
    padding: 0.85rem 0.95rem;
    box-shadow: var(--shadow-sm);
}

.site--rtl .wa-widget__bubble {
    border-radius: 14px 14px 4px 14px;
    margin-inline-start: auto;
}

.wa-widget__bubble p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.wa-widget__time {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.wa-widget__footer {
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.wa-widget__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    background: #1faa59;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wa-widget__cta img {
    filter: brightness(0) invert(1);
}

.wa-widget__cta:hover {
    background: #18964c;
    transform: translateY(-1px);
    color: #fff !important;
}

@media (max-width: 640px) {
    .wa-widget {
        bottom: 1rem;
        inset-inline-end: 1rem;
    }

    .site:has(.wa-widget) .back-to-top {
        bottom: 5.25rem;
        inset-inline-end: 1rem;
    }

    .wa-widget__panel {
        width: min(20.5rem, calc(100vw - 1.5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-widget__panel,
    .wa-widget__fab,
    .wa-widget__fab-icon,
    .wa-widget__fab-close,
    .wa-widget__cta {
        animation: none;
        transition: none;
    }
}

/* Scroll reveal — visible by default; hidden only when JS is ready */.reveal {
    opacity: 1;
    transform: none;
}

html.js-reveal .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* LTR adjustments */
.site--ltr { direction: ltr; }
.site--rtl { direction: rtl; }

/* Poultry chain */
.section--chain {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-light) 100%);
    padding-top: 4rem;
}

.chain-section { position: relative; padding: 1rem 0; }

.chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    position: relative;
}

.chain-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chain-step:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.chain-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.8rem;    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain-step__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain-step__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.chain-step h3 {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.chain-step p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.product-tagline {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin: 0 0 1rem;
}

.product-highlight {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-on-primary);    padding: 1.25rem 0;
    text-align: center;
}

.product-highlight p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* About page */
.page-hero--about {
    background: var(--color-page-hero-about-bg);
    text-align: center;
}
.page-hero--about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero--about h1 { margin-bottom: 0.5rem; }

.page-hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-primary-dark);
    font-weight: 600;
    max-width: 640px;
}

.about-section {
    padding: 3rem 0 5rem;
}

.about-content {
    max-width: 820px;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.85;
    margin: 0 0 2rem;
    color: var(--color-text);
}

.about-lead strong {
    color: var(--color-primary-dark);
}

.about-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-inline-start: 4px solid var(--color-primary);
}

.about-card p {
    margin: 0 0 1rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-focus {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin: 0.5rem 0 1rem !important;
    line-height: 1.7;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

.about-products {
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}

.about-products h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    color: var(--color-primary-dark);
}

.about-products > p {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
}

.about-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}

.about-product-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.about-product-chip:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--color-primary-dark);
}

.about-product-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--color-primary-light);
    overflow: hidden;
}

.about-product-chip__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.about-product-chip__label {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.about-mission {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-on-primary);    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
}

.about-mission::before {
    content: "\201C";
    position: absolute;
    top: 0.25rem;
    inset-inline-start: 1rem;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.25;
    font-family: Georgia, serif;
}

.about-mission p {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.about-founder {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 2.5rem 0 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.about-founder__logo {
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: contain;
}

.about-founder__name {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.about-founder__role {
    display: block;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.5rem;
}

.about-site-version {
    margin: 1.75rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.72;
    letter-spacing: 0.02em;
}

.about-signature {
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-top: 1.5rem;
}

.download-note {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.site-footer__logo {
    margin-bottom: 0.75rem;
    border-radius: 12px;
}

.product-card__media img {
    object-fit: contain;
    padding: 1rem;
    background: var(--color-product-card-img-bg);
}
[data-theme="dark"] .top-customer-logo img {
    filter: grayscale(20%) brightness(1.15);
    opacity: 0.88;
}

[data-theme="dark"] .top-customer-logo:hover img {
    filter: none;
    opacity: 1;
}

[data-theme="dark"] .top-customer-logo__name {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .top-customer-logo:hover .top-customer-logo__name {
    color: var(--color-primary-light);
}

[data-theme="dark"] .hero__brand-mark {
    filter: drop-shadow(0 8px 20px rgba(60, 184, 120, 0.25));
}

[data-theme="dark"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(60, 184, 120, 0.2);
}

/* Medium — hide Persian brand text when horizontal nav is crowded */
@media (max-width: 1280px) {
    .site--fa .site-header__brand-text {
        display: none;
    }
}

/* Mobile */
@media (max-width: 960px) {
    .hero {
        min-height: calc(100dvh - var(--header-h));
        padding: 1.5rem 0 3.5rem;
    }

    .hero-slider__overlay {
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.66) 0%,
                rgba(255, 255, 255, 0.52) 50%,
                rgba(255, 255, 255, 0.6) 100%);
    }

    [data-theme="dark"] .hero-slider__overlay {
        background:
            linear-gradient(180deg,
                rgba(10, 21, 18, 0.76) 0%,
                rgba(10, 21, 18, 0.56) 50%,
                rgba(10, 21, 18, 0.68) 100%);
    }

    .hero-slider__indicators {
        bottom: 4.25rem;
        gap: 0.35rem;
    }

    .hero-slider__dot {
        width: 22px;
    }

    .hero,
    .content-page__grid,
    .contact-grid,
    .customers-showcase {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .product-card__media {
        aspect-ratio: 1;
    }

    .product-card__media img {
        object-fit: contain;
        padding: 0.35rem;
    }

    .product-card__body {
        padding: 0.5rem 0.4rem 0.6rem;
    }

    .product-card__title {
        font-size: 0.72rem;
        line-height: 1.35;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card__desc,
    .product-card__link {
        display: none;
    }

    .product-card:hover {
        transform: none;
    }

    .section--features .section-head {
        margin-bottom: 1.25rem;
    }

    .home-page .section--features {
        padding: 2.5rem 0;
    }

    .section--features .section-head h2 {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .section--features .section-head p {
        font-size: 0.85rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .feature-card {
        padding: 0.65rem 0.4rem 0.75rem;
    }

    .feature-card:hover {
        box-shadow: none;
    }

    .feature-card__icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.45rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    .feature-card h3 {
        font-size: 0.72rem;
        line-height: 1.35;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-card p {
        display: none;
    }

    .home-page .section--customers {
        padding: 2.5rem 0;
    }

    .section--customers .section-head {
        margin-bottom: 1.25rem;
    }

    .section--customers .section-head h2 {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .section--customers .section-head p {
        font-size: 0.85rem;
    }

    .customers-showcase {
        gap: 1rem;
    }

    .customers-impact {
        padding: 0.85rem 0.75rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.65rem;
        border-radius: var(--radius-sm);
    }

    .customers-impact__eyebrow {
        grid-column: 1 / -1;
        margin: 0 0 0.15rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .impact-stat + .impact-stat {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        padding-inline-start: 0.65rem;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
    }

    .impact-stat__value {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    .impact-stat__title {
        margin: 0.2rem 0 0;
        font-size: 0.72rem;
        line-height: 1.35;
        font-weight: 600;
    }

    .impact-stat__desc {
        display: none;
    }

    .top-customers-grid,
    .top-customers-grid--home,
    .top-customers-grid--page {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .top-customer-logo {
        min-height: 64px;
        padding: 0.5rem 0.4rem 0.45rem;
        gap: 0.35rem;
    }

    .top-customers-grid--home .top-customer-logo,
    .top-customers-grid--page .top-customer-logo {
        min-height: 72px;
        padding: 0.55rem 0.4rem 0.45rem;
    }

    .top-customer-logo__name {
        font-size: 0.65rem;
    }

    .top-customer-logo img,
    .top-customers-grid--home .top-customer-logo img,
    .top-customers-grid--page .top-customer-logo img {
        max-width: 100%;
        max-height: 40px;
    }

    .about-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-founder {
        flex-direction: column;
        text-align: center;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-actions .btn {
        width: 100%;
    }

    .product-detail-hero__brand {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }

    .product-detail-hero--with-visual {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-detail-hero__visual img {
        max-width: min(100%, 320px);
        margin-inline: auto;
    }

    .hero { min-height: auto; padding: 2rem 0 4rem; }

    .home-page .hero {
        padding-top: 3.25rem;
        padding-bottom: 2.5rem;
        align-items: flex-start;
    }

    .home-page .hero__inner--solo {
        padding-top: 0.5rem;
    }

    .hero__brand-mark {
        display: none;
    }

    .hero__title-block {
        flex-direction: column;
        margin-bottom: 1.5rem;
        gap: 0;
    }

    .hero__title {
        text-align: center;
    }

    .hero__inner--solo .hero__subtitle {
        text-align: center;
        max-width: 36rem;
    }

    .hero__scroll,
    .home-section-scroll { display: none; }
    .hero__breeds { margin-top: 0; }
    .hero__breeds-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 1.25rem;
        max-width: 480px;
        margin-inline: auto;
    }

    .hero__breed-logo img {
        max-height: 64px;
        max-width: 140px;
    }

    .home-scroll-nav {
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom, 14px));
        left: 50%;
        inset-inline-end: auto;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 0.6rem 0.9rem;
        gap: 0.55rem;
    }

    .home-scroll-nav__dot.is-active {
        width: 24px;
        height: 11px;
    }

    html:has(.home-page) { scroll-snap-type: none; }
    body:has(.home-page) { scroll-snap-type: none; }
    .home-page .home-snap-section { min-height: auto; }
    .accounts-table__head,
    .accounts-table__row { grid-template-columns: 1fr; gap: 0.35rem; }

    .site-header__menu-btn { display: flex; flex-shrink: 0; }

    .site-header__brand {
        flex: 1;
        min-width: 0;
    }

    .site-header__tools {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
    }

    .site-header__tools .theme-switcher {
        padding: 3px;
    }

    .site-header__tools .theme-switcher__btn {
        width: 30px;
        height: 30px;
    }

    .site-header__tools .theme-switcher__btn svg {
        width: 15px;
        height: 15px;
    }

    .site-header__tools .lang-switcher__toggle {
        padding: 0.3rem 0.55rem;
        font-size: 0.78rem;
        gap: 0.2rem;
    }

    .site-header__tools .lang-switcher__icon {
        font-size: 0.85rem;
    }

    .site-header__tools .lang-switcher__menu {
        z-index: 1003;
    }

    .site-header__nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .site-header__nav a:not(.btn) {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .site-header__toggle-input:checked ~ .site-header__nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-header__toggle-input:checked + .site-header__menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .site-header__toggle-input:checked + .site-header__menu-btn span:nth-child(2) { opacity: 0; }
    .site-header__toggle-input:checked + .site-header__menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .site-footer__grid { grid-template-columns: 1fr; }
    .demo-page__inner { grid-template-columns: 1fr; }
    .demo-form { padding: 1.1rem 1rem; }
    .demo-customer-type { grid-template-columns: 1fr; }
    .demo-facility-grid { grid-template-columns: 1fr; }
    .demo-form .form-grid--demo,
    .form-grid { grid-template-columns: 1fr; }
    .demo-form__actions { flex-direction: column; align-items: stretch; }
    .demo-form__actions .btn { width: 100%; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-banner__actions { justify-content: center; }

    .download-table__head,
    .download-table__row {
        grid-template-columns: minmax(0, 1fr) 4.5rem minmax(8rem, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .download-table__links {
        flex-direction: column;
        align-items: stretch;
    }

    .download-table__action .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 0.5rem;
    }

    .download-table__store {
        justify-content: center;
    }

    .download-app-card {
        padding: 1rem;
    }

    .download-app-card__platforms {
        grid-template-columns: 1fr;
    }

    .download-chip__url {
        display: none;
    }
}

/* Blazor error UI */
#blazor-error-ui {
    background: var(--color-blazor-error-bg);    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* App deep-link landing: /open?server=... */
.open-app-hero {
    background:
        radial-gradient(ellipse 70% 80% at 20% 0%, rgba(45, 154, 102, 0.18), transparent 55%),
        linear-gradient(165deg, #f3faf6 0%, #e7f4ec 55%, #dceee4 100%);
}
html[data-theme="dark"] .open-app-hero {
    background:
        radial-gradient(ellipse 70% 80% at 20% 0%, rgba(45, 154, 102, 0.22), transparent 55%),
        linear-gradient(165deg, #0a1512 0%, #0d3b2e 55%, #07140f 100%);
}
.open-app {
    max-width: 40rem;
}
.open-app__panel {
    padding: 1.75rem 1.5rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--color-surface, #fff) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary, #2d9a66) 18%, transparent);
    box-shadow: var(--shadow-md, 0 12px 32px rgba(13, 59, 46, 0.08));
}
.open-app__panel--warn {
    border-color: color-mix(in srgb, #c9892b 40%, transparent);
}
.open-app__status {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--color-text, #123);
}
.open-app__server {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
    margin: 0 0 1.35rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--color-primary, #2d9a66) 8%, transparent);
}
.open-app__server strong {
    font-family: var(--font-latin, ui-monospace, monospace);
    word-break: break-all;
}
.open-app__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.open-app__fallback,
.open-app__hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-muted, #5a6b63);
    line-height: 1.6;
}
.open-app__hint code {
    display: inline-block;
    margin-top: 0.35rem;
    direction: ltr;
    font-size: 0.82rem;
    word-break: break-all;
}

/* Soft-lock activation: /ActiveApp.aspx?Ser=...&SysID=... */
.active-code-hero {
    background:
        radial-gradient(ellipse 70% 80% at 80% 0%, rgba(45, 154, 102, 0.16), transparent 55%),
        linear-gradient(165deg, #f3faf6 0%, #e7f4ec 55%, #dceee4 100%);
}
html[data-theme="dark"] .active-code-hero {
    background:
        radial-gradient(ellipse 70% 80% at 80% 0%, rgba(45, 154, 102, 0.22), transparent 55%),
        linear-gradient(165deg, #0a1512 0%, #0d3b2e 55%, #07140f 100%);
}
.active-code {
    max-width: 40rem;
}
.active-code__panel {
    padding: 1.75rem 1.5rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--color-surface, #fff) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary, #2d9a66) 18%, transparent);
    box-shadow: var(--shadow-md, 0 12px 32px rgba(13, 59, 46, 0.08));
}
.active-code__panel h2 {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
}
.active-code__panel > p {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: var(--color-text-muted, #5a6b63);
}
.active-code__panel--warn {
    border-color: color-mix(in srgb, #c9892b 40%, transparent);
}
.active-code__panel--error {
    border-color: color-mix(in srgb, #c44b4b 40%, transparent);
}
.active-code__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--color-primary, #2d9a66) 8%, transparent);
}
.active-code__meta strong {
    font-family: var(--font-latin, ui-monospace, monospace);
    word-break: break-all;
}
.active-code__code-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--color-primary, #2d9a66) 10%, transparent);
    border: 1px dashed color-mix(in srgb, var(--color-primary, #2d9a66) 35%, transparent);
}
.active-code__code-label {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5a6b63);
}
.active-code__field {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}
.active-code__input {
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-primary, #2d9a66) 28%, transparent);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--color-surface, #fff) 96%, transparent);
    color: var(--color-text, #123);
    font-family: var(--font-latin, ui-monospace, monospace);
    font-size: clamp(1.1rem, 3.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
}
.active-code__input:focus {
    outline: 2px solid color-mix(in srgb, var(--color-primary, #2d9a66) 55%, transparent);
    outline-offset: 1px;
}
.active-code__copy {
    flex: 0 0 auto;
    min-width: 7.5rem;
    white-space: nowrap;
}
.active-code__copy--done {
    background: color-mix(in srgb, var(--color-primary, #2d9a66) 82%, #0a2e22);
}
.active-code__hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-muted, #5a6b63);
    line-height: 1.6;
}
.active-code__hint[data-state="copied"] {
    color: var(--color-primary, #2d9a66);
    font-weight: 600;
}
.active-code__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

