#keyword_modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(7, 11, 20, 0.78);
    /* Navy overlay */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#keyword_modal_content {
    background: linear-gradient(180deg, #111c30, #0b1322);
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 24px;
    border: 1px solid #243551;
    border-radius: 14px;
    width: 80%;
    max-width: 480px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 30px -18px rgba(0, 0, 0, 0.7);

    text-align: center;
    /* Center the content */
}

#keyword_modal_close {
    color: #91a3bd;
    float: right;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

#keyword_modal_close:hover,
#keyword_modal_close:focus {
    color: #fb7185;
    text-decoration: none;
    cursor: pointer;
}


#keyword_modal_body textarea,
#keyword_modal_footer button {
    display: block;
    margin: 16px auto 0;
    /* Center the elements */
}

#keyword_modal_body textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    background: #18253c;
    border: 1px solid #1c2940;
    border-radius: 7px;
    color: #eaf2fb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    resize: vertical;
}

#keyword_modal_body textarea:focus-visible {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}