:root {
    --customer-navy: #041c2c;
    --customer-navy-soft: #0b2d40;
    --customer-green: #006b4f;
    --customer-green-dark: #004e3a;
    --customer-gold: #f5b400;
    --customer-page: #f4f7fa;
    --customer-border: #e3e8ef;
    --customer-text: #101828;
    --customer-muted: #667085;
}

body {
    background: var(--customer-page);
}

.customer-shell {
    min-height: calc(100vh - 42px);
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    background: var(--customer-page);
}

.customer-sidebar {
    min-height: calc(100vh - 42px);
    display: flex;
    flex-direction: column;
    padding: 1.7rem 1.45rem;
    color: #fff;
    background: radial-gradient( circle at 20% 10%, rgba(0, 107, 79, .28), transparent 32% ), var(--customer-navy);
}

.customer-brand {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: 0 .5rem 1.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

    .customer-brand .brand-icon {
        font-size: 1.8rem;
    }

    .customer-brand .brand-title {
        font-size: 1.28rem;
        font-weight: 950;
        letter-spacing: .12em;
    }

    .customer-brand .brand-subtitle {
        color: var(--customer-gold);
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: .05em;
    }

.customer-profile {
    display: flex;
    gap: .8rem;
    align-items: center;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.customer-avatar,
.customer-user-initial {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 950;
}

.customer-avatar {
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--customer-green);
    border: 2px solid var(--customer-gold);
}

.customer-profile-copy {
    min-width: 0;
}

.customer-name {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-status {
    display: inline-flex;
    margin-top: .25rem;
    padding: .2rem .55rem;
    color: #d1fadf;
    background: rgba(18, 183, 106, .2);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
}

.customer-nav {
    display: grid;
    gap: .42rem;
    margin-top: 1rem;
}

    .customer-nav a {
        position: relative;
        display: flex;
        gap: .7rem;
        align-items: center;
        min-height: 43px;
        padding: .68rem .75rem;
        color: rgba(255, 255, 255, .88);
        border-radius: 12px;
        font-size: .82rem;
        font-weight: 800;
        text-decoration: none;
        transition: color .15s ease, background .15s ease, transform .15s ease;
    }

        .customer-nav a:hover {
            color: #fff;
            background: rgba(255, 255, 255, .08);
            transform: translateX(2px);
        }

        .customer-nav a.active {
            color: var(--customer-gold);
            background: rgba(245, 180, 0, .14);
        }

.customer-nav-count {
    min-width: 22px;
    margin-left: auto;
    padding: .1rem .4rem;
    color: #fff;
    background: var(--customer-green);
    border-radius: 999px;
    font-size: .65rem;
    text-align: center;
}

    .customer-nav-count.urgent {
        color: #101828;
        background: var(--customer-gold);
    }

.customer-nav .customer-signout {
    margin-top: .4rem;
    color: #fda29b;
}

.customer-help {
    margin-top: auto;
    padding: 1rem;
    color: #d0d5dd;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
}

    .customer-help strong {
        color: #fff;
        font-size: .82rem;
    }

    .customer-help p {
        margin: .4rem 0 .8rem;
        font-size: .72rem;
        line-height: 1.5;
    }

.customer-book-btn {
    display: block;
    padding: .58rem .7rem;
    color: #101828;
    background: var(--customer-gold);
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.customer-main {
    min-width: 0;
    padding: 1.7rem;
}

.customer-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.35rem;
}

    .customer-topbar h1 {
        margin: 0;
        color: var(--customer-text);
        font-size: 1.45rem;
        font-weight: 950;
    }

    .customer-topbar p {
        margin: .35rem 0 0;
        color: var(--customer-muted);
        font-size: .82rem;
    }

.customer-user-pill {
    display: flex;
    gap: .55rem;
    align-items: center;
    padding: .55rem .8rem;
    background: #fff;
    border: 1px solid var(--customer-border);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
    font-size: .78rem;
}

.customer-user-initial {
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--customer-green);
    font-size: .72rem;
}

.customer-hero {
    position: relative;
    overflow: hidden;
    min-height: 265px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: center;
    padding: 2rem 2.25rem;
    color: #fff;
    background: linear-gradient( 120deg, var(--customer-green-dark), var(--customer-green) 58%, #567f2b );
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(0, 78, 58, .18);
}

    .customer-hero::after {
        position: absolute;
        inset: 0;
        content: "";
        background: radial-gradient( circle at 82% 35%, rgba(255, 255, 255, .14), transparent 28% );
        pointer-events: none;
    }

.customer-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 590px;
}

.customer-eyebrow {
    display: inline-flex;
    margin-bottom: .85rem;
    padding: .28rem .62rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.customer-hero h2 {
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.1rem);
    font-weight: 950;
    line-height: 1.08;
}

.customer-hero h3 {
    margin: .7rem 0 0;
    color: var(--customer-gold);
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-weight: 950;
}

.customer-hero p {
    max-width: 590px;
    margin: 1rem 0 1.35rem;
    color: rgba(255, 255, 255, .84);
    font-size: .9rem;
    line-height: 1.65;
}

.customer-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.customer-primary-btn,
.customer-outline-btn {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .68rem 1rem;
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
}

.customer-primary-btn {
    color: #101828;
    background: var(--customer-gold);
    border: 1px solid var(--customer-gold);
}

.customer-outline-btn {
    color: #344054;
    background: #fff;
    border: 1px solid #d0d5dd;
}

.customer-hero .customer-outline-btn {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
}

.customer-hero-art {
    position: relative;
    z-index: 2;
    min-height: 190px;
}

.hero-route-line {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 78%;
    height: 7px;
    background: rgba(255, 255, 255, .3);
    border-radius: 999px;
    transform: rotate(-9deg);
}

.hero-route-point,
.hero-scooter {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.hero-route-point {
    width: 50px;
    height: 50px;
    color: var(--customer-green);
    background: #fff;
    font-size: 1.2rem;
}

    .hero-route-point.pickup {
        top: 56%;
        left: 4%;
    }

    .hero-route-point.dropoff {
        top: 22%;
        right: 3%;
    }

.hero-scooter {
    top: 30%;
    left: 42%;
    width: 78px;
    height: 78px;
    background: var(--customer-gold);
    font-size: 2.5rem;
    transform: rotate(-8deg);
}

.customer-alert {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: 16px;
}

    .customer-alert.payment {
        color: #93370d;
        background: #fffaeb;
        border-color: #fedf89;
    }

    .customer-alert.marketplace {
        color: #05603a;
        background: #ecfdf3;
        border-color: #abefc6;
    }

.customer-alert-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .72);
    border-radius: 50%;
}

