/*
 * Got Hot Wheels Auctions — Phase 117.1 density and visual richness correction
 * Presentation-only. Keeps the Phase 115 backend freeze untouched.
 */

:root {
    --ghw1171-canvas: 1560px;
    --ghw1171-page: 1480px;
    --ghw1171-gap-xs: 8px;
    --ghw1171-gap-sm: 12px;
    --ghw1171-gap-md: 16px;
    --ghw1171-gap-lg: 24px;
    --ghw1171-panel: linear-gradient(145deg, rgba(16,22,31,.98), rgba(6,9,14,.98));
    --ghw1171-panel-warm: radial-gradient(circle at 85% 0%, rgba(236,29,42,.17), transparent 34rem), linear-gradient(115deg, rgba(9,12,18,.98), rgba(27,10,18,.96));
    --ghw1171-line: rgba(255,255,255,.115);
    --ghw1171-gold-line: rgba(255,171,24,.48);
    --ghw1171-muted: #b8c2cf;
}

/* Wider, denser site canvas. */
.ghw1171-body .ghwV5-wrap,
.ghw1171-body .ghw-wrap {
    width: min(var(--ghw1171-canvas), calc(100% - 48px)) !important;
}
.ghw1171-body .ghw-page-wrap,
.ghw1171-body .ghw-dash-wrap,
.ghw1171-body .ghw107-wrap,
.ghw1171-body .ghw106-favorites-wrap,
.ghw1171-body .ghw72-admin-page > .ghw-wrap,
.ghw1171-body .ghw-seller-page > .ghw-wrap,
.ghw1171-body .ghw-page-titlebar > .ghw-wrap,
.ghw1171-body .ghw98-wrap,
.ghw1171-body .ghw99-wrap {
    width: min(var(--ghw1171-page), calc(100% - 48px)) !important;
    max-width: none !important;
    margin-inline: auto !important;
}

/* Reduce page-height inflation and keep the footer close to real content. */
.ghw1171-body .ghwV5-main,
.ghw1171-body .ghw-page-shell,
.ghw1171-body .ghw-dashboard-v6,
.ghw1171-body .ghw106-favorites,
.ghw1171-body .ghw-seller-page,
.ghw1171-body .ghw60-seller-dashboard-page,
.ghw1171-body .ghw72-admin-page {
    min-height: 0 !important;
}
.ghw1171-body .ghw-page-shell,
.ghw1171-body .ghw-seller-page,
.ghw1171-body .ghw72-admin-page,
.ghw1171-body .ghw60-seller-dashboard-page {
    padding-bottom: 40px !important;
}

/* Compact global chrome without shrinking readability. */
.ghw1171-body .ghwV5-headerInner { min-height: 82px !important; }
.ghw1171-body .ghwV5-logo img { width: 205px !important; }
.ghw1171-body .ghwV5-mainNav > a { min-height: 42px !important; padding-inline: 11px !important; }
.ghw1171-body .ghwV5-search,
.ghw1171-body .ghwV5-login,
.ghw1171-body .ghwV5-register,
.ghw1171-body .ghwV5-account > summary { min-height: 44px !important; }
.ghw1171-body .ghw116-quickbar-inner { min-height: 48px !important; }
.ghw1171-body .ghw116-quickbar a { min-height: 34px !important; }

/* Home: preserve the artwork, but bring useful sections closer together. */
.ghw1171-body .ghw-hero-fixed { min-height: clamp(500px, 42vw, 610px) !important; }
.ghw1171-body .ghw-hero-fixed-inner { padding-block: 54px !important; }
.ghw1171-body .ghw-hero-copy { max-width: 600px !important; }
.ghw1171-body .ghw-hero-copy > p { margin-top: 16px !important; }
.ghw1171-body .ghw-hero-buttons { margin-top: 20px !important; }
.ghw1171-body .ghw-rating { margin-top: 18px !important; }
.ghw1171-body .ghw-trust-grid article { min-height: 86px !important; padding: 14px 18px !important; }
.ghw1171-body .ghw-category-section { padding-block: 30px 34px !important; }
.ghw1171-body .ghw-section-heading-lines { margin-bottom: 20px !important; }
.ghw1171-body .ghw-category-list { gap: 12px !important; }
.ghw1171-body .ghw-circle { width: 78px !important; height: 78px !important; }
.ghw1171-body .ghw-category strong { margin-top: 8px !important; min-height: 26px !important; }
.ghw1171-body .ghw-auction-section { padding-block: 34px !important; }
.ghw1171-body .ghw-auction-heading { margin-bottom: 18px !important; }
.ghw1171-body .ghw-auction-section .ghw-empty-state {
    min-height: 210px !important;
    padding: 28px !important;
}
.ghw1171-body .ghw-how-section { padding-block: 20px 24px !important; }
.ghw1171-body .ghw-how-grid { gap: 12px !important; padding-top: 14px !important; }
.ghw1171-body .ghw-how-grid article { min-height: 112px !important; margin-top: 16px !important; padding: 24px 16px 14px !important; }

