/* ==========================================================
   Got Hot Wheels - Orders/Messages + Footer Tighten v17
   ========================================================== */

:root {
    --ghw-red: #ed111c;
    --ghw-red-dark: #b70008;
    --ghw-orange: #ff9d00;
    --ghw-yellow: #ffd45a;
    --ghw-black: #030303;
    --ghw-panel: #070b10;
    --ghw-panel-2: #111821;
    --ghw-line: rgba(255,255,255,.13);
}

/* Page shells for account/workflow pages */
.ghw-page-shell {
    background:
        radial-gradient(circle at 70% 0%, rgba(237,17,28,.11), transparent 33rem),
        radial-gradient(circle at 20% 15%, rgba(255,157,0,.06), transparent 24rem),
        #050505;
    color: #fff;
    min-height: 44vh;
    padding: 0 0 34px;
}

.ghw-page-wrap {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.ghw-page-hero {
    padding: 26px 0 18px;
    border-bottom: 1px solid rgba(255,157,0,.18);
}

.ghw-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--ghw-yellow);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.ghw-page-hero h1 {
    margin: 0;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(38px, 4vw, 58px);
    font-style: italic;
    line-height: .95;
    letter-spacing: .045em;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 #000, 0 0 18px rgba(237,17,28,.25);
}

.ghw-page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #dce4ee;
    font-size: 17px;
    line-height: 1.5;
}

.ghw-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ghw-action-btn,
.ghw-empty-panel a,
.ghw-mini-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,157,0,.65);
    background: rgba(0,0,0,.35);
    color: #fff !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
    text-decoration: none !important;
}

.ghw-action-btn.primary,
.ghw-empty-panel a.primary,
.ghw-mini-card a.primary {
    border-color: transparent;
    background: linear-gradient(180deg, #ff2630, #c90610);
    box-shadow: 0 0 24px rgba(237,17,28,.28);
}

.ghw-action-btn:hover,
.ghw-empty-panel a:hover,
.ghw-mini-card a:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 0 22px rgba(255,157,0,.24);
}

.ghw-content-panel {
    padding: 26px 0 8px;
}

.ghw-empty-panel {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    border-radius: 16px;
    border: 1px dashed rgba(130,170,220,.35);
    background:
        radial-gradient(circle at top, rgba(255,157,0,.06), transparent 18rem),
        linear-gradient(180deg, #0e151d, #06090d);
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
}

.ghw-empty-panel h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.ghw-empty-panel p {
    margin: 0 0 18px;
    color: #dce4ee;
    font-size: 16px;
    line-height: 1.45;
}

.ghw-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.ghw-mini-card {
    border-radius: 14px;
    border: 1px solid var(--ghw-line);
    background: linear-gradient(180deg, var(--ghw-panel-2), var(--ghw-panel));
    box-shadow: 0 16px 34px rgba(0,0,0,.36);
    padding: 18px;
}

.ghw-mini-card h2,
.ghw-mini-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #fff;
}

.ghw-mini-card p,
.ghw-mini-card small {
    color: #dce4ee;
}

