/* ========================================
   ОСНОВНЫЕ СТИЛИ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a1a;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* ========================================
   ФОНОВЫЙ ЛОГОТИП
   ======================================== */

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background: url("/static/images/logo.222f084b5a6a.png") center/contain no-repeat;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 100px rgba(123, 31, 162, 0.4));
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 100px rgba(123, 31, 162, 0.4));
    }
    50% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(1.06);
        filter: drop-shadow(0 0 160px rgba(123, 31, 162, 0.6));
    }
}

/* ========================================
   ШАПКА
   ======================================== */

.header {
    background: rgba(13, 13, 13, 0.95);
    padding: 10px 20px;
    border-bottom: 2px solid #2a0a4a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: contain;
    background: transparent;
    padding: 3px;
    filter: drop-shadow(0 0 15px rgba(123, 31, 162, 0.5));
    transition: all 0.3s ease;
}

.logo-icon:hover {
    filter: drop-shadow(0 0 35px rgba(123, 31, 162, 0.9));
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(135deg, #b39ddb, #4a148c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    padding: 7px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.nav-btn-buy {
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    color: white;
    border: 2px solid #2a0a4a;
}

.nav-btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(42, 10, 74, 0.4);
}

.nav-btn-cabinet {
    background: transparent;
    color: #b39ddb;
    border: 2px solid #2a0a4a;
}

