html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --ash: #f3f1ec;
    --pistachio: #9fd4bf;
    --leaf: #0f5a43;
    --canyon: #c9932d;
}

body {
    margin-bottom: 60px;
}

/* ADMIN PANEL */

.admin-page {
    max-width: 1050px;
    margin: 35px auto 60px auto;
}

.admin-header {
    background: var(--leaf);
    color: var(--ash);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.16);
}

    .admin-header h2 {
        font-weight: 900;
        margin-bottom: 8px;
    }

    .admin-header p {
        color: var(--pistachio);
        margin-bottom: 0;
    }

.admin-stat-card {
    background: rgba(243, 241, 236, 0.92);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15, 90, 67, 0.12);
    color: var(--leaf);
    height: 100%;
}

    .admin-stat-card .card-body {
        padding: 28px;
    }

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--ash);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px auto;
}

.admin-stat-card h5 {
    font-weight: 800;
    color: var(--leaf);
    margin-bottom: 8px;
}

.admin-stat-card h2 {
    font-weight: 900;
    color: var(--canyon);
    margin-bottom: 0;
}

.admin-section-card {
    background: rgba(243, 241, 236, 0.92);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.14);
    overflow: hidden;
    margin-top: 32px;
}

.admin-section-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 26px 30px;
}

    .admin-section-header h3 {
        font-weight: 900;
        margin-bottom: 6px;
    }

    .admin-section-header p {
        color: var(--pistachio);
        margin-bottom: 0;
    }

.admin-section-body {
    padding: 26px;
}

.admin-table {
    margin-bottom: 0;
    color: var(--leaf);
    border-color: rgba(15, 90, 67, 0.16);
}

    .admin-table thead th {
        background: rgba(159, 212, 191, 0.38);
        color: var(--leaf);
        font-weight: 900;
        border-color: rgba(15, 90, 67, 0.16);
    }

    .admin-table tbody td {
        background: rgba(243, 241, 236, 0.55);
        border-color: rgba(15, 90, 67, 0.12);
        vertical-align: middle;
    }

    .admin-table tbody tr:hover td {
        background: rgba(159, 212, 191, 0.22);
    }

.empty-admin-message {
    background: rgba(159, 212, 191, 0.25);
    color: var(--leaf);
    border: 1px solid rgba(15, 90, 67, 0.12);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .admin-page {
        margin: 25px auto 45px auto;
    }

    .admin-header,
    .admin-section-header,
    .admin-section-body {
        padding: 24px;
    }
}

.restriction-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.restriction-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .restriction-group span {
        min-width: 80px;
        color: var(--leaf);
        font-weight: 900;
    }

    .restriction-group form {
        margin: 0;
    }

    .restriction-group button {
        border: 1px solid rgba(15, 90, 67, 0.22);
        background: rgba(159, 212, 191, 0.32);
        color: var(--leaf);
        border-radius: 999px;
        padding: 6px 14px;
        font-weight: 800;
    }

        .restriction-group button:hover {
            background: var(--leaf);
            color: var(--ash);
        }

.remove-restrictions-btn {
    border: none;
    background: var(--canyon);
    color: white;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 900;
}

    .remove-restrictions-btn:hover {
        opacity: 0.9;
    }

/* HOME + HISTORY COMMON */

.section-box {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.12);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 15px 35px rgba(15, 90, 67, 0.12);
}

.section-title {
    color: var(--leaf);
    font-weight: 900;
}

.section-text {
    color: var(--leaf);
    line-height: 1.7;
}

.home-page {
    padding-bottom: 40px;
}

.hero-section {
    min-height: 72vh;
    background: linear-gradient(rgba(15, 90, 67, 0.68), rgba(15, 90, 67, 0.68)), url('/images/home-bread.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ash);
    border-radius: 0 0 32px 32px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.22);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 40px;
    margin-top: -70px;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(159, 212, 191, 0.22);
    color: var(--pistachio);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 680px;
    line-height: 1.7;
    color: rgba(243, 241, 236, 0.92);
}

.hero-btn {
    background: var(--canyon);
    color: white;
    border: none;
    font-weight: 800;
    border-radius: 999px;
    padding: 13px 28px;
    text-decoration: none;
    display: inline-block;
    margin-top: 22px;
}

    .hero-btn:hover {
        color: white;
        opacity: 0.9;
    }

