/* ==========================================================================
   CoinXSight Ads Engine — Deep Alpha Institutional Light (Glass Terminal)
   Zero Layout Shift · Native Card · Responsive Picture Banners
   ========================================================================== */

.cxs-ad-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* Placements Spacing */
.cxs-ad-slot--in_content {
    margin: 32px 0;
}
.cxs-ad-slot--article_top {
    margin: 16px 0 24px;
}
.cxs-ad-slot--article_bottom {
    margin: 36px 0 28px;
}
.cxs-ad-slot--feed_inline {
    margin: 16px 0;
}
.cxs-ad-slot--mobile_sticky {
    display: none;
}
@media (max-width: 768px) {
    .cxs-ad-slot--mobile_sticky {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        padding: 4px 0 calc(env(safe-area-inset-bottom, 0px) + 4px);
        text-align: center;
    }
    .cxs-ad-slot--mobile_sticky .cxs-ad-code-box {
        margin: 0 auto;
        padding: 2px 4px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
}

/* Micro Disclaimer Label */
.cxs-ad-micro-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary, #7681a6);
    margin-bottom: 6px;
    text-align: center;
}

/* 1. Deep Alpha Native Card Format */
.cxs-ad-native-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-medium, rgba(15, 23, 42, 0.14));
    border-radius: var(--radius-lg, 10px);
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 1px 3px rgba(15, 23, 42, 0.04));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cxs-ad-native-card:hover {
    border-color: rgba(59, 91, 219, 0.28);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.cxs-ad-native-body {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
@media (max-width: 768px) {
    .cxs-ad-native-body {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }
}
.cxs-ad-native-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
@media (max-width: 540px) {
    .cxs-ad-native-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.cxs-ad-logo-wrap {
    flex-shrink: 0;
    max-width: 120px;
    max-height: 48px;
    display: flex;
    align-items: center;
}
.cxs-ad-logo {
    max-height: 38px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.cxs-ad-native-text {
    flex: 1;
    min-width: 0;
}
.cxs-ad-native-title {
    font-family: var(--font-display, inherit);
    font-size: 15.5px;
    font-weight: 750;
    letter-spacing: -0.015em;
    color: var(--text-primary, #0a0f1f);
    margin: 0 0 6px;
    line-height: 1.35;
}
.cxs-ad-native-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.cxs-ad-native-title a:hover {
    color: var(--accent-primary, #3b5bdb);
}
.cxs-ad-native-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted, #5a6588);
    margin: 0;
}
.cxs-ad-native-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .cxs-ad-native-action {
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    }
}
.cxs-ad-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.cxs-ad-m-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-tertiary, #7681a6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cxs-ad-m-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--signal-bull, #0a8456);
}
.cxs-content .cxs-ad-wrap a {
    text-decoration: none !important;
    border-bottom: none !important;
}
.cxs-content .cxs-ad-wrap .cxs-ad-native-title a {
    color: var(--text-primary, #0a0f1f) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}
.cxs-content .cxs-ad-wrap .cxs-ad-native-title a:hover {
    color: var(--accent-primary, #3b5bdb) !important;
}
.cxs-ad-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #3b5bdb !important;
    color: #ffffff !important;
    padding: 9px 18px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm, 6px) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(59, 91, 219, 0.25) !important;
    transition: background 0.15s ease, transform 0.1s ease !important;
}
.cxs-ad-btn:hover {
    background: #2f49b0 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* 2. Custom Image Banner Format */
.cxs-ad-banner-box {
    text-align: center;
}
.cxs-ad-banner-link {
    display: inline-block;
    max-width: 100%;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    box-shadow: var(--shadow-card, 0 1px 3px rgba(15, 23, 42, 0.04));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cxs-ad-banner-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.cxs-ad-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 3. Code Embed Box */
.cxs-ad-code-box {
    text-align: center;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    border-radius: var(--radius-md, 8px);
    padding: 6px 4px;
    margin: 18px auto;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-card, 0 1px 3px rgba(15, 23, 42, 0.04));
}
.cxs-ad-code-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}
.cxs-ad-code-inner ins {
    max-width: 100% !important;
    display: inline-block !important;
    overflow: hidden !important;
    text-align: center !important;
}
.cxs-ad-code-inner iframe {
    max-width: 100% !important;
    border: none !important;
    overflow: hidden !important;
    display: block !important;
    margin: 0 auto !important;
}
.cxs-ad-slot--sidebar .cxs-ad-code-box {
    padding: 6px 0;
    max-width: 300px;
    margin: 0 auto;
}

/* 4. Mobile Feed Row Format (in The Wire Stream) */
.cxs-ad-wire-row {
    background: rgba(245, 158, 11, 0.03) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
    border-radius: var(--radius-md, 8px) !important;
    padding: 12px 14px !important;
    margin: 8px 0 !important;
}
.cxs-ad-cta-link {
    color: var(--accent-primary, #3b5bdb);
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
}
.cxs-ad-cta-link:hover {
    text-decoration: underline;
}
.cxs-ad-wire-row .cxs-m-wire-thumb {
    object-fit: contain !important;
    padding: 6px !important;
    background: rgba(15, 23, 42, 0.04) !important;
    border-radius: var(--radius-sm, 6px) !important;
    box-sizing: border-box !important;
}

/* 5. Desktop Sidebar Ad Card */
.cxs-ad-side-card {
    margin-top: 0;
}
