/* ================================================================
   Plantsky — Main Stylesheet
   Premium Botanical / Dark Luxe Theme
   Palette: Deep Green, Emerald, Olive, Warm Cream, Sandy Peach
   Inspired by: Natural History Museum, Botanical Garden aesthetics
   ================================================================ */

/* ── Custom Fonts ───────────────────────────────────────────────── */
@font-face {
    font-family: 'Strogo';
    src: url('/fonts/Strogo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
    /* Core palette — STRICT from references */
    --noir: #0d1f17;
    --noir-deep: #081410;
    --noir-light: #1a3a2e;
    --emerald: #264E36;
    --emerald-soft: #2d5a3f;
    --olive: #85967E;
    --olive-light: #A3B396;
    --cream: #E8D5B5;
    --cream-soft: #D4C4A8;
    --sand: #D4B896;
    --peach: #C89B6D;
    --earth: #BB8B60;
    --earth-dark: #9A7350;

    /* Legacy compatibility aliases */
    --wasabi: #85967E;
    --khaki: #E8D5B5;

    /* Semantic tokens */
    --bg-page: #0d1f17;
    --bg-card: rgba(26, 58, 46, 0.4);
    --bg-card-solid: #1a3a2e;
    --bg-glass: rgba(38, 78, 54, 0.2);
    --green-dark: #264E36;
    --green-accent: #85967E;
    --green-light: #A3B396;
    --text-color: #E0DCD4;
    --text-muted: #8A8478;
    --text-heading: #E8D5B5;
    --card-bg: rgba(26, 58, 46, 0.4);
    --error-red: #C0392B;
    --error-bg: rgba(192, 57, 43, 0.15);
    --indoor-green: #5DAE7A;
    --outdoor-orange: #D48A3E;
    --ozon-blue: #005BFF;
    --wb-purple: #CB11AB;

    /* Surfaces */
    --nav-bg: rgba(13, 31, 23, 0.88);
    --footer-bg: #081410;
    --border-color: rgba(133, 150, 126, 0.2);
    --border-light: rgba(133, 150, 126, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.55);
    --glow-green: 0 0 40px rgba(133, 150, 126, 0.12);
    --glow-gold: 0 0 40px rgba(232, 213, 181, 0.1);

    /* Glass */
    --glass-bg: rgba(38, 78, 54, 0.2);
    --glass-border: rgba(133, 150, 126, 0.15);
    --glass-blur: 20px;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Transitions — premium feel */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-luxe: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Subtle organic texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Ccircle cx='30' cy='50' r='1' fill='%2385967E' opacity='0.4'/%3E%3Ccircle cx='110' cy='180' r='0.8' fill='%2385967E' opacity='0.3'/%3E%3Ccircle cx='220' cy='40' r='1.2' fill='%2385967E' opacity='0.2'/%3E%3Ccircle cx='150' cy='260' r='1' fill='%2385967E' opacity='0.3'/%3E%3Ccircle cx='270' cy='130' r='0.8' fill='%23E8D5B5' opacity='0.15'/%3E%3Ccircle cx='60' cy='240' r='0.6' fill='%23E8D5B5' opacity='0.1'/%3E%3Ccircle cx='200' cy='100' r='0.7' fill='%2385967E' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

/* Ambient gradient glow */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 15% 15%, rgba(38, 78, 54, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(200, 155, 109, 0.06) 0%, transparent 50%);
}

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

a {
    color: var(--olive);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--cream);
}

ul,
ol {
    list-style: none;
}

/* ── Typography — Premium Serif + Thin Sans ───────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Strogo', 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 0.5em;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.text-muted {
    color: var(--text-muted);
}

.text-muted-soft {
    color: rgba(224, 220, 212, 0.55);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 800px;
}

/* ── Main content ──────────────────────────────────────────────── */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-bottom: 0;
    padding-top: var(--nav-height);
}

