.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    inset: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    padding: 2rem 1rem;
    overflow-y: auto;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: #1f1f2e;
    color: #fff9d6;
    border: 3px solid #d6c36b;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    padding: 28px;
    position: relative;
    animation: slideUp 0.3s ease;
    overflow-y: auto;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-card::-webkit-scrollbar {
    width: 3px;
}
.modal-card::-webkit-scrollbar-thumb {
    background: #f8f3e1;
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.modal-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.5px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}