/* Подключение шрифта Montserrat для всех начертаний */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');


/* Стили для модального окна подписки */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.subscription-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    width: 90%;
    max-width: 300px;
}

.subscription-modal h3 {
    color: rgb(255, 140, 0);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.subscription-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.subscription-form label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.subscription-form input,
.subscription-form select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 0.6rem;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
}

.subscription-form input:focus,
.subscription-form select:focus {
    border-color: rgb(255, 140, 0);
    outline: none;
}

.subscription-form .buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.subscription-form .buttons .btn-custom {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .subscription-modal .modal-content {
        width: 95%;
        padding: 1rem;
    }

    .subscription-form .buttons {
        flex-direction: column;
    }

    .subscription-form .buttons .btn-custom {
        width: 100%;
    }
}

/* Основные стили */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: #000;
}

html {
    background: #000;
    overflow-x: hidden;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Стили для видео на главной странице */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.video-background video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Стили для контейнера на главной */
.main-container {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-wrapper {
    position: relative;
    z-index: 21;
    text-align: center;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 22;
}

/* Стили для кнопок */
.btn-custom {
    background: transparent;
    border: 1px solid rgb(255, 140, 0);
    color: rgb(255, 140, 0);
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
    min-width: 200px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    z-index: 23;
    pointer-events: auto;
}

.btn-custom:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
    color: #fff;
    text-shadow: 0 0 5px rgb(255, 140, 0);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.btn-custom:active {
    transform: scale(0.98);
}

/* Стили для социальных иконок */
.social-icons {
    position: relative;
    z-index: 4;
    margin-top: 2rem;
}

/* Убираем возможные конфликты со стилями Bootstrap */
.container {
    position: relative;
    z-index: 2;
}

.d-flex {
    position: relative;
    z-index: 3;
}

/* Стили для модальных форм */
.modal form .btn-custom {
    width: 100%;
    margin: 1rem 0 0 0;
}

/* Анимация для кнопок */
@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
    }
}

.btn-custom:hover {
    animation: buttonGlow 2s infinite;
}

