
:root {
    --green-950: #0b2515;
    --green-900: #12361f;
    --green-800: #1a472a;
    --green-700: #216039;
    --green-600: #2e7d4f;
    --green-100: #e8f5ec;
    --mint: #d9f2df;
    --sand: #f4efe3;
    --soil: #7a5230;
    --amber: #c98222;
    --red: #b13b2e;
    --ink: #162018;
    --muted: #617065;
    --line: #dce6de;
    --panel: #ffffff;
    --panel-2: #f8fbf8;
    --shadow: 0 22px 50px rgba(16, 45, 24, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --focus: 0 0 0 3px rgba(46, 125, 79, 0.22);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(46, 125, 79, 0.14), transparent 34rem),
        linear-gradient(135deg, #f6fbf7 0%, #eef6ef 45%, #f8f1e4 100%);
    color: var(--ink);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--green-700);
}

.mobile-header {
    display: none;
}

.language-switcher {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 40;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(26, 71, 42, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(26, 71, 42, 0.10);
}

.language-switcher label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green-800);
}

.language-switcher select,
.control select,
.control input,
.control textarea {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 0.65rem 0.75rem;
    min-height: 42px;
}

.language-switcher select:focus,
.control select:focus,
.control input:focus,
.control textarea:focus,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.app-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background:
        linear-gradient(160deg, rgba(11, 37, 21, 0.98), rgba(26, 71, 42, 0.96)),
        radial-gradient(circle at top, rgba(255,255,255,0.16), transparent 20rem);
    color: #fff;
    overflow-y: auto;
}

.sidebar-header {
    padding: 14px 10px 20px;
}

.brand-block,
.brand-line {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    object-fit: contain;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.brand-logo-small {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: contain;
}

.brand-block h1 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.brand-block p,
.sidebar-header > p {
    margin: 0.2rem 0 0;
    color: rgba(255,255,255,0.74);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 16px;
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.84rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #90e8a2;
    box-shadow: 0 0 0 5px rgba(144, 232, 162, 0.14);
}

.sidebar-nav,
.mobile-nav {
    display: grid;
    gap: 0.45rem;
}

.sidebar-nav {
    margin-top: 14px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.84rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: rgba(255,255,255,0.78);
    text-align: left;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-button:hover,
.nav-button.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.13);
    transform: translateX(3px);
}

.nav-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.11);
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 8px 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.83rem;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.13);
}

.profile-chip span {
    display: block;
    margin-top: 0.1rem;
    color: rgba(255,255,255,0.72);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6e7b8, #a7e3b4);
    color: var(--green-950);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.main-content {
    min-width: 0;
    padding: 76px 34px 40px;
}

.module-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(26,71,42,0.95), rgba(46,125,79,0.87)),
        radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 23rem);
    color: #fff;
    box-shadow: var(--shadow);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -70px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-title {
    margin: 0.9rem 0 0.4rem;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    max-width: 760px;
}