/* ── Navigation — Refined Premium ──────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(133, 150, 126, 0.08);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.main-nav.scrolled {
    background: rgba(13, 31, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cream);
    font-family: 'Strogo', 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: normal;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    letter-spacing: 0.05em;
}

.nav-logo:hover {
    color: var(--cream);
    opacity: 0.85;
}

.nav-logo-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.nav-logo-text {
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.1rem;
    color: rgba(224, 220, 212, 0.6);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav-link:hover {
    color: var(--cream);
    background: rgba(133, 150, 126, 0.1);
}

.nav-link.active {
    color: var(--cream);
    background: rgba(232, 213, 181, 0.08);
}

.nav-link-admin {
    color: var(--sand) !important;
    border: 1px solid rgba(212, 184, 150, 0.25);
}

.nav-link-admin:hover {
    background: rgba(212, 184, 150, 0.1) !important;
    color: var(--cream) !important;
}

/* Burger menu */
.nav-toggle-input {
    display: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.burger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--cream);
    border-radius: 2px;
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    .nav-burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(13, 31, 23, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        transform: translateY(-120%);
        transition: transform var(--transition-base);
        border-bottom: 1px solid var(--border-light);
        z-index: 999;
    }

    .nav-toggle-input:checked~.nav-links {
        transform: translateY(0);
    }

    .nav-toggle-input:checked~.nav-burger .burger-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .nav-toggle-input:checked~.nav-burger .burger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-input:checked~.nav-burger .burger-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }
}

/* ── Buttons — Premium Design ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--sand), var(--peach));
    color: var(--noir);
    border: 1px solid rgba(212, 184, 150, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cream), var(--sand));
    color: var(--noir);
    box-shadow: var(--glow-gold);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(133, 150, 126, 0.2);
    color: #fff;
}

.btn-danger {
    background: var(--error-red);
    color: #fff;
}

.btn-danger:hover {
    background: #A93226;
    color: #fff;
}

.btn-ozon {
    background: var(--ozon-blue);
    color: #fff;
}

.btn-ozon:hover {
    background: #004ADB;
    color: #fff;
}

.btn-wb {
    background: var(--wb-purple);
    color: #fff;
}

.btn-wb:hover {
    background: #A30E8E;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(133, 150, 126, 0.3);
    color: var(--olive);
}

.btn-outline:hover {
    border-color: var(--cream);
    color: var(--cream);
    background: rgba(232, 213, 181, 0.05);
}

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* ── Glass Card — Premium ─────────────────────────────────────── */
.card,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--glass-border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(133, 150, 126, 0.25);
}

.card-body {
    padding: 1.25rem;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

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

.card-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Plant Card ────────────────────────────────────────────────── */
.plant-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.plant-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover), var(--glow-green);
    border-color: rgba(133, 150, 126, 0.3);
}

.plant-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plant-card-link:hover {
    color: inherit;
}

.plant-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--noir-light);
}

.plant-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.plant-card:hover .plant-card-image img {
    transform: scale(1.06);
}

.plant-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--noir-light) 100%);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.plant-card-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.plant-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.plant-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--cream);
    line-height: 1.3;
}

.plant-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.plant-card-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plant-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plant-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

/* ── Product Card ──────────────────────────────────────────────── */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(133, 150, 126, 0.3);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-link:hover {
    color: inherit;
}

.product-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--noir-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--noir-light) 100%);
}

.product-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.product-card-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.product-card-category {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card-price {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cream);
}

.product-card-actions {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    white-space: nowrap;
    line-height: 1.4;
}

.plant-type-badge {
    color: #fff;
}

.badge-indoor {
    background: rgba(93, 174, 122, 0.8);
    backdrop-filter: blur(4px);
}

.badge-outdoor {
    background: rgba(212, 138, 62, 0.8);
    backdrop-filter: blur(4px);
}

.badge-both {
    background: linear-gradient(135deg, rgba(93, 174, 122, 0.8) 0%, rgba(212, 138, 62, 0.8) 100%);
}

.badge-icon {
    font-size: 0.85em;
    line-height: 1;
}

.badge-text {
    line-height: 1;
}

.badge-published {
    background: rgba(93, 174, 122, 0.2);
    color: var(--indoor-green);
}

.badge-draft {
    background: rgba(232, 213, 181, 0.12);
    color: var(--cream);
}

