:root {
    --brand: #ff6500;
    --brand-dark: #e85c00;
    --navy: #071b50;
    --navy-2: #0d2c72;
    --ink: #172033;
    --muted: #667085;
    --soft: #f7f8fb;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
    min-height: 76px;
    box-shadow: 0 1px 0 rgba(7, 27, 80, .06);
}

.navbar-brand img {
    height: 44px;
    width: auto;
}

.navbar .nav-link {
    color: #24314d;
    font-weight: 500;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
}

.navbar .nav-link:hover { color: var(--brand); }

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 101, 0, .18);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.text-brand { color: var(--brand) !important; }

/* Professional homepage hero */
.hero-shell { max-width: 1380px; }

.hero-pro {
    position: relative;
    min-height: 575px;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(48, 105, 203, .30), transparent 30%),
        radial-gradient(circle at 95% 85%, rgba(255, 101, 0, .18), transparent 28%),
        linear-gradient(125deg, #04143d 0%, #08245f 51%, #0b317b 100%);
    box-shadow: 0 28px 70px rgba(5, 27, 78, .20);
    isolation: isolate;
}

.hero-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(4, 20, 61, .98) 0%, rgba(4, 20, 61, .88) 43%, rgba(4, 20, 61, .12) 74%, rgba(4, 20, 61, .05) 100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    left: 0;
    top: 0;
    width: 210px;
    height: 210px;
    z-index: 2;
    opacity: .22;
    background-image: radial-gradient(rgba(255, 255, 255, .75) 1.2px, transparent 1.2px);
    background-size: 12px 12px;
    mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
}

.hero-content { min-height: 575px; z-index: 3; }

.hero-copy {
    position: relative;
    z-index: 4;
    padding: 48px 32px 132px 52px;
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    margin-bottom: 1.35rem;
    padding: .48rem .82rem;
    border: 1px solid rgba(255, 130, 38, .65);
    border-radius: 999px;
    color: #ff9b4f;
    background: rgba(4, 20, 61, .38);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .01em;
    backdrop-filter: blur(8px);
}

.hero-pro h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.35rem, 4.3vw, 4.35rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero-pro h1 span { color: #ff981f; }

.hero-lead {
    max-width: 680px;
    margin: 1.25rem 0 1.5rem;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.7;
}

.hero-location-form {
    display: flex;
    align-items: stretch;
    gap: .65rem;
    width: min(100%, 690px);
}

.hero-location-input {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 13px;
    background: #fff;
    color: #19305e;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}

.hero-location-input i {
    flex: 0 0 auto;
    margin-right: .65rem;
    color: var(--navy-2);
    font-size: 1.15rem;
}

.hero-location-input input {
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1c2d50;
    font-size: .98rem;
}

.hero-location-input input::placeholder { color: #788398; }

.hero-location-btn {
    flex: 0 0 auto;
    min-height: 52px;
    padding: .75rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 13px;
    color: #fff;
    background: rgba(7, 31, 86, .72);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-location-btn:hover,
.hero-location-btn:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, .9);
    background: rgba(9, 42, 112, .88);
}

.hero-location-status {
    min-height: 22px;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.hero-actions .btn {
    min-width: 185px;
    padding: .78rem 1.35rem;
    border-radius: 12px;
    font-weight: 800;
}

.hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.hero-secondary {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(5, 25, 70, .26);
}

.hero-secondary:hover,
.hero-secondary:focus {
    color: var(--navy);
    background: #fff;
    border-color: #fff;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin-top: 1.65rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: .68rem;
    min-width: 0;
}

.hero-trust-item > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 152, 31, .55);
    border-radius: 11px;
    color: #ff981f;
    background: rgba(5, 22, 62, .45);
}

.hero-trust-item strong,
.hero-trust-item small { display: block; }

.hero-trust-item strong {
    color: #fff;
    font-size: .86rem;
    line-height: 1.2;
}

.hero-trust-item small {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .63);
    font-size: .72rem;
    line-height: 1.25;
}

.hero-visual {
    position: absolute;
    right: -10px;
    top: 18px;
    bottom: 84px;
    width: 53%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.hero-visual::after {
    content: "";
    position: absolute;
    right: 3%;
    bottom: 7%;
    width: 72%;
    height: 25%;
    border-radius: 50%;
    background: rgba(0, 0, 0, .24);
    filter: blur(30px);
    z-index: -1;
}

.hero-visual img {
    width: min(100%, 760px);
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .28));
}

.hero-stats {
    position: absolute;
    right: 2.5%;
    bottom: 18px;
    z-index: 6;
    display: flex;
    align-items: center;
    min-width: 47%;
    padding: .92rem 1rem;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 17px;
    background: rgba(7, 29, 77, .78);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
    backdrop-filter: blur(14px);
}

