
:root {
    --eco-green: #2c9b60;
    --eco-green-dark: #176843;
    --eco-green-soft: #e8f7ef;
    --eco-bg: #f4fbf7;
    --eco-surface: #ffffff;
    --eco-text: #1f3e2a;
    --eco-muted: #5f7f6a;
    --eco-gray: #ddece2;
    --eco-border: rgba(23, 104, 67, 0.15);
    --shadow-1: 0 10px 28px rgba(16, 47, 30, 0.08);
    --shadow-2: 0 20px 40px rgba(16, 47, 30, 0.14);
}
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--eco-text);
    background: radial-gradient(circle at top right, #e8f7ef 0%, #f4fbf7 40%, #f8fdf9 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header / navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(23, 104, 67, 0.08);
    box-shadow: 0 8px 24px rgba(16, 47, 30, 0.05);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
    padding: 0.6rem 0;
    max-width: 1460px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.brand-title {
    font-weight: 800;
    color: var(--eco-green-dark);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}


.main-nav {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-left: 0.65rem;
}

    .main-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 0.5rem 0.75rem;
        border-radius: 999px;
        color: var(--eco-text);
        font-weight: 700;
        font-size: 0.88rem;
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.2s ease;
    }
        .main-nav .nav-link:hover {
            background: var(--eco-green-soft);
            color: var(--eco-green-dark);
            transform: translateY(-1px);
        }
.main-nav .nav-icon {
    font-size: 1rem;
    line-height: 1;
}

        



.nav-actions {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    
}

.nav-search {
    display: flex;
    align-items: center;
    background: var(--eco-surface);
    border: 1px solid var(--eco-border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    width: 290px;
    box-shadow: 0 6px 18px rgba(21, 66, 42, 0.08);
}

.search-icon {
    background: transparent;
    border: 0;
    margin-right: 6px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--eco-green-dark);
}

.nav-search-input {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--eco-text);
    width: 100%;
    font-size: 0.92rem;
}

.auth-buttons {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    white-space: nowrap;
}

.btn {
    padding: 0.52rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-link,
.btn-link:visited {
    color: var(--eco-text);
}
.btn-ghost {
    border: 1px solid rgba(23, 104, 67, 0.2);
    background: rgba(255, 255, 255, 0.8);
}


.btn-primary {
    border: 0;
    background: linear-gradient(135deg, #2c9b60, #1f7f4f);
    color: #fff;
    box-shadow: 0 10px 22px rgba(28, 111, 69, 0.25);
}
    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(28, 111, 69, 0.3);
    }


.auth-buttons .btn-primary {
    min-width: 115px;
}


.nav-toggle {
    display: none;
    border: 1px solid rgba(23, 104, 67, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}


.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid rgba(23, 104, 67, 0.08);
    box-shadow: inset 0 6px 12px rgba(15, 44, 28, 0.04);
}
    .mobile-nav nav {
        display: flex;
        flex-direction: column;
        padding: 0.65rem 1rem 0.8rem;
        gap: 0.35rem;
    }


    .mobile-nav .nav-link {
        padding: 0.6rem 0.7rem;
        border-radius: 10px;
        display: flex;
        gap: 0.5rem;
        align-items: center;
        color: var(--eco-text);
        text-decoration: none;
        font-weight: 600;
    }

        .mobile-nav .nav-link:hover {
            background: var(--eco-green-soft);
        }

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 1.4rem auto 2rem;
    padding: 0 1rem;
}

.home-page {
    display: grid;
    gap: 1.4rem;
}
.hero-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f1fbf5 100%);
    border: 1px solid var(--eco-gray);
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: var(--shadow-1);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.2rem;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--eco-green-dark);
    background: var(--eco-green-soft);
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    margin-bottom: 0.7rem;
}


.hero-title {
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    font-weight: 900;
    color: var(--eco-green-dark);
    margin: 0 0 0.55rem;
    line-height: 1.1;
}