/* Стили для заголовка на главной */
.accent-text {
    color: rgb(255, 140, 0);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Стили для социальных иконок */
.social-icons a {
    color: rgb(255, 140, 0);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector a {
    color: rgb(255, 140, 0);
    text-decoration: none;
    margin-left: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.language-selector a.active {
    font-weight: 700;
    border-bottom: 2px solid rgb(255, 140, 0);
}

.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.audio-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: rgb(255, 140, 0);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn i {
    font-size: 1.2rem;
}

.audio-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.login-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-form-container.active {
    opacity: 1;
}

.login-form {
    background: rgba(0, 0, 0, 0.9);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgb(255, 140, 0);
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
}

.login-form-container.active .login-form {
    transform: translateY(0);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.custom-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgb(255, 140, 0);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
    color: white;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgb(255, 140, 0);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.close-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 140, 0, 0.1);
}

.input-group-text {
    background: transparent;
    border: 1px solid rgb(255, 140, 0);
    color: rgb(255, 140, 0);
    border-right: none;
}

.custom-input-group {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgb(255, 140, 0);
    color: rgb(255, 140, 0);
    border-right: none;
}

.input-group .custom-input {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .custom-input:focus {
    border-left: none;
}

.input-group .custom-input-group + .custom-input {
    border-left: none;
}

/* Анимация для ошибок */
.input-error {
    border-color: #ff4444 !important;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #000;
}

.sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.95);
    border-right: 1px solid rgba(255, 140, 0, 0.2);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar:hover {
    width: 250px;
}

.logo-container {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 40px;
    transition: width 0.3s ease;
    padding-right: 5px;
}

.sidebar:hover .sidebar-logo {
    width: 120px;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.2rem;
}

.nav-item {
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
}

.nav-item i {
    min-width: 30px;
    width: 30px;
    font-size: 1.2rem;
    text-align: center;
}

.nav-label {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateX(-100%);
    width: 0;
}

.sidebar:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
    width: auto;
}

.nav-item:hover {
    background: rgba(255, 140, 0, 0.1);
    color: rgb(255, 140, 0);
}

.nav-item.active {
    background: rgba(255, 140, 0, 0.15);
    color: rgb(255, 140, 0);
}

/* Стили для подвала сайдбара */
.sidebar-footer {
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

/* Стили для переключателя языка */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #fff;
    min-width: 30px;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
}

.lang-btn.active {
    background: rgb(255, 140, 0);
    color: #000;
    border-color: rgb(255, 140, 0);
}

/* Стили для кнопки выхода */
.logout-btn {
    color: #ff4444;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

/* Основной контент */
.main-content {
    margin-left: 60px;
    margin-top: 50px;
    padding: 2rem;
    width: calc(100% - 60px);
    min-height: calc(100vh - 50px);
    background: #000;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.content-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 140, 0, 0.1);
    margin-bottom: 2rem;
}

.section-title {
    color: rgb(255, 140, 0);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    margin-left: 40%;
}

/* Стили для новостей */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.news-item h3 {
    color: rgb(255, 140, 0);
    margin-bottom: 1rem;
}

.news-item p {
    color: #fff;
    margin-bottom: 1rem;
}

.news-item small {
    color: rgba(255, 255, 255, 0.5);
}

/* Стили для подписок */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Стили для форм загрузки и настроек */
.upload-section,
.settings-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

/* Стили для уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    color: rgb(255, 140, 0);
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    font-family: 'Share Tech Mono', monospace;
    min-width: 300px;
    text-align: center;
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
    animation: notificationIn 0.3s ease forwards;
}

@keyframes notificationIn {
    0% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.notification.fade-out {
    animation: notificationOut 0.3s ease forwards;
}

@keyframes notificationOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
}

/* Добавляем пульсирующее свечение */
.notification {
    animation: notificationIn 0.3s ease forwards, glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    }
}

/* Разные типы уведомлений */
.notification.error {
    color: #ff4545;
    border-color: rgba(255, 69, 69, 0.3);
    animation: notificationIn 0.3s ease forwards, errorGlowPulse 2s ease-in-out infinite;
}

.notification.success {
    color: rgb(255, 140, 0);
    border-color: rgba(255, 140, 0, 0.3);
    animation: notificationIn 0.3s ease forwards, successGlowPulse 2s ease-in-out infinite;
}

@keyframes errorGlowPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 69, 69, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 69, 69, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 69, 69, 0.2);
    }
}

@keyframes successGlowPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    }
}