.ghw-status-pill {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(237,17,28,.18);
    color: #fff;
    border: 1px solid rgba(237,17,28,.55);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Force the old simple orders/messages text blocks to look less bare if they appear */
main > .ghw-checkout-hero,
main > .ghw-messages-hero,
main > .ghw-orders-hero,
.ghw-checkout-page > .ghw-checkout-hero {
    width: min(1280px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding: 24px 0 16px !important;
}

/* Footer tighten - targets current ghw5 layout plus older class names */
footer,
.ghw5-footer,
.ghw-footer,
.ghw-site-footer,
.site-footer {
    padding-top: 22px !important;
    padding-bottom: 10px !important;
}

.ghw5-footer .ghw5-wrap,
.ghw5-footerMain,
.ghw-footer-grid,
.ghw-footer-main,
.site-footer .footer-main,
footer .footer-main {
    gap: 24px !important;
    align-items: start !important;
}

.ghw5-footerMain,
.ghw-footer-grid,
.ghw-footer-main,
.site-footer .footer-main {
    padding-top: 0 !important;
    padding-bottom: 16px !important;
}

.ghw5-footerBrand img,
.ghw-footer-brand img,
.site-footer .footer-brand img,
footer img[alt*="Got"],
footer img[src*="logo"] {
    max-width: 170px !important;
    margin-bottom: 8px !important;
}

.ghw5-footerBrand,
.ghw-footer-brand,
.site-footer .footer-brand {
    min-height: 0 !important;
}

.ghw5-footerBrand p,
.ghw-footer-brand p,
.site-footer .footer-brand p,
footer p {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
    line-height: 1.35 !important;
}

.ghw5-footer h3,
.ghw5-footer h4,
.ghw-footer h3,
.ghw-footer h4,
.site-footer h3,
.site-footer h4,
footer h3,
footer h4 {
    margin-top: 0 !important;
    margin-bottom: 9px !important;
    line-height: 1.05 !important;
}

.ghw5-footer a,
.ghw-footer a,
.site-footer a,
footer a {
    line-height: 1.24 !important;
}

.ghw5-footer ul,
.ghw-footer ul,
.site-footer ul,
footer ul {
    margin: 0 !important;
    padding: 0 !important;
}

.ghw5-footer li,
.ghw-footer li,
.site-footer li,
footer li {
    margin-bottom: 5px !important;
}

.ghw5-newsletter,
.ghw-newsletter,
.site-footer .newsletter,
footer .newsletter {
    gap: 8px !important;
}

.ghw5-newsletter input,
.ghw-newsletter input,
.site-footer input[type="email"],
footer input[type="email"] {
    height: 42px !important;
    min-height: 42px !important;
    margin-bottom: 8px !important;
}

.ghw5-newsletter button,
.ghw-newsletter button,
.site-footer button,
footer button[type="submit"] {
    height: 44px !important;
    min-height: 44px !important;
    margin-top: 0 !important;
}

.ghw5-footerBottom,
.ghw-footer-bottom,
.site-footer .footer-bottom,
footer .footer-bottom {
    margin-top: 10px !important;
    padding-top: 11px !important;
    padding-bottom: 0 !important;
}

/* Remove extra blank vertical room under social icon */
.ghw5-social,
.ghw-footer-social,
.footer-social,
footer .social {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    gap: 12px !important;
}

.ghw5-social a:not(:first-child),
.ghw-footer-social a:not(:first-child),
.footer-social a:not(:first-child),
footer .social a:not(:first-child) {
    display: none !important;
}

/* Top bar keep only Facebook/social f if extra icons return */
.ghw5-topLinks .ghw5-social a:not(:first-child),
.ghw-topbar .social a:not(:first-child),
.top-bar .social a:not(:first-child) {
    display: none !important;
}

/* Tighter homepage lower sections without crushing cards */
.ghw-featured-section,
.ghw-auctions-section,
.ghw-auction-section {
    padding-top: 26px !important;
    padding-bottom: 28px !important;
    min-height: auto !important;
}

.ghw-how,
.ghw-how-section {
    padding-top: 34px !important;
    padding-bottom: 36px !important;
}

.ghw-how-grid article,
.ghw-step {
    min-height: 150px !important;
    padding-top: 18px !important;
    padding-bottom: 16px !important;
}

/* Live dot blink enforcement */
@keyframes ghwV17DotBlink {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(237,17,28,.65); }
    50% { opacity: .36; transform: scale(.78); box-shadow: 0 0 22px rgba(237,17,28,1); }
}

.ghw-force-live-dot,
.ghw-live-dot,
.ghw-section-title .dot,
.ghw-section-heading .dot,
.ghw-featured-section h2::before,
.ghw-auctions-section h2::before {
    animation: ghwV17DotBlink .85s infinite ease-in-out !important;
}

@media (max-width: 900px) {
    .ghw-page-wrap { width: min(100% - 24px, 100%); }
    .ghw-page-hero { padding: 22px 0 14px; }
    .ghw-page-hero h1 { font-size: 36px; }
    .ghw-empty-panel { min-height: 170px; padding: 22px; }

    footer,
    .ghw5-footer,
    .ghw-footer,
    .site-footer {
        padding-top: 18px !important;
    }

    .ghw5-footerMain,
    .ghw-footer-grid,
    .site-footer .footer-main {
        gap: 16px !important;
    }
}