.customer-alert strong {
    font-size: .82rem;
}

.customer-alert p {
    margin: .18rem 0 0;
    font-size: .72rem;
}

.customer-alert-btn {
    padding: .55rem .8rem;
    color: inherit;
    background: rgba(255, 255, 255, .72);
    border: 1px solid currentColor;
    border-radius: 9px;
    font-size: .72rem;
    font-weight: 900;
    text-decoration: none;
}

.customer-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
    margin: 1rem 0;
}

.customer-stat-card {
    min-width: 0;
    display: flex;
    gap: .8rem;
    align-items: center;
    min-height: 102px;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--customer-border);
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .045);
}

    .customer-stat-card .stat-icon {
        width: 43px;
        height: 43px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        color: #fff;
        border-radius: 50%;
        font-size: 1.05rem;
    }

.stat-icon.blue {
    background: #2e6ee8;
}

.stat-icon.green {
    background: #16a34a;
}

.stat-icon.yellow {
    background: #f5b400;
}

.stat-icon.purple {
    background: #7c3aed;
}

.stat-icon.navy {
    background: #0b2d40;
}

.customer-stat-card span,
.customer-stat-card small {
    display: block;
    color: var(--customer-muted);
    font-size: .68rem;
}

.customer-stat-card strong {
    display: block;
    margin: .12rem 0;
    color: var(--customer-text);
    font-size: 1.35rem;
    line-height: 1.1;
}

.customer-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr);
    gap: 1rem;
}

.customer-side-column {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.customer-panel {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--customer-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .05);
}

.customer-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-bottom: .8rem;
    border-bottom: 1px solid #eaecf0;
}

    .customer-panel-header.compact {
        align-items: flex-start;
    }

    .customer-panel-header h3 {
        margin: 0;
        color: var(--customer-text);
        font-size: 1rem;
        font-weight: 900;
    }

    .customer-panel-header p {
        margin: .2rem 0 0;
        color: var(--customer-muted);
        font-size: .7rem;
    }

    .customer-panel-header > a {
        color: #175cd3;
        font-size: .72rem;
        font-weight: 800;
        text-decoration: none;
    }

.customer-delivery-list {
    display: grid;
}

.customer-delivery-row {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .9rem .25rem;
    color: inherit;
    border-bottom: 1px solid #eaecf0;
    text-decoration: none;
}

    .customer-delivery-row:last-child {
        border-bottom: 0;
    }

    .customer-delivery-row:hover {
        background: #f9fafb;
    }

.delivery-row-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1rem;
}

.customer-delivery-row.standard .delivery-row-icon {
    color: #175cd3;
    background: #eff8ff;
}

.customer-delivery-row.marketplace .delivery-row-icon {
    color: #067647;
    background: #ecfdf3;
}

.customer-delivery-row.payment .delivery-row-icon {
    color: #b54708;
    background: #fffaeb;
}

