/* Aktualita.co v1.22.1 — Manajemen Iklan */
.ad-unit {
    --ad-border: #e5e7eb;
    --ad-surface: #f8fafc;
    position: relative;
    width: min(100%, 970px);
    margin: 28px auto;
    padding: 20px;
    border: 1px solid var(--ad-border);
    border-radius: 14px;
    background: var(--ad-surface);
    overflow: hidden;
    text-align: center;
}

.ad-unit__label {
    display: block;
    margin: 0 0 9px;
    color: #596273;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}

.ad-unit__creative,
.ad-unit__creative picture,
.ad-unit__creative img {
    display: block;
    width: 100%;
}

.ad-unit__creative {
    border-radius: 9px;
    overflow: hidden;
}

.ad-unit__creative img {
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.ad-unit__adsense {
    width: 100%;
    min-width: 250px;
}

.ad-unit--site_top {
    min-height: 122px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.ad-unit--home_mid {
    min-height: 170px;
    margin-top: 34px;
    margin-bottom: 38px;
}

.ad-unit--channel_feed {
    grid-column: 1 / -1;
    min-height: 122px;
    margin: 10px auto 30px;
}

.ad-unit--article_inline {
    width: 100%;
    min-height: 122px;
    margin: 34px auto;
}

.ad-unit--article_sidebar {
    width: 100%;
    min-height: 282px;
    margin: 0 0 24px;
    padding: 14px;
}

.ad-unit.is-unfilled:not(.ad-unit--site_top) {
    display: none;
}

.ad-unit--site_top.is-unfilled {
    visibility: hidden;
}

.ad-unit--site_top .ad-unit__adsense,
.ad-unit--site_top .adsbygoogle,
.ad-unit--article_inline .ad-unit__adsense,
.ad-unit--article_inline .adsbygoogle {
    min-height: 280px;
}

body.dark .ad-unit {
    --ad-border: #303644;
    --ad-surface: #171a20;
}

body.dark .ad-unit__label {
    color: #9aa3b2;
}

/* Panel admin */
.ads-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 30px;
    background: linear-gradient(135deg, #111318 0%, #20242d 100%);
    color: #fff;
}

.ads-intro h2 {
    max-width: 720px;
    margin: 8px 0 10px;
    color: #fff;
    font-size: 26px;
}

.ads-intro p {
    max-width: 760px;
    margin: 0;
    color: #c6cbd4;
    line-height: 1.65;
}

.ads-intro__eyebrow {
    color: #ff4b4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.ads-intro__summary {
    min-width: 170px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    text-align: center;
}

.ads-intro__summary strong {
    display: block;
    font-size: 32px;
}

.ads-intro__summary span {
    color: #c6cbd4;
    font-size: 12px;
}

.ad-slot-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.ad-slot-admin-card {
    position: relative;
    min-height: 260px;
    padding: 22px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(16,24,40,.05);
}

.ad-slot-admin-card.has-live-ad {
    border-color: #f3b7b7;
    box-shadow: inset 0 3px 0 #d71920, 0 7px 22px rgba(16,24,40,.05);
}

.ad-slot-admin-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ad-slot-admin-card__topline > span:first-child {
    color: #d71920;
    font-size: 20px;
    font-weight: 800;
}

.ad-slot-admin-card h3 {
    margin: 0 0 9px;
    color: #17191f;
    font-size: 17px;
    line-height: 1.4;
}

.ad-slot-admin-card p {
    min-height: 62px;
    margin: 0 0 10px;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.ad-slot-admin-card > small {
    display: block;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.ad-slot-admin-card > a {
    display: inline-block;
    margin-top: 16px;
    color: #b51017;
    font-size: 12px;
    font-weight: 700;
}

.ad-slot-admin-card__campaign {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff1f1;
}

.ad-slot-admin-card__campaign strong {
    color: #7d0d12;
    font-size: 12px;
}

.ad-slot-admin-card__campaign span {
    color: #9f3136;
    font-size: 11px;
}

.ads-campaign-panel {
    margin-top: 0;
}

.ads-campaign-table td > strong,
.ads-campaign-table td > small {
    display: block;
}

.ads-campaign-table td > small {
    margin-top: 3px;
    color: #667085;
    line-height: 1.45;
}

.ad-delivery-badge,
.ad-provider-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ad-delivery-badge.is-live {
    background: #e8f7ef;
    color: #167347;
}

.ad-delivery-badge.is-scheduled {
    background: #eaf1ff;
    color: #245cb3;
}

.ad-delivery-badge.is-paused,
.ad-delivery-badge.is-expired {
    background: #fff2e4;
    color: #a24b00;
}

.ad-delivery-badge.is-draft,
.ad-delivery-badge.is-empty {
    background: #f1f3f6;
    color: #667085;
}

.ad-provider-badge.is-direct {
    background: #fff0f0;
    color: #b51017;
}

.ad-provider-badge.is-adsense {
    background: #eaf2ff;
    color: #215db0;
}

.ads-safety-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 4px solid #d71920;
    border-radius: 0 10px 10px 0;
    background: #fff7f7;
}

.ads-safety-note strong,
.ads-safety-note p {
    display: block;
    margin: 0;
}

.ads-safety-note p {
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.ad-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 22px;
}

.ad-editor-main {
    display: grid;
    gap: 18px;
}

.ad-editor-main .admin-panel,
.ad-editor-side .admin-panel {
    margin: 0;
}

.ad-editor-main label,
.ad-editor-side label {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.ad-editor-main input,
.ad-editor-main select,
.ad-editor-main textarea,
.ad-editor-side input,
.ad-editor-side select {
    width: 100%;
}

.ad-editor-main label > small,
.ad-editor-side label > small {
    color: #7b8493;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.ad-form-grid {
    display: grid;
    gap: 16px;
}

.ad-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-upload-field {
    display: grid;
    align-content: start;
    gap: 7px;
    margin-top: 16px;
}

.ad-upload-field > label {
    margin-top: 0;
}

.ad-upload-field > small {
    color: #7b8493;
    font-size: 11px;
    line-height: 1.45;
}

.ad-provider-panel[hidden] {
    display: none !important;
}

.ad-current-creative {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.ad-current-creative img {
    display: block;
    width: 100%;
    max-height: 150px;
    border-radius: 7px;
    object-fit: contain;
}

.ad-current-creative span {
    color: #667085;
    font-size: 10px;
}

.ad-inline-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 7px !important;
    margin-top: 4px !important;
    color: #9b1c24 !important;
    font-size: 11px !important;
}

.ad-inline-check input {
    width: auto;
}

.adsense-id-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 2px;
}

.adsense-id-guide code {
    padding: 7px 9px;
    border-radius: 6px;
    background: #111318;
    color: #e5e7eb;
    font-size: 11px;
}

.ad-toggle-field {
    align-content: start;
}

.ad-toggle-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
}

.ad-toggle-control input[type="checkbox"] {
    width: auto;
}

.ad-editor-side {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
}

.ad-publish-panel {
    display: grid;
    gap: 4px;
}

.ad-publish-panel h3 {
    margin: 0 0 5px;
}

.ad-publish-panel .button-primary,
.ad-publish-panel .button-secondary {
    justify-content: center;
    margin-top: 10px;
    text-align: center;
}

.ad-timezone-note {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    background: #f3f5f8;
    color: #667085;
    font-size: 11px;
}

.ad-recommendation-panel {
    border-top: 3px solid #d71920;
}

.ad-recommendation-panel > span,
.ad-recommendation-panel > strong,
.ad-recommendation-panel > p {
    display: block;
}

.ad-recommendation-panel > span {
    color: #d71920;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ad-recommendation-panel > strong {
    margin-top: 8px;
    color: #17191f;
    font-size: 15px;
    line-height: 1.45;
}

.ad-recommendation-panel > p {
    margin: 9px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .ad-slot-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-editor-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 900px) {
    .ad-unit--article_sidebar {
        display: none;
    }

    .ads-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .ads-intro__summary {
        width: 100%;
    }

    .ad-editor-grid {
        grid-template-columns: 1fr;
    }

    .ad-editor-side {
        position: static;
    }
}

@media (max-width: 680px) {
    .ad-unit {
        width: calc(100% - 28px);
        margin: 20px auto;
        padding: 12px;
        border-radius: 10px;
    }

    .ad-unit--home_mid,
    .ad-unit--article_inline,
    .ad-unit--channel_feed {
        margin-top: 24px;
        margin-bottom: 26px;
    }

    .ad-unit__creative img {
        max-height: none;
    }

    .ad-slot-admin-grid,
    .ad-form-grid--two {
        grid-template-columns: 1fr;
    }

    .ad-slot-admin-card {
        min-height: 0;
    }

    .ad-slot-admin-card p {
        min-height: 0;
    }
}


/* Aktualita.co v1.22.1 — Kontras tema Manajemen Iklan
 * Menjaga hero tetap terbaca dan menyelaraskan kartu dengan tema panel.
 */
.admin-body .ads-intro.admin-panel {
    background: linear-gradient(135deg, #111318 0%, #20242d 100%);
    color: #f8fafc;
}

.admin-body .ads-intro.admin-panel h2,
.admin-body .ads-intro.admin-panel .ads-intro__summary strong {
    color: #ffffff;
}

.admin-body .ads-intro.admin-panel p,
.admin-body .ads-intro.admin-panel .ads-intro__summary span {
    color: #cbd5e1;
}

.admin-body .ad-slot-admin-card {
    border-color: var(--admin-border);
    background: var(--admin-surface);
    color: var(--admin-text);
    box-shadow: 0 7px 22px rgba(16, 24, 40, .07);
}

html[data-admin-theme="dark"] .admin-body .ad-slot-admin-card {
    box-shadow: 0 9px 26px rgba(0, 0, 0, .24);
}

.admin-body .ad-slot-admin-card.has-live-ad {
    border-color: var(--admin-danger-border);
    box-shadow: inset 0 3px 0 var(--admin-link), 0 7px 22px rgba(16, 24, 40, .07);
}

html[data-admin-theme="dark"] .admin-body .ad-slot-admin-card.has-live-ad {
    box-shadow: inset 0 3px 0 var(--admin-link), 0 9px 26px rgba(0, 0, 0, .24);
}

.admin-body .ad-slot-admin-card__topline > span:first-child {
    color: var(--admin-link);
}

.admin-body .ad-slot-admin-card h3 {
    color: var(--admin-text);
}

.admin-body .ad-slot-admin-card p {
    color: var(--admin-muted);
}

.admin-body .ad-slot-admin-card > small {
    color: var(--admin-text-soft);
}

.admin-body .ad-slot-admin-card > a {
    color: var(--admin-link);
}

.admin-body .ad-slot-admin-card > a:hover {
    color: var(--admin-link-hover);
}

.admin-body .ad-slot-admin-card__campaign {
    border: 1px solid var(--admin-danger-border);
    background: var(--admin-danger-bg);
}

.admin-body .ad-slot-admin-card__campaign strong {
    color: var(--admin-danger-text);
}

.admin-body .ad-slot-admin-card__campaign span {
    color: var(--admin-text-soft);
}

.admin-body .ads-safety-note {
    border-left-color: var(--admin-link);
    background: var(--admin-danger-bg);
    color: var(--admin-danger-text);
}

.admin-body .ads-safety-note strong {
    color: var(--admin-danger-text);
}

.admin-body .ads-safety-note p {
    color: var(--admin-text-soft);
}
