body .merchant-shell {
    width: 100%;
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: 252px minmax(0, 1fr) !important;
    align-items: stretch;
    background: #f4f7fa;
}

    body .merchant-shell > .merchant-sidebar {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        z-index: 20;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column;
        padding: 1.7rem 1.45rem !important;
        overflow-y: auto;
        color: #fff;
        background: linear-gradient(180deg, #061a2f, #00101f);
    }

.merchant-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 34px;
    color: #f2b705;
}

.brand-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-subtitle {
    color: #f2b705;
    font-size: 21px;
    font-weight: 900;
}

.merchant-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.merchant-avatar {
    width: 52px;
    height: 52px;
    border: 1px solid #f2b705;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.merchant-name {
    font-weight: 800;
}

.merchant-status {
    display: inline-block;
    margin-top: 5px;
    background: #0f8a4b;
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.merchant-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.merchant-nav a {
    color: #e5edf7;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.merchant-nav a.active,
.merchant-nav a:hover {
    background: rgba(242, 183, 5, .16);
    color: #f2b705;
}

.merchant-help {
    margin-top: auto;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 18px;
    background: rgba(255,255,255,.06);
}

.btn-book {
    display: block;
    background: #f2b705;
    color: #111827;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    padding: 12px;
    border-radius: 10px;
}

.merchant-main {
    flex: 1;
    padding: 28px 32px;
}

.merchant-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.merchant-topbar h1 {
    margin: 0;
    font-weight: 900;
    font-size: 26px;
}

.merchant-topbar p {
    margin: 4px 0 0;
    color: #6b7280;
}

.merchant-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 12px 18px;
    border-radius: 14px;
}

.merchant-hero {
    min-height: 310px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--merchant-accent, #087451) 16%, transparent), transparent 28%),
        linear-gradient(135deg, #fff 0%, #fff 52%, var(--merchant-soft, #e7f7f1) 100%);
    border: 1px solid #e5e7eb;
    padding: 36px 42px;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(320px, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    overflow: hidden;
}

.hero-copy {
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.hero-copy h2 {
    font-size: 36px;
    font-weight: 950;
    margin: 0;
}

.hero-copy h3 {
    font-size: 32px;
    font-weight: 950;
    color: #f2b705;
    margin: 4px 0 18px;
}

.hero-copy p {
    font-size: 17px;
    color: #374151;
}

.hero-btn {
    display: inline-block;
    background: #061a2f;
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    margin-top: 10px;
}

/* =====================================================
   MERCHANT HERO ACTIONS
   ===================================================== */

.merchant-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.merchant-hero .hero-btn,
.merchant-hero .merchant-hero-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 22px;
    border-radius: 11px;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.merchant-hero .hero-btn {
    color: #fff;
    background: #061a2f;
    border: 1px solid #061a2f;
    box-shadow: 0 10px 24px rgba(6, 26, 47, .18);
}

    .merchant-hero .hero-btn:hover {
        color: #fff;
        background: #0b304c;
        border-color: #0b304c;
        transform: translateY(-1px);
    }

.merchant-hero .merchant-hero-secondary {
    color: #061a2f;
    background: #fff;
    border: 1px solid #94a3b8;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

    .merchant-hero .merchant-hero-secondary:hover {
        color: #fff;
        background: #087451;
        border-color: #087451;
        transform: translateY(-1px);
    }

.merchant-hero-art {
    position: relative;
    width: min(100%, 570px);
    min-height: 260px;
    justify-self: end;
    border: 1px solid color-mix(in srgb, var(--merchant-accent, #087451) 18%, #fff);
    border-radius: 24px;
    background:
        linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)),
        repeating-linear-gradient(0deg, transparent 0 35px, rgba(8,116,81,.08) 36px 37px),
        repeating-linear-gradient(90deg, transparent 0 35px, rgba(8,116,81,.08) 36px 37px);
    box-shadow: 0 22px 55px rgba(6, 47, 43, .12);
}

.merchant-route-line {
    position: absolute;
    inset: 50% 16% auto;
    height: 6px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, var(--merchant-accent, #087451) 0 18px, transparent 18px 30px);
    transform: translateY(-50%);
}

.merchant-route-point {
    position: absolute;
    top: 50%;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 7px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--merchant-accent, #087451);
    box-shadow: 0 12px 30px rgba(6, 47, 43, .2);
    transform: translateY(-50%);
    font-size: 1.7rem;
}

.merchant-route-point.shop { left: 7%; }
.merchant-route-point.customer { right: 7%; }

.merchant-route-scooter {
    position: absolute;
    top: calc(50% - 44px);
    left: 48%;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(6, 47, 43, .14);
    transform: translateX(-50%);
    font-size: 2rem;
}

.merchant-package {
    position: absolute;
    right: 18%;
    bottom: 18px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #061a2f;
    background: #ffbd00;
    box-shadow: 0 10px 24px rgba(6, 26, 47, .16);
    font-size: 1.35rem;
    transform: rotate(7deg);
}

.approved-banner {
    margin-top: 18px;
    background: #f0fff4;
    border: 1px solid #16a34a;
    border-radius: 14px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.approved-icon {
    width: 48px;
    height: 48px;
    background: #0f8a4b;
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 24px;
}

.approved-banner p {
    margin: 4px 0 0;
    color: #4b5563;
}

.outline-btn {
    margin-left: auto;
    color: #061a2f;
    border: 1px solid #94a3b8;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
}

.merchant-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card span {
    color: #4b5563;
    font-size: 14px;
}

.stat-card strong {
    display: block;
    font-size: 24px;
    margin: 4px 0;
}

.stat-card small {
    color: #6b7280;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
}

.stat-icon.blue { background: #2563eb; }
.stat-icon.green { background: #16a34a; }
.stat-icon.yellow { background: #f2b705; }
.stat-icon.purple { background: #7c3aed; }

.merchant-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-row {
    display: grid;
    grid-template-columns: 130px 1fr 1fr 1fr 90px;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #edf0f5;
    align-items: center;
}

.delivery-status {
    background: #dcfce7;
    color: #166534;
    padding: 7px 12px;
    border-radius: 999px;
    text-align: center;
    font-weight: 800;
}

.overview-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
    padding: 14px 0;
}

.support-box {
    margin-top: 26px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 20px;
}

.empty-state {
    padding: 36px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 1100px) {
    body .merchant-shell {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

        body .merchant-shell > .merchant-sidebar {
            position: relative !important;
            top: auto !important;
            width: 100% !important;
            height: auto !important;
            min-height: auto !important;
            padding: 1rem !important;
        }

    .merchant-profile,
    .merchant-help {
        display: none;
    }

    .merchant-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: .5rem;
        padding-bottom: .25rem;
    }

        .merchant-nav a {
            flex: 0 0 auto;
            white-space: nowrap;
        }

    .merchant-main {
        padding: 1rem;
    }

    .merchant-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-grid {
        grid-template-columns: 1fr;
    }

    .merchant-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
        padding: 30px;
    }
}
.carry-full-width-page {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.merchant-shell {
    width: 100%;
    min-height: calc(100vh - 115px);
}
@media (max-width: 575.98px) {
    .merchant-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .merchant-hero-art {
        width: 100%;
        min-height: 190px;
        justify-self: stretch;
    }

    .merchant-route-point {
        width: 62px;
        height: 62px;
        font-size: 1.35rem;
    }

    .merchant-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .merchant-hero .hero-btn,
    .merchant-hero .merchant-hero-secondary {
        width: 100%;
    }
}
