/********** MarketPortal page (marketplace.html) — builds on redesign.css tokens **********/

.mp-page { background: #fff; }
.mp-page section[id] { scroll-margin-top: 90px; }

.mp-head { max-width: 640px; }
.mp-head.center { margin: 0 auto; text-align: center; }
.mp-head h2 { font-size: 38px; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.mp-head p { color: var(--cr-text-muted); font-size: 16px; margin: 0; }

/*** Hero ***/
.mp-hero.cr-mp { padding: 88px 0 96px; border: 0; box-shadow: none; }
.mp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    pointer-events: none;
}
.mp-hero .cr-container { z-index: 1; }
.mp-hero .cr-mp-title { font-size: 60px; letter-spacing: -.01em; }
.mp-hero .cr-mp-title span { display: inline-block; margin-top: 8px; font-size: .5em; color: #7DD3E6; }

.mp-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    background: #fff;
    border-radius: var(--cr-radius-pill);
    padding: 7px 7px 7px 22px;
    color: #9ca3af;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    transition: .25s;
}
.mp-search:hover { color: #9ca3af; transform: translateY(-2px); box-shadow: 0 22px 48px rgba(0, 0, 0, .3); }
.mp-search > i { color: var(--cr-green); }
.mp-search > span { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-search b {
    background: var(--cr-green);
    color: #fff;
    border-radius: var(--cr-radius-pill);
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.mp-search:hover b { background: var(--cr-green-dark); }

.mp-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mp-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--cr-radius-pill);
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}
.mp-jump a i { color: #7DD3E6; font-size: 13px; }
.mp-jump a:hover { background: #fff; color: var(--cr-navy); }
.mp-jump a:hover i { color: var(--cr-green); }

.mp-hero .cr-mp-trust { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }

/*** Live listings ***/
.mp-live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 28px; }
.mp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-filters[hidden] { display: none; }
.mp-filter {
    border: 1px solid var(--cr-border);
    background: #fff;
    color: var(--cr-navy);
    border-radius: var(--cr-radius-pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}
.mp-filter:hover { border-color: var(--cr-green); color: var(--cr-green); }
.mp-filter.active { background: var(--cr-navy); border-color: var(--cr-navy); color: #fff; }
.mp-filter small { opacity: .6; font-weight: 500; margin-left: 4px; }

.mp-page .cr-mp-live-card { border-radius: 18px; }
.mp-page .cr-mp-live-card[hidden] { display: none; }
.mp-page .cr-mp-live-card:hover { border-color: transparent; box-shadow: var(--cr-shadow-lg); }
.mp-page .cr-mp-live-thumb { overflow: hidden; }
.mp-page .cr-mp-live-thumb img { position: absolute; inset: 0; }
.mp-page .cr-mp-live-tag { z-index: 1; }
.mp-page .cr-mp-live-tag { backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.mp-page .cr-mp-live-body { display: flex; flex-direction: column; flex: 1; }
.mp-page .cr-mp-live-seller { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--cr-border); }
.mp-page .cr-mp-live-seller i { color: var(--cr-green); font-size: 12px; }
.mp-live-view {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #fff;
    color: var(--cr-navy);
    border-radius: var(--cr-radius-pill);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    opacity: 0;
    transform: translateY(6px);
    transition: .25s;
}
.cr-mp-live-card:hover .mp-live-view,
.cr-mp-live-card:focus-visible .mp-live-view { opacity: 1; transform: none; }

.mp-live-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--cr-text-muted); }
.mp-live-note i { color: var(--cr-green); }

/*** Buying stepper ***/
.mp-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.mp-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    border-top: 2px dashed #7DD3E6;
}
.mp-steps li { text-align: center; position: relative; padding: 0 8px; }
.mp-step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: var(--cr-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    position: relative;
    box-shadow: 0 0 0 8px #fff, var(--cr-shadow);
    transition: .25s;
}
.mp-steps li:hover .mp-step-icon { background: var(--cr-green); transform: translateY(-4px) rotate(-4deg); }
.mp-step-icon em {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cr-green);
    color: #fff;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
}
.mp-steps h5 { font-weight: 700; margin-bottom: 8px; }
.mp-steps p { color: var(--cr-text-muted); font-size: 14px; margin: 0; }

/*** Delivery ***/
.mp-delivery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.mp-day {
    position: relative;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: 20px;
    padding: 26px 24px;
    transition: .25s;
    overflow: hidden;
}
.mp-day:hover { box-shadow: var(--cr-shadow); transform: translateY(-4px); }
.mp-day > i { font-size: 22px; color: var(--cr-green); margin-bottom: 26px; display: block; }
.mp-day h4 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.mp-day p { color: var(--cr-text-muted); font-size: 14px; margin: 0; }
.mp-day-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--cr-radius-pill);
    background: rgba(0, 151, 178, .1);
    color: var(--cr-green-dark);
}
.mp-day.featured { background: linear-gradient(150deg, var(--cr-navy-soft), var(--cr-navy)); border-color: transparent; color: #fff; }
.mp-day.featured h4 { color: #fff; }
.mp-day.featured p { color: rgba(255, 255, 255, .75); }
.mp-day.featured > i { color: #7DD3E6; }
.mp-day.featured .mp-day-badge { background: var(--cr-green); color: #fff; }
.mp-day.featured::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(rgba(0, 151, 178, .45), transparent 70%);
}
.mp-fineprint { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--cr-text-muted); font-size: 14px; margin: 28px 0 0; }
.mp-fineprint i { color: var(--cr-green); }

/*** Sell ***/
.mp-sell-title .accent { color: var(--cr-green); }
.mp-payout {
    margin: 28px 0;
    background: var(--cr-bg-soft);
    border: 1px solid var(--cr-border);
    border-radius: 20px;
    padding: 8px 22px;
}
.mp-payout-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15px; }
.mp-payout-row + .mp-payout-row { border-top: 1px dashed #d8dfdd; }
.mp-payout-row span { display: flex; align-items: center; gap: 10px; }
.mp-payout-row span i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--cr-green); font-size: 13px; box-shadow: 0 2px 6px rgba(16, 26, 44, .06); }
.mp-payout-row b { font-weight: 600; text-align: right; }
.mp-payout-row.muted b { color: var(--cr-text-muted); font-weight: 500; }
.mp-payout-row.total { font-family: 'Jost', sans-serif; font-size: 17px; }
.mp-payout-row.total b { color: var(--cr-green); font-weight: 700; }

