* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f8f5;
    color: #222;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 225px;
    padding: 25px 15px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo i {
    font-size: 38px;
    color: #258c43;
}

.logo h2 {
    margin-top: 8px;
    font-size: 28px;
}

.logo p {
    margin-top: 3px;
    font-size: 11px;
    color: #777;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    padding: 13px;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sidebar nav a i {
    width: 28px;
    color: #758078;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #eaf5e8;
    color: #176b45;
}

.sidebar nav a.active {
    border-left: 5px solid #176b45;
}

.sidebar-message {
    margin-top: 38px;
    padding: 22px 15px;
    border-radius: 18px;
    background: #edf7e9;
    text-align: center;
}

.sidebar-message i {
    color: #258c43;
    font-size: 30px;
}

.sidebar-message h3 {
    margin: 10px;
}

.sidebar-message p {
    font-size: 13px;
    line-height: 1.5;
}

.account {
    margin-top: auto;
    padding: 15px;
    border-radius: 10px;
    background: #f0f8ed;
    font-size: 13px;
}

.account h4 {
    margin: 7px 0;
}

.account a {
    color: #176b45;
    text-decoration: none;
}

.logout {
    padding: 15px;
    color: #333;
    text-decoration: none;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 20px 25px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.search-box {
    width: 48%;
    padding: 13px 18px;
    border-radius: 30px;
    background: #eef1ef;
    color: #687078;
}

.search-box input {
    width: 85%;
    margin-left: 10px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.profile,
.profile-info {
    display: flex;
    align-items: center;
}

.profile {
    gap: 22px;
}

.profile-info {
    gap: 10px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #176b45;
    color: white;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.hero {
    min-height: 300px;
    padding: 38px 42px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(110deg, #edf8df, #e4f2d9);
}

.hero-watermark {
    position: absolute;
    top: 50%;
    right: 5%;
    width: min(36%, 390px);
    max-height: 88%;
    object-fit: contain;
    object-position: center;
    transform: translateY(-50%);
    opacity: .16;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.hero h1 {
    margin-bottom: 12px;
    color: #176b45;
    font-size: 14px;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 38px;
    line-height: 1.15;
}

.hero h2 span {
    color: #258c43;
}

.hero p {
    max-width: 460px;
    margin-top: 12px;
    color: #59685e;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hero-buttons button,
.bottom-banner button {
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    font-weight: bold;
}

.primary-btn {
    background: #176b45;
    color: white;
}

.secondary-btn {
    background: white;
    color: #176b45;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0 26px;
}

.feature-card {
    min-height: 80px;
    padding: 14px;
    border: 1px solid #e5ebe6;
    border-radius: 13px;
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card > i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #edf7e9;
    color: #176b45;
    display: grid;
    place-items: center;
}

.feature-card h3 {
    margin-bottom: 5px;
    font-size: 13px;
}

.feature-card p {
    color: #68746e;
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    align-items: start;
}

.donations-section,
.impact-section,
.nearby-section {
    padding: 18px;
    border: 1px solid #e5ebe6;
    border-radius: 14px;
    background: white;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-heading h2,
.impact-section > h2,
.nearby-section > h2 {
    font-size: 17px;
}

.section-heading h2 i,
.impact-section > h2 i,
.nearby-section > h2 i {
    margin-right: 6px;
    color: #176b45;
}

.section-heading a {
    color: #176b45;
    text-decoration: none;
    font-size: 12px;
}

.food-item {
    display: grid;
    grid-template-columns: 95px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #edf0ed;
}

.food-item img {
    display: none;
}

/* The image files are empty, so these small colour blocks stand in for them. */
.food-item::before {
    content: "🥗";
    width: 95px;
    height: 78px;
    border-radius: 10px;
    background: #edf5e5;
    display: grid;
    place-items: center;
    font-size: 32px;
    grid-row: span 2;
}

.food-item:nth-of-type(3)::before {
    content: "🥖";
    background: #f8edda;
}

.food-item:nth-of-type(4)::before {
    content: "🍛";
    background: #f5ead5;
}

.food-details h3 {
    margin-bottom: 6px;
    font-size: 13px;
}

.food-details p {
    margin-top: 4px;
    color: #68746e;
    font-size: 11px;
}

.food-details p i {
    width: 14px;
    color: #176b45;
}

.food-source {
    color: #879189;
    font-size: 10px;
}

.food-item button {
    padding: 8px 10px;
    border: 1px solid #cfe1d4;
    border-radius: 7px;
    background: white;
    color: #176b45;
    font-size: 11px;
}

.right-section {
    display: grid;
    gap: 16px;
}

.impact-section > h2,
.nearby-section > h2 {
    margin-bottom: 16px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.impact-stats > div {
    padding: 12px 5px;
    border-radius: 10px;
    background: #f6f9f6;
}

.impact-stats i {
    color: #176b45;
}

.impact-stats h2 {
    margin: 7px 0 4px;
    font-size: 15px;
}

.impact-stats p {
    color: #68746e;
    font-size: 10px;
}

.thank-you {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 13px;
    border-radius: 10px;
    background: #edf7e9;
}

.thank-you > i {
    color: #d59d28;
    font-size: 22px;
}

.thank-you h3 {
    margin-bottom: 4px;
    font-size: 13px;
}

.thank-you p {
    color: #68746e;
    font-size: 11px;
    line-height: 1.4;
}

.map-placeholder {
    min-height: 170px;
    padding: 18px;
    border-radius: 10px;
    background: #edf5e9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.map-placeholder > i {
    margin-bottom: 10px;
    color: #176b45;
    font-size: 24px;
}

.map-placeholder h3 {
    margin-bottom: 5px;
    font-size: 13px;
}

.map-placeholder p {
    color: #68746e;
    font-size: 11px;
}

.bottom-banner {
    margin-top: 20px;
    padding: 22px 26px;
    border-radius: 14px;
    background: #176b45;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-banner h2 {
    font-size: 18px;
}

.bottom-banner p {
    margin-top: 6px;
    color: #d8eadc;
    font-size: 12px;
}

.bottom-banner button {
    background: white;
    color: #176b45;
}

@media (max-width: 1050px) {
    .sidebar {
        width: 205px;
    }

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

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

@media (max-width: 700px) {
    .container {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 12px;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        text-align: left;
    }

    .logo i {
        font-size: 22px;
    }

    .logo h2 {
        margin: 0;
        font-size: 20px;
    }

    .logo p,
    .sidebar-message,
    .account,
    .logout {
        display: none;
    }

    .sidebar nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar nav a {
        flex: 0 0 auto;
        padding: 9px;
        font-size: 12px;
    }

    .main-content {
        padding: 15px;
    }

    .search-box {
        width: 100%;
    }

    .profile {
        gap: 12px;
    }

    .profile-info span,
    .profile-info > i {
        display: none;
    }

    .hero {
        min-height: 255px;
        padding: 25px;
    }

    .hero h2 {
        font-size: 29px;
    }

    .hero-watermark {
        right: 2%;
        width: 43%;
        opacity: .12;
    }

    .features {
        gap: 9px;
    }

    .feature-card {
        padding: 10px;
    }

    .food-item {
        grid-template-columns: 75px 1fr;
    }

    .food-item::before {
        width: 75px;
        height: 70px;
    }

    .food-item button {
        grid-column: 2;
        justify-self: start;
    }
}


.empty-message {
    padding: 16px 0;
    color: #68746e;
    font-size: 13px;
}

.food-item button:disabled {
    background: #edf7e9;
    color: #176b45;
    cursor: default;
}

.food-item[hidden] {
    display: none;
}

.register-page {
    min-height: 100vh;
    padding: 30px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-card {
    width: 100%;
    max-width: 460px;
    padding: 30px;
    border: 1px solid #e5ebe6;
    border-radius: 16px;
    background: white;
}

.register-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #176b45;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
}

.register-logo i {
    color: #258c43;
}

.register-card h1 {
    font-size: 25px;
}

.register-intro {
    margin: 8px 0 22px;
    color: #68746e;
    font-size: 14px;
    line-height: 1.5;
}

/* Shared, consistently stacked authentication forms (login + registration). */
.register-card,
.register-card * {
    box-sizing: border-box;
}

.register-card {
    width: min(100%, 480px);
}

#login-form,
#register-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

#login-form label,
#register-form label {
    display: block;
    margin-top: 7px;
    color: #2d4034;
    font-size: 13px;
    font-weight: 700;
}

#login-form input,
#login-form select,
#register-form input,
#register-form select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #d9e1db;
    border-radius: 8px;
    background: #fff;
    color: #25352b;
    font: inherit;
    font-size: 14px;
}

#login-form input:focus,
#login-form select:focus,
#register-form input:focus,
#register-form select:focus {
    outline: 2px solid #b6d9c2;
    border-color: #176b45;
}

#login-form button,
#register-form button {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #176b45;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#login-form button:hover,
#register-form button:hover {
    background: #125638;
}

#login-form button:disabled,
#register-form button:disabled {
    opacity: .65;
    cursor: wait;
}

.register-message {
    margin-top: 12px;
    color: #176b45;
    font-size: 14px;
    line-height: 1.5;
}

.back-home {
    display: inline-block;
    margin-top: 14px;
    color: #176b45;
    font-size: 13px;
    text-decoration: none;
}

.demo-note {
    margin-top: 18px;
    color: #68746e;
    font-size: 11px;
    line-height: 1.5;
}

.bottom-banner .join-button {
    padding: 11px 16px;
    border-radius: 8px;
    background: white;
    color: #176b45;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.profile-page .topbar {
    margin-bottom: 20px;
}

.profile-eyebrow {
    margin-bottom: 5px;
    color: #68746e;
    font-size: 11px;
    letter-spacing: 1px;
}

.profile-page .topbar h1 {
    font-size: 25px;
}

.profile-home-link,
.profile-activity a {
    color: #176b45;
    font-size: 13px;
    text-decoration: none;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e5ebe6;
    border-radius: 14px;
    background: white;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #176b45;
    color: white;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: bold;
}

.profile-summary h2 {
    font-size: 20px;
}

.profile-summary p,
.profile-section-heading p,
.profile-activity p {
    margin-top: 5px;
    color: #68746e;
    font-size: 13px;
}

.profile-status {
    margin-left: auto;
    color: #176b45;
    font-size: 12px;
}

.profile-status i {
    margin-right: 5px;
    font-size: 9px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0;
}

.profile-stat,
.profile-details,
.profile-activity {
    border: 1px solid #e5ebe6;
    border-radius: 14px;
    background: white;
}

.profile-stat {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.profile-stat i {
    color: #176b45;
}

.profile-stat strong {
    font-size: 22px;
}

.profile-stat span {
    color: #68746e;
    font-size: 12px;
}

.profile-details {
    padding: 20px;
}

.profile-section-heading {
    margin-bottom: 8px;
}

.profile-section-heading h2,
.profile-activity h2 {
    font-size: 17px;
}

.profile-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #edf0ed;
    font-size: 13px;
}

.profile-detail-row span {
    color: #68746e;
}

.profile-detail-row strong {
    text-align: right;
}

.profile-activity {
    margin-top: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

@media (max-width: 700px) {
    .profile-stats {
        gap: 8px;
    }

    .profile-stat {
        padding: 12px;
    }

    .profile-activity {
        align-items: flex-start;
        flex-direction: column;
    }
}

.content-page .page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.page-heading h1 {
    font-size: 25px;
}

.page-heading > div > p:last-child {
    margin-top: 6px;
    color: #68746e;
    font-size: 13px;
}

.page-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #edf7e9;
    color: #176b45;
    font-size: 12px;
}

.offer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.offer-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5ebe6;
    border-radius: 13px;
    background: white;
}

.offer-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 11px;
    background: #edf5e5;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.offer-main {
    flex: 1;
    min-width: 0;
}

.offer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.offer-heading h2 {
    font-size: 14px;
}

.offer-heading span {
    color: #176b45;
    font-size: 10px;
    white-space: nowrap;
}

.offer-main > p {
    margin-top: 7px;
    color: #68746e;
    font-size: 11px;
    line-height: 1.4;
}

.offer-main .offer-place {
    color: #33443a;
}

.offer-place i {
    margin-right: 4px;
    color: #176b45;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #68746e;
    font-size: 10px;
}

.offer-request {
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #cfe1d4;
    border-radius: 7px;
    background: white;
    color: #176b45;
    font-size: 11px;
    cursor: pointer;
}

.offer-request:disabled {
    background: #edf7e9;
    cursor: default;
}

.activity-summary,
.impact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.activity-summary > div,
.impact-cards article {
    padding: 18px;
    border: 1px solid #e5ebe6;
    border-radius: 13px;
    background: white;
}

.activity-summary > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-summary span,
.impact-cards span {
    color: #68746e;
    font-size: 12px;
}

.activity-summary strong,
.impact-cards strong {
    font-size: 23px;
}

.activity-panel {
    margin-top: 16px;
    padding: 38px 20px;
    border: 1px solid #e5ebe6;
    border-radius: 14px;
    background: white;
    text-align: center;
}

.activity-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #edf7e9;
    color: #176b45;
    display: grid;
    place-items: center;
}

.activity-panel h2 {
    font-size: 17px;
}

.activity-panel p {
    max-width: 430px;
    margin: 8px auto 14px;
    color: #68746e;
    font-size: 13px;
    line-height: 1.5;
}

.activity-panel a {
    color: #176b45;
    font-size: 13px;
    text-decoration: none;
}

.impact-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 13px;
    background: #edf7e9;
    color: #176b45;
}

