.sidebar-ad-banner {
    border-radius: clamp(16px,2.5vw,24px);
    overflow: hidden;
    position: sticky;
    cursor: pointer;
    top: 170px;
    transition: all .45s cubic-bezier(.4,0,.2,1);
}

.sidebar-ad-inner {
    background: linear-gradient(160deg, #0d0f1a 0%, #1a0f05 45%, #0a0d18 100%);
    border: 1.5px solid rgba(255,107,0,.2);
    border-radius: inherit;
    padding: clamp(20px,3vw,32px);
    position: relative;
    overflow: hidden;
    transition: border-color .45s;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.03) inset,
        0 8px 32px rgba(0,0,0,.35),
        0 0 60px rgba(255,107,0,.05);
}

.sidebar-ad-banner:hover .sidebar-ad-inner {
    border-color: rgba(255,107,0,.42);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 16px 48px rgba(0,0,0,.4),
        0 0 90px rgba(255,107,0,.1);
}

.sidebar-ad-banner:hover { transform: translateY(-5px); }

.sidebar-ad-bg-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(255,107,0,.22) 0%, rgba(255,60,0,.1) 40%, transparent 70%);
    pointer-events: none;
    animation: sidebar-ad-drift 6s ease-in-out infinite alternate;
}

@keyframes sidebar-ad-drift {
    0%   { transform: scale(1) translate(0,0);            opacity: .8; }
    100% { transform: scale(1.18) translate(-16px,16px);  opacity: 1; }
}

.sidebar-ad-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.sidebar-ad-top { display: flex; align-items: center; justify-content: space-between; }

.sidebar-ad-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,107,0,.85);
    background: rgba(255,107,0,.1);
    border: 1px solid rgba(255,107,0,.25);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.sidebar-ad-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 7px rgba(255,107,0,.9);
    animation: sidebar-ad-blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sidebar-ad-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 7px rgba(255,107,0,.9); }
    50%       { opacity: .35; box-shadow: none; }
}

.sidebar-ad-icon-wrap { position: relative; width: 60px; height: 60px; margin-bottom: 20px; z-index: 1; }

.sidebar-ad-icon {
    width: 60px; height: 60px;
    background: linear-gradient(145deg, rgba(255,107,0,.2) 0%, rgba(255,60,0,.1) 100%);
    border: 1.5px solid rgba(255,107,0,.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 24px rgba(255,107,0,.2), inset 0 1px 0 rgba(255,107,0,.15);
}

.sidebar-ad-icon svg { width: 28px; height: 28px; color: var(--accent-primary); filter: drop-shadow(0 0 8px rgba(255,107,0,.55)); }
.sidebar-ad-icon-rings { position: absolute; inset: 0; }

.sidebar-ad-icon-rings span {
    position: absolute;
    inset: -8px;
    border-radius: 22px;
    border: 1px dashed rgba(255,107,0,.3);
    animation: sidebar-icon-spin 8s linear infinite;
}

.sidebar-ad-icon-rings span:nth-child(2) {
    inset: -16px;
    border-radius: 30px;
    border-color: rgba(255,107,0,.15);
    animation-duration: 14s;
    animation-direction: reverse;
}

@keyframes sidebar-icon-spin { to { transform: rotate(360deg); } }

.sidebar-ad-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(15px,2.5vw,20px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.025em;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 50%, #fdba74 80%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.sidebar-ad-desc { font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.65; margin-bottom: 18px; position: relative; z-index: 1; }

.sidebar-ad-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; position: relative; z-index: 1; }

.sidebar-ad-feature { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.sidebar-ad-feature svg { width: 15px; height: 15px; color: #10b981; flex-shrink: 0; filter: drop-shadow(0 0 5px rgba(16,185,129,.5)); }

.sidebar-ad-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #ff3d00 100%);
    color: #fff;
    border-radius: 14px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .01em;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 5px 20px rgba(255,107,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.sidebar-ad-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .55s;
}

.sidebar-ad-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,107,0,.55); color: #fff; }
.sidebar-ad-cta:hover::before { left: 100%; }
.sidebar-ad-cta svg { width: 16px; height: 16px; transition: transform .3s; flex-shrink: 0; }
.sidebar-ad-cta:hover svg { transform: translateX(5px); }

.sidebar-ad-inner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b00, #ff8f3d, #ff6b00, transparent);
    border-radius: 2px;
    animation: sidebar-ad-line 3.5s ease-in-out infinite;
}

@keyframes sidebar-ad-line {
    0%, 100% { opacity: .4; transform: scaleX(.65); }
    50%       { opacity: 1;  transform: scaleX(1); }
}

.sidebar-ad-disclaimer { font-size: 10px; color: rgba(255,255,255,.28); text-align: center; line-height: 1.5; position: relative; z-index: 1; }

.cs-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s cubic-bezier(.4,0,.2,1);
}