.feature-card {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.16);
    border-radius: 22px;
    transition: 0.25s ease;
    color: var(--leaf);
    box-shadow: 0 12px 28px rgba(15, 90, 67, 0.10);
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 35px rgba(15, 90, 67, 0.18);
    }

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--ash);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px auto;
}

.feature-card h5 {
    color: var(--leaf);
    font-weight: 800;
}

.feature-card p {
    color: rgba(15, 90, 67, 0.8);
    margin-bottom: 0;
}

.image-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 90, 67, 0.18);
    border: 1px solid rgba(15, 90, 67, 0.14);
}

    .image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.info-panel {
    background: var(--leaf);
    color: var(--ash);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 16px 36px rgba(15, 90, 67, 0.18);
}

    .info-panel h2 {
        color: var(--ash);
        font-weight: 900;
    }

    .info-panel p {
        color: rgba(243, 241, 236, 0.9);
        line-height: 1.7;
    }

.btn-breadhub {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
}

    .btn-breadhub:hover {
        color: white;
        opacity: 0.9;
    }

.cta-section {
    background: linear-gradient(135deg, var(--leaf), #0b3f31);
    color: var(--ash);
    border-radius: 26px;
    padding: 48px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.22);
}

    .cta-section h2 {
        font-weight: 900;
    }

    .cta-section p {
        color: var(--pistachio);
    }

.history-page {
    padding-bottom: 40px;
}

.history-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -70px;
    padding-top: 70px;
    min-height: 55vh;
    background: linear-gradient(rgba(15, 90, 67, 0.68), rgba(15, 90, 67, 0.68)), url('/images/history-bread.jpg') center/cover no-repeat;
    color: var(--ash);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.22);
}

.history-hero-content {
    max-width: 850px;
    padding: 60px 20px;
}

.history-badge {
    display: inline-block;
    background: rgba(159, 212, 191, 0.24);
    color: var(--pistachio);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 18px;
}

.history-hero h1 {
    font-size: 3.7rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.history-hero p {
    font-size: 1.22rem;
    line-height: 1.7;
    color: rgba(243, 241, 236, 0.92);
    margin-bottom: 0;
}

.timeline {
    border-left: 4px solid var(--pistachio);
    padding-left: 26px;
    position: relative;
}

.timeline-item {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 22px;
    position: relative;
    box-shadow: 0 10px 24px rgba(15, 90, 67, 0.08);
}

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -37px;
        top: 24px;
        width: 18px;
        height: 18px;
        background: var(--canyon);
        border: 4px solid var(--ash);
        border-radius: 50%;
        box-shadow: 0 0 0 2px var(--canyon);
    }

    .timeline-item h5 {
        color: var(--leaf);
        font-weight: 900;
    }

    .timeline-item p {
        color: rgba(15, 90, 67, 0.82);
        line-height: 1.65;
        margin-bottom: 0;
    }

.bread-card {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.25s ease;
    box-shadow: 0 14px 32px rgba(15, 90, 67, 0.12);
}

    .bread-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(15, 90, 67, 0.18);
    }

.conclusion-box {
    background: linear-gradient(135deg, var(--leaf), #0b3f31);
    color: var(--ash);
    border-radius: 26px;
    padding: 44px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.22);
}

.contact-page {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.contact-box {
    width: 100%;
    max-width: 1050px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.18);
    background: rgba(159, 212, 191, 0.24);
}

.contact-info,
.contact-form-side {
    padding: 50px;
}

.contact-form-side {
    background: var(--leaf);
    color: var(--ash);
}

.contact-submit {
    width: 100%;
    border: none;
    background: var(--canyon);
    color: white;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
}

.contact-info h2 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--leaf);
}

.contact-info p {
    color: var(--leaf);
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--leaf);
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--ash);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--leaf);
}