/* ── Difficulty Leaves ─────────────────────────────────────────── */
.difficulty-leaves {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.difficulty-leaf {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.leaf-active {
    color: var(--olive);
}

.leaf-inactive {
    color: rgba(133, 150, 126, 0.2);
    opacity: 0.5;
}

/* ── Tags ──────────────────────────────────────────────────────── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    color: #fff;
    text-decoration: none;
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.tag-badge:hover {
    opacity: 0.85;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Progress Bar ──────────────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(13, 31, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reading-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--olive) 0%, var(--cream) 50%, var(--olive) 100%);
    transition: width 0.3s ease;
    opacity: 0.2;
}

.reading-progress-text {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ── Product Ad Block ──────────────────────────────────────────── */
.product-ad {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--olive);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(var(--glass-blur));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-ad.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-ad-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--olive);
    margin-bottom: 0.75rem;
}

.product-ad-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-ad-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--noir-light);
}

.product-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-ad-placeholder {
    width: 80px;
    height: 80px;
}

.product-ad-info {
    flex: 1;
    min-width: 0;
}

.product-ad-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-ad-title a {
    color: var(--text-color);
}

.product-ad-title a:hover {
    color: var(--cream);
}

.product-ad-price {
    display: block;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-ad-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Tip Block ─────────────────────────────────────────────────── */
.tip-block {
    position: relative;
    background: rgba(232, 213, 181, 0.06);
    border: 1px solid rgba(232, 213, 181, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem 1rem 3rem;
    margin: 1rem 0;
}

.tip-block::before {
    content: '\1F4A1';
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    font-size: 1.2rem;
    line-height: 1;
}

.tip-block-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 0.25rem;
}

.tip-block p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── Mistake Block ─────────────────────────────────────────────── */
.mistake-block {
    position: relative;
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-left: 4px solid var(--error-red);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem 1rem 3rem;
    margin: 1rem 0;
}

.mistake-block::before {
    content: '\26A0\FE0F';
    position: absolute;
    left: 0.75rem;
    top: 0.85rem;
    font-size: 1.2rem;
    line-height: 1;
}

.mistake-block-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--error-red);
    margin-bottom: 0.25rem;
}

.mistake-block p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── Hero Section (legacy) ────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--noir) 0%, var(--emerald) 50%, var(--noir) 100%);
    color: #fff;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 31, 23, 0.88) 0%, rgba(38, 78, 54, 0.5) 50%, rgba(13, 31, 23, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero h1,
.hero-title {
    color: var(--cream);
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.hero p,
.hero-subtitle {
    color: rgba(224, 220, 212, 0.7);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 1.05rem;
    padding: 0.85rem 2.5rem;
}

.hero-cta {
    background: linear-gradient(135deg, var(--sand), var(--peach)) !important;
    color: var(--noir) !important;
    font-weight: 700;
    border: none;
}

.hero-cta:hover {
    box-shadow: 0 0 30px rgba(232, 213, 181, 0.25);
    color: var(--noir) !important;
}

.hero-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.hero-decor-left {
    left: -40px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    transform: rotate(-15deg);
}

.hero-decor-right {
    right: -30px;
    top: -20px;
    width: 160px;
    height: 160px;
    transform: rotate(25deg);
}

.parallax-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .parallax-hero {
        background-attachment: scroll;
    }
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-label .required {
    color: var(--error-red);
    margin-left: 0.15rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    line-height: 1.5;
    backdrop-filter: blur(8px);
}

.form-control:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(133, 150, 126, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2385967E' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--olive);
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
    font-size: 0.9rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error-red);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(93, 174, 122, 0.12);
    color: var(--indoor-green);
    border: 1px solid rgba(93, 174, 122, 0.25);
}

.alert-error {
    background: var(--error-bg);
    color: #E57373;
    border: 1px solid rgba(192, 57, 43, 0.25);
}

.alert-warning {
    background: rgba(232, 213, 181, 0.08);
    color: var(--cream);
    border: 1px solid rgba(232, 213, 181, 0.2);
}

.alert-info {
    background: rgba(133, 150, 126, 0.08);
    color: var(--olive);
    border: 1px solid rgba(133, 150, 126, 0.2);
}

/* ── Section titles ────────────────────────────────────────────── */
.section {
    padding: 3.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title-month {
    font-family: 'Nunito', sans-serif;
    font-size: 0.5em;
    color: var(--olive);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.section-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, var(--olive), var(--cream));
    border-radius: 2px;
    margin: 0 auto 2.5rem;
}

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── Horizontal scroll ─────────────────────────────────────────── */
.scroll-row,
.products-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.scroll-row::-webkit-scrollbar,
.products-scroll::-webkit-scrollbar {
    height: 4px;
}