.hero-text {
    max-width: 770px;
    color: rgba(255,255,255,0.82);
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.panel {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(26, 71, 42, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 36px rgba(26, 71, 42, 0.08);
    padding: 20px;
}

.panel h2,
.panel h3,
.panel h4 {
    margin-top: 0;
    color: var(--green-900);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: 24px 0 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--green-900);
}

.section-title p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.btn {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0.74rem 1rem;
    font-weight: 800;
    background: var(--green-800);
    color: #fff;
    box-shadow: 0 10px 20px rgba(26, 71, 42, 0.15);
}

.btn:hover {
    background: var(--green-700);
}

.btn.secondary {
    background: #fff;
    color: var(--green-800);
    border-color: rgba(26,71,42,0.16);
    box-shadow: none;
}

.btn.warning {
    background: var(--amber);
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 16px;
}

.plant-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    min-height: 278px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(26, 71, 42, 0.12);
    background: linear-gradient(180deg, #fff, #f8fbf8);
    box-shadow: 0 12px 28px rgba(26, 71, 42, 0.08);
}

.plant-card:hover {
    transform: translateY(-2px);
    transition: transform 0.18s ease;
}

.plant-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.plant-title h3 {
    margin: 0;
    color: var(--green-900);
}

.scientific {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-style: italic;
}

.badge-list {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.badge,
.risk-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.58rem;
    font-size: 0.76rem;
    font-weight: 800;
    background: var(--green-100);
    color: var(--green-800);
}

.badge.sand {
    background: var(--sand);
    color: var(--soil);
}

.badge.warn,
.risk-badge.medium {
    background: #fff2d8;
    color: #8b570e;
}

.risk-badge.high {
    background: #ffe2de;
    color: #8b2017;
}

.risk-badge.low {
    background: #e3f7e8;
    color: #1a6b3d;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
}

.metric-card {
    padding: 14px;
    border-radius: 18px;
    background: var(--panel-2);
    border: 1px solid var(--line);
}

.metric-card strong {
    display: block;
    color: var(--green-900);
    font-size: 1.1rem;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.control {
    display: grid;
    gap: 0.38rem;
}

.control label {
    color: var(--green-900);
    font-weight: 800;
    font-size: 0.9rem;
}

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

.result-box {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #fff, #eff9f1);
    border: 1px solid rgba(26,71,42,0.12);
}

.result-box strong {
    color: var(--green-900);
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(177,59,46,0.16);
    background: #fff3f0;
    color: #7a251d;
}

.alert.info {
    background: #edf8f0;
    border-color: rgba(26,71,42,0.14);
    color: var(--green-800);
}

.month-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
}

.month-table th,
.month-table td,
.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.82rem;
    text-align: left;
    vertical-align: top;
}

.month-table th,
.data-table th {
    background: var(--green-100);
    color: var(--green-900);
}

.month-table tr:last-child td,
.data-table tr:last-child td {
    border-bottom: none;
}

.map-box {
    height: 440px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(26,71,42,0.14);
    background: #e7efe8;
}

.report-sheet {
    background: #fff;
    color: #111;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #ddd;
}

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #1a472a;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.report-title {
    font-size: 1.4rem;
    color: #1a472a;
    margin: 0;
}

.toast-zone {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    display: grid;
    gap: 0.6rem;
}

.toast {
    max-width: 360px;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: var(--green-900);
    color: #fff;
    box-shadow: var(--shadow);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,0,0,0.38);
}

.mobile-menu-panel {
    width: min(360px, calc(100% - 38px));
    margin: 14px;
    padding: 16px;
    border-radius: 22px;
    background: var(--green-950);
    color: #fff;
    box-shadow: var(--shadow);
}

.mobile-menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plain-button {
    border: none;
    background: transparent;
    color: inherit;
    font-weight: 800;
}

.icon-button {
    display: grid;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0.5rem;
}

.icon-button span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

.hidden {
    display: none !important;
}

[data-dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .nav-button:hover,
html[dir="rtl"] .nav-button.active {
    transform: translateX(-3px);
}

html[dir="rtl"] .month-table th,
html[dir="rtl"] .month-table td,
html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td {
    text-align: right;
}

@media (max-width: 980px) {
    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        padding: 0.75rem 1rem;
        color: #fff;
        background: linear-gradient(135deg, var(--green-950), var(--green-800));
        box-shadow: 0 8px 20px rgba(0,0,0,0.14);
    }

    .brand-title {
        font-weight: 900;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .language-switcher {
        top: auto;
        right: 12px;
        bottom: 12px;
    }

    .main-content {
        padding: 20px 14px 92px;
    }

    .grid-2,
    .grid-3,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 22px;
    }
}