/* Shared internal page heroes: one compact information band, not a billboard. */
.ghw1171-body .ghw-page-hero,
.ghw1171-body .ghw98-hero,
.ghw1171-body .ghw99-hero,
.ghw1171-body .ghw72-hero,
.ghw1171-body .ghw106-favorites-hero,
.ghw1171-body .ghw-dash-hero {
    padding: 20px 24px !important;
    margin-bottom: 16px !important;
}
.ghw1171-body .ghw-page-titlebar { padding: 22px 0 14px !important; }
.ghw1171-body .ghw-page-hero h1,
.ghw1171-body .ghw98-hero h1,
.ghw1171-body .ghw99-hero h1,
.ghw1171-body .ghw72-hero h1,
.ghw1171-body .ghw106-favorites h1,
.ghw1171-body .ghw-dash-hero h1,
.ghw1171-body .ghw-page-titlebar h1 {
    font-size: clamp(38px, 4vw, 58px) !important;
    line-height: .96 !important;
}
.ghw1171-body .ghw98-hero p,
.ghw1171-body .ghw99-hero p,
.ghw1171-body .ghw72-hero p,
.ghw1171-body .ghw106-favorites-hero p,
.ghw1171-body .ghw-dash-hero p,
.ghw1171-body .ghw-page-titlebar p {
    margin-top: 8px !important;
    max-width: 780px !important;
}
.ghw1171-body .ghw98-actions,
.ghw1171-body .ghw99-actions,
.ghw1171-body .ghw72-actions { gap: 8px !important; }
.ghw1171-body .ghw98-actions a,
.ghw1171-body .ghw99-actions a,
.ghw1171-body .ghw72-actions a { min-height: 36px !important; padding-inline: 12px !important; }

/* Public help/policy pages: richer, wider, and shorter. */
.ghw1171-body .ghw98-wrap { padding: 20px 0 40px !important; }
.ghw1171-body .ghw98-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}
.ghw1171-body .ghw98-card,
.ghw1171-body .ghw98-notice {
    padding: 18px 20px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}
.ghw1171-body .ghw98-grid .ghw98-card { min-height: 150px !important; }
.ghw1171-body .ghw98-card h2 { font-size: clamp(25px, 2.2vw, 34px) !important; }
.ghw1171-body .ghw98-linkgrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
}
.ghw1171-body .ghw98-linkgrid a { min-height: 34px !important; padding: 6px 10px !important; }

/* Seller Plan & Fees: use the screen, clarify the current plan, and pair history panels. */
.ghw1171-body .ghw99-wrap { padding: 20px 0 42px !important; }
.ghw1171-body .ghw99-hero { align-items: center !important; }
.ghw1171-body .ghw99-stats {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}
.ghw1171-body .ghw99-stats article {
    min-height: 82px !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
}
.ghw1171-body .ghw99-stats strong {
    margin-top: 5px !important;
    font-size: clamp(18px, 1.45vw, 24px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
}
.ghw1171-body .ghw99-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}
.ghw1171-body .ghw99-card {
    padding: 18px 20px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}
.ghw1171-body .ghw99-plan-card { position: relative; overflow: hidden; }
.ghw1171-body .ghw99-plan-card.is-current {
    border-color: rgba(71,233,132,.72) !important;
    box-shadow: 0 0 0 1px rgba(71,233,132,.2), 0 18px 42px rgba(0,0,0,.32) !important;
}
.ghw1171-body .ghw99-plan-card.is-current::after {
    content: "CURRENT";
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border: 1px solid rgba(71,233,132,.55);
    border-radius: 999px;
    color: #a9ffc6;
    background: rgba(31,140,76,.16);
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .07em;
}
.ghw1171-body .ghw99-plan-card h2 { font-size: clamp(28px, 2.4vw, 36px) !important; padding-right: 72px; }
.ghw1171-body .ghw99-plan-card > p { min-height: 48px; margin: 6px 0 12px !important; }
.ghw1171-body .ghw99-history { padding: 9px 11px !important; margin-bottom: 8px !important; }
.ghw1171-body .ghw1171-ledger-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 14px;
    align-items: start;
}
.ghw1171-body .ghw1171-ledger-grid > .ghw99-card { margin-bottom: 0 !important; }
.ghw1171-body .ghw1171-ledger-grid .ghw99-table { min-width: 700px !important; }
.ghw1171-body .ghw99-table th,
.ghw1171-body .ghw99-table td { padding: 9px 8px !important; }

