@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:wght@300;400;700&family=Inter:wght@100..900&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inria Sans', sans-serif;
}

:root {
    --primary-color: #185329;
    --secondary-color: #FFFFFF;
    --third-color: #9CD39B;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body,
html {
    background: var(--secondary-color);
}

a {
    text-decoration: none;
}


header {
    z-index: 111;
    box-shadow: 0px 4px 4px 0px #00000040;
    position: sticky;
    top: 0px;
    background: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.nav__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.head__lft {
    display: flex;
    align-items: center;
}

.link_list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin-left: 45px;
}

.title_link {
    text-decoration: none;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--primary-color);
}

.title_link {
    padding-bottom: 10px;
    text-decoration: none;
    background-image: linear-gradient(#185329, #185329);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.title_link:hover {
    background-size: 100% 3px;
}

.head__rgt {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone_num {
    text-decoration: none;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--primary-color);
}

.head__rgt button {
    background: linear-gradient(0deg, #185329, #185329), linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    box-shadow: 0px 4px 4px 0px #00000040 inset;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #FFFFFF;
    line-height: 100%;
    letter-spacing: 0%;
}


header {
    z-index: 111;
    box-shadow: 0px 4px 4px 0px #00000040;
    position: sticky;
    top: 0px;
    background: var(--secondary-color);
}

#customer_dashboard {
    padding: 30px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.dashboard-header {
    margin-bottom: 30px;
}

.section-title {
    color: #185329;
    font-size: 36px;
    margin-bottom: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #185329;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #185329;
    margin: 0;
}

.stat-label {
    color: #666;
    margin: 5px 0 0;
    font-size: 14px;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .dashboard-content {
        display: block;
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #185329;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 15px;
}

.profile-card h2 {
    color: #185329;
    font-size: 22px;
    margin-bottom: 5px;
}

.profile-phone {
    color: #666;
    margin-bottom: 15px;
}

.profile-rating {
    color: #ffc107;
    font-size: 14px;
}

.rating-text {
    color: #666;
    margin-left: 5px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.profile-menu-item:hover {
    background: #f8f9fa;
    color: #185329;
}

.profile-menu-item.active {
    background: #185329;
    color: white;
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
}

.logout-section {
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.promo-card h3 {
    color: #185329;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-list {
    margin-bottom: 20px;
    min-height: 100px;
}

.promo-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #9CD39B;
}

.promo-code {
    font-weight: 700;
    color: #185329;
    margin-bottom: 5px;
}

.promo-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.promo-input {
    display: flex;
    gap: 5px;
}

.promo-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.promo-input button {
    padding: 12px 10px;
    background: #185329;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.profile-main {
    margin-top: 50px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h2 {
    color: #185329;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
    background: white;
    cursor: pointer;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.profile-form .form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    color: #666;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eaeaea;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #9CD39B;
    color: #185329;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.info-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.info-content p {
    color: #185329;
    font-weight: 600;
    font-size: 18px;
}

.orders-container {
    min-height: 300px;
}

.orders-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.order-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.order-info h4 {
    color: #185329;
    margin-bottom: 5px;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-processing {
    background: #e3f2fd;
    color: #1976d2;
}

.status-completed {
    background: #e8f5e8;
    color: #388e3c;
}

.status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.order-body {
    padding: 20px;
}

.order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.order-item {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #eaeaea;
}

.order-summary {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-discount {
    color: #388e3c;
    font-size: 14px;
    text-align: right;
}

.order-actions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eaeaea;
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.view-btn {
    background: #2196F3;
    color: white;
}

.view-btn:hover {
    background: #0b7dda;
}

.cancel-btn {
    background: #f44336;
    color: white;
}

.cancel-btn:hover {
    background: #d32f2f;
}

.repeat-btn {
    background: #4CAF50;
    color: white;
}

.repeat-btn:hover {
    background: #388e3c;
}

.categories-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 10px 15px;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.category-btn:hover {
    background: #f0f0f0;
}

.category-btn.active {
    background: #185329;
    color: white;
    border-color: #185329;
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-box input:focus {
    border-color: #185329;
    outline: none;
}

.foods-container {
    margin-top: 20px;
}

.foods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.food-card-dashboard {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s;
}

.food-card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.food-image-container {
    height: 180px;
    overflow: hidden;
}

.food-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-content-dashboard {
    padding: 15px;
}

.food-content-dashboard h3 {
    color: #185329;
    margin-bottom: 10px;
    font-size: 18px;
}

.food-content-dashboard p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.food-footer-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.food-price-dashboard {
    font-weight: 700;
    color: #185329;
    font-size: 18px;
}

.order-btn-card-dashboard {
    padding: 8px 15px;
    background: #185329;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-btn-card-dashboard:hover {
    background: #0d3a1f;
}

.order-btn-card-dashboard:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.settings-form {
    max-width: 800px;
}

.setting-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.setting-group:last-child {
    border-bottom: none;
}

.setting-group h3 {
    color: #185329;
    margin-bottom: 20px;
    font-size: 20px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #666;
}

.save-settings-btn {
    padding: 12px 25px;
    background: #185329;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.save-settings-btn:hover {
    background: #0d3a1f;
}

.warning-text {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #f57c00;
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-btn {
    padding: 12px 25px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-btn:hover {
    background: #d32f2f;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #185329;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background: #e8f5e8;
    color: #388e3c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .filter-options select {
        width: 100%;
    }
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .order-actions {
        flex-wrap: wrap;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.food-badge {
    top: -45px;
    background: var(--primary-color);
    width: 103px;
    padding: 5px 3px;
    border-radius: 8px;
    color: var(--secondary-color);
    margin-left: 10px;
    margin-top: 10px;
}


/*  */

.login-container {
    min-height: 100vh;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.login-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 100px;
    height: 100px;
}

.logo h1 {
    color: white;
    font-family: 'Inria Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.login-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #185329;
    background: white;
    border-bottom: 3px solid #185329;
}

.tab-btn:hover:not(.active) {
    color: #185329;
    background: #f1f3f4;
}

.auth-form {
    padding: 40px;
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #185329;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    border-color: #185329;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 83, 41, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #185329;
}

.forgot-password {
    color: #185329;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #9CD39B;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #185329, #2e7d32);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d3a1f, #185329);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 83, 41, 0.3);
}

.guest-option {
    margin-top: 25px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.guest-option p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.guest-btn {
    width: 100%;
    padding: 14px;
    background: #f8f9fa;
    color: #185329;
    border: 2px solid #185329;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guest-btn:hover {
    background: #185329;
    color: white;
}

.terms-agreement {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 13px;
}

.terms-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #666;
    line-height: 1.5;
}

.terms-agreement input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #185329;
    flex-shrink: 0;
}

.terms-agreement a {
    color: #185329;
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

.instruction {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.back-btn {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.back-btn:hover {
    background: #e9ecef;
    border-color: #999;
}

.login-footer {
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .login-header {
        padding: 15px 20px;
        gap: 15px;
        text-align: center;
    }
    .auth-form {
        padding: 30px 20px;
    }
    .login-content {
        padding: 20px;
    }
}

.error-message {
    background: #fde7e9;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-icon {
    position: relative;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.cart-icon i {
    font-size: 24px;
    color: #185329;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FF6B35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.order-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.order-modal-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #185329;
    color: white;
    border-radius: 15px 15px 0 0;
}

.order-modal-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.order-modal-body {
    padding: 20px;
}

.cart-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #185329;
}

.cart-item-info p {
    margin: 0;
    color: #FF6B35;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #185329;
    background: white;
    color: #185329;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #185329;
    color: white;
}

.quantity {
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cart-total h3 {
    margin: 0;
    font-size: 20px;
    color: #185329;
}

.delivery-type h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #185329;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.delivery-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.delivery-option:hover {
    border-color: #185329;
}

.delivery-option.active {
    border-color: #185329;
    background: rgba(25, 83, 41, 0.1);
}

.delivery-option i {
    font-size: 24px;
    color: #185329;
}

.delivery-option span {
    font-size: 14px;
    font-weight: 500;
}

.delivery-details {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.delivery-details:not(.active) {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #185329;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #185329;
}

.order-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.confirm-order-btn {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, #185329, #2e7d32);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm-order-btn:hover {
    background: linear-gradient(135deg, #0d3a1f, #185329);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 83, 41, 0.3);
}

.clear-cart-btn {
    padding: 15px 25px;
    background: #f8f9fa;
    color: #f44336;
    border: 2px solid #f44336;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-cart-btn:hover {
    background: #f44336;
    color: white;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-cart p {
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Cart Modal Styles */

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.cart-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.cart-modal-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 450px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-modal-header {
    padding: 20px;
    background: #185329;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.close-cart-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
}

.cart-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

.cart-empty p {
    font-size: 18px;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.cart-item-price {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f5f5f5;
    border-color: #185329;
}

.quantity-btn i {
    font-size: 12px;
    color: #333;
}

.item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #ffebee;
    color: #f44336;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-item-btn:hover {
    background: #f44336;
    color: white;
}

.cart-item-total {
    display: none;
    font-weight: 600;
    color: #185329;
    min-width: 80px;
    text-align: right;
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
}

.cart-total,
.cart-discount,
.cart-final-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-final-total {
    font-size: 18px;
    font-weight: 600;
    color: #185329;
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.delivery-options,
.payment-options {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.delivery-options h3,
.payment-options h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.delivery-buttons {
    display: flex;
    gap: 10px;
}

.delivery-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.delivery-btn:hover {
    border-color: #185329;
}

.delivery-btn.active {
    background: #185329;
    color: white;
    border-color: #185329;
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-method {
    flex: 1;
    position: relative;
}

.payment-method input {
    position: absolute;
    opacity: 0;
}

.payment-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method input:checked+.payment-info {
    border-color: #185329;
    background: #f0f9f2;
}

.payment-info i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}

.payment-method input:checked+.payment-info i {
    color: #185329;
}

.payment-card-details {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #185329;
}

.payment-card-details h4 {
    margin: 0 0 10px 0;
    color: #185329;
}

.card-info-display p {
    margin: 5px 0;
    color: #333;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.clear-cart-btn,
.checkout-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.clear-cart-btn {
    background: #ffebee;
    color: #f44336;
}

.clear-cart-btn:hover {
    background: #f44336;
    color: white;
}

.checkout-btn {
    background: #185329;
    color: white;
}

.checkout-btn:hover {
    background: #0d3a1f;
    transform: translateY(-2px);
}


/* Order Card Enhancements */

.order-payment,
.order-delivery {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.order-payment strong,
.order-delivery strong {
    color: #333;
}


/* Cart Icon Animation */

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* Food Card Button Animation */

.order-btn-card-dashboard {
    position: relative;
    overflow: hidden;
}

.order-btn-card-dashboard:active .plus {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}


/* Loading States */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #185329;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .cart-modal-content {
        width: 100%;
    }
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cart-item-controls {
        justify-content: center;
    }
    .cart-item-total {
        text-align: center;
    }
    .delivery-buttons,
    .payment-methods {
        flex-direction: column;
    }
    .cart-actions {
        flex-direction: column;
    }
}


/* Cart Sidebar */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 25px;
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    h3 {
        color: var(--primary-color);
    }
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.empty-icon i {
    font-size: 48px;
    color: #999;
}

.empty-cart h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 22px;
}

.empty-cart p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.browse-menu-btn {
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.browse-menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24, 83, 41, 0.3);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.cart-item-row:hover {
    border-color: #185329;
    background: #f0f9f2;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.cart-item-details p {
    margin: 0;
    color: #185329;
    font-weight: 600;
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.cart-item-minus,
.cart-item-plus {
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-minus:hover,
.cart-item-plus:hover {
    border-color: #185329;
    background: #f0f9f2;
    transform: scale(1.1);
}

.cart-item-minus i,
.cart-item-plus i {
    font-size: 12px;
    color: #333;
}

.cart-item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.remove-cart-item {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-cart-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.cart-item-total {
    font-weight: 700;
    color: #185329;
    min-width: 90px;
    text-align: right;
    font-size: 16px;
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
}

.cart-summary {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

.discount-item {
    color: #4CAF50;
}

.total-item {
    font-size: 18px;
    font-weight: 700;
    color: #185329;
    border-top: 2px solid #eee;
    padding-top: 12px;
    margin-top: 12px;
}

.checkout-btn,
.clear-cart-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.checkout-btn {
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    color: white;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 83, 41, 0.3);
}

.clear-cart-btn {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #666;
}

.clear-cart-btn:hover {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.1);
}


/* Payment Modal */

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-header {
    padding: 30px;
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.payment-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.payment-logo i {
    font-size: 30px;
}

.payment-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.payment-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.close-payment {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-payment:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.payment-options {
    padding: 20px 30px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #ddd;
    background: #fff;
    transform: translateY(-2px);
}

.payment-option.active {
    border-color: #185329;
    background: #f0f9f2;
    box-shadow: 0 5px 15px rgba(24, 83, 41, 0.1);
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.payment-option.active .payment-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.payment-icon i {
    font-size: 24px;
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.payment-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.payment-check {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
}

.payment-option.active .payment-check {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
}

.delivery-section {
    padding: 0 30px 20px;
}

.delivery-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.delivery-options {
    display: flex;
    gap: 15px;
}

.delivery-option {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: #ddd;
    background: #fff;
    transform: translateY(-2px);
}

.delivery-option.active {
    border-color: #185329;
    background: #f0f9f2;
    box-shadow: 0 5px 15px rgba(24, 83, 41, 0.1);
}

.delivery-option i {
    font-size: 30px;
    color: #185329;
}

.delivery-option span {
    font-size: 14px;
    text-align: center;
    color: #333;
}

.order-summary {
    padding: 20px 30px;
    background: #f9f9f9;
    margin: 20px 30px;
    border-radius: 15px;
}

.order-summary h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.final-total {
    font-size: 20px;
    font-weight: 700;
    color: #185329;
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.payment-actions {
    padding: 30px;
    display: flex;
    gap: 15px;
}

.back-btn,
.confirm-payment-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

.back-btn {
    background: #f5f5f5;
    color: #666;
}

.back-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.confirm-payment-btn {
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    color: white;
}

.confirm-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 83, 41, 0.3);
}


/* Card Payment Modal */

.card-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-modal {
    background: var(--secondary-color);
    box-shadow:var(--shadow);
    border-radius: 25px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    color: var(--primary-color);
    animation: cardAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card-modal-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-card {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.card-preview {
    margin-bottom: 30px;
}

.credit-card {
    background:var(--primary-color);
    color: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-chip i {
    font-size: 24px;
    color: #333;
}

.card-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.card-type i {
    font-size: 32px;
}

.card-number {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
}

.card-footer {
    display: flex;
    justify-content: space-between;
}

.card-holder span,
.card-expiry span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.card-holder h4,
.card-expiry h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.payment-amount {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.amount-info span {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.amount-info h2 {
    margin: 0;
    font-size: 32px;
    color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.cancel-card-btn,
.confirm-card-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.cancel-card-btn {
    background: var(--primary-color);
    color: white;
    backdrop-filter: blur(10px);
}

.cancel-card-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.confirm-card-btn {
    background: var(--primary-color);
    color: white;
}

.confirm-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.security-note i {
    color: #4CAF50;
    font-size: 20px;
}

.security-note p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}


/* Header Cart Button */

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, #185329 0%, #0d3a1f 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24, 83, 41, 0.3);
}

.cart-btn i {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}


/* Cart Animation */

.cart-animation {
    z-index: 9999;
}


/* Responsive */

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
    }
    .payment-modal {
        max-height: 95vh;
    }
    .delivery-options {
        flex-direction: column;
    }
    .payment-actions {
        flex-direction: column;
    }
    .card-modal {
        padding: 20px;
    }
    .credit-card {
        padding: 20px;
    }
    .card-number {
        font-size: 20px;
    }
}


/* ========== BUYURTMALAR TARIXI STYLES ========== */

.orders-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

.orders-list {
    padding: 0;
}


/* Order Card */

.order-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin: 0 0 20px 0;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card:last-child {
    margin-bottom: 0;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #185329, #0d3a1f);
    border-radius: 6px 0 0 6px;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 83, 41, 0.15);
    border-color: #185329;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.order-info {
    flex: 1;
}

.order-id {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-id::before {
    content: '#';
    color: #185329;
    font-weight: 800;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.order-date::before {
    content: '🗓️';
    font-size: 14px;
}

.order-status {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-pending {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
}

.status-processing {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.status-cancelled {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.order-items {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background: linear-gradient(90deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.order-item:hover {
    background: linear-gradient(90deg, #f0f9f2, #ffffff);
    border-color: #185329;
    transform: translateX(5px);
}

.item-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-name::before {
    content: '🍽️';
    font-size: 14px;
}

.item-price {
    font-weight: 600;
    color: #185329;
    font-size: 15px;
    background: rgba(24, 83, 41, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
}

.order-footer {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #eee;
}

.order-total,
.order-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.order-total:last-child,
.order-discount:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-total span,
.order-discount span {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.order-total strong,
.order-discount strong {
    font-size: 18px;
    color: #185329;
    font-weight: 700;
}

.order-discount strong {
    color: #4CAF50;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.detail-item:hover {
    border-color: #185329;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #185329, #0d3a1f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.detail-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}


/* Empty State */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    border: 2px dashed #ddd;
    margin: 20px 0;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #185329, #0d3a1f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    margin-top: 16px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-icon::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px dashed #185329;
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.empty-icon i {
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 1;
}

.empty-state h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
    background: linear-gradient(135deg, #185329, #0d3a1f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}

.browse-menu-btn {
    background: linear-gradient(135deg, #185329, #0d3a1f);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(24, 83, 41, 0.3);
}

.browse-menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(24, 83, 41, 0.4);
}


/* Loading State */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #185329;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(24, 83, 41, 0.1);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}


/* Error State */

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff8f8, #ffffff);
    border-radius: 20px;
    border: 2px solid #ffebee;
}

.error-message i {
    font-size: 60px;
    color: #f44336;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.error-message span {
    color: #f44336;
    font-size: 16px;
    font-weight: 500;
}


/* Filter */

.filter-options {
    margin-left: auto;
}

.filter-options select {
    background: linear-gradient(135deg, #185329, #0d3a1f);
    color: white;
    border: none;
    padding: 12px 30px 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    box-shadow: 0 5px 20px rgba(24, 83, 41, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-options select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 83, 41, 0.3);
}

.filter-options select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 83, 41, 0.3);
}

.filter-options select option {
    background: white;
    color: #333;
    padding: 10px;
}


/* Responsive */

@media (max-width: 768px) {
    .order-card {
        padding: 20px;
    }
    .order-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .order-status {
        align-self: flex-start;
        min-width: 120px;
    }
    .order-details {
        grid-template-columns: 1fr;
    }
    .filter-options select {
        width: 100%;
        max-width: 200px;
    }
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}


/* Status Badge Animation */

.order-status {
    position: relative;
    overflow: hidden;
}

.order-status::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}


/* Price Animation */

.item-price {
    position: relative;
    overflow: hidden;
}

.item-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: priceShine 3s infinite;
}

@keyframes priceShine {
    0% {
        transform: translateX(-100%);
    }
    60% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Section Header */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #185329, #0d3a1f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header h2 i {
    font-size: 32px;
    background: linear-gradient(135deg, #185329, #0d3a1f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Order Status Icons */

.status-pending i {
    content: '⏳';
    font-size: 16px;
}

.status-processing i {
    content: '⚙️';
    font-size: 16px;
}

.status-completed i {
    content: '✅';
    font-size: 16px;
}

.status-cancelled i {
    content: '❌';
    font-size: 16px;
}


/* Pagination (agar kerak bo'lsa) */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #185329;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #185329;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #185329;
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #185329;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background: white;
    color: #185329;
    transform: none;
}


/* Scrollbar Styling */

.orders-container::-webkit-scrollbar {
    width: 8px;
}

.orders-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.orders-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #185329, #0d3a1f);
    border-radius: 10px;
}

.orders-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0d3a1f, #185329);
}


/*  */


/* Contact Modal Styles */

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.contact-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #185329 0%, #2e7d32 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-contact-modal {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-contact-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-modal-body {
    padding: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #185329 0%, #2e7d32 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.contact-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.logout-contact-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.logout-contact-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.close-contact-btn {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.close-contact-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* Mobile responsive */

@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
    }
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .contact-modal-footer {
        flex-direction: column;
    }
}


/* Media phone */


/* ========== MOBILE OPTIMIZATION ========== */


/* Faqat media so'rovlar - ranglar o'zgarmagan */


/* Extra small devices (phones, 320px and up) */

@media (max-width: 480px) {
    #customer_dashboard {
        padding: 15px 0 30px;
    }
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    /* Stats Cards */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .stat-value {
        font-size: 20px;
    }
    .stat-label {
        font-size: 13px;
    }
    /* Profile Sidebar */
    .profile-sidebar {
        gap: 15px;
    }
    .profile-card {
        padding: 20px;
    }
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    .profile-card h2 {
        font-size: 20px;
    }
    .profile-phone {
        font-size: 14px;
    }
    .profile-menu-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    /* Promo Card */
    .promo-card {
        padding: 20px;
    }
    .promo-card h3 {
        font-size: 16px;
    }
    .promo-input {
        flex-direction: column;
        gap: 10px;
    }
    .promo-input button {
        width: 100%;
        padding: 12px 10px;
    }
    /* Profile Main */
    .profile-main {
        padding: 20px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    .section-header h2 {
        font-size: 20px;
    }
    .section-header h2 i {
        font-size: 24px;
    }
    .filter-options {
        width: 100%;
    }
    .filter-options select {
        width: 100%;
        min-width: auto;
        padding: 10px 30px 10px 15px;
        font-size: 14px;
    }
    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .info-card {
        padding: 15px;
    }
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .info-content h4 {
        font-size: 14px;
    }
    .info-content p {
        font-size: 16px;
    }
    /* Foods Grid */
    .foods-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .food-card-dashboard {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px;
    }
    .food-image-container {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-right: 15px;
    }
    .food-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .food-content-dashboard {
        flex: 1;
        padding: 0;
    }
    .food-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    .food-desc {
        display: none;
    }
    .food-ingredients {
        display: none;
    }
    .food-footer-dashboard {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 5px;
    }
    .food-price-dashboard {
        font-size: 16px;
    }
    .order-btn-card-dashboard {
        padding: 6px 12px;
        font-size: 13px;
    }
    .food-badge {
        display: none;
        width: 80px;
        font-size: 11px;
        padding: 4px 2px;
        margin-left: 5px;
        margin-top: 5px;
    }
    /* Categories */
    .categories-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .categories-container::-webkit-scrollbar {
        height: 3px;
    }
    .categories-container::-webkit-scrollbar-thumb {
        background: #185329;
        border-radius: 10px;
    }
    .category-btn {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 13px;
        white-space: nowrap;
    }
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    .search-box input {
        width: 100%;
        padding: 10px 10px 10px 40px;
        font-size: 14px;
        box-sizing: border-box;
    }
    /* Orders */
    .order-card {
        padding: 15px;
    }
    .order-header {
        flex-direction: column;
        gap: 12px;
    }
    .order-id {
        font-size: 16px;
    }
    .order-date {
        font-size: 12px;
    }
    .order-status {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 120px;
        align-self: flex-start;
    }
    .order-item {
        padding: 10px;
        font-size: 13px;
    }
    .item-name {
        font-size: 13px;
    }
    .item-price {
        font-size: 13px;
        padding: 4px 10px;
    }
    .order-footer {
        padding: 15px;
    }
    .order-total span,
    .order-discount span {
        font-size: 14px;
    }
    .order-total strong,
    .order-discount strong {
        font-size: 16px;
    }
    .order-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .detail-item {
        padding: 12px;
    }
    .detail-item i {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .detail-item span {
        font-size: 13px;
    }
    /* Settings */
    .setting-group h3 {
        font-size: 18px;
    }
    .setting-item label {
        font-size: 14px;
    }
    .save-settings-btn,
    .danger-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    /* Empty State */
    .empty-state {
        padding: 40px 15px;
    }
    .empty-icon {
        width: 80px;
        height: 80px;
    }
    .empty-icon i {
        top: 10px;
        font-size: 36px;
    }
    .empty-state h3 {
        font-size: 20px;
    }
    .empty-state p {
        font-size: 14px;
    }
    .browse-menu-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    /* Loading */
    .spinner {
        width: 50px;
        height: 50px;
    }
    .loading p {
        font-size: 14px;
    }
}


/* Small devices (481px - 768px) */

@media (min-width: 481px) and (max-width: 768px) {
    #customer_dashboard {
        padding: 20px 0 40px;
    }
    .container {
        padding: 0 20px;
        box-sizing: border-box;
    }
    .section-title {
        font-size: 28px;
    }
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .foods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .food-card-dashboard {
        display: flex;
        flex-direction: column;
    }
    .food-image-container {
        width: 100%;
        height: 150px;
    }
    .order-details {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-header {
        flex-direction: row;
        align-items: center;
    }
    .filter-options {
        width: auto;
    }
    .filter-options select {
        width: auto;
        min-width: 180px;
    }
    .promo-input {
        flex-direction: row;
    }
    .promo-input button {
        width: auto;
        padding: 12px 20px;
    }
}


/* Medium devices (769px - 1024px) */

@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    .foods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .order-details {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========== HEADER MOBILE ========== */

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    .nav__head {
        gap: 160px;
    }
    .head__lft {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    .logo {}
    .logo img {
        width: 90px;
        height: 90px;
    }
    .link_list {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
        margin: 0;
    }
    .link {
        margin: 0;
    }
    .title_link {
        font-size: 14px;
        padding: 8px 12px;
    }
    .head__rgt {
        justify-content: space-between;
        gap: 50px;
        flex-wrap: wrap;
    }
    .order-btn{
        display: none;
    }
    .phone_num {
        display: none;
    }
    .phone {
        display: none;
    }
    .cart-btn {
        width: 45px;
        height: 45px;
    }
    .cart-btn i {
        font-size: 18px;
    }
    .order-btn {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
    }
    .contact-icon-btn {
        width: 45px;
        height: 45px;
    }
    .contact-icon-btn i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .link_list {
        gap: 5px;
    }
    .title_link {
        font-size: 13px;
        padding: 6px 10px;
    }
    .head__rgt {
        flex-wrap: wrap;
    }
    .cart-btn,
    .contact-icon-btn {
        width: 40px;
        height: 40px;
    }
    .order-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
}


/* ========== FOOTER MOBILE ========== */

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    .footer_box {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    .saray-mark {
        display: none;
    }
    .footer_lft {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .footer_lft img {
        width: 120px;
        margin-bottom: 15px;
    }
    .footer_lft h2 {
        font-size: 14px;
        line-height: 1.6;
        max-width: 100%;
    }
    .footer_center {
        width: 100%;
        text-align: center;
        padding-left: 0;
    }
    .footer_center h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .footer_center h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .footer_rgt {
        width: 100%;
        text-align: center;
    }
    .footer_rgt p {
        font-size: 14px;
        margin-bottom: 12px;
        justify-content: center;
    }
    .footer_rgt p i {
        margin-right: 8px;
    }
    .footer_btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        margin-top: 10px;
    }
    .box-footer {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 0 15px;
    }
    .footer_lft img {
        width: 100px;
    }
    .footer_lft h2 {
        font-size: 13px;
    }
    .footer_center h2 {
        font-size: 18px;
    }
    .footer_center h3 {
        font-size: 15px;
    }
    .footer_rgt p {
        font-size: 13px;
        flex-wrap: wrap;
    }
    .footer_btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    .box-footer {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
}


/* ========== CART SIDEBAR MOBILE ========== */

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
    }
    .cart-header {
        padding: 20px;
    }
    .cart-header h2 {
        font-size: 20px;
    }
    .cart-content {
        padding: 15px;
    }
    .cart-item-row {
        flex-direction: column;
        margin-top: 10px;
        gap: 10px;
    }
    .cart-item-details {
        width: 100%;
    }
    .cart-item-details h4 {
        font-size: 15px;
    }
    .cart-item-details p {
        font-size: 13px;
    }
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    .cart-item-quantity {
        font-size: 15px;
    }
    .cart-item-total {
        width: 100%;
        text-align: left;
        font-size: 15px;
    }
    .cart-footer {
        padding: 20px;
    }
    .summary-item {
        font-size: 15px;
    }
    .total-item {
        font-size: 17px;
    }
    .checkout-btn,
    .clear-cart-btn {
        padding: 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 15px;
    }
    .cart-header h2 {
        font-size: 18px;
    }
    .close-cart {
        width: 35px;
        height: 35px;
    }
    .cart-item-row {
        padding: 12px;
    }
    .cart-item-controls {
        gap: 12px;
    }
    .cart-item-minus,
    .cart-item-plus,
    .remove-cart-item {
        width: 36px;
        height: 36px;
    }
    .cart-item-minus i,
    .cart-item-plus i,
    .remove-cart-item i {
        font-size: 14px;
    }
    .cart-item-quantity {
        min-width: 35px;
    }
    .cart-footer {
        padding: 15px;
    }
    .cart-summary {
        padding: 15px;
    }
}


/* ========== PAYMENT MODAL MOBILE ========== */

@media (max-width: 768px) {
    .payment-modal {
        max-height: 90vh;
        width: 95%;
    }
    .payment-header {
        padding: 25px 20px;
    }
    .payment-header h2 {
        font-size: 22px;
    }
    .payment-header p {
        font-size: 14px;
    }
    .payment-options {
        padding: 20px;
    }
    .payment-option {
        padding: 15px;
    }
    .payment-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-right: 15px;
    }
    .payment-info h3 {
        font-size: 16px;
    }
    .payment-info p {
        font-size: 12px;
    }
    .delivery-section {
        padding: 0 20px 20px;
    }
    .delivery-options {
        flex-direction: column;
    }
    .delivery-option {
        padding: 15px;
    }
    .order-summary {
        padding: 20px;
        margin: 0 20px 20px;
    }
    .summary-item {
        font-size: 14px;
    }
    .total-row {
        font-size: 15px;
    }
    .final-total {
        font-size: 18px;
    }
    .payment-actions {
        flex-direction: column;
        padding: 20px;
    }
    .back-btn,
    .confirm-payment-btn {
        padding: 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .payment-header {
        padding: 20px 15px;
    }
    .payment-header h2 {
        font-size: 20px;
    }
    .close-payment {
        width: 35px;
        height: 35px;
    }
    .payment-options {
        padding: 15px;
    }
    .payment-option {
        padding: 12px;
    }
    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 12px;
    }
    .delivery-section {
        padding: 0 15px 15px;
    }
    .delivery-section h3 {
        font-size: 16px;
    }
    .order-summary {
        padding: 15px;
        margin: 0 15px 15px;
    }
    .order-summary h3 {
        font-size: 16px;
    }
    .payment-actions {
        padding: 15px;
    }
}


/* ========== CARD MODAL MOBILE ========== */

@media (max-width: 768px) {
    .card-modal {
        width: 95%;
        padding: 25px;
    }
    .card-modal-header h2 {
        font-size: 22px;
    }
    .credit-card {
        padding: 25px;
    }
    .card-number {
        font-size: 20px;
        letter-spacing: 3px;
    }
    .card-holder h4,
    .card-expiry h4 {
        font-size: 16px;
    }
    .payment-amount h2 {
        font-size: 28px;
    }
    .card-actions {
        flex-direction: column;
    }
    .cancel-card-btn,
    .confirm-card-btn {
        padding: 15px;
        font-size: 15px;
    }
}

@media (min-width: 320px) and (max-width: 400px) {}

.card-modal {
    height: 100%;
    padding: 20px;
}

.card-modal-header h2 {
    font-size: 20px;
}

.close-card {
    width: 35px;
    height: 35px;
}

.credit-card {
    padding: 20px;
}

.card-header {
    margin-bottom: 30px;
}

.card-number {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.card-holder span,
.card-expiry span {
    font-size: 11px;
}

.card-holder h4,
.card-expiry h4 {
    font-size: 14px;
}

.payment-amount {
    padding: 15px;
}

.payment-amount h2 {
    font-size: 24px;
}

.security-note p {
    font-size: 12px;
}


/* ========== CONTACT MODAL MOBILE ========== */

@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
    }
    .contact-modal-header h3 {
        font-size: 18px;
    }
    .contact-info-item {
        padding: 15px;
    }
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .contact-info label {
        font-size: 11px;
    }
    .contact-value {
        font-size: 15px;
    }
    .contact-modal-footer {
        flex-direction: column;
    }
    .logout-contact-btn,
    .close-contact-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        width: 98%;
    }
    .contact-modal-header {
        padding: 15px;
    }
    .contact-modal-header h3 {
        font-size: 16px;
    }
    .contact-modal-body {
        padding: 15px;
    }
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .contact-info {
        text-align: center;
    }
    .contact-value {
        font-size: 14px;
    }
    .contact-modal-footer {
        padding: 15px;
    }
    .logout-contact-btn,
    .close-contact-btn {
        padding: 12px;
        font-size: 14px;
    }
}


/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */

@media (hover: none) and (pointer: coarse) {
    .category-btn,
    .order-btn-card-dashboard,
    .profile-menu-item,
    .promo-input button,
    .checkout-btn,
    .clear-cart-btn,
    .payment-option,
    .delivery-option,
    .confirm-payment-btn,
    .logout-btn,
    .logout-contact-btn,
    .close-contact-btn,
    .back-btn,
    .cart-btn,
    .contact-icon-btn,
    .browse-menu-btn,
    .save-settings-btn,
    .danger-btn,
    .footer_btn {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    select,
    input,
    textarea,
    button {
        font-size: 16px !important;
    }
    .order-btn-card-dashboard:active {
        background: #0d3a1f;
        color: white;
    }
    .category-btn:active {
        background: #185329;
        color: white;
        border-color: #185329;
    }
    .profile-menu-item:active {
        background: #185329;
        color: white;
    }
    .payment-option:active {
        background: #f0f9f2;
        border-color: #185329;
    }
    .delivery-option:active {
        background: #f0f9f2;
        border-color: #185329;
    }
    .checkout-btn:active,
    .confirm-payment-btn:active,
    .browse-menu-btn:active,
    .save-settings-btn:active {
        transform: scale(0.98);
    }
    .cart-btn:active,
    .contact-icon-btn:active {
        transform: scale(0.95);
    }
}


/* ========== LANDSCAPE ORIENTATION ========== */

@media (max-width: 768px) and (orientation: landscape) {
    .cart-sidebar {
        overflow-y: auto;
    }
    .contact-modal-content {
        max-height: 85vh;
    }
    .payment-modal {
        max-height: 85vh;
    }
    .food-card-dashboard {
        flex-direction: row;
    }
    .food-image-container {
        width: 80px;
        height: 80px;
    }
    .profile-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .promo-card {
        grid-column: span 2;
    }
    .order-details {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========== NOTCH DEVICES ========== */

@supports (padding: max(0px)) {
    .cart-header,
    .payment-header,
    .card-modal-header,
    .contact-modal-header {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .cart-footer,
    .payment-actions,
    .card-actions,
    .contact-modal-footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-top: max(15px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}


/* ========== PERFORMANCE OPTIMIZATIONS ========== */

@media (max-width: 768px) {
    .food-card-dashboard:hover,
    .order-card:hover,
    .stat-card:hover,
    .info-card:hover,
    .payment-option:hover,
    .delivery-option:hover,
    .category-btn:hover,
    .profile-menu-item:hover {
        transform: none;
    }
    .food-card-dashboard:active,
    .order-card:active,
    .stat-card:active,
    .info-card:active {
        transform: scale(0.98);
    }
    .food-image-container img {
        transition: none;
    }
    .category-btn {
        transition: none;
    }
    .order-card::before {
        width: 4px;
    }
}


/* ========== PRINT STYLES ========== */

@media print {
    .cart-sidebar,
    .payment-modal-overlay,
    .card-modal-overlay,
    .contact-modal,
    .order-btn-card-dashboard,
    .checkout-btn,
    .clear-cart-btn,
    .logout-btn,
    .logout-contact-btn,
    .cart-btn,
    .contact-icon-btn,
    .order-btn,
    .promo-input button,
    .save-settings-btn,
    .danger-btn,
    .footer_btn,
    .browse-menu-btn,
    .close-cart,
    .close-payment,
    .close-card,
    .close-contact-modal,
    .back-btn,
    .cancel-card-btn,
    .confirm-card-btn,
    .close-contact-btn {
        display: none !important;
    }
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    .order-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    .profile-card,
    .profile-main,
    .promo-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    body {
        background: white;
    }
    a {
        text-decoration: none;
        color: black;
    }
}


/*  */


/*  */


/*  */


/* Orders Grid */

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 20px 0;
}


/* Order Card - Modern Design */

.order-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(224, 224, 224, 0.5);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 83, 41, 0.15);
    border-color: var(--third-color);
}

.order-card-header {
    padding: 20px;
    background: linear-gradient(to right, rgba(24, 83, 41, 0.02), transparent);
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.order-badge i {
    font-size: 14px;
}

.status-pending {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
}

.status-processing {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
}

.status-completed {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
}

.status-cancelled {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #C62828;
}

.order-id-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.order-id-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-id-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: monospace;
}

.order-meta {
    display: flex;
    gap: 20px;
}

.order-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
}

.order-meta-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.order-card-body {
    padding: 20px;
    flex: 1;
}

.order-items-list {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px dashed rgba(224, 224, 224, 0.7);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.order-item-dot {
    width: 6px;
    height: 6px;
    background: var(--third-color);
    border-radius: 50%;
}

.order-item-qty {
    width: 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.order-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    min-width: 90px;
    text-align: right;
}

.order-more-items {
    text-align: center;
    padding: 10px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    background: rgba(24, 83, 41, 0.05);
    border-radius: 10px;
    margin-top: 10px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    background: rgba(24, 83, 41, 0.02);
    padding: 15px;
    border-radius: 16px;
}

.order-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-info-item.discount .order-info-icon {
    background: rgba(76, 175, 80, 0.1);
}

.order-info-item.discount .order-info-value {
    color: #4CAF50;
}

.order-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(24, 83, 41, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.order-info-content {
    display: flex;
    flex-direction: column;
}

.order-info-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.order-card-footer {
    padding: 20px;
    background: linear-gradient(to right, rgba(24, 83, 41, 0.02), transparent);
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-wrapper {
    display: flex;
    flex-direction: column;
}

.order-total-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.order-repeat-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), #0d3a1f);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(24, 83, 41, 0.2);
}

.order-repeat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(24, 83, 41, 0.3);
}

.order-repeat-btn i {
    font-size: 16px;
}


/* Empty State - Modern */

.empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(224, 224, 224, 0.5);
    margin: 40px 0;
}

.empty-orders-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(24, 83, 41, 0.1), rgba(156, 211, 155, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.empty-orders-icon::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px dashed var(--third-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.empty-orders-icon i {
    font-size: 48px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.empty-orders-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-orders-text {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.empty-orders-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), #0d3a1f);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(24, 83, 41, 0.25);
}

.empty-orders-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(24, 83, 41, 0.35);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .order-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .order-id-wrapper {
        align-items: flex-start;
    }
    .order-meta {
        flex-direction: column;
        gap: 10px;
    }
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    .order-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .order-total-wrapper {
        align-items: center;
        text-align: center;
    }
    .order-repeat-btn {
        width: 100%;
        justify-content: center;
    }
    .empty-orders {
        padding: 40px 20px;
    }
    .empty-orders-title {
        font-size: 24px;
    }
    .empty-orders-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .order-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .order-item-name {
        width: 100%;
    }
    .order-item-price {
        min-width: auto;
    }
    .order-total-amount {
        font-size: 20px;
    }
}

.bi.bi-cash {
    font-size: 18px;
}

.order-info-item .bi.bi-cash {
    color: var(--primary-color);
    font-size: 20px;
}

.order-info-item.discount .order-info-icon {
    background: rgba(76, 175, 80, 0.1);
}

.order-info-item.discount .order-info-value {
    color: #4CAF50;
}

.order-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(24, 83, 41, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.order-info-icon .bi {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 
 */

@media (min-width: 360px) and (max-width: 768px) {
    .dashboard-content {
        gap: 30px;
    }
    .food-badge {
        display: none;
    }
}


footer {
    box-shadow: 0px 4px 4px 0px #00000040 inset;
    padding: 50px 0px 39px 0px;
}

.footer_box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 130px;
    background: var(--primary-color);
    padding: 15px 51px 42px 13px;
    border-radius: 20px;
}

.saray-mark {
    position: absolute;
    top: -80px;
    left: -75px;
}

.footer_lft {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-left: 13px;
}

.footer_lft img {
    width: 186px;
    height: 197px;
}

.footer_lft h2 {
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 40px;
    letter-spacing: 4%;
    text-align: center;
    color: var(--secondary-color);
    width: 330px;
}

.footer_center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer_center h2 {
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 30px;
    line-height: 40px;
    letter-spacing: 1%;
    text-align: left;
    color: #9CD39B;
}

.footer_center h3 {
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 40px;
    width: 110px;
    letter-spacing: 1%;
    text-align: left;
    color: var(--secondary-color);
}

.footer_rgt {
    margin-top: 58px;
}

.footer_rgt h2 {
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 30px;
    leading-trim: none;
    line-height: 40px;
    letter-spacing: 2%;
    text-align: left;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.footer_rgt p {
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 2%;
    margin-bottom: 22px;
    color: var(--secondary-color);
}

.footer_rgt i {
    color: #9CD39B;
    width: 25px;
    height: 25px;
}

.footer_btn {
    display: flex;
    gap: 28px;
    padding: 3px 5px 3px 15px;
    align-items: center;
    background: var(--primary-color);
    border: 0.1px solid #45903E;
    border-radius: 12px;
    box-shadow: 0px 4px 4px 0px #FFFFFF1A inset;
    font-family: Inria Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--secondary-color);
}

.box-footer {
    font-family: Inter;
    font-weight: 300;
    font-style: Light;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--secondary-color);
    background-color: #0F3319;
    border-radius: 14px;
    padding: 3px 15px 10px 15px;
}

@media (min-width: 368px) and (max-width: 400px) {
    .map_btn {
        padding: 10px;
        width: 100%;
    }
    .map_box {
        display: none;
    }
    .hero_tt {
        font-size: 24px;
        line-height: 34px;
    }
    .hero_rgt {
        position: relative;
        width: 500px;
        height: 500px;
        z-index: -55;
        img {
            position: absolute;
            top: 0px;
            left: -100px;
        }
    }
    .menu_box {
        height: auto;
        padding-bottom: 20px;
    }
    .saray_form {
        margin-left: auto;
        display: block;
    }
    .saray_food {
        display: block;
        width: 0px;
        margin-left: 46px;
    }
    .menu_titles {
        margin-left: 20px;
        margin-top: 20px;
    }
    .others {
        padding: 8px 20px;
        font-size: 24px;
    }
    .hero_btn {
        z-index: -1;
    }
}

@media (hover: hover) {
    .head__rgt button:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 8px 0px #00000040 inset;
        transition: all 0.3s ease;
    }
    .hero_btn:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 8px 0px #00000040 inset;
        transition: all 0.3s ease;
    }
    .menu_btn:hover {
        background: #0F3319;
        transition: all 0.3s ease;
    }
    .menu_btn:hover .box {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    .others:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 8px 0px #00000040;
        transition: all 0.3s ease;
    }
    .menu_box:hover {
        transform: translateY(-5px);
        box-shadow: 0px 15px 20px 0px #0F3319;
        transition: all 0.3s ease;
    }
    .title_link:hover {
        color: #0F3319;
    }
    .phone_num:hover {
        color: #0F3319;
    }
    .footer_btn:hover {
        background: #0F3319;
        transition: all 0.3s ease;
    }
    .footer_btn:hover .box-footer {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
}



@media (max-width: 576px) {
    .deliver_rgt img {
        width: 100%;
    }
    .footer_rgt {
        margin-top: 0px;
        p {
            width: 250px;
            margin: 0 auto;
        }
    }
    .logo_none {
        display: block;
    }
    .bi-geo-alt {
        left: 0px;
    }
    .map {
        width: 100%;
    }
    .location_right img {
        display: none;
    }
    .logo_none {
        margin: 0 auto;
        margin-bottom: 40px;
        display: block;
    }
    .nav__head {
        padding: 15px 0;
    }
    .logo img {
        width: 80px;
    }
    .head__rgt button {
        padding: 6px 12px;
        font-size: 16px;
    }
    .hero_tt {
        font-size: 28px;
        line-height: 38px;
        width: 250px;
    }
    .hero_btn {
        padding: 8px 25px;
        z-index: -1;
        font-size: 18px;
    }
    .famous_title h1 {
        font-size: 40px;
    }
    .famous_title p {
        font-size: 18px;
    }
    .fd_name {
        font-size: 32px;
    }
    .adj_title {
        font-size: 18px;
    }
    .price {
        font-size: 28px;
    }
    .menu_btn {
        font-size: 22px;
        padding: 8px 12px;
    }
    .box {
        font-size: 28px;
        padding: 5px 10px 7px 10px;
    }
    .location h1 {
        font-size: 40px;
    }
    .location p {
        font-size: 20px;
        line-height: 30px;
        margin: 20px auto;
    }
    .location_box {
        padding: 20px;
    }
    .gordinate_lc,
    .phone_number {
        font-size: 20px;
    }
    .deliver_navbar .deliver_lft h2 {
        font-size: 32px;
    }
    .deliver_navbar .deliver_lft p {
        font-size: 20px;
        line-height: 30px;
    }
    .deliver_navbar .deliver_lft button {
        padding: 8px 25px;
        font-size: 18px;
    }
    .footer_box {
        padding: 20px;
    }
    .footer_lft img {
        width: 150px;
        height: auto;
    }
    .footer_lft h2 {
        font-size: 18px;
        line-height: 30px;
    }
    .footer_center h2 {
        font-size: 26px;
    }
    .footer_center h3 {
        font-size: 18px;
    }
    .footer_rgt h2 {
        font-size: 24px;
    }
    .footer_rgt p {
        font-size: 16px;
    }
    .footer_btn {
        font-size: 22px;
        padding: 3px 15px;
    }
    .map_btn {
        font-size: 22px;
        padding: 3px 15px;
    }
    .box-footer {
        font-size: 28px;
        padding: 3px 10px 8px 10px;
    }
    .saray-mark {
        width: 150px;
        top: -40px;
        left: -30px;
    }
}


@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    .hero_lft {
        margin: 90px 0px 0px 50px;
    }
    .location_box {
        gap: 50px;
        padding: 30px;
    }
    .deliver_navbar {
        gap: 80px;
    }
    .footer_box {
        gap: 80px;
        padding: 30px;
    }
    .hero-image img {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-image img {
        display: none;
    }
    .nav__hero {
        text-align: center;
    }
    .hero_lft {
        margin: 50px 0;
        text-align: center;
    }
    .hero_tt {
        width: 100%;
        font-size: 40px;
        line-height: 50px;
    }
    .hero_rgt img {
        margin-top: 30px;
        width: 300px;
        height: auto;
    }
    .hero-image img {
        width: 20%;
        height: auto;
    }
    .link_list {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .head__rgt .phone_num {
        display: none;
    }
    .head__rgt .phone {
        display: none;
    }
    .short_menu {
        flex-direction: column;
        align-items: center;
    }
    .menu_box {
        width: 100%;
        max-width: 379px;
    }
    .location p {
        width: 100%;
        font-size: 24px;
        line-height: 35px;
    }
    .location_box {
        flex-direction: column;
        gap: 30px;
    }
    .location_right img {
        margin: 0 auto 30px;
        display: block;
    }
    .gordinate_lc,
    .phone_number {
        font-size: 24px;
    }
    .deliver_navbar {
        flex-direction: column;
        text-align: center;
        margin-top: 100px;
        gap: 40px;
    }
    .footer_btn {
        gap: 60%;
        width: 100%;
    }
    .map_btn {
        width: 60%;
    }
    .deliver_navbar .deliver_lft h2 {
        margin-left: 0;
    }
    .deliver_navbar .deliver_lft p {
        width: 100%;
    }
    .footer_box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer_lft,
    .footer_center,
    .footer_rgt {
        width: 100%;
    }
    .footer_center {
        align-items: center;
    }
    .footer_center h3 {
        width: auto;
    }
    .footer_rgt {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .famous_title h1 {
        font-size: 50px;
        margin-top: 60px;
    }
    .famous_title p {
        font-size: 22px;
    }
    .hero_tt {
        font-size: 35px;
        line-height: 45px;
    }
    .location h1 {
        font-size: 50px;
    }
    .location_img {
        width: 80px;
        height: 80px;
        left: 10px;
    }
    .map_btn {
        width: 80%;
    }
    .menu_btn {
        font-size: 24px;
    }
    .box {
        font-size: 32px;
        padding: 5px 12px 8px 12px;
    }
    .deliver_navbar .deliver_lft h2 {
        font-size: 40px;
    }
    .deliver_navbar .deliver_lft p {
        font-size: 24px;
        line-height: 35px;
    }
    .footer_rgt h2 {
        font-size: 26px;
    }
    .footer_rgt p {
        font-size: 18px;
    }
    .footer_btn {
        font-size: 24px;
    }
    .box-footer {
        font-size: 32px;
    }
}

/* ============ CHEK (RECEIPT) STILLARI ============ */
.receipt-modal {
    max-width: 380px !important;
    background: white !important;
    padding: 0 !important;
}

.receipt-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.receipt-header h2 {
    font-size: 18px;
    margin: 0;
    color: #185329;
}

.receipt-header p {
    margin: 5px 0;
    font-size: 10px;
    color: #666;
}

.receipt-items {
    margin: 10px 0;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 11px;
}

.receipt-item-name {
    flex: 2;
}

.receipt-item-qty {
    width: 40px;
    text-align: center;
}

.receipt-item-price {
    width: 80px;
    text-align: right;
}

.receipt-divider {
    border-top: 1px dashed #ccc;
    margin: 10px 0;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin: 5px 0;
}

.receipt-footer {
    text-align: center;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 10px;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.receipt-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.print-receipt-btn {
    background: #185329;
    color: white;
}

.close-receipt-btn {
    background: #f5f5f5;
    color: #333;
}

/* ============ MANZIL QO'SHISH STILLARI ============ */
.address-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.address-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #185329;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-input-group {
    margin-bottom: 10px;
}

.address-input-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.address-input-group input,
.address-input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.address-input-group textarea {
    resize: vertical;
    min-height: 60px;
}

.map-preview {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.map-preview iframe {
    width: 100%;
    height: 150px;
    border: none;
}

.open-map-btn {
    width: 100%;
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.open-map-btn:hover {
    background: #1976D2;
}

.selected-address-info {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 12px;
    color: #2e7d32;
}

/* ============ CHEK KARTASI STILLARI ============ */
.order-receipt-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
}

.order-receipt-btn:hover {
    background: #45a049;
}

/* Print stillari */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-modal, .receipt-modal * {
        visibility: visible;
    }
    .receipt-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
    }
    .receipt-actions {
        display: none;
    }
    .modal-close, .close-receipt-btn {
        display: none;
    }
}

/* ============ MANZIL MODAL STILLARI ============ */
.address-modal .modal-content {
    max-width: 480px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.address-header {
    background: linear-gradient(135deg, #185329, #0d3a1f);
    color: white;
    padding: 20px;
    text-align: center;
}

.address-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.address-header p {
    margin: 8px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.address-body {
    padding: 25px;
}

.address-input-group {
    margin-bottom: 18px;
}

.address-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.address-input-group label i {
    color: #185329;
    margin-right: 8px;
    width: 18px;
}

.address-input-group input,
.address-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.address-input-group input:focus,
.address-input-group textarea:focus {
    outline: none;
    border-color: #185329;
    box-shadow: 0 0 0 3px rgba(24, 83, 41, 0.1);
}

.address-input-group textarea {
    resize: vertical;
    min-height: 70px;
}

.address-row {
    display: flex;
    gap: 15px;
}

.address-row .address-input-group {
    flex: 1;
}

.map-preview-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
}

.map-preview-card iframe {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    border: none;
}

.map-preview-card p {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.open-map-btn {
    width: 100%;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    color: #185329;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.open-map-btn:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.selected-address-badge {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #185329;
}

.selected-address-badge i {
    color: #185329;
    font-size: 20px;
}

.selected-address-badge .address-text {
    flex: 1;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
}

.address-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.address-cancel-btn {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.address-cancel-btn:hover {
    background: #e0e0e0;
}

.address-save-btn {
    flex: 1;
    padding: 12px;
    background: #185329;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.address-save-btn:hover {
    background: #0d3a1f;
    transform: translateY(-2px);
}

/* ============ MANZIL DISPLAY KARTASI ============ */
.delivery-address-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.delivery-address-card i {
    color: #185329;
    font-size: 20px;
    margin-top: 2px;
}

.delivery-address-info {
    flex: 1;
}

.delivery-address-info h4 {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px 0;
}

.delivery-address-info p {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.delivery-address-info small {
    font-size: 11px;
    color: #999;
}

.edit-address-link {
    color: #185329;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

.edit-address-link:hover {
    text-decoration: underline;
}

/* ============ CHEK MODAL STILLARI ============ */
.receipt-modal .modal-content {
    max-width: 400px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.receipt-header-custom {
    background: linear-gradient(135deg, #185329, #0d3a1f);
    color: white;
    padding: 20px;
    text-align: center;
}

.receipt-header-custom h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.receipt-body {
    padding: 20px;
    background: white;
}

.receipt-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.receipt-shop {
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.receipt-shop h4 {
    font-size: 16px;
    margin: 0;
    color: #185329;
}

.receipt-shop p {
    margin: 3px 0;
    font-size: 10px;
    color: #666;
}

.receipt-order-info {
    text-align: center;
    margin-bottom: 12px;
}

.receipt-order-info .order-id {
    font-weight: bold;
    font-size: 13px;
}

.receipt-items-list {
    margin: 12px 0;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.receipt-item-name {
    flex: 2;
}

.receipt-item-qty {
    width: 40px;
    text-align: center;
}

.receipt-item-price {
    width: 80px;
    text-align: right;
}

.receipt-divider-light {
    border-top: 1px dashed #ddd;
    margin: 10px 0;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-weight: bold;
}

.receipt-footer-text {
    text-align: center;
    border-top: 1px dashed #ccc;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 10px;
    color: #666;
}

.receipt-actions-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.print-receipt-btn-custom {
    flex: 1;
    padding: 12px;
    background: #185329;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.close-receipt-btn-custom {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Print stillari */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-modal, .receipt-modal * {
        visibility: visible;
    }
    .receipt-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .receipt-actions-btns {
        display: none;
    }
    .modal-header, .receipt-header-custom .close-receipt {
        display: none;
    }
}

/* ============ ACHCHIQ BELGISI (FAQAT ICON) ============ */
.spicy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============ ACHCHIQ BELGISI ============ */
.spicy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

/* ============ MOL GO'SHITI BELGISI ============ */
.beef-icon {
    position: absolute;
    top: 8px;
    background: linear-gradient(135deg, #8B4513, #5C2E00);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============ TOVUQ GO'SHITI BELGISI ============ */
.chicken-icon {
    position: absolute;
    top: 8px;
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Agar ikkala icon bo'lsa, birinchi icon o'ngda, ikkinchi icon uning yonida */
.food-card-dashboard {
    position: relative;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============ TOVUQ GO'SHITI BELGISI (RASM BILAN) ============ */
.chicken-icon {
    position: absolute;
    top: 8px;
    right: 48px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chicken-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yoki background image sifatida */
.chicken-icon-bg {
    position: absolute;
    top: 8px;
    right: 48px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background-image: url('../img/chicken.png');
    background-size: cover;
    background-position: center;
}