@media print {
    body {
        background: #fff;
    }
    .no-print,
    .language-switcher,
    .sidebar,
    .mobile-header,
    .toast-zone {
        display: none !important;
    }
    .app-shell {
        display: block;
    }
    .main-content {
        padding: 0;
    }
    .module-shell {
        max-width: none;
    }
    .panel,
    .hero-panel,
    .report-sheet {
        box-shadow: none;
        border-radius: 0;
    }
    .hero-panel {
        color: #111;
        background: #fff;
        border-bottom: 2px solid #1a472a;
    }
    .btn {
        display: none;
    }
}


/* Final V1.1 display correction: local CSS visual model, no broken plant images. */
.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.stat-card {
    min-width: 120px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.stat-card strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 0.22rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    font-weight: 700;
}

.compact-control {
    min-width: min(280px, 100%);
}

.plant-visual {
    position: relative;
    min-height: 128px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.85), transparent 5rem),
        radial-gradient(circle at 82% 20%, rgba(46,125,79,0.24), transparent 8rem),
        linear-gradient(135deg, #e9f7ee 0%, #fff8e9 100%);
    border: 1px solid rgba(26,71,42,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.plant-visual.compact {
    min-height: 92px;
    max-width: 220px;
}

.plant-orbit {
    position: absolute;
    inset: 18px 22px auto auto;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    border: 1px solid rgba(26,71,42,0.18);
}

.plant-leaf {
    position: absolute;
    width: 72px;
    height: 34px;
    border-radius: 999px 0 999px 0;
    background: linear-gradient(135deg, rgba(33,96,57,0.9), rgba(144,232,162,0.72));
    transform-origin: left center;
    box-shadow: 0 10px 24px rgba(26,71,42,0.18);
}

.plant-leaf.leaf-a {
    left: 34px;
    top: 34px;
    transform: rotate(-22deg);
}

.plant-leaf.leaf-b {
    left: 68px;
    top: 58px;
    transform: rotate(18deg) scale(0.88);
    opacity: 0.86;
}

.plant-code {
    position: absolute;
    left: 16px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(11,37,21,0.88);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.visual-caption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    max-width: 170px;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: var(--green-800);
    font-size: 0.72rem;
    font-weight: 800;
}

.plant-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.plant-mini > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    font-weight: 900;
}

.plant-mini h3 {
    margin: 0;
}

.alert {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(26,71,42,0.12);
    background: #eef8f1;
    color: var(--green-900);
}

.alert.warn {
    background: #fff4df;
    color: #7a4b0b;
    border-color: rgba(201,130,34,0.28);
}

.alert.info {
    background: #eef8f1;
    color: var(--green-900);
}

html[dir="rtl"] .language-switcher {
    right: auto;
    left: 24px;
}

html[dir="rtl"] .nav-button {
    text-align: right;
}

html[dir="rtl"] .plant-code {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .visual-caption {
    right: auto;
    left: 14px;
}

@media (max-width: 980px) {
    .stat-card {
        flex: 1 1 100px;
    }
    .visual-caption {
        display: none;
    }
}

@media print {
    .stat-row,
    .plant-visual {
        display: none;
    }
}


/* V1.2 icon-only plant cards: vivid Inoiatech Precision display, no image placeholder text. */
.plant-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82)),
        radial-gradient(circle at 20% 10%, rgba(0,188,212,0.20), transparent 14rem),
        radial-gradient(circle at 90% 20%, rgba(186,64,211,0.18), transparent 14rem);
    border-color: rgba(255,255,255,0.66);
    box-shadow: 0 18px 42px rgba(19, 63, 82, 0.14);
}

.plant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(19, 63, 82, 0.20);
}