.contact-form-side h3 {
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-form-control {
    background: var(--pistachio);
    border: none;
    color: var(--leaf);
    border-radius: 8px;
    padding: 13px 15px;
    width: 100%;
    outline: none;
}

    .contact-form-control::placeholder {
        color: rgba(15,90,67,0.6);
    }

    .contact-form-control:focus {
        background: var(--pistachio);
        box-shadow: 0 0 0 2px var(--canyon);
    }

.contact-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.contact-submit:hover {
    opacity: 0.9;
}

.contact-success {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-side {
        padding: 35px 25px;
    }
}

/* NOTIFICATIONS */

.notifications-box {
    width: 360px;
    max-width: 90vw;
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(15, 90, 67, 0.18);
    overflow: hidden;
}

.notifications-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .notifications-header h6 {
        font-weight: 900;
        margin: 0;
    }

    .notifications-header span {
        color: var(--pistachio);
        font-size: 12px;
        font-weight: 600;
    }

.notifications-body {
    padding: 12px;
}

.notification-item {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 6px;
    color: var(--leaf);
    background: rgba(159, 212, 191, 0.22);
    border: 1px solid rgba(15, 90, 67, 0.10);
    transition: 0.2s ease;
}

    .notification-item:hover {
        background: rgba(159, 212, 191, 0.35);
        color: var(--leaf);
    }

.notification-text {
    font-weight: 700;
}

.notification-date {
    font-size: 12px;
    color: rgba(15, 90, 67, 0.65);
    font-weight: 600;
}

.notifications-empty {
    background: rgba(159, 212, 191, 0.25);
    color: var(--leaf);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    font-weight: 700;
}

.notifications-footer {
    padding: 12px;
    border-top: 1px solid rgba(15, 90, 67, 0.12);
}

.btn-clear-notifications {
    width: 100%;
    border: none;
    background: var(--canyon);
    color: white;
    padding: 10px;
    border-radius: 999px;
    font-weight: 800;
}

    .btn-clear-notifications:hover {
        color: white;
        opacity: 0.9;
    }

/* PROFILE EDIT */

.profile-edit-page {
    max-width: 720px;
    margin: 35px auto 60px auto;
}

.profile-edit-card {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.16);
    overflow: hidden;
}

.profile-edit-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 32px;
}

    .profile-edit-header h2 {
        font-weight: 900;
        margin-bottom: 8px;
    }

    .profile-edit-header p {
        color: var(--pistachio);
        margin-bottom: 0;
    }

.profile-edit-body {
    padding: 32px;
}

    .profile-edit-body label {
        color: var(--leaf);
        font-weight: 800;
        margin-bottom: 8px;
    }

    .profile-edit-body .form-control {
        background: rgba(159, 212, 191, 0.45);
        border: 1px solid rgba(15, 90, 67, 0.18);
        color: var(--leaf);
        border-radius: 14px;
        padding: 12px 14px;
    }

        .profile-edit-body .form-control:focus {
            background: rgba(159, 212, 191, 0.55);
            color: var(--leaf);
            border-color: var(--canyon);
            box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.22);
        }

    .profile-edit-body textarea {
        resize: vertical;
    }

.profile-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-save-profile {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
}

    .btn-save-profile:hover {
        color: white;
        opacity: 0.9;
    }

.btn-back-profile {
    background: var(--leaf);
    color: var(--ash);
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    text-decoration: none;
}

    .btn-back-profile:hover {
        color: var(--ash);
        opacity: 0.9;
    }

/* CHANGE PASSWORD MODAL */

.password-input {
    background: rgba(159, 212, 191, 0.45);
    border: 1px solid rgba(15, 90, 67, 0.18);
    color: var(--leaf);
    border-radius: 18px;
    padding: 12px 14px;
}

    .password-input:focus {
        background: rgba(159, 212, 191, 0.55);
        border-color: var(--canyon);
        box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.22);
    }

.password-label {
    color: var(--leaf);
    font-weight: 800;
    margin-bottom: 8px;
}

.btn-password-save {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 900;
    width: 100%;
}

    .btn-password-save:hover {
        color: white;
        opacity: 0.9;
    }

.password-error {
    color: #b00020;
    font-weight: 700;
    margin-bottom: 12px;
}

/* AUTH PAGES */
.auth-page {
    max-width: 420px;
    margin: 60px auto;
}

.auth-card {
    background: rgba(243, 241, 236, 0.95);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.16);
    overflow: hidden;
}

.auth-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 26px;
    text-align: center;
}

    .auth-header h2 {
        font-weight: 900;
        margin: 0;
    }