.nav-btn-cabinet:hover {
    background: #2a0a4a;
    color: white;
    transform: scale(1.05);
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
   ======================================== */

.main-content {
    margin-top: 75px;
}

/* ========================================
   СЕКЦИИ — ПРОЗРАЧНЫЕ ГРАДИЕНТЫ
   ======================================== */

.section-purple {
    background: linear-gradient(180deg, rgba(26, 10, 58, 0.85) 0%, rgba(74, 20, 140, 0.7) 25%, rgba(42, 10, 74, 0.85) 50%, rgba(26, 10, 58, 0.85) 75%, rgba(10, 10, 26, 0.9) 100%);
    padding: 60px 40px;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.section-purple .container {
    position: relative;
    z-index: 2;
}

.section-black-steps {
    background: rgba(10, 10, 26, 0.92);
    padding: 60px 40px;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.section-purple-tariffs {
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.9) 0%, rgba(26, 10, 58, 0.85) 25%, rgba(74, 20, 140, 0.7) 50%, rgba(42, 10, 74, 0.85) 75%, rgba(26, 10, 58, 0.85) 100%);
    padding: 60px 40px;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.section-purple-tariffs .container {
    position: relative;
    z-index: 2;
}

.section-black-bottom {
    background: rgba(10, 10, 26, 0.9);
    padding: 30px 40px;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* ========================================
   КОНТЕЙНЕРЫ
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ДВЕ КОЛОНКИ
   ======================================== */

.row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.col-text {
    flex: 1.2;
}

.col-status {
    flex: 0.8;
    min-width: 280px;
}

@media (max-width: 992px) {
    .row {
        flex-direction: column;
        gap: 30px;
    }
    .col-status {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
}

/* ========================================
   ЗАГОЛОВКИ
   ======================================== */

h1 {
    color: #ffffff;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -1px;
    opacity: 0.95;
}

.glitch-subtitle {
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, #ce93d8, #7b1fa2, #ce93d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 2.5s ease-in-out infinite;
    position: relative;
}

@keyframes glitch {
    0% { opacity: 0.9; text-shadow: 0 0 5px rgba(123, 31, 162, 0.3); }
    25% { opacity: 1; text-shadow: 0 0 20px rgba(123, 31, 162, 0.8), 0 0 60px rgba(123, 31, 162, 0.3); }
    50% { opacity: 0.9; text-shadow: 0 0 5px rgba(123, 31, 162, 0.3); }
    75% { opacity: 1; text-shadow: 0 0 25px rgba(179, 157, 219, 0.9), 0 0 70px rgba(123, 31, 162, 0.4); }
    100% { opacity: 0.9; text-shadow: 0 0 5px rgba(123, 31, 162, 0.3); }
}

.subtitle {
    color: #b39ddb;
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.85;
}

/* ========================================
   КНОПКИ-ССЫЛКИ
   ======================================== */

.links-row {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin: 25px 0 45px 0;
    flex-wrap: wrap;
}

.link-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.link-underline {
    font-size: 1.15em;
    font-weight: 600;
    color: #b39ddb;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2.5px;
    text-decoration-color: rgba(74, 20, 140, 0.6);
    transition: all 0.4s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, transparent 60%, rgba(74, 20, 140, 0.15) 100%);
}

.link-btn:hover .link-underline {
    color: #ffffff;
    text-decoration-color: #b39ddb;
    transform: scale(1.05);
    background: linear-gradient(180deg, transparent 40%, rgba(74, 20, 140, 0.25) 100%);
}

.link-btn::after {
    content: '';
    display: block;
    margin-top: 8px;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, transparent, #b39ddb, transparent);
    transition: width 0.5s ease;
    border-radius: 2px;
}

.link-btn:hover::after {
    width: 100%;
}

/* ========================================
   КНОПКИ
   ======================================== */

.btn-try {
    background: transparent;
    color: #b39ddb;
    border: 2px solid #2a0a4a;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.glitch-btn {
    animation: glitch-bright 2s ease-in-out infinite;
}

@keyframes glitch-bright {
    0% { opacity: 0.85; text-shadow: 0 0 5px rgba(123, 31, 162, 0.2); box-shadow: 0 0 10px rgba(123, 31, 162, 0.1); }
    30% { opacity: 1; text-shadow: 0 0 30px rgba(123, 31, 162, 0.9), 0 0 80px rgba(123, 31, 162, 0.4); box-shadow: 0 0 40px rgba(123, 31, 162, 0.3); }
    60% { opacity: 0.85; text-shadow: 0 0 5px rgba(123, 31, 162, 0.2); box-shadow: 0 0 10px rgba(123, 31, 162, 0.1); }
    90% { opacity: 1; text-shadow: 0 0 35px rgba(179, 157, 219, 0.9), 0 0 90px rgba(123, 31, 162, 0.5); box-shadow: 0 0 50px rgba(123, 31, 162, 0.4); }
    100% { opacity: 0.85; text-shadow: 0 0 5px rgba(123, 31, 162, 0.2); box-shadow: 0 0 10px rgba(123, 31, 162, 0.1); }
}

.btn-try:hover {
    background: #2a0a4a;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(42, 10, 74, 0.3);
}

.btn-buy-transparent {
    background: transparent;
    color: #b39ddb;
    border: 2px solid #2a0a4a;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-buy-transparent:hover {
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    color: white;
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(42, 10, 74, 0.5);
}

.btn-buy {
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-buy:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(42, 10, 74, 0.5);
}

/* ========================================
   СТАТУС СЕРВЕРА + УСТРОЙСТВА
   ======================================== */

.server-status-container {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.7), rgba(42, 10, 74, 0.6), rgba(255, 255, 255, 0.05));
    border-radius: 24px;
    padding: 30px 35px;
    width: 100%;
    border: 1px solid rgba(74, 20, 140, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    background-size: 300% 300%;
    animation: gradientMove 6s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; border-color: rgba(74, 20, 140, 0.2); }
    50% { background-position: 100% 50%; border-color: rgba(123, 31, 162, 0.4); }
    100% { background-position: 0% 50%; border-color: rgba(74, 20, 140, 0.2); }
}

/* --- Анимированные линии --- */
.lines-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(123, 31, 162, 0.3), rgba(179, 157, 219, 0.2), transparent);
    border-radius: 50%;
    animation: lineMove 8s ease-in-out infinite;
}

