/* Modal — dark theme */
#modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    height: 100%;
    left: 0;
    opacity: 1;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 998;
    backdrop-filter: blur(4px);
}

#modal-container {
    background: #1a1c26;
    border: 1px solid rgba(255,200,0,0.2);
    border-radius: 16px;
    height: auto;
    padding: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #e8eaf0;
    position: absolute;
    z-index: 999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,200,0,0.08);
    overflow: hidden;
}

#modal-header {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clear: both;
    background: linear-gradient(135deg, #22253a 0%, #1a1c26 100%);
    border-bottom: 1px solid rgba(255,200,0,0.15);
}

#modal-content {
    display: block;
    z-index: 999;
    padding: 0;
}

#modal-close {
    background: rgba(255,255,255,0.05) url('img/close2.png') no-repeat center center;
    cursor: pointer;
    display: block;
    float: right;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    transition: all 0.2s;
    filter: invert(1);
    opacity: 0.5;
}

#modal-close:hover {
    opacity: 1;
    background-color: rgba(255,200,0,0.15);
}

#modal-close {
    position: absolute;
    top: 8px;
    right: -38px;
}

#modal-container.modal-loading {
    background: #1a1c26 url('img/ajax-loader.gif') no-repeat center center;
}