.auth-body {
    padding: 28px;
}

    .auth-body label {
        color: var(--leaf);
        font-weight: 800;
        margin-bottom: 6px;
    }

    .auth-body .form-control {
        background: rgba(159, 212, 191, 0.45);
        border: 1px solid rgba(15, 90, 67, 0.18);
        color: var(--leaf);
        border-radius: 14px;
        padding: 12px 14px;
    }

        .auth-body .form-control:focus {
            background: rgba(159, 212, 191, 0.55);
            border-color: var(--canyon);
            box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.22);
        }

    .auth-body .form-check-label {
        color: var(--leaf);
        font-weight: 700;
    }

.btn-auth {
    width: 100%;
    border: none;
    background: var(--canyon);
    color: white;
    padding: 12px;
    border-radius: 999px;
    font-weight: 900;
}

    .btn-auth:hover {
        color: white;
        opacity: 0.9;
    }

.forgot-password-link {
    color: var(--leaf);
    text-decoration: none;
    font-weight: 700;
}

    .forgot-password-link:hover {
        color: var(--canyon);
    }

.text-danger {
    font-weight: 600;
}

/* PASSWORD RESET */

.auth-body p {
    color: #456;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* RECIPES INDEX */

.recipes-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 12px;
}

.recipes-header {
    background: var(--leaf);
    color: var(--ash);
    border-radius: 18px;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(15, 90, 67, 0.18);
}

    .recipes-header h1 {
        font-weight: 800;
        margin-bottom: 8px;
    }

    .recipes-header p {
        margin: 0;
        color: var(--pistachio);
    }

.recipes-search {
    margin-top: 22px;
}

    .recipes-search input {
        background: var(--pistachio);
        border: none;
        color: var(--leaf);
        padding: 13px 15px;
    }

        .recipes-search input::placeholder {
            color: rgba(15,90,67,0.65);
        }

        .recipes-search input:focus {
            background: var(--pistachio);
            color: var(--leaf);
            box-shadow: 0 0 0 2px var(--canyon);
        }

    .recipes-search button {
        background: var(--canyon);
        color: white;
        border: none;
        font-weight: 700;
        padding-left: 22px;
        padding-right: 22px;
    }

.recipe-card {
    background: rgba(159, 212, 191, 0.22);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 14px 32px rgba(15, 90, 67, 0.16);
    border: 1px solid rgba(15, 90, 67, 0.18);
}

.recipe-card-body {
    padding: 24px;
    background: rgba(159, 212, 191, 0.24);
}

.recipe-author {
    color: var(--leaf);
}

.recipe-avatar {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--pistachio);
}

.recipe-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--canyon);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-title {
    color: var(--leaf);
    font-weight: 800;
    margin-bottom: 10px;
}

.recipe-description {
    color: var(--leaf);
    line-height: 1.6;
    white-space: pre-line;
}

.recipe-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-top: 1px solid rgba(15, 90, 67, 0.12);
    border-bottom: 1px solid rgba(15, 90, 67, 0.12);
}

.recipe-stats {
    color: var(--leaf);
    border-bottom: 1px solid rgba(15,90,67,0.15);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.recipe-action-btn {
    background: var(--ash);
    color: var(--leaf);
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px;
}

    .recipe-action-btn:hover {
        background: var(--pistachio);
        color: var(--leaf);
    }

.recipe-liked {
    background: var(--leaf);
    color: var(--ash);
}

.recipe-favorite {
    background: var(--canyon);
    color: white;
}

.recipe-link-btn {
    color: var(--canyon);
    font-weight: 700;
    border: none;
    background: transparent;
}

.recipe-delete-btn {
    border: 1px solid var(--canyon);
    color: var(--canyon);
    background: transparent;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
}

    .recipe-delete-btn:hover {
        background: var(--canyon);
        color: white;
    }

.empty-recipes {
    background: white;
    color: var(--leaf);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(15, 90, 67, 0.12);
}

.clear-search {
    color: var(--canyon);
    font-weight: 700;
    text-decoration: none;
}

.modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: none;
}

.recipes-feed-tabs {
    display: flex;
    gap: 12px;
}

.recipes-feed-tab {
    flex: 1;
    text-align: center;
    background: rgba(159, 212, 191, 0.28);
    color: var(--ash);
    border: 1px solid rgba(243, 241, 236, 0.25);
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 900;
    text-decoration: none;
}

    .recipes-feed-tab:hover {
        color: var(--ash);
        background: rgba(159, 212, 191, 0.38);
    }

    .recipes-feed-tab.active {
        background: var(--canyon);
        color: white;
    }

