@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #EF8B08;
    --primary-dark: #D97706;
    --dark: #192F52;
    --muted: #667085;
    --background: #FFF8ED;
    --white: #FFFFFF;
    --border: #E9E0D3;
    --green: #248B58;
    --navy: #192F52;
    --cream: #FFF8ED;
    --orange: #EF8B08;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
}

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.topbar {
    height: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5%, calc((100% - 1150px) / 2));
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -1.5px;
}

.brand span {
    color: var(--primary);
}

.brand.large {
    font-size: 36px;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    border: 0;
    background: #fff2ec;
    color: var(--primary-dark);
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 700;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 34px 24px 70px;
}

.page {
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 430px;
    margin: 35px auto;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,.04);
}

.auth-card > .muted {
    text-align: center;
    margin: 8px 0 25px;
}

.auth-tabs {
    display: flex;
    background: #f2f2f3;
    padding: 5px;
    border-radius: 11px;
    margin-bottom: 25px;
}

.tab {
    flex: 1;
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}

.tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 16px 0 7px;
}

input, select {
    width: 100%;
    padding: 13px 14px;
    background: var(--white);
    border: 1px solid #dedee2;
    border-radius: 10px;
    outline: none;
    color: var(--dark);
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239,107,53,.10);
}

.primary-btn, .secondary-btn, .logout-btn {
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s;
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-dark);
}

.secondary-btn {
    background: #f0f0f2;
    color: var(--dark);
}

.logout-btn {
    background: #fff0ed;
    color: #bd422e;
    width: 100%;
    margin-top: 25px;
}

.full {
    width: 100%;
    margin-top: 18px;
}

.message {
    min-height: 18px;
    font-size: 13px;
    margin: 12px 0 0;
}

.message.error {
    color: #c43c32;
}

.message.success {
    color: var(--green);
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--primary);
    margin: 0 0 8px;
}

.welcome-banner {
    background: #fff0e8;
    border-radius: 22px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.welcome-banner h1 {
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.2;
    margin-bottom: 10px;
    max-width: 550px;
}

.welcome-banner h1 span {
    color: var(--primary);
}

.welcome-banner .muted {
    margin-bottom: 0;
}

.delivery-location {
    background: var(--white);
    border: 1px solid #f5d9cc;
    padding: 15px 19px;
    border-radius: 13px;
    min-width: 180px;
}

.delivery-location small,
.delivery-location strong {
    display: block;
}

.delivery-location small {
    color: var(--muted);
    margin-bottom: 5px;
}

.delivery-location strong {
    font-size: 14px;
}

.active-orders-section {
    margin: 8px 0 34px;
    padding: 22px;
    background: #fffaf6;
    border: 1px solid #f2dfd3;
    border-radius: 18px;
}
.active-orders-heading { margin: 0 0 16px; }
.active-orders-heading .muted { margin: 7px 0 0; font-size: 13px; }
.active-orders-list { display: grid; gap: 14px; }
.active-order-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.active-order-card .order-date { color: var(--muted); font-size: 12px; margin: 5px 0 13px; }
.active-order-card .order-items-list { margin: 12px 0; }
.active-order-progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    margin: 18px 0 14px;
}
.active-order-step { min-width: 0; text-align: center; color: var(--muted); font-size: 10px; }
.active-order-step-mark {
    display: block; width: 15px; height: 15px; margin: 0 auto 7px;
    border-radius: 50%; background: #e5e7eb; border: 2px solid #e5e7eb;
}
.active-order-step.is-complete .active-order-step-mark { background: #2d9b68; border-color: #2d9b68; }
.active-order-step.is-current { color: var(--primary); font-weight: 800; }
.active-order-step.is-current .active-order-step-mark {
    background: #fff;
    border: 4px solid var(--primary);
    position: relative;
    animation: active-order-current-pulse 1.8s ease-out infinite;
}
.active-order-step.is-current .active-order-step-mark::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: active-order-current-ring 1.8s ease-out infinite;
}
@keyframes active-order-current-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent); }
    50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
}
@keyframes active-order-current-ring {
    0% { transform: scale(.65); opacity: .55; }
    75%, 100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .active-order-step.is-current .active-order-step-mark,
    .active-order-step.is-current .active-order-step-mark::after {
        animation: none;
    }
}
.active-order-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.active-order-footer strong { color: var(--text); }
@media (max-width: 600px) {
    .active-orders-section { padding: 15px; }
    .active-order-card { padding: 14px; }
    .active-order-step { font-size: 9px; }
    .active-order-progress { gap: 2px; }
}

