/* Agrynea Lite host — premium visual identity (not a second product theme) */

:root {
    --agro-lite-ink: #ecfdf5;
    --agro-lite-ink-muted: rgba(236, 253, 245, 0.72);
    --agro-lite-moss: #0f4a3a;
    --agro-lite-leaf: #34d399;
    --agro-lite-leaf-soft: rgba(52, 211, 153, 0.22);
    --agro-lite-glass: rgba(8, 28, 22, 0.72);
    --agro-lite-stroke: rgba(110, 231, 183, 0.28);
    --agro-lite-glow: rgba(52, 211, 153, 0.18);
}

/* ——— Persistent atmosphere ——— */
html.agro-lite-host body.agro-lite-host {
    --agro-lite-active: 1;
    --agro-lite-radius: 4px;
    --agro-lite-radius-sm: 2px;
    --agro-lite-radius-md: 6px;
}

html.agro-lite-host .mud-layout.agroculus-layout {
    background: transparent !important;
}

/* Kill expensive full-viewport blur on weak CPUs + soft mint canvas */
html.agro-lite-host .layout-bg-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background:
        radial-gradient(ellipse 85% 55% at 8% -8%, rgba(52, 211, 153, 0.14), transparent 52%),
        radial-gradient(ellipse 55% 40% at 100% 0%, rgba(15, 74, 58, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(214, 232, 223, 0.96) 0%, rgba(220, 233, 226, 0.94) 100%);
}

