/* ============================================================
   Smart Garage Offer Banners v4.0 — Agency-Grade Performance Ads
   Poster-grade split pricing · Balanced header bar · Subtle grid texture
   ============================================================ */

.sg-offer-banner,
.sg-offer-banner * {
    box-sizing: border-box;
}
.sg-offer-band {
    padding: 36px 0;
    background: #ffffff;
}
.sg-offer-band--footer_band {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
}
.sg-offer-band--home_banner {
    background: #ffffff;
    padding: 40px 0 8px;
}

/* Pure Image Ad Banner */
.sg-offer-img-only {
    display: block;
    margin: 24px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d8e1eb;
    box-shadow: 0 14px 36px rgba(7, 11, 18, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sg-offer-band .sg-offer-img-only {
    margin: 0;
}
.sg-offer-img-only:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(7, 11, 18, 0.16);
}
.sg-offer-img-only img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Base Agency Card Container */
.sg-offer-banner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 28px 30px;
    margin: 28px 0;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 24px 54px rgba(4, 10, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sg-offer-band .sg-offer-banner {
    margin: 0;
}

/* Luxury Automotive Orbital Arc + Soft Aurora Mesh (Zero Grid Lines) */
.sg-offer-grid-tex {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 58% at 96% 4%, rgba(94, 234, 212, 0.2) 0%, rgba(45, 212, 191, 0.04) 48%, transparent 72%),
        radial-gradient(ellipse 60% 50% at 8% 96%, rgba(56, 189, 248, 0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}
.sg-offer-grid-tex::before,
.sg-offer-grid-tex::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.sg-offer-grid-tex::before {
    width: 340px;
    height: 340px;
    top: -170px;
    right: -130px;
    border: 1px solid rgba(94, 234, 212, 0.16);
    box-shadow: inset 0 0 40px rgba(94, 234, 212, 0.06);
}
.sg-offer-grid-tex::after {
    width: 220px;
    height: 220px;
    top: -110px;
    right: -70px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.sg-offer-theme--amber .sg-offer-grid-tex {
    background:
        radial-gradient(ellipse 68% 58% at 96% 4%, rgba(252, 211, 77, 0.2) 0%, rgba(245, 158, 11, 0.04) 48%, transparent 72%),
        radial-gradient(ellipse 60% 50% at 8% 96%, rgba(251, 146, 60, 0.08) 0%, transparent 65%);
}
.sg-offer-theme--amber .sg-offer-grid-tex::before {
    border-color: rgba(252, 211, 77, 0.18);
    box-shadow: inset 0 0 40px rgba(252, 211, 77, 0.06);
}
.sg-offer-theme--editorial .sg-offer-grid-tex,
.sg-offer-tpl--editorial_minimal .sg-offer-grid-tex {
    background:
        radial-gradient(ellipse 65% 55% at 96% 4%, rgba(13, 148, 136, 0.09) 0%, transparent 68%),
        radial-gradient(ellipse 55% 45% at 6% 96%, rgba(15, 23, 42, 0.035) 0%, transparent 65%);
}
.sg-offer-theme--editorial .sg-offer-grid-tex::before,
.sg-offer-tpl--editorial_minimal .sg-offer-grid-tex::before {
    border-color: rgba(15, 118, 110, 0.14);
    box-shadow: none;
}
.sg-offer-theme--editorial .sg-offer-grid-tex::after,
.sg-offer-tpl--editorial_minimal .sg-offer-grid-tex::after {
    border-color: rgba(15, 23, 42, 0.07);
}

.sg-offer-inner-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Luxury Surfaces */
.sg-offer-theme--obsidian {
    background:
        radial-gradient(circle at 90% 0%, rgba(45, 212, 191, 0.22), transparent 52%),
        linear-gradient(155deg, #060a12 0%, #0d1526 100%);
    color: #ffffff;
    border-color: rgba(94, 234, 212, 0.2);
}
.sg-offer-theme--teal {
    background:
        radial-gradient(circle at 92% 4%, rgba(94, 234, 212, 0.24), transparent 52%),
        linear-gradient(155deg, #031716 0%, #072e2b 100%);
    color: #ffffff;
    border-color: rgba(94, 234, 212, 0.26);
}
.sg-offer-theme--amber {
    background:
        radial-gradient(circle at 90% 4%, rgba(251, 191, 36, 0.22), transparent 52%),
        linear-gradient(155deg, #0b0e14 0%, #191510 100%);
    color: #ffffff;
    border-color: rgba(252, 211, 77, 0.24);
}
.sg-offer-theme--editorial,
.sg-offer-tpl--editorial_minimal {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    border: 1px solid #d5e0ec;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Photo Background Mode */
.sg-offer-banner--has-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--sg-offer-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    z-index: 0;
}
.sg-offer-banner--has-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.76) 60%, rgba(6, 10, 18, 0.9) 100%);
    z-index: 1;
}
.sg-offer-tpl--editorial_minimal.sg-offer-banner--has-img::after {
    background: rgba(255, 255, 255, 0.88);
}

/* Subtle Motion Effects */
.sg-offer-fx-sweep {
    position: absolute;
    top: -40%;
    left: -40%;
    width: 28%;
    height: 180%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 50%, transparent 100%);
    transform: skewX(-24deg);
    animation: sgOfferSweep 6.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes sgOfferSweep {
    0% { left: -40%; opacity: 0; }
    15% { opacity: 1; }
    50% { left: 125%; opacity: 1; }
    100% { left: 125%; opacity: 0; }
}
.sg-offer-fx-radar {
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.22) 0%, transparent 70%);
    animation: sgOfferBreathe 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes sgOfferBreathe {
    0%, 100% { transform: scale(0.92); opacity: 0.55; }
    50% { transform: scale(1.18); opacity: 1; }
}
.sg-offer-tpl--animated_ticker {
    padding-top: 0;
}
.sg-offer-tpl--animated_ticker .sg-offer-inner-row {
    padding-top: 22px;
}
.sg-offer-ticker {
    position: relative;
    z-index: 2;
    margin: 0 -30px;
    padding: 7px 0;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    white-space: nowrap;
}
.sg-offer-ticker-track {
    display: inline-flex;
    gap: 48px;
    animation: sgOfferTicker 24s linear infinite;
    font-family: var(--sg-font-display, 'Plus Jakarta Sans', Inter, sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(94, 234, 212, 0.85);
}
@keyframes sgOfferTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}

/* Zone 1: Balanced Header Bar (Left Single-Line Eyebrow · Right Discount Pill) */
.sg-offer-main {
    flex: 1;
    min-width: 0;
}
.sg-offer-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.sg-offer-banner--sidebar_card .sg-offer-header-bar {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
    margin-bottom: 20px;
}
.sg-offer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--sg-font-display, 'Plus Jakarta Sans', Inter, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #5eead4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sg-offer-theme--amber .sg-offer-eyebrow {
    color: #fcd34d;
}
.sg-offer-theme--editorial .sg-offer-eyebrow,
.sg-offer-tpl--editorial_minimal .sg-offer-eyebrow {
    color: #0f766e;
}
.sg-offer-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    flex-shrink: 0;
    animation: sgDotBlink 2s ease-in-out infinite;
}
@keyframes sgDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.sg-offer-discount-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.16);
    border: 1px solid rgba(94, 234, 212, 0.38);
    color: #5eead4;
    font-family: var(--sg-font-display, 'Plus Jakarta Sans', Inter, sans-serif);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.sg-offer-theme--amber .sg-offer-discount-pill {
    background: rgba(252, 211, 77, 0.16);
    border-color: rgba(252, 211, 77, 0.42);
    color: #fcd34d;
}
.sg-offer-theme--editorial .sg-offer-discount-pill,
.sg-offer-tpl--editorial_minimal .sg-offer-discount-pill {
    background: #0f172a;
    border-color: #0f172a;
    color: #5eead4;
}

