.auction-marketplace {
    --auction-ink: #172b3a;
    --auction-muted: #607180;
    --auction-line: #e3e9ed;
    --auction-orange: #e77a26;
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    color: var(--auction-ink);
}

.auction-marketplace .auction-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 72px);
    border: 1px solid #e2ebf0;
    border-radius: 22px;
    background: linear-gradient(115deg, #edf7fb, #f9f2e8);
}

.auction-marketplace .auction-eyebrow {
    color: #a96516;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.auction-marketplace .auction-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: .7rem 0;
    color: #183445;
    font-size: clamp(2rem, 4.5vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.auction-marketplace .auction-hero p,
.auction-marketplace .auction-section-heading p {
    max-width: 620px;
    color: var(--auction-muted);
    line-height: 1.7;
}

.auction-marketplace .auction-hero-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: .65rem;
    margin-top: .5rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    background: var(--auction-orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.auction-marketplace .auction-hero-icon {
    position: absolute;
    top: 50%;
    right: 9%;
    display: grid;
    width: 220px;
    height: 220px;
    place-items: center;
    transform: translateY(-50%) rotate(-12deg);
    border: 1px solid rgb(23 43 58 / 10%);
    border-radius: 50%;
    background: rgb(255 255 255 / 45%);
    color: #d67c25;
    font-size: 6rem;
}

.auction-marketplace .auction-events-section {
    padding-top: 48px;
}

.auction-marketplace .auction-section-heading h2 {
    margin: .35rem 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
}

.auction-marketplace .auction-section-heading p {
    margin: 0 0 20px;
}

.auction-marketplace .auction-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.auction-marketplace .auction-event-card {
    overflow: hidden;
    border: 1px solid var(--auction-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgb(31 45 54 / 5%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.auction-marketplace .auction-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgb(31 45 54 / 11%);
}

.auction-marketplace .auction-event-image {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: #edf2f5;
}

.auction-marketplace .auction-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auction-marketplace .auction-event-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 99px;
    background: #eaf7ef;
    color: #167547;
    font-size: .68rem;
    font-weight: 800;
}

.auction-marketplace .auction-event-status.is-past { background: #f0f2f4; color: #596773; }
.auction-marketplace .auction-event-content { padding: 16px; }

.auction-marketplace .auction-event-date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a96516;
    font-size: .78rem;
    font-weight: 700;
}

.auction-marketplace .auction-event-date span { margin-left: auto; color: var(--auction-muted); }

.auction-marketplace .auction-event-content h3 {
    margin: 11px 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
}

.auction-marketplace .auction-event-content h3 a { color: var(--auction-ink); text-decoration: none; }
.auction-marketplace .auction-event-content p { min-height: 3.5em; margin: 0; color: var(--auction-muted); font-size: .84rem; line-height: 1.5; }

.auction-marketplace .auction-event-meta {
    display: grid;
    gap: 7px;
    margin-top: 13px;
    color: var(--auction-muted);
    font-size: .78rem;
}

.auction-marketplace .auction-event-meta i { width: 15px; color: var(--auction-orange); }

.auction-marketplace .auction-event-link,
.auction-marketplace .auction-event-join {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--auction-orange);
    color: #fff;
    font-size: .85rem;
    font-weight: 750;
    text-decoration: none;
}

.auction-marketplace .auction-event-join:disabled { background: #9aa6ad; cursor: not-allowed; }

.auction-marketplace .auction-empty-state {
    padding: 44px 20px;
    border: 1px dashed #cbd6dd;
    border-radius: 14px;
    background: #f8fafb;
    color: var(--auction-muted);
    text-align: center;
}

.auction-marketplace .auction-empty-state > i { color: var(--auction-orange); font-size: 2rem; }
.auction-marketplace .auction-empty-state h1,
.auction-marketplace .auction-empty-state h3 { margin: 12px 0 5px; color: var(--auction-ink); }

.auction-marketplace .auction-event-detail {
    overflow: hidden;
    border: 1px solid var(--auction-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(31 45 54 / 7%);
}

.auction-marketplace .auction-back-link {
    display: inline-flex;
    gap: 8px;
    margin: 18px 22px;
    color: var(--auction-muted);
    font-weight: 700;
    text-decoration: none;
}

.auction-marketplace .auction-detail-cover {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    background: #edf2f5;
}

.auction-marketplace .auction-detail-body { padding: clamp(20px, 4vw, 42px); }
.auction-marketplace .auction-detail-body h1 { margin: 8px 0 14px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.auction-marketplace .auction-detail-description { color: var(--auction-muted); line-height: 1.75; }

.auction-marketplace .auction-detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 22px 0;
    padding: 18px;
    border-radius: 12px;
    background: #f5f8fa;
}

.auction-marketplace .auction-detail-facts span { display: flex; align-items: center; gap: 9px; color: var(--auction-ink); font-size: .88rem; }
.auction-marketplace .auction-detail-facts i { width: 18px; color: var(--auction-orange); text-align: center; }

.auction-marketplace .auction-waitlist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid #f0d6b8;
    border-radius: 12px;
    background: #fffaf4;
}

.auction-marketplace .auction-waitlist h2 { margin: 0 0 5px; font-size: 1.15rem; font-weight: 800; }
.auction-marketplace .auction-waitlist p { margin: 0; color: var(--auction-muted); font-size: .84rem; }
.auction-marketplace .auction-waitlist form .auction-event-join { margin-top: 0; }

.auction-marketplace .auction-room-notice {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #edf5fb;
    color: #496174;
    font-size: .84rem;
    line-height: 1.55;
}

.auction-marketplace .auction-room-notice i { color: #1675e8; }
}

@media (max-width: 640px) {
    .auction-marketplace {
        padding: 16px 14px 40px;
    }

    .auction-marketplace .auction-hero-icon {
        right: -55px;
        width: 150px;
        height: 150px;
        opacity: .25;
        font-size: 4rem;
    }
    .auction-marketplace .auction-waitlist { align-items: flex-start; flex-direction: column; }
}