html.agro-lite-host .layout-bg-image {
    background:
        radial-gradient(circle at 12% 16%, rgba(16, 185, 129, 0.12) 0%, transparent 36%),
        radial-gradient(circle at 88% 10%, rgba(15, 74, 58, 0.1) 0%, transparent 32%),
        linear-gradient(145deg, #d5e8de 0%, #cfe2d7 48%, #d9e6df 100%);
}

html.agro-lite-host .mud-main-content,
html.agro-lite-host .main-content-padding,
html.agro-lite-host .app-content-panel,
html.agro-lite-host .page-route-shell {
    background: transparent !important;
}

html.agro-lite-host .home-page,
html.agro-lite-host .home-page--scene,
html.agro-lite-host .home-page--lite {
    background: transparent !important;
}

/* Page canvas stays light mint — only the appbar covers the status-bar inset in brand green.
   Do NOT paint html/body #0b2e24 (that turns the whole Lite page dark green). */
html.agro-lite-host,
html.agro-lite-host body.agro-lite-host {
    background: #d5e8de !important;
}

html.agro-lite-host .mud-appbar.transparent-appbar,
html.agro-lite-host .mud-appbar.mud-appbar-fixed.transparent-appbar {
    top: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    border-radius: 0 !important;
    background: linear-gradient(128deg, #0b2e24 0%, #0f4a3a 42%, #0a3048 100%) !important;
    background-clip: border-box !important;
    /* Mud owns left/width beside drawer — do not force full-bleed */
}

html.agro-lite-host .floating-header-card.premium-topbar {
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(110, 231, 183, 0.14);
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Do not let the global Lite radius rule round the flush topbar */
html.agro-lite-host .floating-header-card.premium-topbar,
html.agro-lite-host .mud-appbar.transparent-appbar .floating-header-card {
    border-radius: 0 !important;
}

html.agro-lite-host .drawer-brand::after {
    content: none;
}

/* Keep Full-mode subtitle contrast on dark drawer (do not inherit page text color). */
html.agro-lite-host .drawer-brand .brand-subtitle {
    color: rgba(203, 213, 225, 0.58) !important;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html.agro-lite-host .mud-drawer {
    box-shadow: inset -1px 0 0 rgba(16, 185, 129, 0.12);
}

@media (min-width: 1024px) {
    html.agro-lite-host .agroculus-drawer.drawer-desktop,
    html.agro-lite-host aside.mud-drawer.agroculus-drawer.drawer-desktop {
        top: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }
}

/* ——— Angular / near-square chrome (Lite identity without losing polish) ——— */
html.agro-lite-host .floating-header-card,
html.agro-lite-host .premium-shell,
html.agro-lite-host .home-block,
html.agro-lite-host .home-panel,
html.agro-lite-host .mud-paper.home-block,
html.agro-lite-host .mud-paper.home-panel,
html.agro-lite-host .mud-paper.premium-shell,
html.agro-lite-host .mud-paper.filter-shell,
html.agro-lite-host .fleet-device-card,
html.agro-lite-host .fleet-insight-card,
html.agro-lite-host .page-hero,
html.agro-lite-host .agro-filter-picker__selected,
html.agro-lite-host .agro-filter-option,
html.agro-lite-host .fleet-filter-chip,
html.agro-lite-host .summary-item,
html.agro-lite-host .summary-chip,
html.agro-lite-host .mud-alert,
html.agro-lite-host .mud-input-control .mud-input-outlined .mud-input-outlined-border,
html.agro-lite-host .mud-input-outlined .mud-input-outlined-border {
    border-radius: var(--agro-lite-radius-md) !important;
}

html.agro-lite-host .mud-nav-link,
html.agro-lite-host .mud-nav-group > .mud-nav-link,
html.agro-lite-host .agroculus-drawer .mud-nav-link {
    border-radius: var(--agro-lite-radius) !important;
}

html.agro-lite-host .mud-button-root,
html.agro-lite-host .soft-btn,
html.agro-lite-host .hero-btn,
html.agro-lite-host .campus-pill,
html.agro-lite-host .company-pill,
html.agro-lite-host .user-profile-trigger,
html.agro-lite-host .locale-trigger,
html.agro-lite-host .lite-mode-chip,
html.agro-lite-host .fleet-status-badge,
html.agro-lite-host .fleet-status-lock__chip,
html.agro-lite-host .status-pill,
html.agro-lite-host .status-pill-lock__chip {
    border-radius: var(--agro-lite-radius) !important;
}

html.agro-lite-host .mud-menu .mud-list,
html.agro-lite-host .profile-sheet,
html.agro-lite-host .lite-mode-popover,
html.agro-lite-host .lite-welcome__card {
    border-radius: var(--agro-lite-radius-md) !important;
}

/* Keep circular avatars / status dots */
html.agro-lite-host .mud-avatar,
html.agro-lite-host .profile-avatar-chip,
html.agro-lite-host .pill-dot,
html.agro-lite-host .lite-mode-chip__pulse,
html.agro-lite-host .fleet-device-card__status-dot,
html.agro-lite-host .status-pill > span:first-child {
    border-radius: 50% !important;
}

html.agro-lite-host .home-block,
html.agro-lite-host .home-panel,
html.agro-lite-host .mud-paper.home-block,
html.agro-lite-host .mud-paper.home-panel,
html.agro-lite-host .premium-shell,
html.agro-lite-host .mud-paper.premium-shell {
    box-shadow: 0 1px 0 rgba(15, 74, 58, 0.04), 0 8px 20px rgba(15, 41, 32, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.12) !important;
}

html.agro-lite-host .soft-btn--shine::after {
    display: none !important;
}

/* Global motion kill on Lite (module charts/CSS pulses) */
html.agro-lite-host .apexcharts-canvas,
html.agro-lite-host .apexcharts-svg {
    animation: none !important;
}

html.agro-lite-host .ghp-pulse,
html.agro-lite-host .active-blink,
html.agro-lite-host .save-btn-pulse,
html.agro-lite-host .inventory-nfc-pulse,
html.agro-lite-host .scd-pulse,
html.agro-lite-host .scd-shimmer,
html.agro-lite-host .dara-shine,
html.agro-lite-host .agro-page-enter,
html.agro-lite-host .plant-card-enter,
html.agro-lite-host .sc-monthly-chart--in,
html.agro-lite-host .home-sera-card__canopy-glow,
html.agro-lite-host .home-sera-card.is-live-pulse,
html.agro-lite-host .home-completion-live__dot {
    animation: none !important;
}

/* ——— Topbar chip ——— */
.lite-mode-chip {
    appearance: none;
    border: 1px solid var(--agro-lite-stroke);
    background:
        linear-gradient(135deg, rgba(16, 56, 42, 0.92), rgba(8, 28, 22, 0.88));
    color: var(--agro-lite-ink);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 34px;
    padding: 0 0.85rem 0 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lite-mode-chip:hover {
    border-color: rgba(167, 243, 208, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.lite-mode-chip:focus-visible {
    outline: 2px solid rgba(110, 231, 183, 0.65);
    outline-offset: 3px;
}

.lite-mode-chip__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--agro-lite-leaf);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: lite-mode-pulse 2.4s ease-out infinite;
    flex-shrink: 0;
}

@keyframes lite-mode-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.lite-mode-chip__label {
    white-space: nowrap;
    line-height: 1;
}

.lite-mode-chip__chevron {
    opacity: 0.65;
    font-size: 1rem !important;
    margin-left: -0.1rem;
}

@media (max-width: 720px) {
    .lite-mode-chip {
        padding: 0 0.65rem 0 0.5rem;
        height: 32px;
    }

    .lite-mode-chip__label-full {
        display: none;
    }
}

/* Popover under chip */
.lite-mode-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 2400;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem 1.05rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--agro-lite-stroke);
    background:
        linear-gradient(165deg, rgba(12, 40, 30, 0.97), rgba(6, 20, 15, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    color: var(--agro-lite-ink);
    animation: lite-popover-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lite-popover-enter {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lite-mode-popover__title {
    margin: 0 0 0.35rem;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.lite-mode-popover__body {
    margin: 0 0 0.9rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--agro-lite-ink-muted);
}

.lite-mode-popover__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lite-mode-popover__btn {
    appearance: none;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lite-mode-popover__btn:hover {
    transform: translateY(-1px);
}

.lite-mode-popover__btn--primary {
    background: linear-gradient(135deg, #34d399 0%, #6ee7b7 55%, #a7f3d0 100%);
    color: #052e1c;
    box-shadow: 0 10px 24px rgba(52, 211, 153, 0.25);
}

.lite-mode-popover__btn--ghost {
    background: rgba(15, 74, 58, 0.04);
    border-color: rgba(15, 74, 58, 0.22);
    color: #0f4a3a;
}

.lite-mode-popover__btn--ghost:hover {
    background: rgba(15, 74, 58, 0.08);
    border-color: rgba(15, 74, 58, 0.34);
}

.lite-mode-chip-host {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    z-index: 30;
}

@media (max-width: 1023px) {
    .lite-mode-chip-host {
        margin-left: 0.35rem;
    }
}

.lite-mode-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2390;
    background: transparent;
}

/* ——— Welcome sheet (first Lite visit) ——— */
.lite-welcome {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: rgba(2, 10, 8, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: lite-welcome-fade 0.35s ease both;
}

@keyframes lite-welcome-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lite-welcome__card {
    width: min(420px, 100%);
    border-radius: 24px 24px 20px 20px;
    border: 1px solid var(--agro-lite-stroke);
    background:
        radial-gradient(ellipse 90% 60% at 20% -20%, rgba(52, 211, 153, 0.2), transparent 55%),
        linear-gradient(180deg, rgba(14, 44, 34, 0.98), rgba(6, 18, 14, 0.98));
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.45);
    padding: 1.35rem 1.35rem 1.2rem;
    color: var(--agro-lite-ink);
    animation: lite-welcome-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lite-welcome-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.lite-welcome__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--agro-lite-stroke);
    background: rgba(52, 211, 153, 0.1);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a7f3d0;
}

.lite-welcome__title {
    margin: 0 0 0.45rem;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lite-welcome__lead {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--agro-lite-ink-muted);
}

.lite-welcome__points {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lite-welcome__points li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(236, 253, 245, 0.88);
}

.lite-welcome__points li::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--agro-lite-leaf);
    box-shadow: 0 0 0 3px var(--agro-lite-leaf-soft);
    flex-shrink: 0;
}

.lite-welcome__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Profile mode strip lives in UserProfileMenu (light sheet) — do not override dark here */

/* ——— Login Lite mark ——— */
.login-lite-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.65rem 0 0;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.35);
    background: rgba(52, 211, 153, 0.12);
    color: #d1fae5;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
}

.login-lite-mark::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--agro-lite-leaf);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
    animation: lite-mode-pulse 2.4s ease-out infinite;
    flex-shrink: 0;
}

.login-panel .login-lite-mark {
    margin-top: 0.35rem;
}

.login-brand .login-lite-mark {
    margin-top: 0.85rem;
}

.agro-loading__lite-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.35);
    background: rgba(52, 211, 153, 0.14);
    font-size: 0.68em;
    font-weight: 650;
    letter-spacing: 0.06em;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Prefer explicit tag over ::after when present */