/* Стили для страниц ошибок */
.error-page {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.error-container {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 1px solid rgb(255, 140, 0);
    max-width: 600px;
    width: 90%;
    animation: fadeIn 0.5s ease-out;
}

.error-icon {
    font-size: 4rem;
    color: rgb(255, 140, 0);
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: rgb(255, 140, 0);
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 1.5rem;
    color: rgb(255, 140, 0);
    margin: 1rem 0;
}

.error-message {
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для верхней панели */
.top-bar {
    position: fixed;
    top: 0;
    left: 60px;
    right: 0;
    height: 50px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.top-bar-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem;
}

/* Стили для центрального логотипа */
.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-logo {
    height: 40px;
    width: auto;
}

/* Стили для переключателя языка */
.top-language-switcher {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1001;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
}

.lang-btn.active {
    background: rgb(255, 140, 0);
    color: #000;
    border-color: rgb(255, 140, 0);
}

/* Стили для профиля */
.content-wrapper {
    padding: 2rem;
    width: 100%;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: rgb(255, 140, 0);
    margin: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgb(255, 140, 0);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.info-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.info-group {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    gap: 2rem;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group label {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-group label i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 140, 0);
    font-size: 1.1rem;
    /* background: rgba(255, 140, 0, 0.1); */
    border-radius: 6px;
    padding: 5px;
}

.info-value {
    font-size: 1rem;
    color: #fff;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.telegram-edit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.telegram-edit .info-value {
    flex-grow: 1;
}

.btn-edit {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: rgb(255, 140, 0);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.btn-edit:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgb(255, 140, 0);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

/* Стили для статуса подписки */
.subscription-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subscription-active {
    color: rgb(255, 140, 0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-inactive {
    color: #ff4545;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-active i,
.subscription-inactive i {
    font-size: 1.1rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 0.5rem;
    }

    .info-card {
        padding: 1rem;
        margin: 0 -0.5rem;
    }

    .info-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .info-group label {
        font-size: 0.85rem;
    }

    .info-group label i {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .info-value {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

    .telegram-edit {
        width: 100%;
    }

    .telegram-edit .info-value {
        flex: 1;
        min-width: 0;
    }

    .main-content {
        padding: 0;
    }

    .content-section {
        padding: 1rem 0;
    }

    .subscription-status {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 548px) {
    .profile-container {
        padding: 0;
    }

    .info-card {
        margin: 0;
        border-radius: 0;
        padding: 1rem 0.75rem;
    }

    .info-group {
        padding: 0.75rem 0;
    }

    .info-group label {
        font-size: 0.85rem;
    }

    .info-value {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }

    .telegram-edit {
        width: 100%;
    }

    .telegram-edit .info-value {
        flex: 1;
        min-width: 0;
    }

    .info-value {
        word-break: break-word;
        hyphens: auto;
    }

    .btn-edit {
        width: 28px;
        height: 28px;
        min-width: 28px;
        padding: 5px;
    }
}

@media (max-width: 360px) {
    .info-card {
        padding: 0.75rem 0.5rem;
    }

    .info-group label {
        font-size: 0.8rem;
    }

    .info-value {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .btn-edit {
        width: 28px;
        height: 28px;
        min-width: 28px;
        padding: 5px;
    }

    .info-value {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1001;
    transition: background 0.3s ease;
}

.modal.show {
    background: rgba(0, 0, 0, 0.8);
}

.telegram-modal {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* Медиа-запросы для модального окна */
@media (max-width: 768px) {
    .telegram-modal {
        width: 85%;
        margin-left: auto; /* Сдвигаем вправо */
        margin-right: 1rem; /* Отступ справа */
    }
}

@media (max-width: 548px) {
    .modal {
        align-items: center;
        justify-content: flex-end; /* Выравнивание по правому краю */
        padding-right: 1rem; /* Отступ справа */
    }

    .telegram-modal {
        width: calc(100% - 80px); /* Ширина с учетом бокового меню */
        max-width: none;
        margin-left: 70px; /* Отступ от бокового меню */
        margin-right: 10px; /* Небольшой отступ справа */
    }

    /* Улучшаем внешний вид на маленьких экранах */
    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .telegram-modal form {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 360px) {
    .telegram-modal {
        width: calc(100% - 70px); /* Еще меньше ширина */
        margin-left: 60px; /* Меньший отступ от меню */
        margin-right: 5px; /* Меньший отступ справа */
    }

    .modal-header {
        padding: 0.75rem;
    }

    .telegram-modal form {
        padding: 0.75rem;
    }

    .modal-footer {
        padding: 0.5rem 0.75rem;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: rgb(255, 140, 0);
    font-size: 1.2rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 140, 0, 0.7);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: rgb(255, 140, 0);
    background: rgba(255, 140, 0, 0.1);
    transform: rotate(90deg);
}

.telegram-modal form {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.modal-footer .btn-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: rgb(255, 140, 0);
    transition: all 0.3s ease;
}

.modal-footer .btn-custom:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgb(255, 140, 0);
    transform: translateY(-1px);
}

/* Обновленные стили для input в модальном окне */
.telegram-modal .input-with-prefix {
    position: relative;
    width: 100%;
}

.telegram-modal .prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 140, 0, 0.7);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.telegram-modal input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 0;
}

.telegram-modal input:focus {
    outline: none;
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.telegram-modal .form-group {
    position: relative;
    z-index: 1;
}

/* Убедимся, что модальное окно не блокирует ввод */
.modal {
    pointer-events: auto;
}

.modal-content {
    pointer-events: auto;
}

.telegram-modal form {
    padding: 1.5rem;
    pointer-events: auto;
}

/* Стили для всех контейнеров на страницах */
.news-container,
.profile-container,
.subscription-container,
.upload-container,
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Общие стили для элементов на всех страницах */
.item-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

/* Общие стили для информационных групп */
.info-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.info-group:last-child {
    border-bottom: none;
}

.info-group label {
    min-width: 150px;
    color: rgba(255, 255, 255, 0.7);
}

.info-group span {
    color: #fff;
}

/* Стили для скролла */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgb(255, 140, 0);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.8);
}

/* Стили для контейнера */
.auth-container {
    min-height: 100vh;
    position: relative;
    background: #000;
}

/* Стили для главной страницы */
.index-page {
    overflow: hidden; /* Убираем скролл на главной */
    height: 100vh;
    width: 100vw;
    position: fixed;
}

/* Стили для переключателя языка на главной странице */
.index-language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.index-language-switcher .lang-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
}

.index-language-switcher .lang-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
}

.index-language-switcher .lang-btn.active {
    background: rgb(255, 140, 0);
    color: #000;
    border-color: rgb(255, 140, 0);
}

/* Стили для главной страницы */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Стили для переключателя языка */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 45px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
}

.lang-btn.active {
    background: rgb(255, 140, 0);
    color: #000;
    border-color: rgb(255, 140, 0);
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1001;
    transition: background 0.3s ease;
}


/* Стили для кнопок управления подпиской */
.subscription-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-revoke {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.btn-revoke:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    color: #ff6666;
}

.actions-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .subscription-buttons {
        flex-direction: column;
    }
    
    .subscription-buttons .btn-custom {
        width: 100%;
    }
}

.modal.show {
    background: rgba(0, 0, 0, 0.8);
}

.form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: rgba(0, 0, 0, 0.95);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    width: 90%;
    max-width: 400px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.2);
}

.modal.show .form-container {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Стили для логотипа в формах */
.form-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.3));
}

/* Стили для полей ввода в формах */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

/* Стили для кнопки закрытия */
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: rgba(255, 140, 0, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.close:hover {
    color: rgb(255, 140, 0);
    transform: rotate(90deg);
}

/* Обновленные стили для аудио контрола */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1002; /* Увеличиваем z-index */
    pointer-events: auto;
}

.audio-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: rgb(255, 140, 0);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.audio-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.audio-btn:hover i {
    transform: scale(1.1);
}

/* Стили для группы Telegram с улучшенным дизайном */
.telegram-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.input-with-prefix {
    position: relative;
    width: calc(100% - 110px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-with-prefix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 140, 0, 0.1) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-with-prefix:hover::before {
    opacity: 1;
}

.prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 140, 0, 0.7);
    font-family: 'Share Tech Mono', monospace;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
}

