/* ========== ГЛОБАЛЬНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #0A0A0F;
    color: #FFFFFF;
    line-height: 1.4;
    padding: 20px 16px 60px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== ПЛАВАЮЩИЕ ФИГУРЫ ========== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes svg {
    position: absolute;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5;
    fill: none;
    animation: float 12s infinite ease-in-out;
    filter: blur(0.3px);
}

.floating-shapes svg:nth-child(1) { top: 8%; left: 5%; width: 28px; height: 28px; animation-duration: 14s; opacity: 0.3; }
.floating-shapes svg:nth-child(2) { top: 20%; left: 88%; width: 18px; height: 18px; animation-duration: 10s; animation-delay: -2s; opacity: 0.25; }
.floating-shapes svg:nth-child(3) { top: 45%; left: 12%; width: 34px; height: 34px; animation-duration: 18s; animation-delay: -4s; opacity: 0.3; }
.floating-shapes svg:nth-child(4) { top: 70%; left: 78%; width: 22px; height: 22px; animation-duration: 12s; animation-delay: -1s; opacity: 0.25; }
.floating-shapes svg:nth-child(5) { top: 85%; left: 20%; width: 16px; height: 16px; animation-duration: 16s; animation-delay: -6s; opacity: 0.3; }
.floating-shapes svg:nth-child(6) { top: 15%; left: 52%; width: 30px; height: 30px; animation-duration: 20s; animation-delay: -3s; opacity: 0.25; }
.floating-shapes svg:nth-child(7) { top: 55%; left: 94%; width: 20px; height: 20px; animation-duration: 11s; animation-delay: -5s; opacity: 0.3; }
.floating-shapes svg:nth-child(8) { top: 88%; left: 58%; width: 26px; height: 26px; animation-duration: 15s; animation-delay: -7s; opacity: 0.25; }
.floating-shapes svg:nth-child(9) { top: 35%; left: 32%; width: 24px; height: 24px; animation-duration: 13s; animation-delay: -2s; opacity: 0.3; }
.floating-shapes svg:nth-child(10) { top: 62%; left: 3%; width: 28px; height: 28px; animation-duration: 17s; animation-delay: -4s; opacity: 0.25; }

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    50% { transform: translateY(-18px) translateX(6px) rotate(6deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ОБЩИЕ КНОПКИ ========== */
.btn-primary {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #0066FF, #0044CC);
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.btn-secondary {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #0066FF;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #0066FF;
    font-weight: 500;
    cursor: pointer;
    transition: 0.1s;
}

.btn-secondary:active {
    background: rgba(0, 102, 255, 0.1);
}

.btn-success {
    width: 100%;
    background: #2ecc71;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: #0066FF;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

/* ========== ШАПКА (общая) ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2A2A35;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 24px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #C1C1C9;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.logo {
    font-size: 26px;
    font-weight: 700;
}

.logo .saha {
    color: #FFFFFF;
}

.logo .vpn-plus {
    background: linear-gradient(135deg, #3399FF, #0066FF, #0044CC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-group {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 24px;
    transition: all 0.2s;
}

.menu-group:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #C1C1C9;
}

.menu-icon {
    font-size: 16px;
    color: #C1C1C9;
}

.menu-group:hover .menu-text,
.menu-group:hover .menu-icon {
    color: #FFFFFF;
}

/* ========== ШТОРКА-МЕНЮ ========== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: rgba(20, 20, 31, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 24px 20px;
    border-left: 1px solid rgba(0, 102, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.menu-drawer.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2A2A35;
}

.menu-header .logo-small {
    font-size: 20px;
    font-weight: 700;
}

.menu-header .logo-small .saha {
    color: #FFFFFF;
}

.menu-header .logo-small .vpn-plus {
    background: linear-gradient(135deg, #3399FF, #0066FF, #0044CC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-menu {
    background: none;
    border: none;
    color: #A1A1AA;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.close-menu:hover {
    color: #FFFFFF;
}

.menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    padding: 14px 16px;
    border-radius: 16px;
    color: #C1C1C9;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    text-align: right;
}

.menu-item:hover {
    background: rgba(0, 102, 255, 0.1);
    color: #FFFFFF;
}

.menu-item.active {
    background: rgba(0, 102, 255, 0.2);
    color: #3399FF;
}

.menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #2A2A35;
}

.logout-menu-item {
    color: #FF6B5E;
}

.logout-menu-item:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #FF6B5E;
}

/* ========== КАРТОЧКИ ========== */
.card {
    background: rgba(20, 20, 31, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #C1C1C9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== СТРАНИЦА ВХОДА (login) ========== */
.login-card {
    background: rgba(20, 20, 31, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 32px 24px 24px;
    max-width: 420px;
    width: 100%;
    margin: 6vh auto 0;
    border: 1px solid rgba(0, 102, 255, 0.35);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(0, 102, 255, 0.2);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #C1C1C9;
}

.input-group input {
    width: 100%;
    padding: 16px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid #2A2A35;
    border-radius: 16px;
    font-size: 16px;
    color: #FFFFFF;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    background: rgba(10, 10, 15, 0.95);
}

.input-group input::placeholder {
    color: #6B6B76;
}

.error-message, .success-message {
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.error-message {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF6B5E;
}

.success-message {
    background: rgba(0, 102, 255, 0.12);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: #3399FF;
}

/* ========== СТРАНИЦА ДАШБОРД ========== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px 0;
}

/* ========== СТРАНИЦА ПОПОЛНЕНИЯ ========== */
.balance-info {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
}

.balance-label {
    font-size: 14px;
    color: #A1A1AA;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    color: #3399FF;
}

.amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.amount-btn {
    flex: 1;
    min-width: 80px;
    background: rgba(20, 20, 31, 0.8);
    border: 1px solid rgba(0, 102, 255, 0.5);
    border-radius: 16px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.amount-btn:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
}

.amount-btn.selected {
    background: linear-gradient(135deg, #0066FF, #0044CC);
    border-color: #0066FF;
}

.custom-amount {
    margin-bottom: 24px;
}

.custom-amount input {
    width: 100%;
    padding: 16px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid #2A2A35;
    border-radius: 16px;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
}

.custom-amount input:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #0066FF, #0044CC);
    border: none;
    padding: 18px 24px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.pay-btn:active {
    transform: scale(0.98);
}

.pay-btn:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
}

/* ========== СТРАНИЦА ПОДДЕРЖКИ ========== */
.faq-item {
    background: rgba(10, 10, 15, 0.5);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(0, 102, 255, 0.1);
}

.faq-answer {
    padding: 0 16px 16px 16px;
    color: #A1A1AA;
    font-size: 14px;
    line-height: 1.6;
    display: none;
    border-top: 1px solid rgba(42, 42, 53, 0.5);
}

.faq-item.active .faq-answer {
    display: block;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 102, 255, 0.5);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: #0066FF;
    transform: translateX(4px);
}

.contact-icon {
    font-size: 32px;
    width: 48px;
    text-align: center;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail {
    font-size: 14px;
    color: #A1A1AA;
}

.contact-arrow {
    font-size: 20px;
    color: #3399FF;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.modal-content {
    background: #14141F;
    border-radius: 28px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2A2A35;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #A1A1AA;
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: #FFFFFF;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 102, 255, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1500;
    animation: slideUp 0.3s ease;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

.notification.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ========== ПРЕЛОАДЕР ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0F;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-letters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.letter-white {
    display: inline-block;
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.letter-gradient {
    display: inline-block;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #3399FF, #0066FF, #0044CC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.preloader-subtitle {
    font-size: 14px;
    color: #A1A1AA;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ========== ПОДСКАЗКИ ПАРОЛЯ ========== */
.password-hint {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(51, 153, 255, 0.08);
    border-radius: 12px;
    border-left: 3px solid #3399FF;
}

.hint-item {
    display: block;
    font-size: 12px;
    color: #A1A1AA;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.hint-item:last-child {
    margin-bottom: 0;
}

.hint-item.valid {
    color: #2ecc71;
}

.hint-item.invalid {
    color: #FF6B5E;
}

/* ========== ЛОГО ССЫЛКА ========== */
.logo-link {
    text-decoration: none;
}

.logo-link:hover .logo .saha,
.logo-link:hover .logo .vpn-plus {
    opacity: 0.9;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (min-width: 768px) {
    body {
        padding: 40px 32px 80px;
    }

    .tariffs {
        flex-direction: row;
    }

    .tariff-card {
        flex: 1;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .vpn-btn {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .notification {
        white-space: normal;
        text-align: center;
        bottom: 16px;
    }

    .logo {
        font-size: 22px;
    }

    .back-btn {
        font-size: 14px;
        padding: 6px 10px;
    }

    .menu-text {
        font-size: 14px;
    }

    .menu-icon {
        font-size: 14px;
    }

    .amount-btn {
        min-width: 70px;
        font-size: 16px;
        padding: 12px;
    }

    .balance-amount {
        font-size: 36px;
    }

    .modal-content {
        width: 92%;
        max-height: 90vh;
        border-radius: 24px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 17px;
    }

    .modal-body {
        padding: 16px 18px;
    }
}

/* ========== ОТКЛЮЧЕНИЕ АВТОФОРМАТИРОВАНИЯ ========== */
[data-copy] {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
}

a, span, div {
    -webkit-tap-highlight-color: transparent;
}

.modal * {
    -webkit-touch-callout: none;
}

/* ========== СТИЛИ ДЛЯ ВЫБОРА ТАРИФА НА ДАШБОРДЕ ========== */
.tariff-row {
    cursor: pointer;
    transition: background 0.2s;
}

.tariff-row:hover {
    background: rgba(51, 153, 255, 0.05);
}

.tariff-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3399FF;
    font-weight: 500;
}

.tariff-arrow {
    font-size: 12px;
    color: #A1A1AA;
    transition: transform 0.2s;
}

.tariff-row.expanded .tariff-arrow {
    transform: rotate(180deg);
}

.tariff-dropdown {
    background: #1A1A25;
    border-radius: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 1px solid #2A2A35;
    overflow: hidden;
}

.tariff-option {
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid #2A2A35;
    transition: background 0.2s;
}

.tariff-option:last-child {
    border-bottom: none;
}

.tariff-option:hover {
    background: rgba(51, 153, 255, 0.1);
}

.tariff-option.selected {
    background: rgba(51, 153, 255, 0.15);
    border-left: 3px solid #3399FF;
}

.tariff-option-name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.tariff-option-price {
    font-size: 18px;
    font-weight: 700;
    color: #3399FF;
    margin-bottom: 4px;
}

.tariff-option-desc {
    font-size: 13px;
    color: #A1A1AA;
}

/* ========== СТИЛИ ДЛЯ SUBSCRIPTION ========== */
.tariff-selector {
    margin-bottom: 24px;
}

.tariff-cards {
    display: flex;
    gap: 12px;
}

.tariff-card {
    flex: 1;
    background: rgba(20, 20, 31, 0.8);
    border: 2px solid #2A2A35;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tariff-card.selected {
    border-color: #3399FF;
    background: rgba(51, 153, 255, 0.1);
}

.tariff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tariff-price {
    font-size: 20px;
    font-weight: 700;
    color: #3399FF;
    margin-bottom: 4px;
}

.tariff-price span {
    font-size: 14px;
    color: #A1A1AA;
    font-weight: 400;
}

.tariff-desc {
    font-size: 12px;
    color: #A1A1AA;
}

.vpn-activate-btn, .vpn-copy-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 24px 32px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 60px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vpn-activate-btn:active, .vpn-copy-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.vpn-copy-btn:disabled, .vpn-activate-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 28px;
}

.trial-hint {
    color: #A1A1AA;
    font-size: 13px;      /* было 14px */
    margin-top: 5px;       /* было 8px или 12px */
    margin-bottom: 0;
}

.user-info-card {
    background: #14141F;
    border-radius: 20px;
    padding: 12px;
    border: 1px solid #2A2A35;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2A2A35;
}

.user-info-row:last-child {
    border-bottom: none;
}

/* Стили для QR-кода */
#qrcode {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
}

#qrcode canvas {
    max-width: 100%;
    height: auto;
}

.topup-btn {
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    padding: 18px 24px;
    background: linear-gradient(135deg, #3399FF, #0066FF);
    border: none;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(51, 153, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.topup-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(51, 153, 255, 0.2);
}

.devices-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    transition: background 0.2s;
}

.devices-header:hover {
    background: rgba(51, 153, 255, 0.05);
}

.devices-toggle-icon {
    font-size: 14px;
    color: #3399FF;
    transition: transform 0.2s;
}

.devices-section.expanded .devices-toggle-icon {
    transform: rotate(90deg);
}

.devices-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #2A2A35;
}

.device-card {
    background: #1A1A25;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #2A2A35;
}

.device-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.device-icon {
    font-size: 24px;
}

.device-name {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    flex: 1;
}

.device-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.device-actions {
    display: flex;
    gap: 8px;
}

.device-btn {
    flex: 1;
    padding: 10px;
    background: #2A2A35;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.device-btn:hover {
    background: #3A3A45;
}

.device-btn.rename-btn {
    background: transparent;
    border: 1px solid #2A2A35;
}

.device-btn.delete-btn {
    color: #e74c3c;
}

.add-device-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3399FF, #0066FF);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0 12px;
}

.devices-counter {
    text-align: center;
    font-size: 13px;
    color: #A1A1AA;
}

/* ========== СЕКЦИЯ УСТРОЙСТВ ========== */
.devices-section {
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(20, 20, 31, 0.8), rgba(15, 15, 25, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(51, 153, 255, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.devices-section:hover {
    border-color: rgba(51, 153, 255, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.devices-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    transition: all 0.2s;
    background: rgba(51, 153, 255, 0.03);
}

.devices-header:hover {
    background: rgba(51, 153, 255, 0.08);
}

.devices-toggle-icon {
    font-size: 14px;
    color: #3399FF;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    text-align: center;
}

.devices-section.expanded .devices-toggle-icon {
    transform: rotate(90deg);
}

.devices-header span:last-child {
    flex: 1;
}

.devices-header .devices-count-badge {
    background: rgba(51, 153, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #3399FF;
}

.devices-content {
    padding: 0 18px 18px 18px;
    border-top: 1px solid rgba(42, 42, 53, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Карточка устройства */
.device-card {
    background: linear-gradient(135deg, rgba(26, 26, 37, 0.9), rgba(20, 20, 31, 0.95));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(42, 42, 53, 0.6);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.device-card:hover {
    border-color: rgba(51, 153, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.device-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.device-icon {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(51, 153, 255, 0.1);
    border-radius: 12px;
}

.device-name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    flex: 1;
    letter-spacing: -0.3px;
}

.device-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.6);
    border: 2px solid rgba(46, 204, 113, 0.3);
    animation: pulse 2s infinite;
}

.device-status.inactive {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
    border-color: rgba(231, 76, 60, 0.3);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.device-actions {
    display: flex;
    gap: 8px;
}

.device-btn {
    flex: 1;
    padding: 10px 8px;
    background: rgba(42, 42, 53, 0.6);
    border: 1px solid rgba(42, 42, 53, 0.8);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.device-btn:hover {
    background: rgba(51, 153, 255, 0.15);
    border-color: rgba(51, 153, 255, 0.4);
    transform: scale(1.02);
}

.device-btn:active {
    transform: scale(0.98);
}

.device-btn.rename-btn {
    background: transparent;
    border: 1px solid rgba(42, 42, 53, 0.8);
    flex: 0.5;
}

.device-btn.rename-btn:hover {
    background: rgba(255, 170, 51, 0.1);
    border-color: #FFAA33;
}

.device-btn.delete-btn {
    color: #e74c3c;
    flex: 0.5;
}

.device-btn.delete-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

/* Кнопка добавления устройства */
.add-device-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(51, 153, 255, 0.9), rgba(0, 102, 255, 0.9));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(51, 153, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-device-btn:hover {
    background: linear-gradient(135deg, #3399FF, #0066FF);
    box-shadow: 0 6px 16px rgba(51, 153, 255, 0.3);
    transform: translateY(-2px);
}

.add-device-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(51, 153, 255, 0.2);
}

.add-device-btn:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

/* Счётчик устройств */
.devices-counter {
    text-align: center;
    font-size: 13px;
    color: #A1A1AA;
    padding: 8px 0;
    border-top: 1px solid rgba(42, 42, 53, 0.3);
    margin-top: 8px;
}

.devices-counter span {
    color: #3399FF;
    font-weight: 600;
}

/* Пустое состояние */
.devices-empty {
    text-align: center;
    padding: 30px 20px;
    color: #A1A1AA;
    font-size: 14px;
}

.devices-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}