.agro-lite-host .agro-loading__brand-line:has(.agro-loading__lite-tag)::after {
    content: none;
}

/* ——— Home: conscious simplification on Lite ——— */
html.agro-lite-host .home-scene__slide {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
}

html.agro-lite-host .home-scene__slide:not(.is-active):not(.home-scene__slide--lite-static) {
    opacity: 0 !important;
    visibility: hidden;
    background-image: none !important;
}

html.agro-lite-host .home-scene__ribs,
html.agro-lite-host .home-scene__light,
html.agro-lite-host .home-scene__grain {
    display: none !important;
}

html.agro-lite-host .home-reveal,
html.agro-lite-host .home-page,
html.agro-lite-host .home-scene {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

html.agro-lite-host .home-chart-shell--enter {
    animation: none !important;
}

html.agro-lite-host .home-page--scene .home-scene {
    min-height: min(38vh, 320px);
}

html.agro-lite-host .soft-btn--shine::after,
html.agro-lite-host .home-metric::after {
    animation: none !important;
    display: none !important;
}

html.agro-lite-host .home-metric {
    transition: none !important;
    animation: none !important;
}

html.agro-lite-host .apexcharts-canvas {
    filter: none;
}

/* Sera ilerlemesi: sürekli pulse / live flash kapalı */
html.agro-lite-host .home-sera-card__canopy-glow,
html.agro-lite-host .home-sera-card.is-live-pulse,
html.agro-lite-host .home-completion-live.is-pulsing .home-completion-live__dot,
html.agro-lite-host .home-completion-live__dot {
    animation: none !important;
}

html.agro-lite-host .home-sera-card__canopy {
    transition: none !important;
    will-change: auto !important;
}

html.agro-lite-host .home-sera-card {
    transition: none !important;
}

html.agro-lite-host .home-sera-card__canopy-glow {
    opacity: 0.35;
}

.home-scene__lite-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 243, 208, 0.45);
    background: rgba(6, 78, 59, 0.45);
    color: #d1fae5;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