.search-area {
    margin-bottom: 35px;
}

.search-area input {
    max-width: 550px;
    padding: 15px 18px;
    background: var(--white);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0 18px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
}

.section-heading h2 {
    font-size: 23px;
}

.business-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.business-card, .product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .2s;
}

.business-card {
    cursor: pointer;
}

.business-card:hover, .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.business-image, .product-image {
    height: 170px;
    background: #fff0e8;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.business-image span, .product-image span {
    font-size: 48px;
}

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

.business-card-content, .product-content {
    padding: 17px;
}

.business-card h3, .product-card h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.business-card p, .product-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 13px;
}

.view-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

.business-heading {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 25px;
    margin: 15px 0 30px;
}

.business-heading h1 {
    margin-bottom: 8px;
}

.business-heading p:last-child {
    margin-bottom: 0;
}

.product-image {
    height: 155px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-bottom strong {
    color: var(--primary-dark);
}

.small-btn {
    border: 0;
    background: #fff0e8;
    color: var(--primary-dark);
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 800;
}

.cart-panel {
    margin-top: 35px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.cart-panel .section-heading {
    margin-top: 0;
}

.cart-count {
    color: var(--muted);
    font-size: 13px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: 0;
    background: #f2f2f3;
    border-radius: 7px;
    font-weight: 800;
}

.cart-total, .summary-line, .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
}

.cart-total strong, .order-total strong {
    font-size: 19px;
    color: var(--primary-dark);
}

.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.cart-actions button:last-child {
    flex: 1;
}

.back-btn {
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 800;
    padding: 8px 0;
    margin-bottom: 15px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: start;
}

.checkout-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 25px;
}

.checkout-card h2 {
    font-size: 19px;
    margin-bottom: 18px;
}

.hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.divider {
    border-top: 1px solid var(--border);
    margin: 25px 0;
}

.payment-option {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 12px 0;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: #fff8f4;
}

.payment-option input {
    width: auto;
    margin: 3px 0 0;
    accent-color: var(--primary);
}

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