.lead {
    color: var(--eco-muted);
    margin: 0;
    font-size: 1.03rem;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.hero-highlights {
    display: grid;
    gap: 0.7rem;
}

.highlight-item {
    background: #fff;
    border: 1px solid var(--eco-gray);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    display: grid;
    gap: 0.15rem;
}

    .highlight-item strong {
        font-size: 1.4rem;
        color: var(--eco-green-dark);
        line-height: 1;
    }

    .highlight-item span {
        font-size: 0.9rem;
        color: var(--eco-muted);
    }

.content-section {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 104, 67, 0.09);
    border-radius: 20px;
    padding: 1.1rem;
    box-shadow: 0 8px 20px rgba(16, 47, 30, 0.04);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-title {
    border-left: 6px solid var(--eco-green);
    padding-left: 12px;
    font-weight: 800;
    color: var(--eco-text);
    margin: 0 0 0.85rem;
}

.section-link {
    color: var(--eco-green-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}


.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  
}


.news-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}


.store-card {
    border-radius: 14px;
    background: var(--eco-surface);
    border: 1px solid var(--eco-gray);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 18px rgba(22, 32, 22, 0.05);
}
    .store-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-2);
    }


    .store-card img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        display: block;
    }
.store-card-placeholder {
    height: 170px;
    background: #eef5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d9585;
    font-weight: 600;
}

.store-card .card-body {
    padding: 0.95rem;
}


.store-card .card-title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    color: var(--eco-green-dark);
    font-size: 1.05rem;
}

.store-card p {
    margin: 0 0 0.45rem;
    color: var(--eco-muted);
    font-size: 0.94rem;
}


.btn-outline-success {
    border: 1px solid var(--eco-green);
    color: var(--eco-green);
    background: transparent;
    padding: 0.44rem 0.8rem;
    border-radius: 999px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

    .btn-outline-success:hover {
        background: var(--eco-green);
        color: #fff;
    }


.card-plain {
    background: var(--eco-surface);
    border: 1px solid var(--eco-gray);
    border-radius: 14px;
    padding: 0.95rem;
    box-shadow: 0 6px 18px rgba(22, 32, 22, 0.05);
    transition: transform 0.18s ease;
}
    .card-plain:hover {
        transform: translateY(-3px);
    }



.stat-box {
    padding: 1rem;
    background: var(--eco-surface);
    border-radius: 12px;
    border: 1px solid var(--eco-gray);
    text-align: center;
    
}

    .stat-box h2 {
        margin: 0;
        color: var(--eco-green-dark);
        font-size: 1.7rem;
    }

a:focus,
button:focus,
input:focus {
    outline: 2px solid rgba(37, 152, 90, 0.25);
    outline-offset: 2px;
}


.small-muted {
    color: var(--eco-muted);
    font-size: 0.94rem;
}

@media (max-width: 1320px) {
    .nav-search {
        display: none;
    }

    .main-nav .nav-link {
        padding: 0.45rem 0.62rem;
    }
}

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-search {
        width: 220px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .nav-search {
        display: none;
    }

    .brand-title {
        display: none;
    }

    .main-content {
        margin-top: 1rem;
    }

    .content-section,
    .hero-panel {
        border-radius: 16px;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.65rem;
    }
}

.profile-dropdown {
    position: relative;
}

    .profile-dropdown summary {
        list-style: none;
        cursor: pointer;
    }

    .profile-dropdown .dropdown-menu {
        position: absolute;
        right: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 8px;
        min-width: 180px;
        z-index: 50;
        display: grid;
        gap: 6px;
    }

        .profile-dropdown .dropdown-menu a, .profile-dropdown .dropdown-menu button {
            text-align: left;
            padding: 6px 8px;
            border-radius: 6px;
            border: 0;
            background: transparent;
            width: 100%;
        }

.profile-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9f6df;
    font-size: 32px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
}

.profile-shell,
.stats-shell {
    display: grid;
    gap: 1.25rem;
}