html.agro-lite-host .home-page--lite .home-scene__brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Topbar chip sits in the right actions cluster */
.premium-topbar .topbar-actions-zone > .lite-mode-chip-host {
    flex-shrink: 0;
    align-self: center;
    order: -1;
}

@media (max-width: 959px) {
    .premium-topbar .topbar-actions-zone > .lite-mode-chip-host .lite-mode-popover {
        left: auto;
        right: 0;
    }
}

/* ——— Nav rail accent (angular tool feel) ——— */
html.agro-lite-host .agroculus-drawer .mud-nav-link {
    position: relative;
    padding-left: 1rem !important;
}

html.agro-lite-host .agroculus-drawer .mud-nav-link.active,
html.agro-lite-host .agroculus-drawer .mud-nav-link.mud-nav-link-active {
    background: rgba(16, 185, 129, 0.1) !important;
    box-shadow: none !important;
}

html.agro-lite-host .agroculus-drawer .mud-nav-link.active::before,
html.agro-lite-host .agroculus-drawer .mud-nav-link.mud-nav-link-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #34d399;
}

html.agro-lite-host .premium-topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(180deg, rgba(8, 28, 22, 0.94), rgba(10, 36, 28, 0.92)) !important;
}

html.agro-lite-host .home-block,
html.agro-lite-host .home-panel,
html.agro-lite-host .premium-shell,
html.agro-lite-host .mud-paper.premium-shell {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

/* Spark bars (Apex replacement on Lite) — proportional + mobile-first */
.lite-spark {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.15rem 0 0.25rem;
}

.lite-spark__row {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.lite-spark__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.lite-spark__label {
    color: #5b6b63;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.lite-spark__val {
    color: #0f4a3a;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lite-spark__track {
    height: 10px;
    border-radius: 3px;
    background: rgba(15, 74, 58, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(15, 41, 32, 0.04);
}

.lite-spark__fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #1b7a5a 0%, #34d399 78%, #6ee7b7 100%);
    box-shadow: 0 0 0 1px rgba(15, 74, 58, 0.06);
    transition: width 0.35s ease;
}

.lite-spark__row.is-zero .lite-spark__val {
    color: #94a3b8;
    font-weight: 600;
}

.lite-spark__row.is-zero .lite-spark__track {
    background: rgba(148, 163, 184, 0.18);
}

.lite-spark__row.is-zero .lite-spark__fill {
    width: 0 !important;
    background: transparent;
    box-shadow: none;
}

@media (min-width: 720px) {
    .lite-spark__track {
        height: 11px;
    }
}

/* legacy class aliases (if any cached markup) */
.lite-spark-table { display: flex; flex-direction: column; gap: 0.65rem; }
.lite-spark-row { display: flex; flex-direction: column; gap: 0.28rem; }

.lite-home-more,
.lite-filters-toggle {
    appearance: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(15, 74, 58, 0.14);
    border-radius: var(--agro-lite-radius, 4px);
    background: rgba(255, 255, 255, 0.72);
    color: #0f4a3a;
    font-weight: 650;
    font-size: 0.82rem;
    cursor: pointer;
}

html.agro-lite-host .summary-bar.is-collapsed {
    display: none;
}

.lite-last-loaded {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #475569;
}

/* Soft Full offer sheet */
.lite-soft-full {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(8, 20, 16, 0.45);
}

.lite-soft-full__card {
    width: min(420px, 100%);
    padding: 1.35rem 1.4rem 1.2rem;
    border-radius: var(--agro-lite-radius-md, 6px);
    border: 1px solid rgba(110, 231, 183, 0.28);
    background: linear-gradient(180deg, #f7fbf8, #eef6f1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.lite-soft-full__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f4a3a;
}

.lite-soft-full__title {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 750;
    color: #0b2e24;
}

.lite-soft-full__lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

.lite-soft-full__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

html.agro-lite-host .agro-page-enter,
html.agro-lite-host .home-reveal {
    animation: agro-lite-fade 110ms ease both !important;
}

@keyframes agro-lite-fade {
    from { opacity: 0.72; }
    to { opacity: 1; }
}

/* ——— Persistent Lite bubble (bottom-right) ——— */
.lite-mode-bubble-host {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 2550;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: none;
}

/* Scroll-to-top shares the same corner — park it above the Lite bubble */
html.agro-lite-host .premium-scroll-top-btn {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.65rem) !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
}

@media (max-width: 600px) {
    html.agro-lite-host .premium-scroll-top-btn {
        bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 3.5rem) !important;
        right: max(0.85rem, env(safe-area-inset-right)) !important;
    }
}

/* Version badge shares bottom-right — park it left on Lite */
html.agro-lite-host .tablet-app-version-badge {
    right: auto !important;
    left: max(0.75rem, env(safe-area-inset-left)) !important;
}

.lite-mode-bubble-host > * {
    pointer-events: auto;
}

.lite-mode-bubble {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 0.95rem 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.35);
    background: linear-gradient(135deg, rgba(15, 74, 58, 0.96), rgba(8, 40, 30, 0.94));
    color: #ecfdf5;
    box-shadow:
        0 10px 28px rgba(8, 28, 22, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lite-mode-bubble:hover,
.lite-mode-bubble.is-open {
    transform: translateY(-1px);
    border-color: rgba(110, 231, 183, 0.55);
    box-shadow:
        0 14px 32px rgba(8, 28, 22, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lite-mode-bubble:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 3px;
}

.lite-mode-bubble__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: lite-bubble-pulse 2.2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes lite-bubble-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.lite-mode-bubble__label {
    line-height: 1;
}

.lite-mode-bubble-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2540;
    background: rgba(8, 20, 16, 0.28);
}

.lite-mode-bubble-panel {
    position: relative;
    z-index: 2551;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1.1rem 1.15rem 1rem;
    border-radius: var(--agro-lite-radius-md, 6px);
    border: 1px solid rgba(110, 231, 183, 0.28);
    background: linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    animation: lite-welcome-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lite-mode-bubble-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f4a3a;
}

.lite-mode-bubble-panel__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 750;
    color: #0b2e24;
    line-height: 1.25;
}

.lite-mode-bubble-panel__body {
    margin: 0 0 0.65rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #334155;
}

.lite-mode-bubble-panel__points {
    margin: 0 0 0.95rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lite-mode-bubble-panel__points li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #3f5a4c;
}

.lite-mode-bubble-panel__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
}

.lite-mode-bubble-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

@media (max-width: 599px) {
    .lite-mode-bubble-host {
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: max(0.85rem, env(safe-area-inset-bottom));
    }

    .lite-mode-bubble {
        min-height: 42px;
        padding: 0.5rem 0.85rem 0.5rem 0.65rem;
        font-size: 0.74rem;
    }
}

/* Soften pulse cost on Lite when bubble is present */
html.agro-lite-host .lite-mode-bubble__pulse {
    animation-duration: 2.8s;
}