.plant-visual {
    min-height: 132px;
    isolation: isolate;
    background:
        linear-gradient(130deg, rgba(0,190,180,0.98) 0%, rgba(37,144,234,0.92) 47%, rgba(186,70,220,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.48);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        inset 0 -24px 60px rgba(0,0,0,0.12),
        0 18px 34px rgba(20, 97, 117, 0.18);
}

.plant-visual::before {
    content: "";
    position: absolute;
    inset: -42px auto auto -70px;
    width: 210px;
    height: 210px;
    transform: rotate(28deg);
    background: linear-gradient(90deg, rgba(255,255,255,0.38), rgba(255,255,255,0.04));
    border-radius: 42px;
    z-index: -1;
}

.plant-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.04) 34%, transparent 35%),
        radial-gradient(circle at 82% 16%, rgba(255,255,255,0.30), transparent 4.5rem);
    pointer-events: none;
}

.plant-shine {
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.20);
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
}

.plant-icon {
    position: absolute;
    left: 24px;
    top: 20px;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 12px 28px rgba(0,0,0,0.13);
    font-size: 2.8rem;
    line-height: 1;
    text-shadow: 0 3px 10px rgba(0,0,0,0.14);
}

.plant-code {
    left: auto;
    right: 18px;
    bottom: 16px;
    width: auto;
    min-width: 54px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #123d4e;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.plant-orbit,
.plant-leaf,
.visual-caption {
    display: none;
}

.plant-visual.compact {
    min-height: 112px;
    max-width: 240px;
}

.plant-visual.compact .plant-icon {
    width: 62px;
    height: 62px;
    font-size: 2.2rem;
}

.plant-tone-romarin,
.plant-tone-origan,
.plant-tone-basilic {
    background: linear-gradient(130deg, #00b894 0%, #20bf6b 42%, #26de81 100%);
}

.plant-tone-thym,
.plant-tone-sauge {
    background: linear-gradient(130deg, #6ab04c 0%, #badc58 45%, #f9ca24 100%);
}

.plant-tone-lavande {
    background: linear-gradient(130deg, #7ed6df 0%, #686de0 45%, #be2edd 100%);
}

.plant-tone-menthe_verte,
.plant-tone-menthe_poivree,
.plant-tone-verveine_citronnelle {
    background: linear-gradient(130deg, #00cec9 0%, #55efc4 42%, #ffeaa7 100%);
}

.plant-tone-coriandre,
.plant-tone-persil {
    background: linear-gradient(130deg, #2ecc71 0%, #9be15d 45%, #00e3ae 100%);
}

.plant-tone-the {
    background: linear-gradient(130deg, #1abc9c 0%, #2ecc71 42%, #0984e3 100%);
}

html[dir="rtl"] .plant-icon {
    left: auto;
    right: 24px;
}

html[dir="rtl"] .plant-code {
    right: auto;
    left: 18px;
}


/* V1.3 visual polish: vivid mirrored gradients, modern menu, improved cartotheque/calendar, no generated images. */
:root {
    --vivid-teal: #00b8a9;
    --vivid-cyan: #18bde8;
    --vivid-blue: #4a7df0;
    --vivid-purple: #8a35ea;
    --vivid-pink: #f24ba7;
    --deep-ink: #082033;
}

html, body {
    background:
        radial-gradient(circle at 14% 8%, rgba(0, 184, 169, 0.18), transparent 26rem),
        radial-gradient(circle at 100% 2%, rgba(242, 75, 167, 0.16), transparent 24rem),
        linear-gradient(135deg, #f4fff8 0%, #eef8ff 46%, #fff6ef 100%);
}

.sidebar {
    background:
        radial-gradient(circle at 18% 8%, rgba(255,255,255,0.22), transparent 8rem),
        radial-gradient(circle at 100% 24%, rgba(242,75,167,0.28), transparent 14rem),
        linear-gradient(155deg, #06b995 0%, #14afd4 43%, #6a5cff 72%, #c64cd6 100%);
    box-shadow: 18px 0 46px rgba(11, 55, 77, 0.22);
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.06) 27%, transparent 28%),
        radial-gradient(circle at 70% 86%, rgba(255,255,255,0.18), transparent 10rem);
    mix-blend-mode: screen;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-header {
    padding: 18px 12px 22px;
}

.brand-icon {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 15px 35px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.75);
}

.brand-block h1 {
    font-size: 1.56rem;
    line-height: 0.95;
    text-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.status-pill {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.nav-button {
    min-height: 58px;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.90);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.32);
    transform: translateX(5px) scale(1.01);
}

.nav-button.active {
    background: rgba(255,255,255,0.96);
    color: #083824;
    border-color: rgba(255,255,255,0.72);
    box-shadow: 0 18px 36px rgba(24, 76, 106, 0.22), inset 0 1px 0 rgba(255,255,255,0.85);
    transform: translateX(6px);
}

.nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.90), rgba(255,255,255,0.34)),
        linear-gradient(135deg, var(--vivid-teal), var(--vivid-purple));
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.55);
    color: #083824;
    font-size: 1.1rem;
}

.nav-button.active .nav-icon {
    background: linear-gradient(135deg, #00f5c8 0%, #22d3ee 42%, #f24ba7 100%);
    color: #06202c;
}

.profile-chip,
.mobile-menu-panel {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
    backdrop-filter: blur(14px);
}

.language-switcher {
    border-color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.86);
    box-shadow: 0 18px 45px rgba(28, 73, 101, 0.16);
}

.hero-panel,
.hero-panel-vivid {
    background:
        radial-gradient(circle at 88% 24%, rgba(255,255,255,0.24), transparent 10rem),
        linear-gradient(125deg, #00b894 0%, #15b9dc 38%, #7657f3 68%, #f04ca8 100%);
    box-shadow: 0 28px 70px rgba(32, 79, 122, 0.24);
    border: 1px solid rgba(255,255,255,0.34);
}

.hero-panel::before,
.hero-panel-vivid::before {
    content: "";
    position: absolute;
    inset: -70px auto auto -90px;
    width: 320px;
    height: 320px;
    border-radius: 58px;
    transform: rotate(24deg);
    background: linear-gradient(90deg, rgba(255,255,255,0.34), rgba(255,255,255,0.04));
    pointer-events: none;
}

.hero-panel::after,
.hero-panel-vivid::after {
    width: 360px;
    height: 360px;
    background: rgba(255,255,255,0.16);
    filter: blur(0.2px);
}

.hero-kicker,
.stat-card {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
    backdrop-filter: blur(12px);
}

.panel,
.glass-panel {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 18px 48px rgba(36, 87, 117, 0.12);
    backdrop-filter: blur(14px);
}

.section-title h2 {
    letter-spacing: -0.04em;
    font-size: clamp(1.35rem, 2.3vw, 2.05rem);
    color: #072235;
}

.plant-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plant-card {
    min-height: 332px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.78);
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.92), transparent 9rem),
        linear-gradient(145deg, rgba(255,255,255,0.95), rgba(242,248,255,0.74));
    box-shadow: 0 22px 54px rgba(31, 79, 124, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plant-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 32%, transparent 33%);
    pointer-events: none;
}

.plant-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 70px rgba(40, 83, 143, 0.22);
}