/* Account dashboard: more useful content above the fold. */
.ghw1171-body .ghw-dash-hero { padding-block: 24px !important; }
.ghw1171-body .ghw-dash-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px) !important;
    gap: 18px !important;
}
.ghw1171-body .ghw-dash-main { padding-top: 16px !important; }
.ghw1171-body .ghw-dash-stats { gap: 10px !important; margin-bottom: 14px !important; }
.ghw1171-body .ghw-dash-card {
    min-height: 94px !important;
    padding: 14px 16px !important;
}
.ghw1171-body .ghw-dash-card .icon { font-size: 23px !important; }
.ghw1171-body .ghw-dash-card .num { font-size: 28px !important; }
.ghw1171-body .ghw-dash-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 410px) !important;
    gap: 14px !important;
}
.ghw1171-body .ghw-dash-panel,
.ghw1171-body .ghw-account-card { padding: 16px 18px !important; }
.ghw1171-body .ghw-recent-list { gap: 9px !important; }
.ghw1171-body .ghw-recent-item { padding: 9px !important; }

/* Seller landing dashboard: turn the tall card into a compact command grid. */
.ghw1171-body .ghw60-seller-dashboard-page { padding: 24px 0 40px !important; }
.ghw1171-body .ghw60-seller-card { width: min(var(--ghw1171-page), calc(100% - 48px)) !important; max-width: none !important; }
.ghw1171-body .ghw60-seller-card-head { padding: 20px 24px !important; }
.ghw1171-body .ghw60-seller-card-head h1 { font-size: clamp(38px, 4vw, 58px) !important; }
.ghw1171-body .ghw60-seller-card-body { padding: 16px !important; }
.ghw1171-body .ghw60-seller-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.ghw1171-body .ghw60-seller-grid a { min-height: 112px !important; padding: 16px !important; }

/* Listings, favorites, messages, and generic account content. */
.ghw1171-body .ghw-seller-page { padding-top: 16px !important; }
.ghw1171-body .ghw-seller-actions-bar { padding: 12px !important; margin-bottom: 14px !important; }
.ghw1171-body .ghw-seller-stats a { min-height: 66px !important; }
.ghw1171-body .ghw-seller-listings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
.ghw1171-body .ghw106-favorites-hero { padding-block: 22px !important; }
.ghw1171-body .ghw106-favorites-body { padding-top: 16px !important; }
.ghw1171-body .ghw106-favorites-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 12px !important; }
.ghw1171-body .ghw-empty-panel,
.ghw1171-body .ghw-empty-state,
.ghw1171-body .ghw106-favorites-empty,
.ghw1171-body [class$="-empty"] {
    min-height: 170px !important;
    padding: 24px !important;
}
.ghw1171-body .ghw-content-panel { padding: 16px 18px !important; }

/* Owner Hub: dense operational dashboard rather than isolated oversized blocks. */
.ghw1171-body .ghw72-admin-page { padding-top: 18px !important; }
.ghw1171-body .ghw72-hero { align-items: center !important; }
.ghw1171-body .ghw72-stats {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}
.ghw1171-body .ghw72-stats article { min-height: 78px !important; padding: 13px 14px !important; }
.ghw1171-body .ghw72-stats article strong { font-size: 25px !important; }
.ghw1171-body .ghw72-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}
.ghw1171-body .ghw72-card { padding: 18px !important; }
.ghw1171-body .ghw72-card h2 { font-size: 23px !important; margin-bottom: 10px !important; }
.ghw1171-body .ghw72-link-grid { gap: 8px !important; }
.ghw1171-body .ghw72-link-grid a { min-height: 36px !important; }
.ghw1171-body .ghw72-check-list { gap: 7px !important; }
.ghw1171-body .ghw72-check-list article { min-height: 48px !important; padding: 9px 11px !important; }
.ghw1171-body .ghw72-roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; }
.ghw1171-body .ghw72-roadmap article { min-height: 112px !important; padding: 15px !important; }

