.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ef4444;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.token-box {
    background: rgba(16, 185, 129, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed var(--secondary);
    margin: 20px 0;
}

.token-box p {
    margin: 0;
    font-size: 0.9rem;
}

.token-box h3 {
    margin: 5px 0 0;
    font-size: 1.5rem;
    color: var(--secondary);
    letter-spacing: 2px;
}

#printFormBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: white;
    width: 100%;
    padding: 15px;
}

#printFormBtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .container {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    #constellation-canvas, 
    #loader, 
    .form-actions {
        display: none !important;
    }
    input, select, textarea {
        background: none !important;
        border: none !important;
        border-bottom: 1px solid #ccc !important;
        border-radius: 0 !important;
    }
}