.impact-welcome > i {
    font-size: 27px;
}

.impact-welcome h2 {
    font-size: 16px;
}

.impact-welcome p {
    margin-top: 5px;
    color: #59685e;
    font-size: 12px;
}

.impact-cards article {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.impact-cards i {
    color: #176b45;
}

.impact-details {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid #e5ebe6;
    border-radius: 13px;
    background: white;
}

.impact-details h2 {
    font-size: 17px;
}

.impact-details > p {
    margin-top: 6px;
    color: #68746e;
    font-size: 12px;
}

.impact-progress {
    margin-top: 18px;
    color: #46554b;
    font-size: 12px;
}

.impact-progress div {
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf0ed;
}

.impact-progress i {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: #258c43;
}

.settings-panel {
    max-width: 760px;
    padding: 20px;
    border: 1px solid #e5ebe6;
    border-radius: 14px;
    background: white;
}

.settings-group + .settings-group {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #edf0ed;
}

.settings-group h2 {
    font-size: 17px;
}

.settings-group > p {
    margin: 6px 0 12px;
    color: #68746e;
    font-size: 12px;
}

.setting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid #edf0ed;
}

.setting-option strong,
.setting-option small {
    display: block;
}

.setting-option strong {
    font-size: 13px;
}

.setting-option small {
    margin-top: 4px;
    color: #68746e;
    font-size: 11px;
}