.customer-delivery-row.progress .delivery-row-icon {
    color: #175cd3;
    background: #eff8ff;
}

.customer-delivery-row.completed .delivery-row-icon {
    color: #067647;
    background: #ecfdf3;
}

.delivery-row-main {
    min-width: 0;
}

.delivery-row-heading {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

    .delivery-row-heading > strong {
        color: var(--customer-text);
        font-size: .82rem;
    }

.delivery-row-status {
    padding: .22rem .48rem;
    color: #344054;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
}

.delivery-row-route {
    display: flex;
    gap: .45rem;
    align-items: center;
    margin-top: .35rem;
    color: #344054;
    font-size: .75rem;
}

    .delivery-row-route span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.delivery-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .35rem;
    color: var(--customer-muted);
    font-size: .65rem;
}

    .delivery-row-meta .security {
        font-weight: 800;
    }

        .delivery-row-meta .security.verified {
            color: #067647;
        }

        .delivery-row-meta .security.ready {
            color: #b54708;
        }

.delivery-row-price {
    min-width: 110px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: .5rem;
    align-items: center;
    text-align: right;
}

    .delivery-row-price small {
        grid-column: 1 / -1;
        color: var(--customer-muted);
        font-size: .62rem;
    }

    .delivery-row-price strong {
        color: var(--customer-text);
        font-size: .9rem;
    }

    .delivery-row-price > i {
        color: #98a2b3;
    }

.customer-empty-state {
    display: grid;
    justify-items: center;
    padding: 2.5rem 1rem;
    text-align: center;
}

.customer-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: .8rem;
    color: #175cd3;
    background: #eff8ff;
    border-radius: 50%;
    font-size: 1.25rem;
}

.customer-empty-state p {
    color: var(--customer-muted);
    font-size: .75rem;
}

.customer-next-delivery {
    padding-top: .9rem;
}

    .customer-next-delivery .next-date {
        display: block;
        color: var(--customer-green);
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .customer-next-delivery > strong {
        display: block;
        margin-top: .1rem;
        color: var(--customer-text);
        font-size: 1.7rem;
    }

.next-route {
    display: grid;
    gap: .25rem;
    margin: .9rem 0;
    padding: .8rem;
    background: #f8fafc;
    border-radius: 13px;
}

    .next-route > div {
        display: grid;
        grid-template-columns: 12px minmax(0, 1fr);
        gap: .5rem;
        align-items: center;
        color: #344054;
        font-size: .72rem;
    }

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .route-dot.pickup {
        background: #12b76a;
    }

    .route-dot.dropoff {
        background: #f79009;
    }

.next-route-line {
    width: 2px;
    height: 15px;
    margin-left: 4px;
    background: #d0d5dd;
}

.customer-small-empty {
    display: grid;
    justify-items: center;
    padding: 1.5rem .5rem .5rem;
    color: var(--customer-muted);
    text-align: center;
}

    .customer-small-empty i {
        font-size: 1.5rem;
    }

    .customer-small-empty p {
        margin: .5rem 0;
        font-size: .72rem;
    }

.customer-overview-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem 0;
    border-bottom: 1px solid #eaecf0;
    color: var(--customer-muted);
    font-size: .74rem;
}

    .customer-overview-row strong {
        color: var(--customer-text);
    }

.customer-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-top: .85rem;
}

    .customer-quick-actions a {
        display: grid;
        gap: .3rem;
        justify-items: center;
        padding: .7rem .4rem;
        color: #344054;
        background: #f8fafc;
        border: 1px solid #eaecf0;
        border-radius: 11px;
        font-size: .66rem;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }

    .customer-quick-actions i {
        color: var(--customer-green);
        font-size: 1rem;
    }

@@media (max-width: 1199.98px) {
    .customer-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .customer-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .customer-side-column {
        grid-template-columns: 1fr 1fr;
    }
}

@@media (max-width: 991.98px) {
    .customer-shell {
        grid-template-columns: 1fr;
    }

    .customer-sidebar {
        min-height: auto;
        padding: 1rem;
    }

    .customer-profile,
    .customer-help {
        display: none;
    }

    .customer-brand {
        padding-bottom: .8rem;
    }

    .customer-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: .15rem;
    }

        .customer-nav a {
            flex: 0 0 auto;
        }

    .customer-main {
        padding: 1rem;
    }
}

@@media (max-width: 767.98px) {
    .customer-topbar {
        align-items: flex-start;
    }

    .customer-user-pill {
        display: none;
    }

    .customer-hero {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .customer-hero-art {
        display: none;
    }

    .customer-alert {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .customer-alert-btn {
        grid-column: 1 / -1;
    }

    .customer-stats,
    .customer-side-column {
        grid-template-columns: 1fr;
    }

    .customer-delivery-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .delivery-row-price {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }
}