.line-1 { top: 15%; width: 60%; left: 100%; animation-delay: 0s; }
.line-2 { top: 45%; width: 80%; left: 100%; animation-delay: 2s; height: 1.5px; }
.line-3 { top: 75%; width: 50%; left: 100%; animation-delay: 4s; height: 1px; }

@keyframes lineMove {
    0% { transform: translateX(0) scaleX(0.3); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateX(-120%) scaleX(1); opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-250%) scaleX(0.3); opacity: 0; }
}

.server-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(74, 20, 140, 0.15);
    position: relative;
    z-index: 1;
}

.status-label {
    color: #b39ddb;
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.8;
}

.status-value {
    color: #ce93d8;
    font-size: 0.95em;
    font-weight: 600;
    background: linear-gradient(135deg, #ce93d8, #7b1fa2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.device-tile {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid rgba(74, 20, 140, 0.12);
    transition: all 0.3s ease;
    cursor: default;
}

.device-tile:hover {
    background: rgba(123, 31, 162, 0.15);
    border-color: rgba(123, 31, 162, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(42, 10, 74, 0.2);
}

.device-icon {
    display: block;
    font-size: 1.6em;
    margin-bottom: 4px;
}

.device-name {
    color: #b39ddb;
    font-size: 0.8em;
    font-weight: 500;
}

.devices-subtitle {
    color: #7b1fa2;
    font-size: 0.75em;
    text-align: center;
    opacity: 0.7;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* ========================================
   ШАГИ
   ======================================== */

.steps-title {
    color: #ffffff;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0.9;
}

.steps-subtitle {
    color: #b39ddb;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.8;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px 20px 25px 20px;
    text-align: center;
    border: 1px solid rgba(74, 20, 140, 0.15);
    transition: all 0.3s;
    opacity: 0.85;
}

.step-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 40px rgba(42, 10, 74, 0.2);
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    color: white;
    font-size: 1.5em;
    font-weight: 700;
}

.step-name {
    color: #ce93d8;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.step-desc {
    color: #b39ddb;
    font-size: 0.9em;
    line-height: 1.5;
}

.steps-button-block {
    text-align: center;
    margin-top: 40px;
    opacity: 0.9;
}

.steps-hint {
    color: #2a0a4a;
    font-size: 0.9em;
    margin-top: 15px;
    opacity: 0.8;
}

/* ========================================
   ТАРИФЫ
   ======================================== */

.tariffs-title {
    color: #ffffff;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0.95;
}

.tariffs-subtitle {
    color: #b39ddb;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px auto;
    max-width: 1200px;
    justify-content: center;
}

.tariff-card {
    background: rgba(20, 20, 35, 0.9);
    border-radius: 16px;
    padding: 20px 14px 18px 14px;
    text-align: center;
    border: 1px solid rgba(74, 20, 140, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.tariff-card:hover {
    transform: translateY(-6px);
    background: rgba(30, 30, 50, 0.95);
    border-color: rgba(123, 31, 162, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.tariff-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    color: #b39ddb;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(74, 20, 140, 0.3);
    margin-bottom: 8px;
    align-self: center;
}

.tariff-name {
    color: #ce93d8;
    font-size: 0.95em;
    margin-bottom: 4px;
    font-weight: 600;
}

.tariff-price {
    font-size: 1.6em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ce93d8, #7b1fa2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px 0;
    text-align: left;
    flex-grow: 1;
    padding-left: 4px;
}

.tariff-features li {
    color: #b39ddb;
    font-size: 0.7em;
    padding: 3px 0 3px 18px;
    border-bottom: 1px solid rgba(74, 20, 140, 0.06);
    position: relative;
    line-height: 1.3;
    text-align: left;
}

.tariff-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7b1fa2;
    font-weight: 700;
}

.tariff-note {
    color: #4a148c;
    font-size: 0.6em;
    margin: 6px 0 10px 0;
    opacity: 0.7;
    font-style: italic;
}

.tariff-savings {
    color: #ce93d8;
    font-size: 0.7em;
    margin: 2px 0;
    font-weight: 500;
}

.btn-tariff {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    color: white;
    border: 1px solid rgba(74, 20, 140, 0.3);
    margin-top: 8px;
    align-self: center;
}

.btn-tariff:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(42, 10, 74, 0.4);
    background: linear-gradient(135deg, #3a0a5a, #2a0a4a);
}

.btn-tariff-main {
    background: linear-gradient(135deg, #3a0a5a, #2a0a4a) !important;
    border: 1px solid rgba(123, 31, 162, 0.3) !important;
}

.btn-tariff-main:hover {
    background: linear-gradient(135deg, #4a0a6a, #3a0a5a) !important;
    box-shadow: 0 8px 30px rgba(42, 10, 74, 0.5);
}

/* ========================================
   МОДАЛЬНОЕ ОКНО ВХОДА И РЕГИСТРАЦИИ
   ======================================== */

.modal-login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-login-content {
    background: linear-gradient(145deg, #1a1040, #2d1b69);
    padding: 45px 50px;
    border-radius: 30px;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(74, 20, 140, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: modalFade 0.3s ease;
    position: relative;
}

.modal-login-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5em;
    font-weight: 300;
    color: #b39ddb;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.modal-login-close:hover {
    color: #ffffff;
    transform: rotate(90deg) scale(1.2);
}

.modal-login-title {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #ce93d8, #b39ddb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   ФОРМА ВХОДА И РЕГИСТРАЦИИ
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #b39ddb;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(74, 20, 140, 0.3);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #7b1fa2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.15);
}

.input-wrapper input::placeholder {
    color: rgba(179, 157, 219, 0.35);
}

/* ========================================
   ЗАГОЛОВКИ ПОЛЕЙ С ИНДИКАТОРАМИ
   ======================================== */

.label-with-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.label-with-indicators label {
    color: #b39ddb;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 0;
}

.inline-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-indicators .indicator {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 20, 140, 0.15);
    color: rgba(179, 157, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.inline-indicators .caps-indicator.active {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffd54f;
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
}

.inline-indicators .eng-indicator.active {
    background: rgba(123, 31, 162, 0.25);
    border-color: rgba(123, 31, 162, 0.4);
    color: #ce93d8;
    opacity: 1;
}

/* ========================================
   ПОДСКАЗКА (tooltip)
   ======================================== */

.input-hint {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
    border-radius: 50%;
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
    font-style: normal;
}

.hint-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.5);
}

.hint-tooltip {
    position: absolute;
    right: -10px;
    top: calc(100% + 12px);
    background: rgba(20, 10, 45, 0.98);
    background: linear-gradient(145deg, rgba(26, 10, 58, 0.98), rgba(42, 10, 74, 0.98));
    color: #ce93d8;
    font-size: 0.75em;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(74, 20, 140, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 400;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 320px;
    z-index: 10;
}

.hint-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 18px;
    border: 8px solid transparent;
    border-bottom-color: rgba(26, 10, 58, 0.98);
}

.hint-icon:hover + .hint-tooltip,
.hint-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   КНОПКА ПОКАЗА ПАРОЛЯ
   ======================================== */

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #b39ddb;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px;
    opacity: 0.6;
}

.password-toggle:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   ОШИБКИ
   ======================================== */

.login-error {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.error-text {
    color: #ff6b6b;
    font-size: 0.85em;
    font-weight: 500;
}

.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.15) !important;
    background: rgba(255, 0, 0, 0.05) !important;
}

/* ========================================
   КНОПКИ В МОДАЛЬНЫХ ОКНАХ
   ======================================== */

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2a0a4a, #1a0520);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(74, 20, 140, 0.3);
}

.btn-login-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(42, 10, 74, 0.5);
    background: linear-gradient(135deg, #3a0a5a, #2a0a4a);
}

.modal-login-footer {
    text-align: center;
    color: #b39ddb;
    font-size: 0.85em;
    margin-top: 20px;
    opacity: 0.7;
}

.modal-login-footer a {
    color: #ce93d8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.modal-login-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ========================================
   СТАРЫЕ МОДАЛЬНЫЕ ОКНА
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(145deg, #1a1040, #2d1b69);
    padding: 45px 50px;
    border-radius: 30px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(74, 20, 140, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: modalFade 0.4s ease;
    position: relative;
}

@keyframes modalFade {
    from { transform: scale(0.85) translateY(-30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.8em;
    font-weight: 300;
    color: #b39ddb;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg) scale(1.2);
}

.modal-title {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(74, 20, 140, 0.5);
    background: linear-gradient(135deg, #ce93d8, #b39ddb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    color: #b39ddb;
    font-size: 1em;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 10px;
    color: #ce93d8;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.modal-body ul li {
    padding: 10px 0 10px 10px;
    border-bottom: 1px solid rgba(74, 20, 140, 0.15);
    transition: all 0.3s;
    border-radius: 8px;
}

.modal-body ul li:hover {
    background: rgba(74, 20, 140, 0.15);
    padding-left: 18px;
}

/* ========================================
   АНИМАЦИЯ ВСТРЯСКИ
   ======================================== */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========================================
   АДАПТАЦИЯ
   ======================================== */

@media (max-width: 1200px) {
    .tariffs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 15px;
    }
    .header-container {
        padding: 0 15px;
    }
    .section-purple,
    .section-black-steps,
    .section-purple-tariffs,
    .section-black-bottom {
        padding: 40px 20px;
    }
    .server-status-container {
        padding: 20px;
    }
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .device-tile {
        padding: 8px 4px;
    }
    .device-icon {
        font-size: 1.3em;
    }
    .device-name {
        font-size: 0.7em;
    }
    h1 {
        font-size: 2em;
    }
    .glitch-subtitle {
        font-size: 1.3em;
    }
    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 600px;
    }
    .tariffs-title {
        font-size: 1.8em;
    }
    .steps-title {
        font-size: 1.8em;
    }
    .links-row {
        gap: 20px;
    }
    .link-underline {
        font-size: 0.95em;
    }
    .modal-content {
        padding: 30px 25px;
    }
    .modal-login-content {
        padding: 30px 25px;
    }
    .background-logo {
        width: 350px;
        height: 350px;
    }
    .hint-tooltip {
        white-space: normal;
        max-width: 200px;
        right: -20px;
    }
    .hint-tooltip::before {
        right: 28px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 6px 10px;
    }
    .header-container {
        padding: 0 10px;
    }
    .section-purple,
    .section-black-steps,
    .section-purple-tariffs,
    .section-black-bottom {
        padding: 30px 15px;
    }
    .container {
        padding: 0 10px;
    }
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    h1 {
        font-size: 1.5em;
    }
    .glitch-subtitle {
        font-size: 1.1em;
    }
    .subtitle {
        font-size: 0.95em;
    }
    .tariffs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .steps-title {
        font-size: 1.4em;
    }
    .step-card {
        padding: 15px 12px;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    .logo-text {
        font-size: 1.1em;
    }
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    .nav {
        gap: 8px;
    }
    .nav-btn {
        padding: 5px 12px;
        font-size: 0.75em;
    }
    .links-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .modal-content {
        padding: 20px 15px;
    }
    .modal-title {
        font-size: 1.3em;
    }
    .modal-login-content {
        padding: 25px 18px;
    }
    .modal-login-title {
        font-size: 1.3em;
    }
    .background-logo {
        width: 200px;
        height: 200px;
    }
    .btn-try, .btn-buy-transparent, .btn-buy {
        padding: 10px 25px;
        font-size: 0.85em;
    }
    .hint-tooltip {
        white-space: normal;
        max-width: 180px;
        right: -30px;
        font-size: 0.7em;
        padding: 8px 12px;
    }
    .hint-tooltip::before {
        right: 35px;
    }
}