/* Multilingual Terms Modal Styles */
.modal-multilang {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-multilang.show {
    display: flex;
}
.open-tab-button {
    position: absolute;
    top: 10px;
    right: 50px;
    background: #444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.open-tab-button:hover {
    background: #666;
}
.modal-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
}

.modal-multilang .modal-dialog {
    background: linear-gradient(135deg, #1a1a24 0%, #141419 100%);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.modal-multilang .modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
    color: #e8e8e8;
}

.close-button-multilang {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #b0b0b0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.close-button-multilang:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    transform: scale(1.1);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
.lang-btnn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
.lang-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.lang-btnn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}
.lang-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.lang-btn:hover::before {
    width: 100px;
    height: 100px;
}

.lang-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%);
    color: #0f0f14;
    border-color: #ffd700;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.lang-btn.active:hover {
    transform: translateY(-2px) scale(1.05);
}

.terms-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.terms-content.active {
    display: block;
}

.terms-content h1 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-weight: 700;
}

.terms-content h2 {
    color: #ffd700;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.terms-content h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.terms-content p {
    line-height: 1.6;
    margin-bottom: 0.8rem;
    color: #e8e8e8;
}

.terms-content p strong {
    color: #ffd700;
    font-weight: 600;
}

.terms-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #e8e8e8;
}

.terms-content ul {
    padding-left: 1.5rem;
}

.terms-content ul li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.price-table {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.price-table h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.price-table th,
.price-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.9rem;
}

.price-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.price-table td {
    color: #e8e8e8;
}

.price-table tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

/* Scrollbar for modal content */
.modal-multilang .modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-multilang .modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-multilang .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.modal-multilang .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-multilang {
        padding: 1rem;
    }

    .modal-multilang .modal-content {
        padding: 1.5rem;
    }

    .language-switcher {
        margin-bottom: 1.5rem;
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .terms-content h1 {
        font-size: 1.5rem;
    }

    .terms-content h2 {
        font-size: 1.1rem;
    }

    .price-table {
        font-size: 0.8rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-multilang .modal-dialog {
        border-radius: 12px;
    }

    .modal-multilang .modal-content {
        padding: 1rem;
    }

    .language-switcher {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lang-btn {
        width: 100%;
        padding: 0.6rem;
    }

    .terms-content h1 {
        font-size: 1.3rem;
    }

    .terms-content h2 {
        font-size: 1rem;
    }

    .price-table table {
        font-size: 0.7rem;
    }
}

/* Animation keyframes */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
