/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(8, 10, 14, 0.72);
    backdrop-filter: blur(6px);
}


/* The Close Button */
.close {
    position: relative;
    top: -2px;
    right: -4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    transition: all .15s ease;
}

.close:hover,
.close:focus {
    color: #ff6b6b;
    text-decoration: none;
    cursor: pointer;
}


.modal-content {
    position: relative;
    margin: 10vh auto 0;
    padding: 0;
    width: min(520px, 92%);
    background: rgba(16, 18, 24, 0.95);
    color: #f2f5f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    animation-name: animatetop;
    animation-duration: 0.35s;
    border-radius: 14px;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(168, 85, 247, 0.18));
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-body {
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.85);
}

.modal-footer {
    padding: 14px 20px 18px;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    border-radius: 10px;
    padding: 0 1.25rem;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.modal-footer .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}


@keyframes animatetop {
    from {
        transform: translateY(-20px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
