/* css/components/modal.css */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #fff9f5, #fff);
    padding: 2rem 1.8rem;
    border-radius: 48px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--powder-rose);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: var(--script-main);
    font-size: 2rem;
    color: var(--deep-taupe);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.modal-message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--warm-mushroom);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-close {
    background: linear-gradient(135deg, var(--powder-rose), var(--antique-gold));
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--script-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(183, 155, 107, 0.4);
}

.modal-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--antique-gold);
    opacity: 0.6;
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(300px) rotate(720deg);
        opacity: 0;
    }
}