.payment-option small {
    color: var(--muted);
    font-weight: 400;
    margin-top: 4px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.summary-line {
    font-size: 14px;
    padding: 12px 0;
}

.total-line {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 18px;
    font-size: 17px;
}

.total-line strong {
    color: var(--primary-dark);
    font-size: 21px;
}

.success-card {
    max-width: 520px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    margin: 25px auto;
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #e8f7ef;
    color: var(--green);
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.success-card h1 {
    font-size: 26px;
}

.order-number-box {
    background: #fff4ee;
    padding: 17px;
    border-radius: 12px;
    margin: 22px 0;
}

.order-number-box small, .order-number-box strong {
    display: block;
}

.order-number-box small {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.order-number-box strong {
    color: var(--primary-dark);
    font-size: 20px;
}

.success-details {
    text-align: left;
    padding: 0 5px;
}

.success-details p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
}

.profile-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #fff0e8;
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-size: 27px;
    font-weight: 800;
    margin: 0 auto 15px;
}

.profile-card h2 {
    margin-bottom: 5px;
}

.profile-info {
    max-width: 450px;
    margin: 25px auto 0;
    text-align: left;
}

.profile-info > div {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.profile-info small, .profile-info strong {
    display: block;
}

.profile-info small {
    color: var(--muted);
    margin-bottom: 8px;
}

.profile-info strong {
    font-size: 14px;
}

.order-list {
    display: grid;
    gap: 15px;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}

.order-card-top small {
    color: var(--muted);
    font-size: 11px;
}

.order-card-top h3 {
    margin: 5px 0;
    font-size: 17px;
}

.status-pill {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 20px;
    background: #fff2e7;
    color: #b85c24;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.status-delivered {
    background: #e7f7ee;
    color: #248b58;
}

.status-cancelled, .status-rejected {
    background: #ffeded;
    color: #b83e3e;
}

.order-date {
    font-size: 12px;
    margin: 5px 0 12px;
}

.order-items-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
}

.order-meta {
    display: grid;
    gap: 5px;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.order-total {
    border-top: 1px solid var(--border);
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px dashed #d8d8dd;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 0;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #252525;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 100;
    font-size: 13px;
    text-align: center;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 800px) {
    .business-grid, .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .topbar {
        height: 62px;
        padding: 0 17px;
    }

    .brand {
        font-size: 23px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-btn {
        padding: 9px 10px;
        font-size: 11px;
    }

    .container {
        padding: 22px 15px 55px;
    }

    .welcome-banner {
        padding: 23px;
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-location {
        width: 100%;
    }

    .business-grid, .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .business-image, .product-image {
        height: 125px;
    }

    .business-card-content, .product-content {
        padding: 12px;
    }

    .business-card h3, .product-card h3 {
        font-size: 14px;
    }

    .business-card p, .product-card p {
        font-size: 11px;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-panel, .checkout-card, .profile-card {
        padding: 18px;
    }

    .cart-item {
        grid-template-columns: 1fr auto;
    }

    .cart-item > strong {
        grid-column: 1 / -1;
        text-align: right;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-actions button {
        width: 100%;
    }

    .auth-card {
        padding: 25px 20px;
        margin-top: 15px;
    }

    .success-card {
        padding: 25px 20px;
    }

    .order-card {
        padding: 15px;
    }

    .order-card-top {
        flex-direction: column;
    }
}

/* SELLER DASHBOARD */

#sellerDashboardPage .card {
    background: var(--card-bg, white);
    border-radius: 14px;
}

#sellerDashboardPage .order-card {
    padding: 18px;
}

#sellerDashboardPage .small-btn {
    cursor: pointer;
}

#sellerDashboardPage button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#sellerDashboardPage .order-total {
    margin-top: 12px;
    font-weight: 700;
}
/* Carteen brand intro — original speed-line logo artwork */
.brand-intro {
    position: fixed; inset: 0; z-index: 1000; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; overflow: hidden; background: #192F52;
    animation: intro-background-out .35s ease 1.45s forwards;
}
html.intro-seen .brand-intro { display: none; }
.intro-logo {
    display: block; width: min(78vw, 430px); height: auto;
    max-height: 54vh; object-fit: contain; border-radius: 8px;
    opacity: 0; transform: scale(.97);
    animation: intro-logo-appear .6s cubic-bezier(.2,.8,.2,1) .08s forwards,
               intro-logo-disappear .25s ease 1.25s forwards;
}
.intro-tagline {
    margin: 0; color: #FFF8ED; font-size: 11px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; opacity: 0;
    animation: intro-tagline-appear .4s ease .48s forwards,
               intro-tagline-disappear .2s ease 1.25s forwards;
}
@keyframes intro-logo-appear { to { opacity: 1; transform: scale(1); } }
@keyframes intro-logo-disappear { to { opacity: 0; transform: scale(1.015); } }
@keyframes intro-tagline-appear { to { opacity: .78; } }
@keyframes intro-tagline-disappear { to { opacity: 0; } }
@keyframes intro-background-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.brand { display: inline-flex; align-items: center; gap: 9px; letter-spacing: -1px; }
.brand-icon { width: 39px; height: 39px; border-radius: 11px; object-fit: cover; }
.brand-word { color: #fff; }
.auth-brand {
    display: flex; align-items: center; justify-content: center; gap: 11px;
    color: #192f52; font-family: 'Poppins', sans-serif; font-size: 34px;
    font-weight: 800; letter-spacing: -1.8px;
}
.auth-brand-icon { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
@media (max-width: 600px) {
    .intro-logo { width: min(88vw, 360px); }
    .intro-tagline { font-size: 9px; letter-spacing: .15em; }
    .brand-icon { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-intro, .intro-logo, .intro-tagline { animation: none !important; }
    .brand-intro { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* Header wordmark and navigation labels remain white on navy */
.topbar .brand .brand-word { color: #FFFFFF !important; }
.topbar .brand .brand-word .brand-accent { color: #EF8B08 !important; }
.topbar .header-btn, .topbar .header-btn:visited, .topbar .header-btn:focus {
    color: #FFFFFF !important;
}
.topbar .header-btn svg { color: currentColor; stroke: currentColor; }

/* =========================================================
   CARTEEN EDITORIAL BRAND SYSTEM
   Navy #192F52 · Orange #EF8B08 · Cream #FFF8ED
   Existing layout and interaction selectors are preserved.
========================================================= */
:root {
    color-scheme: light;
}
body {
    background: var(--background);
    color: var(--navy);
    font-family: 'Poppins', 'DM Sans', sans-serif;
}
h1, h2, h3, .brand, .brand-word {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.045em;
}
.topbar {
    min-height: 76px;
    height: auto;
    background: rgba(25,47,82,.97);
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 24px rgba(15,31,56,.08);
    backdrop-filter: blur(14px);
}
.brand {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand-word { color: #fff; }
.brand-accent, .brand span { color: var(--orange) !important; }
.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
}
.header-actions { align-items: center; flex-wrap: wrap; }
.header-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    padding: 9px 15px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.header-btn:hover {
    background: rgba(239,139,8,.16);
    border-color: var(--orange);
    transform: translateY(-1px);
}
.container {
    max-width: 1240px;
    padding: 42px 28px 84px;
}
.page { animation: editorialReveal .45s ease both; }
@keyframes editorialReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
    color: var(--orange);
    letter-spacing: .2em;
    font-size: 10px;
    font-weight: 800;
}
.welcome-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 330px;
    padding: clamp(28px,5vw,62px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 82% 47%, rgba(239,139,8,.24) 0 13%, transparent 13.3%),
        radial-gradient(circle at 82% 47%, rgba(255,248,237,.11) 0 23%, transparent 23.3%),
        linear-gradient(112deg, #192F52 0%, #203D68 68%, #142744 100%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(25,47,82,.17);
}
.welcome-banner::after {
    content: "GOOD FOOD\\A GOOD MOOD";
    white-space: pre;
    position: absolute;
    z-index: -1;
    right: 4%;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    color: rgba(255,255,255,.10);
    font-size: clamp(30px,5.5vw,68px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.07em;
    text-align: right;
}
.welcome-banner > div:first-child { max-width: 620px; }
.welcome-banner h1 {
    color: #fff;
    max-width: 590px;
    font-size: clamp(34px,5vw,62px);
    line-height: 1.08;
    margin: 12px 0 16px;
}
.welcome-banner h1 span { color: var(--orange); }
.welcome-banner .muted { color: rgba(255,255,255,.76); font-size: 15px; }
.delivery-location {
    position: relative;
    z-index: 1;
    background: var(--cream);
    color: var(--navy);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.delivery-location small { color: var(--muted); }
.delivery-location strong { color: var(--navy); }
.search-area { margin: 28px 0 42px; }
.search-area input {
    max-width: 620px;
    border-radius: 999px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(25,47,82,.05);
}
.section-heading { margin: 34px 0 20px; }
.section-heading h1, .section-heading h2 { color: var(--navy); }
.business-grid, .product-grid {
    gap: 22px;
}
.business-card, .product-card {
    border: 1px solid var(--border);
    border-radius: 19px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25,47,82,.045);
    transition: transform .25s ease, box-shadow .25s ease;
}
.business-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(25,47,82,.12);
}
.business-card img, .product-card img {
    transition: transform .45s ease;
}
.business-card:hover img, .product-card:hover img { transform: scale(1.045); }
.primary-btn {
    background: var(--orange);
    color: var(--navy);
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 7px 18px rgba(239,139,8,.18);
}
.primary-btn:hover {
    background: #F5A623;
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(239,139,8,.24);
}
.secondary-btn {
    background: #EEF1F5;
    color: var(--navy);
    border: 1px solid #DCE3EC;
    border-radius: 999px;
}
.tab.active {
    color: var(--navy);
    background: #fff;
}
.auth-card, .checkout-card, .profile-card, .cart-panel, .success-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(25,47,82,.065);
}
.auth-card { padding: 38px; }
.auth-brand { color: var(--navy); }
input, select {
    border-color: #D9DFE8;
    border-radius: 12px;
}
input:focus, select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(239,139,8,.14);
}
.back-btn {
    color: var(--navy);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
}
.cart-panel { padding: 24px; }
.cart-total, .summary-line.total-line {
    color: var(--navy);
    border-color: var(--border);
}
.success-icon { background: var(--orange); color: var(--navy); }
.toast { background: var(--navy); }
.brand-intro { background: var(--navy); }
.intro-tagline { color: var(--cream); }
@media (max-width: 760px) {
    .topbar { padding: 12px 18px; gap: 12px; align-items: flex-start; }
    .header-actions { justify-content: flex-end; gap: 7px; }
    .header-btn { padding: 8px 11px; font-size: 12px; }
    .container { padding: 26px 16px 60px; }
    .welcome-banner { min-height: 300px; align-items: flex-start; flex-direction: column; }
    .welcome-banner::after { right: 4%; top: 72%; font-size: 34px; }
    .delivery-location { min-width: 0; }
}
@media (max-width: 460px) {
    .brand { font-size: 21px; }
    .brand-icon { width: 32px; height: 32px; }
    .header-actions { gap: 5px; }
    .header-btn { padding: 7px 9px; font-size: 11px; }
    .welcome-banner { padding: 26px 22px; border-radius: 20px; }
    .welcome-banner h1 { font-size: 35px; }
    .auth-card { padding: 25px 20px; }
}

/* Navigation icon alignment and contrast */
.topbar .header-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; color:#fff !important; }
.topbar .header-btn span { color:#fff !important; }
.topbar .nav-icon { flex:0 0 auto; }
@media(max-width:460px) { .topbar .header-btn { gap:5px; } }


/* Visible pressable affordance for buttons throughout the app */
button {
    border: 1px solid rgba(25, 47, 82, .28);
    transition: background-color .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .18s ease, color .18s ease;
}
button.primary-btn {
    border: 1px solid #C86F00;
    box-shadow: 0 2px 0 rgba(25,47,82,.08);
}
button.secondary-btn, button.back-btn, button.logout-btn {
    border: 1px solid rgba(25,47,82,.24);
}
button.tab { border: 1px solid transparent; }
button.tab.active { border-color: rgba(239,139,8,.55); }
button.header-btn {
    border: 1px solid rgba(255,255,255,.48);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
button:not(:disabled):hover {
    border-color: var(--orange);
    box-shadow: 0 3px 10px rgba(25,47,82,.10);
}
button:focus-visible { outline: 3px solid rgba(239,139,8,.5); outline-offset: 3px; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { box-shadow: none; }

/* Login/register brand contrast fix: navy Cart + orange een on white card */
.auth-card .auth-brand .brand-word {
    color: #192F52 !important;
}
.auth-card .auth-brand .brand-accent {
    color: #EF8B08 !important;
}

.gcash-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #d7e4f5;
    border-radius: 16px;
    background: #f4f8fd;
    text-align: left;
}

.gcash-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gcash-head strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
}

.gcash-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.gcash-mark {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #0033a0;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.gcash-qr {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin: 16px auto;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.gcash-amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}

.gcash-amount small {
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 11px;
}

.gcash-amount strong {
    color: var(--navy);
    font-size: 22px;
}

.gcash-steps {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.5;
}

.gcash-steps li + li {
    margin-top: 6px;
}

.gcash-success {
    margin: 8px 0 18px;
}

.gcash-ref {
    margin: 12px 0;
    color: var(--navy);
    font-size: 14px;
}

.gcash-inline {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
}

.gcash-inline .gcash-qr {
    width: 112px;
    margin: 0;
    padding: 6px;
}

.gcash-inline p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 460px) {
    .gcash-inline {
        grid-template-columns: 1fr;
    }

    .gcash-inline .gcash-qr {
        width: min(200px, 100%);
        margin: 0 auto;
    }
}


/* Authentication recovery links and reset-password form */
.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 18px;
}
.text-link {
    border: 0;
    padding: 3px 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.text-link:disabled { opacity: .6; cursor: wait; }
.auth-form-title { text-align: center; margin: 22px 0 8px; }
#resetPasswordPage .auth-card > .muted { text-align: center; margin-bottom: 22px; }


/* Customer ratings, satisfaction analytics, and cancellation alerts */
.rating-stars { color:#e5a000; letter-spacing:1px; white-space:nowrap; }
.business-rating-summary, .product-rating { color:var(--muted); font-size:13px; margin-top:6px; }
.product-rating small { color:var(--muted); }
.order-review-form, .submitted-review { margin-top:16px; padding:16px; border:1px solid var(--border); border-radius:12px; background:#fffdf8; }
.order-review-form h4, .submitted-review h4 { margin:0 0 12px; }
.order-review-form label { display:flex; flex-direction:column; gap:7px; margin:10px 0; font-size:13px; color:var(--muted); }
.order-review-form select, .order-review-form textarea { width:100%; border:1px solid var(--border); border-radius:9px; padding:10px 12px; background:#fff; color:var(--text); }
.product-review-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px 14px; margin:12px 0; }
.product-review-fields > strong { grid-column:1/-1; }
.review-availability { color:var(--muted); font-size:13px; margin-top:12px; }
.reviewed-products p { margin:5px 0; }
.cancel-order-btn { margin:10px 0; border-color:#d88b8b; color:#a52c2c; }
.cancellation-note { padding:10px 12px; border-radius:9px; background:#fff3f1; color:#8b2c24; font-size:13px; }
.review-feed { display:grid; gap:10px; }
.review-feed-item { border:1px solid var(--border); border-radius:10px; padding:12px; background:#fff; }
.review-feed-item p { margin:7px 0; }
.review-feed-item small { color:var(--muted); }
.analytics-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin:18px 0; }
.rating-distribution-row { display:grid; grid-template-columns:40px 1fr 28px; align-items:center; gap:8px; margin:8px 0; font-size:13px; }
.rating-track { height:8px; background:#eee; border-radius:99px; overflow:hidden; }
.rating-track span { display:block; height:100%; background:#e5a000; border-radius:99px; }
.analytics-list-row { display:flex; justify-content:space-between; gap:10px; border-bottom:1px solid var(--border); padding:8px 0; font-size:13px; }
.analytics-list-row span { color:var(--muted); white-space:nowrap; }
.admin-alert-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px; border:1px solid var(--border); border-radius:10px; margin-bottom:9px; }
.admin-alert-item.is-unread { border-left:4px solid #e5a000; background:#fffdf6; }
.admin-alert-item.is-read { opacity:.72; }
.admin-alert-item p { margin:5px 0; }
.admin-alert-item small { color:var(--muted); }
@media (max-width:600px) { .admin-alert-item { align-items:flex-start; flex-direction:column; } }


/* Public business ratings and customer reviews */
.business-card-rating { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin:0 0 12px; font-size:13px; }
.business-card-rating small { color:var(--muted); font-size:12px; }
.business-card-rating.muted { color:var(--muted); }
.public-business-reviews { margin:32px 0 24px; }
.public-business-reviews-list { display:grid; gap:10px; }
.public-business-review { padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:var(--white); }
.public-review-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.public-review-heading small { color:var(--muted); font-size:12px; }
.public-business-review p { margin:9px 0 0; color:var(--text); font-size:14px; line-height:1.55; overflow-wrap:anywhere; }
