.demo {
    height: 100vh;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

    .demo button {
        padding: 10px 18px;
        border-radius: 12px;
        border: none;
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        color: #fff;
        cursor: pointer;
    }

/* Overlay */
.ap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 9999;
}

    .ap-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

/* Card */
.ap-card {
    width: 90%;
    max-width: 420px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 15px;
    padding: 26px 15px 15px;
    text-align: center;
    box-shadow: 0 40px 90px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
    animation: slideUp 0.45s cubic-bezier(.4,0,.2,1);
}

/* Icon Ring */
.ap-icon-ring {
    width: 75px;
    height: 75px;
    margin: -70px auto 15px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

    .ap-icon-ring span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 50%;
        font-size: 36px;
        font-weight: 700;
    }

/* Text */
.ap-card h2 {
    font-size: 26px;
    margin: 10px 0 8px;
    color: #020617;
}

.ap-card p {
    font-size: 15px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Button */
.ap-btn {
    padding: 7px 30px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 25px rgba(79,70,229,0.45);
    transition: transform 0.2s ease;
}

    .ap-btn:hover {
        transform: translateY(-2px);
    }

/* Variants */
.ap-card.success .ap-icon-ring {
    background: linear-gradient(135deg,#22c55e,#4ade80);
}

.ap-card.error .ap-icon-ring {
    background: linear-gradient(135deg,#ef4444,#f87171);
}

.ap-card.warning .ap-icon-ring {
    background: linear-gradient(135deg,#f59e0b,#fbbf24);
}

.ap-card.info .ap-icon-ring {
    background: linear-gradient(135deg,#3b82f6,#60a5fa);
}

.ap-card.success .ap-btn {
    background: linear-gradient(135deg,#22c55e,#16a34a);
}

.ap-card.error .ap-btn {
    background: linear-gradient(135deg,#ef4444,#b91c1c);
}

.ap-card.warning .ap-btn {
    background: linear-gradient(135deg,#f59e0b,#d97706);
}

.ap-card.info .ap-btn {
    background: linear-gradient(135deg,#3b82f6,#2563eb);
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
