.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    flex-direction: column;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: relative;
    text-align: center;
    padding: 20px;
}

.modal-header h3 {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: #232323;
}

.close-modal {
    position: fixed;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
}

.modal-separator {
    height: 1px;
    background: #eee;
    width: 100%;
}

.modal-options {
    padding: 10px 20px 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 14px 0;
    justify-content: center;
    gap: 12px;
}

.radio-label {
    font-size: 16px;
}

.radio-option input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: border-color 0.2s ease;
}

.radio-option input[type="radio"]:checked {
    border-color: #581D74;
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #581D74;
    position: absolute;
}

.radio-option input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(88, 29, 116, 0.2);
}

.radio-option span {
    font-size: 16px;
}

#linksModal .modal-container {
    max-height: 80vh;
    overflow-y: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#linksModal .modal-links {
    padding: 15px 0;
}

#linksModal .link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin: 10px 16px;
    background: white;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.link:hover {
    background: #f9f9f9;
    border-color: #ddd;
}

.link span {
    font-size: 16px;
    font-weight: 500;
}
