/* ── AdBlock Detector Overlay ─────────────────────────────────────── */

/* Làm mờ nền trang */
body.abd-blur-bg > *:not(#abd-overlay) {
    filter: blur(6px) brightness(.85);
    pointer-events: none;
    user-select: none;
    transition: filter .4s ease;
}

/* Overlay backdrop */
#abd-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .35s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 16px;
}

#abd-overlay.abd-visible { opacity: 1; }

/* Box chính */
.abd-box {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 44px 40px 36px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    text-align: center;
    animation: abd-slide-up .4s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes abd-slide-up {
    from { transform: translateY(32px) scale(.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* Biểu tượng shield */
.abd-shield {
    font-size: 52px;
    margin-bottom: 8px;
    animation: abd-pulse 2s ease-in-out infinite;
}

@keyframes abd-pulse {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.08); }
}

/* Logo site */
.abd-logo {
    display: block;
    margin: 0 auto 12px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

/* Tiêu đề */
.abd-box h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Mô tả */
.abd-box p {
    font-size: .97rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 24px;
}

/* Các bước hướng dẫn */
.abd-steps {
    background: #f4f6fb;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 26px;
    text-align: left;
}

.abd-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .88rem;
    color: #444;
    margin-bottom: 10px;
}

.abd-step:last-child { margin-bottom: 0; }

.abd-step > span {
    background: #e53e3e;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Nút CTA */
.abd-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e53e3e 0%, #c62828 100%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(229,62,62,.45);
    transition: transform .15s ease, box-shadow .15s ease;
    letter-spacing: .02em;
}

.abd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,62,62,.55);
    color: #fff !important;
}

.abd-btn:active { transform: translateY(0); }

/* Nút đóng (chỉ mode warn) */
.abd-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}

.abd-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .abd-box {
        padding: 32px 22px 28px;
    }
    .abd-box h2 { font-size: 1.2rem; }
    .abd-btn    { padding: 12px 22px; font-size: .93rem; }
}