.plant-title h3 {
    color: #081f32;
    font-size: 1.28rem;
}

.plant-visual {
    min-height: 150px;
    border-radius: 26px;
}

.plant-icon {
    width: 84px;
    height: 84px;
    border-radius: 30px;
    font-size: 3.05rem;
}

.plant-code {
    font-size: 0.95rem;
}

.btn {
    background: linear-gradient(135deg, #00b894, #2f80ed);
    box-shadow: 0 14px 28px rgba(47, 128, 237, 0.22);
}

.btn:hover {
    background: linear-gradient(135deg, #00c7a2, #8a35ea);
}

.btn.secondary {
    border-color: rgba(255,255,255,0.82);
    background: rgba(255,255,255,0.92);
    color: #123d4e;
    box-shadow: 0 10px 24px rgba(23, 83, 122, 0.10);
}

.badge {
    background: rgba(0,184,148,0.12);
    color: #076047;
}

.badge.sand {
    background: rgba(255,234,167,0.65);
    color: #6d4c00;
}

.badge.warn,
.risk-badge.medium {
    background: rgba(255, 184, 77, 0.22);
    color: #7a4900;
}

.metric-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.92), rgba(243,251,255,0.78));
    border-color: rgba(255,255,255,0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.70), 0 12px 28px rgba(30, 88, 122, 0.08);
}