.hero-stat-item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-width: 0;
}

.hero-stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #ff981f;
    font-size: 1.2rem;
}

.hero-stat-item strong,
.hero-stat-item small { display: block; }

.hero-stat-item strong {
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1;
}

.hero-stat-item small {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .72);
    font-size: .77rem;
    white-space: nowrap;
}

.hero-stat-divider {
    width: 1px;
    height: 44px;
    margin: 0 .45rem;
    background: rgba(255, 255, 255, .27);
}

.section-kicker {
    font-size: .85rem;
    letter-spacing: .025em;
}

.section-title {
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(12, 28, 70, .07);
}

.shop-card {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(12, 28, 70, .12);
}

.shop-card img,
.product-card img {
    height: 190px;
    object-fit: cover;
}

.product-card img { border-radius: 20px 20px 0 0; }

.shop-card .cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: 20px 20px 0 0;
    color: #fff;
    background: linear-gradient(135deg, #ff6500, #ffb000);
    font-size: 3rem;
    font-weight: 900;
}

.stat {
    height: 100%;
    padding: 28px 22px;
    border: 1px solid rgba(7, 27, 80, .05);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(12, 28, 70, .06);
}

.stat-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: .8rem;
    border-radius: 16px;
    color: var(--brand);
    background: #fff1e8;
    font-size: 1.5rem;
}

.stat strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--navy);
    font-size: 1.35rem;
}

.dashboard-nav .list-group-item.active {
    background: var(--navy);
    border-color: var(--navy);
}

.table > thead th {
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
}

.order-timeline {
    padding-left: 20px;
    border-left: 3px solid #e9ecef;
}

.order-timeline .step {
    position: relative;
    margin-bottom: 18px;
}

.order-timeline .step::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--brand);
}

.empty {
    padding: 60px 20px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.form-control,
.form-select {
    padding: .72rem .9rem;
    border-radius: 12px;
}

.badge { padding: .55em .75em; }

.price {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
}

@media (max-width: 1199.98px) {
    .hero-copy { padding-left: 40px; }
    .hero-pro h1 { font-size: clamp(2.35rem, 4.6vw, 3.7rem); }
    .hero-visual { width: 49%; opacity: .88; }
    .hero-stats { min-width: 51%; }
}

@media (max-width: 991.98px) {
    .hero-pro,
    .hero-content { min-height: auto; }

    .hero-pro::before {
        background: linear-gradient(180deg, rgba(4, 20, 61, .96) 0%, rgba(4, 20, 61, .88) 54%, rgba(4, 20, 61, .56) 100%);
    }

    .hero-copy {
        padding: 42px 30px 28px;
        max-width: none;
    }

    .hero-visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: 360px;
        padding: 0 0 0 14%;
        opacity: 1;
    }

    .hero-visual img { width: 100%; }

    .hero-stats {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 36px);
        min-width: 0;
        margin: -24px auto 18px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img { height: 36px; }
    .hero-shell { padding-left: 12px; padding-right: 12px; }
    .hero-pro { border-radius: 22px; }
    .hero-copy { padding: 34px 22px 24px; }
    .hero-eyebrow { font-size: .76rem; }
    .hero-location-form { flex-direction: column; }
    .hero-location-btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-trust { grid-template-columns: 1fr; gap: .8rem; }
    .hero-visual { height: 300px; padding-left: 0; }
    .hero-stats { width: calc(100% - 24px); padding: .8rem .6rem; }
    .hero-stat-item { flex-direction: column; gap: .2rem; text-align: center; }
    .hero-stat-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .hero-stat-item small { white-space: normal; font-size: .67rem; }
    .hero-stat-divider { margin: 0 .2rem; }
}

@media (max-width: 480px) {
    .hero-pro h1 { font-size: 2.25rem; }
    .hero-visual { height: 250px; }
    .hero-stat-item strong { font-size: 1rem; }
}

/* Finance & payout upgrade */
.eyebrow {
    display: inline-block;
    margin-bottom: .4rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.finance-stat {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(8,32,84,.06);
}
.finance-stat strong {
    margin: .3rem 0 .2rem;
    font-size: 1.55rem;
    color: var(--navy);
}
.finance-stat small { color: var(--muted); }
.finance-warning {
    background: linear-gradient(135deg,#fff9eb,#fff);
    border-color: rgba(255,153,0,.24);
}
.payout-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: #f4f7fb;
    color: var(--navy);
    font-weight: 700;
    font-size: .9rem;
}
.payout-admin-form { min-width: 190px; }
.dashboard-nav .list-group-item { padding: .9rem 1rem; }
@media (max-width: 767.98px) {
    .finance-stat { min-height: 112px; }
    .payout-flow i { display: none; }
    .payout-flow span { width: 100%; }
}
