.page-shell-home {
    width: 100%;
    max-width: none;
    padding: 0;
    overflow-x: clip;
}

.page-shell-home .flash-message,
.page-shell-home .alert {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 0;
}

.market-home {
    --ink: #151a23;
    --muted: #626d7d;
    --line: #dfe5ec;
    --paper: #ffffff;
    --wash: #f4f6f8;
    --navy: #102542;
    --blue: #1f5fbf;
    --teal: #0f766e;
    --gold: #b7791f;
    --danger: #c2410c;
    --radius: 8px;
    --shadow: 0 18px 42px rgba(16, 37, 66, 0.12);
    background: var(--wash);
    color: var(--ink);
    padding-bottom: 0.1px;
}

.market-home a {
    color: inherit;
    text-decoration: none;
}

.market-home img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.market-hero-full {
    position: relative;
    min-height: clamp(560px, 72vh, 760px);
    background-image:
        linear-gradient(90deg, rgba(7, 15, 28, 0.88) 0%, rgba(7, 15, 28, 0.7) 42%, rgba(7, 15, 28, 0.28) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.market-hero-inner,
.home-section,
.market-stat-band,
.market-cta {
    width: min(1180px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.market-hero-inner {
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: end;
    padding: clamp(4rem, 8vw, 7rem) 0 3rem;
}

.market-hero-copy {
    max-width: 760px;
}

.eyebrow,
.mini-label,
.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    color: #d9f99d;
}

.market-home h1,
.market-home h2,
.market-home h3 {
    letter-spacing: -0.03em;
}

.market-hero-copy h1 {
    margin: 1rem 0;
    color: #fff;
    /* font-size: clamp(3rem, 6vw, 6.4rem); */
    line-height: 0.94;
    font-weight: 900;
}

.market-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.market-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.72rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.market-btn:hover {
    transform: translateY(-1px);
}

.market-btn-blue {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 28px rgba(31, 95, 191, 0.24);
}

.market-btn-blue:hover {
    color: #fff;
}

.market-btn-white,
.market-btn-white:hover,
.market-btn-white:focus {
    background: #fff;
    color: var(--navy);
}

.market-btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
}

.hero-auction-panel {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(8, 15, 29, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.hero-auction-panel h2 {
    margin: 0.75rem 0;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 850;
}

.hero-panel-meta,
.hero-bid-row,
.meta-row,
.price-row,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-panel-meta {
    color: rgba(255, 255, 255, 0.68);
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.hero-bid-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-bid-row small,
.price-row span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-bid-row small {
    color: rgba(255, 255, 255, 0.56);
}

.hero-bid-row strong {
    display: block;
    margin-top: 0.2rem;
    color: #fff;
    font-size: 1.15rem;
}

.panel-btn {
    width: 100%;
    margin-top: 1.1rem;
}

.market-stat-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: translateY(-50%);
    margin-bottom: -28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.market-stat-band div {
    padding: 1.15rem 1.25rem;
    border-right: 1px solid var(--line);
}

.market-stat-band div:last-child {
    border-right: 0;
}

.market-stat-band strong {
    display: block;
    color: var(--navy);
    font-size: 1.45rem;
    line-height: 1;
}

.market-stat-band span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.home-section {
    padding: 42px 0;
}

.compact-section {
    padding-top: 24px;
}

.section-head {
    align-items: end;
    margin-bottom: 1.25rem;
}

.section-head h2,
.assurance-copy h2,
.market-cta h2 {
    margin: 0.55rem 0 0;
    color: var(--navy);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    line-height: 1.04;
    font-weight: 900;
}

.market-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--blue);
    font-weight: 850;
}

.auction-grid,
.category-grid,
.assurance-grid {
    display: grid;
    gap: 1rem;
}

.auction-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-auction-card,
.category-card,
.assurance-grid article,
.market-empty {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(16, 37, 66, 0.07);
}

.market-auction-card {
    overflow: hidden;
}

.auction-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #e9eef4;
}

.auction-image img {
    height: 100%;
    object-fit: cover;
}

.status-chip,
.timer-chip {
    position: absolute;
    border-radius: 6px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-chip {
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: var(--danger);
}

.status-chip.is-upcoming {
    background: var(--teal);
}

.status-chip.is-closed {
    background: var(--navy);
}

.timer-chip {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.45rem 0.6rem;
    background: rgba(8, 15, 29, 0.78);
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.auction-body {
    padding: 1rem;
}

.auction-body h3 {
    min-height: 48px;
    margin: 0 0 0.8rem;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 850;
}

.meta-row {
    color: var(--muted);
    flex-wrap: wrap;
    font-size: 0.86rem;
}

.price-row {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
}

.price-row strong {
    color: var(--navy);
    font-size: 1.18rem;
}

.category-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
}

.category-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: #e8f2ea;
    color: var(--teal);
    font-size: 1.35rem;
    font-weight: 900;
}

.category-icon img {
    height: 100%;
    object-fit: cover;
}

.category-card strong,
.category-card span:last-child {
    display: block;
}

.category-card span:last-child {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.assurance-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
}

.assurance-copy p,
.assurance-grid p {
    color: var(--muted);
    line-height: 1.7;
}

.assurance-copy p {
    margin-top: 1rem;
    max-width: 520px;
}

.assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assurance-grid article {
    padding: 1.15rem;
}

.assurance-grid i {
    color: var(--gold);
    font-size: 1.45rem;
}

.assurance-grid h3 {
    margin: 0.8rem 0 0.45rem;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 850;
}

.market-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 38px;
    margin-bottom: 46px;
    padding: 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #102542 0%, #143d54 58%, #0f766e 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.market-cta h2 {
    color: #fff;
}

.market-cta .mini-label {
    color: #d9f99d;
}

.market-empty {
    grid-column: 1 / -1;
    padding: 1.4rem;
    color: var(--muted);
    text-align: center;
    box-shadow: none;
}

@media (max-width: 1199px) {
    .auction-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .market-hero-inner,
    .assurance-section {
        grid-template-columns: 1fr;
    }

    .hero-auction-panel {
        max-width: 520px;
    }

    .market-stat-band,
    .category-grid,
    .assurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .market-hero-full {
        min-height: auto;
    }

    .market-hero-inner,
    .home-section,
    .market-stat-band,
    .market-cta {
        width: min(100% - 1rem, 1180px);
    }

    .market-hero-inner {
        padding: 3rem 0 2rem;
    }

    .market-hero-copy h1 {
        font-size: 2.75rem;
    }

    .market-stat-band {
        transform: none;
        margin-top: 0.75rem;
        margin-bottom: 0;
        grid-template-columns: 1fr 1fr;
    }

    .market-stat-band div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .section-head,
    .market-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auction-grid,
    .category-grid,
    .assurance-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-actions .market-btn,
    .market-cta .market-btn {
        width: 100%;
    }
}



.market-home a.market-btn-white,
.market-home a.market-btn-white:visited,
.market-home a.market-btn-white:hover,
.market-home a.market-btn-white:focus {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.market-home a.market-btn-white:hover,
.market-home a.market-btn-white:focus {
    box-shadow: 0 16px 30px rgba(255, 255, 255, 0.2);
}

.market-footer {
    margin-top: 24px;
    padding: 34px 0;
    background: #0b1726;
    box-shadow: 0 0 0 100vmax #0b1726;
    clip-path: inset(0 -100vmax);
    color: rgba(255, 255, 255, 0.76);
}

.market-footer-grid {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.market-footer p {
    max-width: 620px;
    margin: 0.45rem 0 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.market-home .footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.market-home .footer-links a:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .market-footer-grid {
        width: min(100% - 1rem, 1180px);
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

/* PaperAid logo theme */
.market-home {
    --ink: #1f1721;
    --muted: #746878;
    --line: #e6dfe7;
    --wash: #f7f4f7;
    --navy: #2a0026;
    --blue: #74366d;
    --teal: #8f5a86;
    --gold: #b7791f;
    --shadow: 0 18px 42px rgba(42, 0, 38, 0.13);
}

.market-hero-full {
    background-image:
        linear-gradient(90deg, rgba(29, 0, 27, 0.9) 0%, rgba(42, 0, 38, 0.72) 46%, rgba(42, 0, 38, 0.28) 100%),
        var(--hero-image);
}

.market-btn-blue,
.market-card-link,
.panel-btn {
    background: linear-gradient(135deg, #2a0026, #74366d);
}

.market-cta,
.market-footer {
    background: linear-gradient(135deg, #2a0026 0%, #4a1745 58%, #7b3f73 100%);
}