.profile-hero-card,
.profile-edit-card,
.stats-section-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4fff7 100%);
    border: 1px solid #ddf5e4;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(16, 84, 51, 0.08);
    padding: 1.25rem;
}

.profile-hero-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.profile-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #3d8b5f;
    font-weight: 700;
    margin-bottom: .4rem;
}

.profile-meta {
    color: #4d6359;
    margin-top: .3rem;
}

.profile-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1rem 0;
}

.profile-pill {
    background: #e7f8ee;
    border: 1px solid #c5ebd1;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-weight: 600;
}

.profile-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-top: .8rem;
}

.profile-success {
    margin-top: .9rem;
    color: #1f6f42;
    font-weight: 600;
}

.profile-edit-form {
    display: grid;
    gap: .55rem;
    max-width: 680px;
}

.profile-current-image {
    margin-top: .6rem;
}

.stats-header p {
    color: #4f655b;
}

.stats-header-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}

.modern-grid .stat-item {
    border: 1px solid #e1f3e7;
    box-shadow: 0 8px 20px rgba(16, 84, 51, 0.08);
}

.badge-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .45rem;
}

.joined-events-list {
    display: grid;
    gap: .6rem;
}

.joined-event-item {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    align-items: center;
    padding: .7rem .85rem;
    border-radius: 10px;
    border: 1px solid #dbeee2;
    background: #f8fdfa;
    color: inherit;
    text-decoration: none;
}

.store-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: .65rem;
}

@media (max-width: 768px) {
    .profile-hero-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-pill-list,
    .profile-actions {
        justify-content: center;
    }

    .joined-event-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
.producer-stores-shell {
    display: grid;
    gap: 1rem;
}

.producer-stores-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(120deg, #ecfff3 0%, #ffffff 100%);
    border: 1px solid #d8f2e3;
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: 0 10px 24px rgba(17, 98, 58, .08);
}

.producer-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.producer-mini-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e0f2e6;
    padding: .8rem;
    display: grid;
    gap: .2rem;
    box-shadow: 0 8px 16px rgba(16, 84, 51, 0.06);
}

    .producer-mini-card span {
        color: #4f655b;
        font-size: .9rem;
    }

    .producer-mini-card strong {
        font-size: 1.3rem;
        color: #1d6a3f;
    }

.producer-empty-state {
    background: #fff;
    border: 1px dashed #c8e8d3;
    border-radius: 16px;
    padding: 1.1rem;
}

.producer-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
}

.producer-store-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e1f1e7;
    box-shadow: 0 12px 22px rgba(16, 84, 51, 0.08);
}

.producer-store-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.producer-store-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8fbeF 0%, #d6f2e2 100%);
    font-size: 2rem;
}

.producer-store-content {
    padding: .9rem;
    display: grid;
    gap: .55rem;
}

.producer-store-top {
    display: flex;
    justify-content: space-between;
    gap: .4rem;
}

    .producer-store-top h3 {
        margin: 0;
    }

.producer-category {
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #3f845e;
    margin: 0;
}

.producer-rating {
    background: #ecf8f1;
    border: 1px solid #ccead8;
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
}

.producer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

    .producer-tags span {
        background: #f1fbf5;
        border: 1px solid #d9f0e2;
        border-radius: 999px;
        padding: .2rem .55rem;
        font-size: .82rem;
    }

.producer-card-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

    .producer-card-actions form {
        margin: 0;
    }

.points-overview-card {
    display: grid;
    gap: .75rem;
}

.points-progress-track {
    width: 100%;
    background: #eaf7ef;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

    .points-progress-track span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #2ca466 0%, #6dd89b 100%);
    }

.points-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

    .points-breakdown span {
        background: #f3fcf6;
        border: 1px solid #ddf2e4;
        border-radius: 999px;
        padding: .25rem .65rem;
        font-size: .86rem;
    }

@media (max-width: 768px) {
    .producer-stores-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