.scroll-row::-webkit-scrollbar-track,
.products-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-row::-webkit-scrollbar-thumb,
.products-scroll::-webkit-scrollbar-thumb {
    background: rgba(133, 150, 126, 0.2);
    border-radius: 3px;
}

.scroll-row>*,
.products-scroll>* {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 280px;
}

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

/* ── Pagination ────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a {
    color: var(--text-color);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.pagination a:hover {
    background: var(--olive);
    color: var(--noir);
    border-color: var(--olive);
}

.pagination .active {
    background: var(--olive);
    color: var(--noir);
    border: 1px solid var(--olive);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Tables ────────────────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.table th {
    background: rgba(38, 78, 54, 0.3);
    font-weight: 700;
    color: var(--cream);
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.table tr:hover td {
    background: rgba(133, 150, 126, 0.06);
}

.table-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.table-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

/* ── Footer — Premium ──────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: rgba(224, 220, 212, 0.5);
    padding: 4rem 0 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(133, 150, 126, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(133, 150, 126, 0.08);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cream);
    font-family: 'Strogo', 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: normal;
    text-decoration: none;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-logo:hover {
    color: var(--cream);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links h4 {
    color: var(--cream-soft);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(224, 220, 212, 0.45);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(133, 150, 126, 0.3);
    font-size: 0.8rem;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ── Falling Leaves (legacy — kept for other pages) ───────────── */
.falling-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.falling-leaf {
    position: absolute;
    top: -50px;
    opacity: 0;
    animation: leafFall linear infinite;
}

.falling-leaf svg {
    width: 24px;
    height: 24px;
    color: var(--olive);
}

.falling-leaf:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.falling-leaf:nth-child(2) {
    left: 25%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.falling-leaf:nth-child(3) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.falling-leaf:nth-child(4) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.falling-leaf:nth-child(5) {
    left: 70%;
    animation-duration: 13s;
    animation-delay: 3s;
}

.falling-leaf:nth-child(6) {
    left: 85%;
    animation-duration: 16s;
    animation-delay: 5s;
}

.falling-leaf:nth-child(7) {
    left: 5%;
    animation-duration: 14s;
    animation-delay: 6s;
}

.falling-leaf:nth-child(8) {
    left: 35%;
    animation-duration: 12s;
    animation-delay: 7s;
}

.falling-leaf:nth-child(9) {
    left: 60%;
    animation-duration: 15s;
    animation-delay: 3.5s;
}

.falling-leaf:nth-child(10) {
    left: 90%;
    animation-duration: 11s;
    animation-delay: 8s;
}

.falling-leaf:nth-child(odd) svg {
    width: 20px;
    height: 20px;
}

.falling-leaf:nth-child(3n) svg {
    width: 16px;
    height: 16px;
    color: var(--cream);
    opacity: 0.4;
}

@keyframes leafFall {
    0% {
        top: -50px;
        opacity: 0;
        transform: rotate(0deg) translateX(0);
    }

    10% {
        opacity: 0.25;
    }

    50% {
        transform: rotate(180deg) translateX(80px);
    }

    90% {
        opacity: 0.1;
    }

    100% {
        top: 105vh;
        opacity: 0;
        transform: rotate(360deg) translateX(-40px);
    }
}

@keyframes leafSway {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* ── Fade-in ───────────────────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Search Bar ────────────────────────────────────────────────── */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(133, 150, 126, 0.15);
}

.search-bar-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

.empty-message {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

/* ── Spinner ───────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--olive);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Tooltip ───────────────────────────────────────────────────── */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.65rem;
    background: var(--noir-light);
    color: var(--text-color);
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mr-1 {
    margin-right: 0.5rem;
}

.ml-1 {
    margin-left: 0.5rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.d-inline-flex {
    display: inline-flex;
}

.align-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.rounded {
    border-radius: var(--radius-md);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero h1,
    .hero-title {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        min-height: 360px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .plants-grid {
        grid-template-columns: 1fr;
    }

    .product-ad-content {
        flex-direction: column;
    }

    .product-ad-image {
        width: 100%;
        height: 120px;
    }
}

@media print {
    .no-print {
        display: none !important;
    }
}