/* CP Modal — Frontend */

.cp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: cp-overlay-in 0.35s ease both;
}

.cp-modal-overlay.cp-modal-hidden {
    animation: cp-overlay-out 0.3s ease both;
    pointer-events: none;
}

@keyframes cp-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cp-overlay-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Card */
.cp-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 52px 48px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0,0,0,.04),
        0 12px 40px rgba(0,0,0,.12),
        0 0 0 1px rgba(0,0,0,.04);
    animation: cp-card-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.08s;
}

@keyframes cp-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icon */
.cp-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f4f4f6;
    color: #555;
}

.cp-modal-icon svg {
    width: 28px;
    height: 28px;
}

/* Title */
.cp-modal-title {
    margin: 0 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #111;
    line-height: 1.3;
}

/* Message */
.cp-modal-message {
    margin: 0 0 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #666;
}

/* Button */
.cp-modal-btn {
    display: inline-block;
    padding: 13px 36px;
    background: #0093E9;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.cp-modal-btn:hover {
    background: #007ACC;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
}

.cp-modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,.14);
}

/* Responsive */
@media (max-width: 520px) {
    .cp-modal-card {
        padding: 40px 28px 36px;
        border-radius: 16px;
    }

    .cp-modal-title {
        font-size: 19px;
    }
}