.recipes-layout.with-sidebar {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.following-sidebar {
    color: var(--leaf);
    font-weight: 900;
    margin-bottom: 15px;
    position: absolute;
    right: calc(100% + 24px);
    top: 25px;
    width: 250px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(159, 212, 191, 0.24);
    height: fit-content;
}

.following-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    color: var(--leaf);
    font-weight: 700;
}

    .following-user img,
    .following-avatar-fallback {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

.following-avatar-fallback {
    background: var(--canyon);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-image-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.recipe-slider-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .recipe-slider-image.active {
        display: block;
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(243, 241, 236, 0.85);
    color: var(--leaf);
    font-size: 34px;
    font-weight: 900;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    justify-content: center;
}

.slider-arrow-left {
    left: 14px;
}

.slider-arrow-right {
    right: 14px;
}

.slider-arrow:hover {
    background: var(--canyon);
    color: white;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .recipes-layout.with-sidebar {
        flex-direction: column;
    }

    .following-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        margin: 40px auto;
    }

    .auth-header,
    .auth-body {
        padding: 22px;
    }

    .profile-edit-page {
        margin: 25px auto 45px auto;
    }

    .profile-edit-header,
    .profile-edit-body {
        padding: 24px;
    }

    .profile-edit-actions {
        flex-direction: column;
    }

    .btn-save-profile,
    .btn-back-profile {
        width: 100%;
        text-align: center;
    }
}

/* COMMENTS MODAL */

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-comment {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 900;
    width: 100%;
}

    .btn-comment:hover {
        color: white;
        opacity: 0.9;
    }

/* LAYOUT / NAVBAR */

body {
    padding-top: 70px;
    background: linear-gradient(rgba(243,241,236,0.85), rgba(243,241,236,0.85)), url("/images/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#mainNavbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--leaf);
    z-index: 1030;
    padding: 10px 20px;
    transition: top 0.25s ease-in-out;
}

.navbar-brand,
.nav-link {
    color: var(--ash) !important;
    font-weight: 600;
}

    .nav-link:hover {
        color: var(--pistachio) !important;
    }

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-toggler {
    color: white;
    font-size: 28px;
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.search-box input {
    background: var(--ash);
    border: none;
    color: var(--leaf);
}

.search-box button {
    background: var(--canyon);
    border: none;
    color: white;
}

.btn-upload {
    background: var(--canyon);
    color: white !important;
    font-weight: 700;
    text-decoration: none !important;
}

    .btn-upload:hover {
        opacity: 0.9;
    }

.btn-bell {
    position: relative;
    background: transparent;
    color: var(--pistachio);
    border: none;
    font-size: 22px;
    line-height: 1;
    overflow: visible;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    background: var(--canyon);
    color: white;
    min-width: 19px;
    height: 19px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.dropdown-menu {
    background: var(--ash);
}

.dropdown-item {
    color: var(--leaf);
}

    .dropdown-item:hover {
        background: var(--pistachio);
    }

/* PROFILE PAGE */

.profile-page {
    max-width: 950px;
    margin: 35px auto 60px auto;
}

.profile-card {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.16);
    overflow: hidden;
    margin-bottom: 28px;
}

.profile-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 32px;
}

.profile-body {
    padding: 32px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--pistachio);
    box-shadow: 0 10px 24px rgba(15, 90, 67, 0.18);
}

.profile-avatar-fallback {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--canyon);
    color: white;
    font-size: 42px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--pistachio);
    box-shadow: 0 10px 24px rgba(15, 90, 67, 0.18);
}

.profile-name {
    color: var(--leaf);
    font-weight: 900;
    margin-bottom: 0;
}

.profile-username {
    color: rgba(15, 90, 67, 0.65);
    font-weight: 700;
}

.profile-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.profile-stat {
    background: rgba(159, 212, 191, 0.35);
    border: 1px solid rgba(15, 90, 67, 0.12);
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--leaf);
    min-width: 120px;
}

    .profile-stat strong {
        display: block;
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
    }

    .profile-stat span {
        font-size: 13px;
        font-weight: 700;
        color: rgba(15, 90, 67, 0.75);
    }

.profile-bio {
    color: var(--leaf);
    line-height: 1.7;
    margin-bottom: 0;
}

.profile-bio-muted {
    color: rgba(15, 90, 67, 0.65);
    font-weight: 600;
    margin-bottom: 0;
}