/* Zone 2: Poster Headline & Micro Sub */
.sg-offer-title,
.sg-article .sg-offer-banner p.sg-offer-title {
    margin: 0 0 6px !important;
    font-family: var(--sg-font-display, 'Plus Jakarta Sans', Inter, sans-serif) !important;
    font-size: clamp(20px, 1.9vw, 25px) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    max-width: none !important;
}
.sg-offer-theme--editorial .sg-offer-title,
.sg-offer-tpl--editorial_minimal .sg-offer-title,
.sg-article .sg-offer-theme--editorial p.sg-offer-title {
    color: #0f172a !important;
}
.sg-offer-sub,
.sg-article .sg-offer-banner p.sg-offer-sub {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: rgba(226, 232, 240, 0.74) !important;
    max-width: 50ch !important;
}
.sg-offer-theme--editorial .sg-offer-sub,
.sg-offer-tpl--editorial_minimal .sg-offer-sub,
.sg-article .sg-offer-theme--editorial p.sg-offer-sub {
    color: #475569 !important;
}

/* Zone 3: Poster-Grade Split Price Stage (snug fit on wide, full-width on sidebar) */
.sg-offer-price-stage {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 13px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
}
.sg-offer-banner--sidebar_card .sg-offer-price-stage {
    display: flex;
    width: 100%;
}
.sg-offer-price-stage--compact {
    margin-top: 4px;
    padding: 10px 14px;
}
.sg-offer-theme--editorial .sg-offer-price-stage,
.sg-offer-tpl--editorial_minimal .sg-offer-price-stage {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.sg-offer-price-now {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    font-family: var(--sg-font-display, 'Plus Jakarta Sans', Inter, sans-serif);
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}
.sg-price-cur {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #5eead4;
    margin-top: 4px;
}
.sg-price-num {
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
}
.sg-offer-theme--amber .sg-price-cur,
.sg-offer-theme--amber .sg-offer-price-now {
    color: #fcd34d;
}
.sg-offer-theme--editorial .sg-offer-price-now,
.sg-offer-tpl--editorial_minimal .sg-offer-price-now {
    color: #0f172a;
}
.sg-offer-theme--editorial .sg-price-cur,
.sg-offer-tpl--editorial_minimal .sg-price-cur {
    color: #0f766e;
}
.sg-offer-price-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
}
.sg-offer-theme--editorial .sg-offer-price-meta,
.sg-offer-tpl--editorial_minimal .sg-offer-price-meta {
    border-left-color: #cbd5e1;
}
.sg-offer-price-was {
    font-size: 14px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.sg-offer-price-note {
    font-size: 12px;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.72);
    line-height: 1.25;
}
.sg-offer-theme--editorial .sg-offer-price-note,
.sg-offer-tpl--editorial_minimal .sg-offer-price-note {
    color: #64748b;
}