.setting-option input {
    width: 17px;
    height: 17px;
    accent-color: #176b45;
}

.settings-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: bold;
}

.settings-group select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #d9e1db;
    border-radius: 8px;
    background: white;
}

.settings-save {
    margin-top: 18px;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: #176b45;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.settings-message {
    margin-top: 10px;
    color: #176b45;
    font-size: 12px;
}

/* Additional workflow tools */
.feature-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.feature-tool-card {
    padding: 22px;
    border: 1px solid #e5ece6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(26, 74, 43, .04);
}

.feature-tool-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 12px;
    background: #eaf5e8;
    color: #176b45;
    font-size: 18px;
}

.feature-tool-card h2 {
    margin-bottom: 7px;
    font-size: 18px;
}

.feature-tool-card > p {
    margin-bottom: 15px;
    color: #68746e;
    font-size: 13px;
    line-height: 1.5;
}

.feature-tool-links {
    display: grid;
    gap: 8px;
}

.feature-tool-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    background: #f5f8f5;
    color: #176b45;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.feature-tool-links a span {
    color: #68746e;
    font-size: 12px;
    font-weight: normal;
}

.feature-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 12px 0;
    color: #38443d;
    font-size: 13px;
}

.feature-check input {
    margin-top: 2px;
    accent-color: #176b45;
}