.btn-profile-main {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
}

    .btn-profile-main:hover {
        color: white;
        opacity: 0.9;
    }

.btn-profile-secondary {
    background: var(--leaf);
    color: var(--ash);
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 800;
}

    .btn-profile-secondary:hover {
        color: var(--ash);
        opacity: 0.9;
    }

.profile-tabs {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 14px 32px rgba(15, 90, 67, 0.12);
    margin-bottom: 28px;
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.profile-tab {
    flex: 1;
    border: none;
    background: rgba(159, 212, 191, 0.24);
    padding: 14px 18px;
    font-weight: 800;
    color: var(--leaf);
    border-radius: 16px;
    transition: 0.2s ease;
}

    .profile-tab.active {
        background: var(--leaf);
        color: var(--ash);
        box-shadow: 0 8px 18px rgba(15, 90, 67, 0.18);
    }

    .profile-tab:hover {
        background: rgba(159, 212, 191, 0.38);
        color: var(--leaf);
    }

    .profile-tab.active:hover {
        background: var(--leaf);
        color: var(--ash);
    }

.profile-tab-content {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.10);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(15, 90, 67, 0.10);
}

.profile-recipe-card {
    background: rgba(159, 212, 191, 0.24);
    border-radius: 18px;
    overflow: hidden;
}

    .profile-recipe-card img {
        transition: transform 0.2s ease;
    }

    .profile-recipe-card:hover img {
        transform: scale(1.03);
    }

/* RECIPE DETAILS */

.recipe-details-page {
    max-width: 760px;
    margin: 35px auto 60px auto;
}

.recipe-details-card,
.comments-card {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.16);
    overflow: hidden;
    margin-bottom: 26px;
}

.recipe-details-body {
    padding: 28px;
}

.recipe-image-details {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-top: 1px solid rgba(15, 90, 67, 0.12);
    border-bottom: 1px solid rgba(15, 90, 67, 0.12);
}

.btn-back-recipes {
    background: var(--leaf);
    color: var(--ash);
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 26px;
}

    .btn-back-recipes:hover {
        color: var(--ash);
        opacity: 0.9;
    }

/* COMMENTS */

.comments-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 26px 28px;
}

    .comments-header h5 {
        font-weight: 900;
        margin-bottom: 0;
    }

.comments-body {
    padding: 28px;
}

.comment-box {
    background: rgba(159, 212, 191, 0.32);
    border: 1px solid rgba(15, 90, 67, 0.12);
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--leaf);
}

.comment-avatar {
    width: 42px;
    height: 42px;
}

.comment-avatar-fallback {
    width: 42px;
    height: 42px;
}

.comment-author {
    color: var(--leaf);
    font-weight: 900;
    text-decoration: none;
}

    .comment-author:hover {
        color: var(--canyon);
    }

.comment-date {
    color: rgba(15, 90, 67, 0.68);
    font-weight: 600;
}

.comment-delete-btn {
    border: none;
    background: transparent;
    color: var(--canyon);
    padding: 0;
    margin-top: 6px;
    font-weight: 800;
}

.empty-comments {
    background: rgba(159, 212, 191, 0.22);
    color: var(--leaf);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    font-weight: 700;
}

.comment-input {
    background: rgba(159, 212, 191, 0.45);
    border: 1px solid rgba(15, 90, 67, 0.18);
    color: var(--leaf);
    border-radius: 18px;
    padding: 13px 15px;
}

    .comment-input:focus {
        background: rgba(159, 212, 191, 0.55);
        color: var(--leaf);
        border-color: var(--canyon);
        box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.22);
    }

    .comment-input::placeholder {
        color: rgba(15, 90, 67, 0.58);
    }

.btn-comment-submit {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 900;
    width: 100%;
}

    .btn-comment-submit:hover {
        color: white;
        opacity: 0.9;
    }

.login-alert {
    background: rgba(159, 212, 191, 0.32);
    color: var(--leaf);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 18px;
    font-weight: 700;
}

/* RECIPE CREATE */

.recipe-create-page {
    max-width: 720px;
    margin: 35px auto 60px auto;
}

.recipe-create-card {
    background: rgba(159, 212, 191, 0.24);
    border: 1px solid rgba(15, 90, 67, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 90, 67, 0.16);
    overflow: hidden;
}

