@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&display=swap');
body {
    font-family: 'Kanit', sans-serif;
    background-image: linear-gradient(to bottom, #010027, #0031b8);
}
.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 90%;
    max-width: 400px;
}
.text-gradient {
    background-image: linear-gradient(to right, #2f2bff, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Language Modal Styles */
#lang-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
}
#lang-modal.modal-open {
    display: flex;
}
.lang-modal-content {
    background-color: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-in-out;
}
.lang-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lang-modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}
.lang-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}
.lang-modal-close:hover {
    color: #06b5d2;
}
#lang-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.lang-modal-option {
    padding: 15px 10px;
    background-color: #262641;
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}
.lang-modal-option:hover {
    background-color: #333349;
    border-color: #06b5d2;
    transform: translateY(-2px);
}
.lang-modal-option.modal-selected {
    background-color: #06b5d2;
    border-color: #00a8c1;
    box-shadow: 0 0 15px rgba(6, 181, 210, 0.5);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}