.input-with-prefix input {
    width: 100%;
    padding: 1rem 1rem 1rem 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.input-with-prefix input:focus {
    outline: none;
}

.input-with-prefix:focus-within {
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    transform: translateY(-1px);
}

.optional-text {
    position: absolute;
    right: 0;
    width: 110px;
    font-size: 0.75rem;
    color: rgba(255, 140, 0, 0.5);
    white-space: nowrap;
    text-align: right;
    font-style: italic;
    pointer-events: none;
    padding-right: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.2);
}

/* Эффекты при взаимодействии */
.input-with-prefix:focus-within .prefix {
    color: rgb(255, 140, 0);
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.telegram-group:focus-within .optional-text {
    color: rgba(255, 140, 0, 0.8);
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

/* Анимация для placeholder */
.input-with-prefix input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.input-with-prefix input:focus::placeholder {
    color: rgba(255, 140, 0, 0.5);
    transform: translateX(5px);
}

/* Добавляем пульсацию при фокусе */
@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.2);
    }
}

.input-with-prefix:focus-within {
    animation: pulse 2s infinite;
}

/* Добавляем эффект свечения для рамки */
.input-with-prefix::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 10px;
    background: linear-gradient(45deg, 
        rgba(255, 140, 0, 0.5),
        transparent 50%,
        rgba(255, 140, 0, 0.5)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.input-with-prefix:hover::after {
    opacity: 0.2;
}

/* Стили для админ-панели */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 20px;
    max-height: 45px;
    position: relative;
}

.top-center-logo {
    height: 100px;           /* подгони под нужный размер */
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    text-align: center;
    margin: 0 auto 25px;
    width: fit-content;
}