.cs-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.cs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 20, .75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cs-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, #0d0f1c 0%, #131629 50%, #0d0f1c 100%);
    border: 1.5px solid rgba(255, 107, 0, .22);
    border-radius: 28px;
    padding: clamp(36px, 6vw, 64px) clamp(28px, 5vw, 72px);
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255,107,0,.06),
        0 24px 80px rgba(0,0,0,.6),
        0 0 120px rgba(255,107,0,.08);
    transform: translateY(24px) scale(.96);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}

.cs-overlay.is-open .cs-card {
    transform: translateY(0) scale(1);
}

.cs-card::before {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 380px; height: 380px;
    background: radial-gradient(ellipse, rgba(255,107,0,.18) 0%, transparent 65%);
    pointer-events: none;
    animation: cs-breathe 4s ease-in-out infinite;
}

.cs-card::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(ellipse, rgba(139,92,246,.1) 0%, transparent 65%);
    pointer-events: none;
    animation: cs-breathe 6s ease-in-out infinite reverse;
}

@keyframes cs-breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: .7; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.cs-card::after { transform: none; }
@keyframes cs-breathe-2 {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.cs-glow-line {
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,107,0,.9), rgba(255,143,61,1), rgba(255,107,0,.9), transparent);
    border-radius: 2px;
    animation: cs-line-pulse 3s ease-in-out infinite;
}

@keyframes cs-line-pulse {
    0%, 100% { opacity: .5; transform: scaleX(.7); }
    50% { opacity: 1; transform: scaleX(1); }
}

.cs-icon {
    width: 72px; height: 72px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, rgba(255,107,0,.15) 0%, rgba(255,143,61,.08) 100%);
    border: 1.5px solid rgba(255,107,0,.3);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 32px rgba(255,107,0,.15), inset 0 1px 0 rgba(255,107,0,.15);
    animation: cs-icon-float 3s ease-in-out infinite;
}

@keyframes cs-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cs-icon::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 28px;
    border: 1.5px dashed rgba(255,107,0,.25);
    animation: icon-rotate 10s linear infinite;
}

.cs-icon svg {
    width: 34px; height: 34px;
    color: #ff8f3d;
    filter: drop-shadow(0 0 10px rgba(255,107,0,.55));
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,107,0,.1);
    border: 1px solid rgba(255,107,0,.25);
    color: #ff8f3d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.cs-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff6b00;
    animation: pulse-live 2s ease-in-out infinite;
}

.cs-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #ffe0c8 50%, #ff8f3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.cs-desc {
    font-size: clamp(13px, 2vw, 15px);
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cs-divider {
    width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    margin: 0 auto 28px;
    box-shadow: 0 0 10px rgba(255,107,0,.4);
}

.cs-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #ff3d00 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 6px 24px rgba(255,107,0,.35), inset 0 1px 0 rgba(255,255,255,.15);
    position: relative;
    z-index: 1;
    letter-spacing: .01em;
}

.cs-close:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 36px rgba(255,107,0,.5);
}

.cs-close:active { transform: scale(.98); }

.cs-close-x {
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    z-index: 2;
}

.cs-close-x:hover { background: rgba(255,107,0,.15); border-color: rgba(255,107,0,.3); }
.cs-close-x svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); }

.cs-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 28px;
}

.cs-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(255,107,0,.6);
    border-radius: 50%;
    animation: cs-particle-float linear infinite;
}

@keyframes cs-particle-float {
    0% { transform: translateY(0) scale(1); opacity: .8; }
    100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

@media (max-width: 1100px) {
    .sidebar-ad-banner {
        grid-column: 1 / -1;
        max-width: 680px;
        justify-self: center;
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .sidebar-ad-banner:hover  { transform: none; }
}

@media print {
    .sidebar-ad-banner { display: none !important; }
}