.calendar-control-panel {
    overflow: hidden;
    position: relative;
}

.calendar-control-panel::after {
    content: "";
    position: absolute;
    inset: auto -90px -150px auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,184,169,0.15), rgba(242,75,167,0.16));
}

.calendar-ribbon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(0,184,169,0.14), rgba(47,128,237,0.12)),
        rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.72);
}

.calendar-ribbon-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    font-size: 1.9rem;
    box-shadow: 0 14px 28px rgba(34, 88, 121, 0.18);
}

.calendar-ribbon strong,
.calendar-ribbon span {
    display: block;
}

.calendar-ribbon strong {
    color: #082033;
}

.calendar-ribbon span {
    margin-top: 0.12rem;
    color: #556579;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.month-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 16% 10%, rgba(255,255,255,0.95), transparent 7rem),
        linear-gradient(145deg, rgba(255,255,255,0.92), rgba(240,249,255,0.76));
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 16px 38px rgba(39, 85, 124, 0.13);
}

.month-card::after {
    content: "";
    position: absolute;
    inset: auto -56px -74px auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,184,169,0.17), rgba(242,75,167,0.16));
}

.month-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.month-index {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #00b894, #2f80ed 56%, #8a35ea);
    box-shadow: 0 12px 24px rgba(47,128,237,0.22);
}

.month-head h3 {
    margin: 0;
    color: #082033;
}

.month-head p {
    margin: 0.1rem 0 0;
    color: #657486;
    font-size: 0.82rem;
    font-weight: 700;
}

.month-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.52rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.month-card li {
    padding: 0.58rem 0.7rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.70);
    color: #33445a;
}

.effects-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.effect-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 5%, rgba(255,255,255,0.90), transparent 8rem),
        linear-gradient(145deg, rgba(255,255,255,0.92), rgba(241,250,255,0.78));
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 18px 42px rgba(35, 86, 122, 0.13);
}

.effect-card.primary {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 1rem;
    grid-row: span 2;
}

.effect-card.caution {
    background:
        linear-gradient(135deg, rgba(255, 246, 222, 0.96), rgba(255,255,255,0.82)),
        radial-gradient(circle at 90% 10%, rgba(242,75,167,0.12), transparent 8rem);
}

.effect-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    color: #fff;
    font-size: 3rem;
    box-shadow: 0 18px 32px rgba(28, 87, 125, 0.18), inset 0 1px 0 rgba(255,255,255,0.32);
}

.use-list {
    display: grid;
    gap: 0.65rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.use-list li {
    padding: 0.72rem 0.85rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(255,255,255,0.72);
    color: #33445a;
}

.use-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.use-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0.7rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.74);
    background: rgba(255,255,255,0.82);
    color: #123d4e;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(35,86,122,0.10);
}

.use-chip.active,
.use-chip:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 18px 36px rgba(35,86,122,0.16);
}

.use-chip-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    font-size: 1.45rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}

html[dir="rtl"] .nav-button:hover,
html[dir="rtl"] .nav-button.active {
    transform: translateX(-6px);
}

html[dir="rtl"] .nav-button {
    text-align: right;
}

@media (max-width: 980px) {
    .mobile-header {
        background:
            linear-gradient(135deg, #00b894 0%, #15b9dc 44%, #8a35ea 100%);
    }
    .effects-layout {
        grid-template-columns: 1fr;
    }
    .effect-card.primary {
        grid-template-columns: 1fr;
        grid-row: auto;
    }
    .plant-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}