.recipe-create-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 32px;
}

    .recipe-create-header h2 {
        font-weight: 900;
        margin-bottom: 8px;
    }

    .recipe-create-header p {
        color: var(--pistachio);
        margin-bottom: 0;
    }

.recipe-create-body {
    padding: 32px;
}

    .recipe-create-body label {
        color: var(--leaf);
        font-weight: 800;
        margin-bottom: 8px;
    }

    .recipe-create-body .form-control {
        background: rgba(159, 212, 191, 0.24);
        border: 1px solid rgba(15, 90, 67, 0.18);
        color: var(--leaf);
        border-radius: 14px;
        padding: 12px 14px;
    }

        .recipe-create-body .form-control:focus {
            background: rgba(159, 212, 191, 0.55);
            color: var(--leaf);
            border-color: var(--canyon);
            box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.22);
        }

        .recipe-create-body .form-control::placeholder {
            color: rgba(15, 90, 67, 0.58);
        }

    .recipe-create-body textarea {
        resize: vertical;
    }

    .recipe-create-body input[type="file"]::file-selector-button {
        border: none;
        border-radius: 999px;
        padding: 8px 14px;
        margin-right: 12px;
        background: var(--canyon);
        color: white;
        font-weight: 800;
        cursor: pointer;
    }

.recipe-create-help {
    color: rgba(15, 90, 67, 0.75);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.recipe-create-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-create-recipe {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
}

    .btn-create-recipe:hover {
        color: white;
        opacity: 0.9;
    }

.btn-back-recipe {
    background: var(--leaf);
    color: var(--ash);
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    text-decoration: none;
}

    .btn-back-recipe:hover {
        color: var(--ash);
        opacity: 0.9;
    }

.recipe-tips {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.recipe-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(159, 212, 191, 0.25);
    border: 1px solid rgba(15, 90, 67, 0.12);
    border-radius: 16px;
    padding: 14px;
    color: var(--leaf);
}

.recipe-tip-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--ash);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.recipe-tip strong {
    display: block;
    font-weight: 900;
    margin-bottom: 2px;
}

.recipe-tip div:last-child {
    line-height: 1.45;
}

.text-warning {
    color: #b35f00 !important;
    font-weight: 600;
}

/* MODALS / EDIT RECIPE */

.modal-content {
    border-radius: 22px;
    overflow: hidden;
    border: none;
    background: rgba(243, 241, 236, 0.96);
}

.modal-header {
    background: var(--leaf);
    color: var(--ash);
    padding: 20px 24px;
}

.modal-title {
    font-weight: 900;
}

.modal-body {
    padding: 24px;
}

.edit-recipe-input {
    background: rgba(159, 212, 191, 0.45);
    border: 1px solid rgba(15, 90, 67, 0.18);
    color: var(--leaf);
    border-radius: 18px;
    padding: 12px 14px;
}

    .edit-recipe-input:focus {
        background: rgba(159, 212, 191, 0.55);
        border-color: var(--canyon);
        box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.22);
    }

.btn-edit-save {
    background: var(--canyon);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 900;
    width: 100%;
}

.edit-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.edit-image-item {
    position: relative;
}

    .edit-image-item img {
        width: 100%;
        height: 110px;
        object-fit: cover;
        border-radius: 14px;
    }

.btn-delete-image {
    margin-top: 6px;
    width: 100%;
    border: 1px solid var(--canyon);
    color: var(--canyon);
    background: transparent;
    border-radius: 999px;
    font-weight: 800;
}

/* RESPONSIVE ADDITIONS */

@media (max-width: 768px) {
    .navbar-center {
        position: static;
        transform: none;
    }

    .profile-page,
    .recipe-details-page,
    .recipe-create-page {
        margin: 25px auto 45px auto;
    }

    .profile-header,
    .profile-body,
    .recipe-details-body,
    .comments-body,
    .comments-header,
    .recipe-create-header,
    .recipe-create-body {
        padding: 24px;
    }

    .profile-stat {
        min-width: calc(50% - 7px);
    }

    .profile-tabs,
    .recipe-actions,
    .recipe-create-actions {
        flex-direction: column;
    }

    .recipe-stats {
        gap: 10px;
        flex-direction: column;
    }

    .btn-create-recipe,
    .btn-back-recipe {
        width: 100%;
        text-align: center;
    }
}