.feature-tool-card .feature-hint,
.feature-tool-card .feature-status {
    margin: 12px 0 0;
    color: #68746e;
    font-size: 12px;
}

.feature-action {
    padding: 10px 13px;
    border: 0;
    border-radius: 8px;
    background: #176b45;
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.feature-field {
    display: block;
    margin: 12px 0;
    color: #38443d;
    font-size: 12px;
    font-weight: bold;
}

.feature-field input {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #d9e1db;
    border-radius: 8px;
    font: inherit;
}

.feature-field select,
.feature-field textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #d9e1db;
    border-radius: 8px;
    background: #fff;
    color: #26372d;
    font: inherit;
}

.feature-field textarea {
    resize: vertical;
}

.rating-fieldset {
    margin: 14px 0;
    padding: 0;
    border: 0;
}

.rating-fieldset legend {
    margin-bottom: 7px;
    color: #38443d;
    font-size: 12px;
    font-weight: bold;
}

.rating-options {
    display: flex;
    gap: 4px;
}

.rating-options label {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    cursor: pointer;
}

.rating-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rating-options span {
    color: #cbd3cd;
    font-size: 27px;
    line-height: 1;
}

.rating-options label.selected span {
    color: #e6a92e;
}

.rating-options label:focus-within {
    outline: 2px solid #176b45;
}

