/* =========================
   STICKY POPUP ALERT (LEFT SIDE)
   ULTRA PREMIUM 3D PEN-DRIVE STYLE (FIXED VISIBILITY)
========================= */

.dr1059popupalerts2 {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translate(-120%, -50%);
    z-index: 99999;

    width: 320px;
    perspective: 1000px;

    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ACTIVE STATE */
.dr1059popupalerts2.active {
    transform: translate(0%, -50%);
}

/* =========================
   MAIN POPUP BODY (FIXED CONTRAST)
========================= */
.dr1059popupalerts2 .popup-body {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;

    padding: 18px 18px 18px 14px;

    border-radius: 0 18px 18px 0;

    /* ✅ FIX: dark glass for white backgrounds */
    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.78),
        rgba(2, 6, 23, 0.72)
    );

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transform: rotateY(18deg);
    transform-origin: left center;

    overflow: hidden;
}

/* glossy shine animation */
.dr1059popupalerts2 .popup-body::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -40%;
    width: 200%;
    height: 200%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    );

    transform: rotate(25deg);
    animation: shine 4s infinite;

    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-60%) rotate(25deg); }
    100% { transform: translateX(60%) rotate(25deg); }
}

/* =========================
   ICON (3D STYLE)
========================= */
.dr1059popupalerts2 .popup-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    background: linear-gradient(135deg, #6366f1, #ec4899);

    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.4);

    flex-shrink: 0;
}

/* =========================
   TEXT AREA (FIXED VISIBILITY)
========================= */
.dr1059popupalerts2 .popup-content {
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

.dr1059popupalerts2 .popup-content h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 700;
    color: #ffffff;
}

.dr1059popupalerts2 .popup-content p {
    font-size: 12px;
    margin: 4px 0 8px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
}

/* =========================
   ACTION BUTTON
========================= */
.dr1059popupalerts2 .popup-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;

    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;

    color: #0b1224;

    background: linear-gradient(135deg, #22c55e, #38bdf8);

    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.25);

    transition: 0.3s ease;
}

.dr1059popupalerts2 .popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.35);
}

/* =========================
   CLOSE BUTTON (PREMIUM)
========================= */
.dr1059popupalerts2 .popup-close {
    position: absolute;
    top: 6px;
    right: 8px;

    width: 24px;
    height: 24px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    background: rgba(255,255,255,0.08);
    color: #fff;

    font-size: 14px;
    line-height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.35s ease;

    box-shadow:
        0 6px 15px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.1);

    animation: closePulse 2.2s infinite;
}

/* pulse glow */
@keyframes closePulse {
    0% {
        box-shadow:
            0 0 0 rgba(239, 68, 68, 0.0),
            0 6px 15px rgba(0,0,0,0.35);
    }
    50% {
        box-shadow:
            0 0 12px rgba(239, 68, 68, 0.45),
            0 6px 18px rgba(0,0,0,0.4);
    }
    100% {
        box-shadow:
            0 0 0 rgba(239, 68, 68, 0.0),
            0 6px 15px rgba(0,0,0,0.35);
    }
}

.dr1059popupalerts2 .popup-close:hover {
    background: linear-gradient(135deg, #ef4444, #f97316);
    transform: scale(1.15) rotate(8deg);

    box-shadow:
        0 0 18px rgba(239, 68, 68, 0.6),
        0 12px 25px rgba(0,0,0,0.45);
}

.dr1059popupalerts2 .popup-close:active {
    transform: scale(0.95);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .dr1059popupalerts2 {
        width: 260px;
    }

    .dr1059popupalerts2 .popup-body {
        transform: none;
    }
}