/* Статистика */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    font-size: 2rem;
    color: rgb(255, 140, 0);
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    font-size: 1.5rem;
    color: rgb(255, 140, 0);
    font-weight: bold;
}

/* Таблица пользователей */
.users-table-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 140, 0, 0.7);
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.users-table th,
.users-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    color: #fff;
}

.users-table th {
    background: rgba(0, 0, 0, 0.3);
    color: rgb(255, 140, 0);
    font-weight: normal;
}

.users-table tr:hover {
    background: rgba(255, 140, 0, 0.1);
}

.users-table td {
    color: rgba(255, 255, 255, 0.9);
}

.password-cell {
    position: relative;
    padding-right: 40px;
}

.password-hidden,
.password-visible {
    color: rgba(255, 255, 255, 0.9);
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 140, 0, 0.7);
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: rgb(255, 140, 0);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;           /* было 1rem → уменьшить промежутки */
    margin-top: 1rem;
    flex-wrap: wrap;       /* если кнопок много — перенос на следующую строку */
    max-width: 100%;       /* не даёт вылезать за контейнер */
}

.pagination button {
    min-width: 32px;       /* или даже 28–30px */
    padding: 6px 10px;
    font-size: 0.9rem;
}


.btn-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: rgb(255, 140, 0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-custom:hover:not(:disabled) {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgb(255, 140, 0);
}

.btn-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    color: rgba(255, 255, 255, 0.7);
}

/* Заголовок таблицы */
.users-table-container h2 {
    color: rgb(255, 140, 0);
    margin: 0;
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-container {
        padding: 0 0.5rem;
    }

    .search-container {
        width: 100%;
        max-width: 300px;
    }

    .users-table th,
    .users-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 548px) {
    .admin-container {
        padding: 0;
    }

    .users-table-container {
        border-radius: 0;
        margin: 0;
        padding: 1rem 0.5rem;
    }

    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }
}

/* Стили для создания новостей */
.news-creation-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-form input,
.news-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    color: #fff;
}

.news-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Стили для статуса и действий */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.status-badge.banned {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-custom.ban {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.btn-custom.unban {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
    color: rgb(255, 140, 0);
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
    .section-title {
        margin-left: 20%;
        font-size: 1.6rem;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .section-title {
        margin-left: 7%;
        font-size: 1.4rem;
    }
}

/* Адаптация для маленьких экранов */
@media (max-width: 360px) {
    .section-title {
        margin-left: 5%;
        font-size: 1.3rem;
        text-align: center;
    }
}

.software-status-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgb(255, 140, 0);
    padding: 15px 30px;
    border-radius: 15px;
    z-index: 1000;
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(5px);
    font-family: 'Share Tech Mono', monospace;
    animation: slideDown 0.3s ease-in-out;
    min-width: 300px;
    text-align: center;
}

.software-status-notification.error {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.loading-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.9);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgb(255, 140, 0);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.settings-tabs {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 10px;
    margin: 0 auto 20px;
    padding: 10px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    flex-wrap: nowrap;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    margin: 0 3px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 35px;
    flex: 1;
    min-width: 0;
    color: #fff;
}

.tab i {
    margin-right: 8px;
    font-size: 14px;
    color: rgb(255, 140, 0);
}

.tab span {
    font-size: 13px;
    white-space: nowrap;
}

.tab:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.1);
}

.tab.active {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 900px) {
    .settings-tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 5px;
    }

    .tab {
        flex: 1 1 calc(33.33% - 10px);
        height: 28px;
        min-width: calc(33.33% - 10px);
        margin: 2px;
        padding: 4px 8px;
    }
}

@media (max-width: 600px) {
    .tab {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: 25px;
    }

    .tab i {
        font-size: 11px;
        margin-right: 4px;
    }

    .tab span {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .settings-tabs {
        padding: 3px;
        gap: 3px;
    }

    .tab {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        height: 22px;
        padding: 2px 4px;
    }

    .tab i {
        font-size: 10px;
        margin-right: 3px;
    }

    .tab span {
        font-size: 9px;
    }
}

