#apn-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
    box-sizing: border-box;
    font-family: -apple-system, "Segoe UI", Tahoma, "Cairo", sans-serif;
    direction: rtl;
    transition: opacity 0.25s ease;
}

#apn-overlay.apn-hidden {
    display: none;
    opacity: 0;
}

#apn-overlay.apn-visible {
    display: flex;
    opacity: 1;
}

.apn-box {
    background: #ffffff;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    padding: 24px 22px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.apn-box h3 {
    margin: 0 0 12px;
    font-size: 19px;
    color: #1a1a1a;
    font-weight: 700;
}

.apn-box p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.apn-actions {
    display: flex;
    justify-content: center;
}

.apn-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.apn-btn:hover {
    background: #1d4ed8;
}