.mp-needs { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-needs li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: var(--cr-radius-pill); border: 1px solid var(--cr-border); color: var(--cr-navy); }
.mp-needs li i { color: var(--cr-green); font-size: 12px; }
.mp-needs-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cr-text-muted); margin-bottom: 10px; }

.mp-sell-panel { background: #fff; border: 1px solid var(--cr-border); border-radius: var(--cr-radius-lg); padding: 36px; box-shadow: var(--cr-shadow); }
.mp-sell-panel .cr-mp-timeline li > span { border-radius: 16px; }
.mp-sell-panel .cr-mp-timeline::before { border-radius: 2px; }

/*** Trust band ***/
.mp-trust { background: var(--cr-navy); color: #fff; position: relative; overflow: hidden; }
.mp-trust::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(rgba(0, 151, 178, .35), transparent 70%);
}
.mp-trust .cr-container { z-index: 1; }
.mp-trust .cr-eyebrow { color: #7DD3E6; }
.mp-trust .mp-head h2 { color: #fff; }
.mp-trust .mp-head p { color: rgba(255, 255, 255, .7); }
.mp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: rgba(255, 255, 255, .1); border-radius: 20px; overflow: hidden; }
.mp-trust-item { background: var(--cr-navy); padding: 30px 26px; transition: .25s; }
.mp-trust-item:hover { background: var(--cr-navy-soft); }
.mp-trust-item i { font-size: 22px; color: #7DD3E6; margin-bottom: 18px; display: block; }
.mp-trust-item h5 { color: #fff; font-weight: 700; margin-bottom: 8px; }
.mp-trust-item p { color: rgba(255, 255, 255, .68); font-size: 14px; margin: 0; }

/*** CTA ***/
.mp-cta.cr-cta-banner { position: relative; overflow: hidden; padding: 48px 52px; }
.mp-cta::after {
    content: "\f290";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 34%;
    bottom: -40px;
    font-size: 180px;
    color: rgba(255, 255, 255, .08);
    transform: rotate(-12deg);
    pointer-events: none;
}
.mp-cta h3 { font-size: 30px; }
.mp-cta > * { position: relative; z-index: 1; }
.mp-legal { text-align: center; color: var(--cr-text-muted); font-size: 14px; margin: 24px 0 0; }
.mp-legal a { color: var(--cr-green); font-weight: 600; }

/*** Responsive ***/
@media (max-width: 991.98px) {
    .mp-hero .cr-mp-title { font-size: 44px; }
    .mp-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .mp-steps::before { display: none; }
    .mp-delivery, .mp-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-cta::after { display: none; }
}
@media (max-width: 575px) {
    .mp-hero.cr-mp { padding: 56px 0 64px; }
    .mp-hero .cr-mp-title { font-size: 38px; }
    .mp-head h2 { font-size: 30px; }
    .mp-search { padding-left: 16px; }
    .mp-search b { padding: 10px 16px; }
    .mp-steps, .mp-delivery, .mp-trust-grid { grid-template-columns: 1fr; }
    .mp-sell-panel { padding: 24px 20px; }
    .mp-cta.cr-cta-banner { padding: 34px 24px; }
    .mp-payout-row { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-page *, .mp-page *::before, .mp-page *::after { transition: none !important; }
}