/* Spotlight Left Block */
.sg-offer-spotlight-tag {
    flex-shrink: 0;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(94, 234, 212, 0.25);
    text-align: center;
    min-width: 152px;
}
.sg-offer-spotlight-tag .sg-price-num {
    font-size: 32px;
}
.sg-offer-spot-disc {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 6px;
}
.sg-offer-theme--amber .sg-offer-spot-disc {
    color: #fcd34d;
}
.sg-offer-spot-was {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 5px;
}
.sg-offer-theme--editorial .sg-offer-spotlight-tag {
    background: #0f172a;
    border-color: #0f172a;
}
.sg-offer-theme--editorial .sg-offer-spotlight-tag .sg-offer-price-now {
    color: #ffffff;
}

/* Action Column & Tactile CTA Button */
.sg-offer-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 200px;
}
.sg-offer-split-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
}
.sg-offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 22px;
    border-radius: 10px;
    background: linear-gradient(180deg, #6ef2dc 0%, #3ee2c6 100%);
    color: #042f2e !important;
    font-family: var(--sg-font-display, 'Plus Jakarta Sans', Inter, sans-serif);
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(45, 212, 191, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.sg-offer-cta:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.sg-offer-cta-arrow {
    transition: transform 0.18s ease;
}
.sg-offer-cta:hover .sg-offer-cta-arrow {
    transform: translateX(3px);
}
.sg-offer-wa-ico {
    flex-shrink: 0;
}
.sg-offer-theme--amber .sg-offer-cta {
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    color: #1c1917 !important;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.sg-offer-theme--editorial .sg-offer-cta,
.sg-offer-tpl--editorial_minimal .sg-offer-cta {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.sg-offer-trust {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.78);
    text-align: center;
}
.sg-offer-theme--editorial .sg-offer-trust,
.sg-offer-tpl--editorial_minimal .sg-offer-trust {
    color: #64748b;
}

/* Sidebar Card Layout (330px — Tall Poster Ad Proportions) */
.sg-offer-banner--sidebar_card {
    padding: 32px 26px 28px;
    margin: 0;
    min-height: 490px;
    display: flex;
    flex-direction: column;
}
.sg-offer-banner--sidebar_card .sg-offer-inner-row {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
}
.sg-offer-banner--sidebar_card .sg-offer-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sg-offer-banner--sidebar_card .sg-offer-header-bar {
    margin-bottom: 20px;
}
.sg-offer-banner--sidebar_card .sg-offer-ticker {
    margin: 0 -26px;
}
.sg-offer-banner--sidebar_card .sg-offer-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
}
.sg-offer-banner--sidebar_card .sg-offer-sub {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}
.sg-offer-banner--sidebar_card .sg-offer-price-stage {
    margin-top: auto;
    padding: 20px 18px;
}
.sg-offer-banner--sidebar_card .sg-price-num {
    font-size: 46px;
}
.sg-offer-banner--sidebar_card .sg-offer-spotlight-tag {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
}
.sg-offer-banner--sidebar_card .sg-offer-action {
    align-items: stretch;
    min-width: 0;
    width: 100%;
    gap: 12px;
}
.sg-offer-banner--sidebar_card .sg-offer-split-price {
    align-items: stretch;
}
.sg-offer-banner--sidebar_card .sg-offer-cta {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 16px 20px;
    font-size: 15px;
}

/* Top Announcement Strip */
.sg-offer-strip {
    padding: 9px 16px;
    font-size: 13.5px;
    text-align: center;
    border-bottom: 1px solid rgba(94, 234, 212, 0.18);
}
.sg-offer-strip-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.sg-offer-pill {
    padding: 2px 8px;
    border-radius: 4px;
    background: #5eead4;
    color: #042f2e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sg-offer-strip-cta {
    color: #5eead4 !important;
    font-weight: 800;
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .sg-offer-banner--sidebar_card {
        min-height: auto;
    }
}
@media (max-width: 820px) {
    .sg-offer-banner {
        padding: 24px 20px;
    }
    .sg-offer-inner-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .sg-offer-action {
        align-items: stretch;
        min-width: 0;
    }
    .sg-offer-split-price {
        align-items: stretch;
    }
    .sg-offer-cta {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sg-offer-fx-sweep,
    .sg-offer-fx-radar,
    .sg-offer-ticker-track,
    .sg-offer-live-dot {
        animation: none !important;
    }
}