/* Footer should finish the page, not create another large empty section. */
.ghw1171-body .ghwV5-footer { padding: 32px 0 16px !important; }
.ghw1171-body .ghwV5-footerGrid {
    grid-template-columns: 1.2fr .78fr .78fr .85fr 1.35fr !important;
    gap: 24px !important;
}
.ghw1171-body .ghwV5-footerBrand img { width: 170px !important; }
.ghw1171-body .ghwV5-footerBottom { margin-top: 18px !important; }

@media (min-width: 1500px) {
    .ghw1171-body .ghw-auction-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 1280px) {
    .ghw1171-body .ghw99-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw72-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw106-favorites-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw60-seller-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw-seller-listings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw98-linkgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 1024px) {
    .ghw1171-body .ghwV5-wrap,
    .ghw1171-body .ghw-wrap,
    .ghw1171-body .ghw-page-wrap,
    .ghw1171-body .ghw-dash-wrap,
    .ghw1171-body .ghw107-wrap,
    .ghw1171-body .ghw106-favorites-wrap,
    .ghw1171-body .ghw72-admin-page > .ghw-wrap,
    .ghw1171-body .ghw-seller-page > .ghw-wrap,
    .ghw1171-body .ghw98-wrap,
    .ghw1171-body .ghw99-wrap { width: min(100% - 28px, 100%) !important; }

    .ghw1171-body .ghw98-grid,
    .ghw1171-body .ghw99-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw1171-ledger-grid,
    .ghw1171-body .ghw-dash-hero-grid,
    .ghw1171-body .ghw-dash-grid,
    .ghw1171-body .ghw72-grid { grid-template-columns: 1fr !important; }
    .ghw1171-body .ghw99-stats,
    .ghw1171-body .ghw72-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw60-seller-grid,
    .ghw1171-body .ghw-seller-listings-grid,
    .ghw1171-body .ghw106-favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw72-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghwV5-footerGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 680px) {
    .ghw1171-body .ghwV5-wrap,
    .ghw1171-body .ghw-wrap,
    .ghw1171-body .ghw-page-wrap,
    .ghw1171-body .ghw-dash-wrap,
    .ghw1171-body .ghw107-wrap,
    .ghw1171-body .ghw106-favorites-wrap,
    .ghw1171-body .ghw72-admin-page > .ghw-wrap,
    .ghw1171-body .ghw-seller-page > .ghw-wrap,
    .ghw1171-body .ghw98-wrap,
    .ghw1171-body .ghw99-wrap { width: min(100% - 20px, 100%) !important; }

    .ghw1171-body .ghw-hero-fixed { min-height: 520px !important; }
    .ghw1171-body .ghw-hero-fixed-inner { padding-block: 42px !important; }
    .ghw1171-body .ghw-category-section,
    .ghw1171-body .ghw-auction-section,
    .ghw1171-body .ghw-how-section { padding-block: 24px !important; }

    .ghw1171-body .ghw98-hero,
    .ghw1171-body .ghw99-hero,
    .ghw1171-body .ghw72-hero { display: block !important; padding: 16px !important; }
    .ghw1171-body .ghw98-actions,
    .ghw1171-body .ghw99-actions,
    .ghw1171-body .ghw72-actions { margin-top: 12px !important; justify-content: flex-start !important; }
    .ghw1171-body .ghw98-actions a,
    .ghw1171-body .ghw99-actions a,
    .ghw1171-body .ghw72-actions a { flex: 1 1 calc(50% - 8px) !important; }

    .ghw1171-body .ghw98-grid,
    .ghw1171-body .ghw99-grid,
    .ghw1171-body .ghw60-seller-grid,
    .ghw1171-body .ghw-seller-listings-grid,
    .ghw1171-body .ghw106-favorites-grid,
    .ghw1171-body .ghw72-roadmap { grid-template-columns: 1fr !important; }
    .ghw1171-body .ghw99-stats,
    .ghw1171-body .ghw72-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ghw1171-body .ghw98-linkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    .ghw1171-body .ghw98-grid .ghw98-card,
    .ghw1171-body .ghw60-seller-grid a,
    .ghw1171-body .ghw72-roadmap article { min-height: 0 !important; }
    .ghw1171-body .ghw99-plan-card > p { min-height: 0; }

    .ghw1171-body .ghwV5-footer { padding-top: 24px !important; }
    .ghw1171-body .ghwV5-footerGrid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .ghw1171-body .ghwV5-footer a,
    .ghw1171-body .ghwV5-footer p,
    .ghw1171-body .ghwV5-footerBottom { font-size: 14px !important; }
    .ghw1171-body .ghwV5-footerBottom { gap: 10px !important; }
}