.feature-tool-card .rating-caption {
    margin: 4px 0 0;
    color: #68746e;
    font-size: 11px;
}

.feature-list {
    padding-left: 19px;
    color: #38443d;
    font-size: 13px;
    line-height: 1.9;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.feature-tags span {
    padding: 7px 10px;
    border-radius: 20px;
    background: #edf7e9;
    color: #176b45;
    font-size: 12px;
}

.feature-text-link {
    color: #176b45;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.tracking-preview {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf0ed;
}

.tracking-preview[hidden] {
    display: none;
}

.tracking-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.tracking-preview-heading div span,
.tracking-preview-heading div strong {
    display: block;
}

.tracking-preview-heading div span {
    margin-bottom: 4px;
    color: #68746e;
    font-size: 10px;
    letter-spacing: .8px;
}

.tracking-preview-heading div strong {
    color: #26372d;
    font-size: 13px;
}

.tracking-demo-badge {
    padding: 6px 9px;
    border-radius: 20px;
    background: #fff5df;
    color: #805a14;
    font-size: 10px;
    font-weight: bold;
}

.tracking-steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tracking-steps li {
    position: relative;
    display: flex;
    min-height: 58px;
    gap: 11px;
    color: #929b95;
}

.tracking-steps li:not(:last-child)::after {
    position: absolute;
    top: 29px;
    bottom: 0;
    left: 13px;
    width: 2px;
    background: #e3e9e4;
    content: "";
}

.tracking-steps li.complete:not(:last-child)::after {
    background: #69a77d;
}

.tracking-step-icon {
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 2px solid #e3e9e4;
    border-radius: 50%;
    background: #fff;
    font-size: 11px;
}

.tracking-steps li.complete,
.tracking-steps li.current {
    color: #176b45;
}

.tracking-steps li.complete .tracking-step-icon,
.tracking-steps li.current .tracking-step-icon {
    border-color: #258c43;
    background: #edf7e9;
}

.tracking-steps li.current .tracking-step-icon {
    background: #176b45;
    color: white;
}

.tracking-steps li strong,
.tracking-steps li small {
    display: block;
}

.tracking-steps li strong {
    padding-top: 2px;
    color: #26372d;
    font-size: 12px;
}

.tracking-steps li.current strong {
    color: #176b45;
}

.tracking-steps li small {
    margin-top: 4px;
    color: #68746e;
    font-size: 11px;
    line-height: 1.4;
}

.feature-tool-card .tracking-demo-note {
    margin: 3px 0 0 39px;
    color: #68746e;
    font-size: 10px;
}

@media (max-width: 850px) {
    .offer-list {
        grid-template-columns: 1fr;
    }

    .feature-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .activity-summary,
    .impact-cards {
        gap: 8px;
    }

    .activity-summary > div,
    .impact-cards article {
        padding: 12px;
    }

    .content-page .page-heading {
        align-items: flex-start;
    }

    .page-heading h1 {
        font-size: 21px;
    }
}

/* Annadan product update: sliding navigation and role-aware workspace */
.sidebar {
    position: fixed;
    z-index: 1200;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    width: 270px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .28s ease;
    box-shadow: 12px 0 36px rgba(20, 45, 28, .12);
}
.sidebar.is-open { transform: translateX(0); }
.main-content { padding-top: 76px; }
.nav-toggle {
    position: fixed;
    z-index: 1300;
    top: 17px;
    left: 17px;
    width: 42px;
    height: 42px;
    border: 1px solid #dce7dd;
    border-radius: 12px;
    background: #fff;
    color: #176b45;
    box-shadow: 0 5px 16px rgba(18, 48, 28, .1);
    cursor: pointer;
    font-size: 17px;
}
.nav-overlay {
    position: fixed;
    z-index: 1100;
    inset: 0;
    border: 0;
    background: rgba(16, 31, 22, .34);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }
.sidebar nav a { display: flex; align-items: center; gap: 4px; }
.sidebar nav a.active { border-left-width: 4px; }
.sidebar .logout { cursor: pointer; }
.hero { isolation: isolate; }
.hero-watermark { z-index: 0; }
.sponsor-ticker {
    position: absolute;
    z-index: 0;
    top: 28px;
    right: 0;
    width: 56%;
    overflow: hidden;
    opacity: .42;
    pointer-events: none;
    transform: rotate(-7deg);
}
.sponsor-track {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    color: #176b45;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    white-space: nowrap;
    animation: sponsor-slide 25s linear infinite;
}
.sponsor-track b { font-size: 17px; opacity: .7; }
.sponsor-track span { color: #748d77; }
@keyframes sponsor-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-content { z-index: 2; }
.hero-eyebrow { margin-bottom: 8px; color: #397456; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.hero-buttons a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; cursor: pointer; }
.hero-buttons .primary-btn, .hero-buttons .secondary-btn { padding: 11px 16px; border-radius: 8px; font-weight: bold; }
.dashboard-listings { display: grid; gap: 12px; }
.live-food-item { grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; }
.food-item-icon { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; background: #edf5e9; font-size: 27px; }
.food-quantity { color: #176b45 !important; font-weight: 700; }
.form-panel, .assistant-shell, .sponsor-directory {
    padding: 24px;
    border: 1px solid #e5ebe6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(25, 55, 33, .04);
}
.form-panel { display: grid; gap: 14px; }
.form-panel h2, .sponsor-directory h2 { font-size: 19px; }
.form-subtitle { color: #68746e; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.feature-field { display: grid; gap: 7px; color: #2d4034; font-size: 13px; font-weight: 700; }
.feature-field input, .feature-field select, .feature-field textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #d9e1db; border-radius: 9px;
    background: #fff; color: #25352b; font: inherit; font-size: 14px; font-weight: 400;
}
.feature-field input:focus, .feature-field select:focus, .feature-field textarea:focus { outline: 2px solid #b6d9c2; border-color: #176b45; }
.feature-action, .small-action {
    display: inline-flex; justify-content: center; align-items: center; gap: 7px;
    width: fit-content; padding: 11px 16px; border: 0; border-radius: 8px;
    background: #176b45; color: #fff; font-weight: 700; cursor: pointer; text-decoration: none;
}
.feature-action:disabled, .small-action:disabled { opacity: .55; cursor: wait; }
.feature-status { min-height: 18px; color: #176b45; font-size: 13px; line-height: 1.5; }
.page-note { padding: 13px 15px; border-radius: 10px; background: #edf7e9; color: #315d43; font-size: 13px; line-height: 1.5; }
.offer-request { display: inline-flex; margin-top: 12px; padding: 9px 14px; border: 0; border-radius: 8px; background: #176b45; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.role-hint { display: inline-block; margin-top: 12px; color: #748078; font-size: 11px; }
.app-dialog { width: min(520px, calc(100% - 28px)); max-width: unset; margin: auto; padding: 0; border: 0; border-radius: 15px; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.app-dialog::backdrop { background: rgba(16,31,22,.48); }
.app-dialog form { display: grid; gap: 13px; padding: 23px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { font-size: 19px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #eef4ef; color: #176b45; cursor: pointer; font-size: 22px; }
.request-list { display: grid; gap: 12px; }
.request-card { padding: 18px; border: 1px solid #e5ebe6; border-radius: 13px; background: #fff; }
.request-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.request-card h2 { font-size: 16px; }
.request-card p { margin-top: 6px; color: #68746e; font-size: 12px; }
.request-meta { display: flex; gap: 18px; margin-top: 13px; color: #68746e; font-size: 11px; }
.request-message { line-height: 1.5; }
.request-actions { display: flex; gap: 8px; margin-top: 14px; }
.small-action { padding: 8px 12px; font-size: 11px; }
.small-action.danger { background: #fff; color: #a23c3c; border: 1px solid #edcccc; }
.status-pill { padding: 5px 9px; border-radius: 20px; background: #eef4ef; color: #3b684a; font-size: 10px; text-transform: capitalize; }
.status-rejected, .status-cancelled { background: #fff0f0; color: #a23c3c; }
.status-approved, .status-completed { background: #e8f6eb; color: #176b45; }
.partner-intro { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 16px; padding: 25px; border-radius: 15px; background: linear-gradient(120deg,#edf8df,#e2f0e4); }
.partner-intro h2 { margin: 12px 0 8px; font-size: 21px; }
.partner-intro p { max-width: 620px; color: #59685e; line-height: 1.5; font-size: 13px; }
.partner-intro .primary-btn { flex-shrink: 0; padding: 11px 17px; border-radius: 8px; background: #176b45; color: white; text-decoration: none; font-weight: 700; }
.pricing-disclaimer { margin-bottom: 15px; padding: 12px 14px; border: 1px solid #f0dfad; border-radius: 9px; background: #fff9e9; color: #705b20; font-size: 12px; line-height: 1.5; }
.partner-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.partner-plan { padding: 20px; border: 1px solid #e1e9e2; border-radius: 14px; background: #fff; }
.partner-plan.featured-plan { border: 2px solid #176b45; }
.plan-eyebrow { color: #45825b; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.partner-plan h2 { margin-top: 9px; font-size: 17px; }
.plan-price { margin-top: 12px; color: #176b45; font-size: 28px; font-weight: 800; }
.plan-price small { color: #68746e; font-size: 11px; font-weight: 400; }
.plan-summary { min-height: 42px; margin: 8px 0 13px; color: #68746e; font-size: 12px; line-height: 1.45; }
.partner-plan ul { display: grid; gap: 9px; min-height: 105px; margin: 0 0 17px; padding: 0; list-style: none; color: #45544a; font-size: 12px; }
.partner-plan li i { margin-right: 7px; color: #176b45; }
.partner-form-wrap { margin-bottom: 20px; scroll-margin-top: 20px; }
.sponsor-directory { margin-top: 20px; }
.sponsor-directory-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.sponsor-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e8eee8; border-radius: 12px; }
.sponsor-card img, .sponsor-mark { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; object-fit: contain; background: #edf5e9; }
.sponsor-mark { display: grid; place-items: center; color: #176b45; font-size: 20px; }
.sponsor-card h3 { font-size: 14px; }
.sponsor-card p, .sponsor-card a { display: block; margin-top: 4px; color: #68746e; font-size: 11px; }
.assistant-shell { max-width: 920px; margin: 0 auto; }
.assistant-heading { display: flex; gap: 13px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #edf0ed; }
.assistant-avatar { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: #edf7e9; color: #176b45; font-size: 19px; }
.assistant-heading h2 { font-size: 18px; }
.assistant-heading p { margin-top: 4px; color: #68746e; font-size: 11px; line-height: 1.4; }
.assistant-messages { display: grid; gap: 13px; min-height: 260px; max-height: 52vh; overflow-y: auto; padding: 18px 0; }
.assistant-message { max-width: 90%; padding: 14px 16px; border-radius: 13px; line-height: 1.55; }
.assistant-message strong { display: block; margin-bottom: 5px; font-size: 12px; }
.assistant-message p { white-space: pre-wrap; font-size: 13px; }
.assistant-answer { justify-self: start; background: #f2f7f1; color: #2d4034; }
.assistant-question { justify-self: end; background: #176b45; color: white; }
.assistant-search { display: flex; align-items: center; gap: 10px; padding: 8px 9px 8px 16px; border: 1px solid #d9e3db; border-radius: 28px; background: #fff; box-shadow: 0 4px 16px rgba(24,55,32,.05); }
.assistant-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; }
.assistant-search button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #176b45; color: #fff; cursor: pointer; }
.feedback-card { max-width: 650px; }
.feedback-card form { display: grid; gap: 14px; }
.auth-switch { margin-top: 16px; color: #68746e; font-size: 13px; }
.auth-switch a { color: #176b45; font-weight: 700; }
@media (max-width: 850px) {
    .partner-plans { grid-template-columns: 1fr; }
    .plan-summary, .partner-plan ul { min-height: 0; }
}
@media (max-width: 700px) {
    .sidebar { width: min(290px, 86vw); padding: 20px 15px; }
    .main-content { padding: 70px 15px 18px; }
    .topbar { padding-left: 44px; }
    .sponsor-ticker { top: 20px; width: 78%; }
    .hero { padding: 25px; }
    .hero-content { max-width: 100%; }
    .hero h2 { font-size: 28px; }
    .hero-watermark { right: 2%; width: 43%; opacity: .13; }
    .hero-buttons { flex-wrap: wrap; }
    .live-food-item { grid-template-columns: 52px 1fr; }
    .live-food-item .food-source { grid-column: 2; }
    .form-grid, .sponsor-directory-list { grid-template-columns: 1fr; }
    .partner-intro { align-items: flex-start; flex-direction: column; }
    .request-meta { flex-direction: column; gap: 5px; }
}


/* Live Supabase profile/activity content */
[hidden] { display: none !important; }
.activity-feed { display: grid; gap: 12px; margin-top: 16px; }
.activity-feed-card { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .nav-overlay, .sponsor-track { transition: none !important; animation: none !important; }
}


/* Mobile email confirmation and location map fixes */
.auth-resend {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #b9d8c2;
  border-radius: 9px;
  background: #f4faf4;
  color: #176b45;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-resend:disabled { opacity: .6; cursor: wait; }
.auth-callback-card { text-align: left; }
.auth-callback-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.auth-inline-link { color: #176b45; font-size: 13px; font-weight: 700; }
.nearby-map {
  width: 100%;
  height: 330px;
  margin-top: 14px;
  border: 1px solid #dce7dd;
  border-radius: 12px;
  overflow: hidden;
  background: #edf3ec;
  z-index: 0;
}
.map-attribution-note { margin-top: 6px; color: #718078; font-size: 10px; line-height: 1.4; }
.assistant-sources-title { margin-top: 12px; }
.assistant-sources { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 18px; font-size: 12px; }
.assistant-sources a { color: #176b45; text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .register-page { padding: 16px 12px; align-items: flex-start; }
  .register-card { padding: 22px 18px; margin: auto 0; }
  .nearby-map { height: 280px; }
  .assistant-shell { padding: 17px; }
  .assistant-messages { min-height: 220px; max-height: 55vh; }
  .assistant-message { max-width: 100%; }
  .assistant-search { padding-left: 12px; }
  .assistant-search input { font-size: 16px; }
}
.auth-resend-form { display: grid; gap: 9px; margin-top: 16px; }
.auth-resend-form label { color: #2d4034; font-size: 13px; font-weight: 700; }
.auth-resend-form input { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #d9e1db; border-radius: 9px; font: inherit; }
