.aph-dev-banner {
    position: fixed;
    left: 50%;
    z-index: 1090;
    width: min(100% - 24px, 420px);
    transform: translateX(-50%);
    border: 1px dashed rgba(255, 255, 255, .55);
    border-radius: 16px;
    background: rgba(20, 20, 28, .92);
    color: #fff;
    padding: 10px 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    backdrop-filter: blur(14px);
}

.aph-dev-banner-top {
    top: max(10px, env(safe-area-inset-top));
}

.aph-dev-banner-bottom {
    bottom: calc(78px + env(safe-area-inset-bottom));
}

.aph-dev-banner strong {
    letter-spacing: .04em;
}

.aph-dev-banner small {
    opacity: .72;
    text-transform: uppercase;
}

.aph-dev-fullscreen-ad {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.68);
    padding: 24px;
}

.aph-dev-fullscreen-card {
    width: min(100%, 360px);
    border-radius: 24px;
    background: #fff;
    color: #111;
    padding: 22px;
    text-align: center;
    box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.aph-dev-fullscreen-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.aph-dev-fullscreen-card p {
    color: #666;
    word-break: break-word;
}

.aph-dev-fullscreen-card button {
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 10px 18px;
    font-weight: 700;
}

.aph-ads-debug {
    position: fixed;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 2500;
    width: 210px;
    border-radius: 18px;
    background: rgba(12, 14, 20, .92);
    color: #fff;
    padding: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    font-size: 11px;
    backdrop-filter: blur(16px);
}

.aph-ads-debug strong,
.aph-ads-debug span {
    display: block;
    margin-bottom: 5px;
}

.aph-ads-debug button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 7px 8px;
    margin-top: 6px;
    font-size: 11px;
}


/* v57: Native ads never reserve a fake/blank card before the SDK confirms that
   a creative is ready. The actual mounted ad uses the exact prompt-card geometry,
   so the grid does not resize again when the native view attaches. */
.aph-native-slot-card {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 1 / 1.34;
    border-radius: 22px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translateZ(0);
    contain: layout paint;
}

.aph-native-grid-card,
.aph-native-prompt-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: transparent;
}

.related-gallery-grid .aph-native-slot-card {
    aspect-ratio: .78 / 1;
    border-radius: 20px;
}

.aph-native-slot-card:not(.aph-native-slot-ready) {
    display: none !important;
}
