﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for easy theming */
:root {
    --primary-color: #00a6ad;
    --primary-hover: #008a91;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #00a6ad;
    
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-white: #1e2329;
    --bg-sidebar: #141921;
    
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    --border-color: #2d3748;
    --border-light: #374151;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Layout */
.page-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.sidebar-section {
    width: 260px;
    min-width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-white);
    overflow-y: hidden;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.main-section {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 6px;
}

.sidebar-branding {
    text-align: center;
    width: 100%;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 3px 0;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand span {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-brand i {
    font-size: 20px;
    color: var(--primary-color);
}

.user-info {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Убрали .user-avatar */

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text-white);
}

.user-email {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 6px;
    opacity: 0.8;
    word-break: break-all;
}

.user-balance {
    font-size: 11px;
    color: var(--text-light);
    padding: 10px 14px;
    margin: 10px 0;
    background: rgba(0, 166, 173, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 166, 173, 0.2);
}

.user-balance .balance-amount {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow: visible;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 14px;
}

.nav-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    margin: 16px 0;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary-color);
}

.user-balance-header {
    background-color: var(--bg-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.balance-amount {
    font-weight: 600;
    color: var(--success-color);
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stats-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 35, 41, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 166, 173, 0.3);
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(-5deg);
}

.stats-icon i {
    font-size: 28px;
    color: var(--text-white);
}

.stats-info {
    flex: 1;
}

.stats-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1;
}

.stats-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Earnings Info Banner */
.earnings-info-banner {
    background: linear-gradient(135deg, rgba(0, 166, 173, 0.15) 0%, rgba(0, 143, 149, 0.1) 100%);
    border: 1px solid rgba(0, 166, 173, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.earnings-info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00a6ad 0%, #00d4ff 50%, #00a6ad 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.earnings-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}

.earnings-banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00a6ad 0%, #008f95 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 166, 173, 0.4);
}

.earnings-banner-icon i {
    color: white;
    font-size: 20px;
}

.earnings-banner-text {
    flex: 1;
}

.earnings-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.earnings-banner-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 500;
}

.earnings-banner-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.earnings-banner-details i {
    color: #00d4ff;
    margin-right: 4px;
}

/* Transfer Amount Presets */
.preset-btn {
    transition: all 0.2s ease;
    border: none !important;
    outline: none !important;
}

.preset-btn:hover {
    background: rgba(0, 166, 173, 0.4) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.preset-btn:focus {
    box-shadow: 0 0 0 2px rgba(0, 166, 173, 0.5);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr; /* По умолчанию одна колонка */
    gap: 24px;
    margin-bottom: 32px;
}

/* Двухколоночная версия для страниц с сайдбаром */
.content-grid.two-column {
    grid-template-columns: 2fr 1fr;
}

/* На мобильных всегда одна колонка */
@media (max-width: 992px) {
    .content-grid.two-column {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px; /* Отступ между карточками */
}

.card:last-child {
    margin-bottom: 0; /* Убираем отступ у последней карточки */
}

.main-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 35, 41, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: var(--text-white);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
}

.main-card .card-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-card .card-header h5 {
    color: var(--text-white);
}

.card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color: var(--primary-color);
}

.card-body {
    padding: 24px;
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.info-item span {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* VPN Cards Grid - Новый дизайн (Тёмная тема) */
.vpn-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.vpn-mini-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 35, 41, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vpn-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vpn-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.vpn-mini-card:hover::before {
    opacity: 1;
}

.vpn-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.vpn-mini-card:hover .vpn-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.vpn-status-card .vpn-card-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.vpn-traffic-card .vpn-card-icon {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.vpn-devices-card .vpn-card-icon {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.vpn-countries-card .vpn-card-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.vpn-card-content {
    flex: 1;
}

.vpn-card-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.vpn-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    line-height: 1.2;
}

.device-count-big {
    font-size: 48px !important;
    font-weight: 800;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vpn-card-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.vpn-card-meta i {
    font-size: 12px;
    opacity: 0.7;
}

/* Progress Bar для трафика (Тёмная тема) */
.traffic-progress {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    position: relative;
}

.traffic-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.traffic-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.traffic-progress-success {
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
}

.traffic-progress-warning {
    background: linear-gradient(90deg, #FF9800 0%, #FFA726 100%);
}

.traffic-progress-danger {
    background: linear-gradient(90deg, #f44336 0%, #ef5350 100%);
}

.traffic-percentage {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: right;
}

/* Флаги стран Grid */
.countries-flags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 32px;
    line-height: 1;
    margin-top: 8px;
}

.countries-flags-grid span {
    transition: transform 0.2s ease;
    cursor: default;
}

.countries-flags-grid span:hover {
    transform: scale(1.3);
}

/* Дополнительная информация (Тёмная тема) */
.vpn-additional-info {
    background: linear-gradient(135deg, rgba(26, 31, 38, 0.8) 0%, rgba(30, 35, 41, 0.6) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row-label i {
    color: var(--primary-color);
    font-size: 16px;
}

.info-row-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

/* Старые стили - удалены, используем новые карточки */

/* ============================================ */
/* УНИВЕРСАЛЬНАЯ СИСТЕМА КАРТОЧЕК (В СТИЛЕ VPN) */
/* ============================================ */

/* Сетка для stat-карточек */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Современная stat-карточка */
.stat-card-modern {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 35, 41, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-card-modern:hover::before {
    opacity: 1;
}

.stat-card-modern .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.stat-card-modern:hover .stat-icon {
    transform: scale(1.1) rotate(-5deg);
}

.stat-card-modern .stat-content {
    flex: 1;
}

.stat-card-modern .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card-modern .stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Цветовые схемы для stat-карточек */
.stat-card-modern.stat-balance .stat-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.stat-card-modern.stat-referrals .stat-icon {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.stat-card-modern.stat-earnings .stat-icon {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.stat-card-modern.stat-info .stat-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Адаптация для старых stats-card */
.stats-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 35, 41, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.stats-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 166, 173, 0.3);
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(-5deg);
}

.stats-info {
    flex: 1;
}

.stats-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1;
}

.stats-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.device-count {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.countries-flags {
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 4px;
    text-align: center;
    padding: 12px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
}

/* Status Badge */
.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Цветные фоны для статусов */
.status-badge-активен,
.status-badge-активна,
.status-badge-active,
.status-активен,
.status-активна,
.status-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.status-badge-активен::before,
.status-badge-активна::before,
.status-badge-active::before,
.status-активен::before,
.status-активна::before,
.status-active::before {
    background-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    animation: pulse 2s infinite;
}

.status-badge-не-активен,
.status-badge-неактивен,
.status-badge-inactive,
.status-не-активен,
.status-неактивен,
.status-inactive {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.status-badge-не-активен::before,
.status-badge-неактивен::before,
.status-badge-inactive::before,
.status-не-активен::before,
.status-неактивен::before,
.status-inactive::before {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Истекшая подписка - оранжевый/желтый цвет */
.status-badge-expired,
.status-badge-истекла,
.status-expired,
.status-истекла {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25) 0%, rgba(249, 115, 22, 0.2) 100%);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.2);
}

.status-badge-expired::before,
.status-badge-истекла::before,
.status-expired::before,
.status-истекла::before {
    background-color: #fb923c;
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
    animation: pulse 2s infinite;
}

/* Трафик закончился - желтый цвет */
.status-badge-limited,
.status-badge-трафик_закончился,
.status-limited,
.status-трафик_закончился {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.2) 100%);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
}

.status-badge-limited::before,
.status-badge-трафик_закончился::before,
.status-limited::before,
.status-трафик_закончился::before {
    background-color: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
    animation: pulse 2s infinite;
}

/* Отключена - серый цвет */
.status-badge-disabled,
.status-badge-отключена,
.status-disabled,
.status-отключена {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.25) 0%, rgba(75, 85, 99, 0.2) 100%);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.status-badge-disabled::before,
.status-badge-отключена::before,
.status-disabled::before,
.status-отключена::before {
    background-color: #9ca3af;
    box-shadow: 0 0 8px rgba(107, 114, 128, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Subscription URL Section */
.subscription-url-section {
    margin-top: 24px;
    padding: 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.subscription-url-section label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-url-section label i {
    color: var(--primary-color);
}

.input-group {
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.form-control {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: var(--bg-secondary);
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    background-color: var(--bg-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    position: relative;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 166, 173, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    box-shadow: 0 8px 20px rgba(0, 166, 173, 0.5);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-outline-primary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-primary:hover {
    color: var(--text-white);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(0, 166, 173, 0.4);
}

.btn-outline-primary span,
.btn-outline-primary i {
    position: relative;
    z-index: 1;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-warning:hover::before {
    left: 100%;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-color) 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-danger:hover::before {
    left: 100%;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0284c7 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, var(--info-color) 100%);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn-outline-success:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-success:hover {
    color: var(--text-white);
    border-color: #059669;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline-success span,
.btn-outline-success i {
    position: relative;
    z-index: 1;
}

.btn-outline-warning {
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-warning::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn-outline-warning:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-warning:hover {
    color: var(--text-white);
    border-color: #d97706;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-outline-warning span,
.btn-outline-warning i {
    position: relative;
    z-index: 1;
}

.btn-outline-info {
    border: 2px solid var(--info-color);
    color: var(--info-color);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--info-color) 0%, #0284c7 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn-outline-info:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-info:hover {
    color: var(--text-white);
    border-color: #0284c7;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.btn-outline-info span,
.btn-outline-info i {
    position: relative;
    z-index: 1;
}

.btn-outline-danger {
    border: 2px solid rgba(239, 68, 68, 0.6);
    color: rgba(239, 68, 68, 0.85);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-danger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.2) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn-outline-danger:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-danger:hover {
    color: rgba(239, 68, 68, 0.95);
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-outline-danger span,
.btn-outline-danger i {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.5);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid rgba(108, 117, 125, 0.6);
    color: rgba(108, 117, 125, 0.9);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(90, 98, 104, 0.2) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn-outline-secondary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-secondary:hover {
    color: rgba(108, 117, 125, 1);
    border-color: rgba(108, 117, 125, 0.8);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

.btn-outline-secondary span,
.btn-outline-secondary i {
    position: relative;
    z-index: 1;
}

/* Маленькие кнопки */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.actions-grid .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
    text-align: left;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 14px;
}

.actions-grid .btn i {
    margin-right: 12px;
    width: 16px;
    font-size: 14px;
}

.actions-grid .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Payment History */
.payment-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-amount {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.payment-status {
    margin-top: 4px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 13px;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-info {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Status badges for different states */
.status-ожидание {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 35, 41, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 24px 20px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    overflow: hidden;
    min-height: 300px;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #00a6ad 0%, #00d4ff 50%, #00a6ad 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.pricing-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 166, 173, 0.3);
    border-color: rgba(0, 166, 173, 0.4);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.popular {
    border-color: rgba(0, 166, 173, 0.6);
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(0, 166, 173, 0.4), 0 0 20px rgba(0, 166, 173, 0.2);
    z-index: 2;
}

.pricing-card.popular::before {
    opacity: 1;
    height: 8px;
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 166, 173, 0.5), 0 0 30px rgba(0, 166, 173, 0.3);
}

.pricing-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 166, 173, 0.3), 0 16px 40px rgba(0, 166, 173, 0.4);
    transform: translateY(-4px);
}

.pricing-card.selected::before {
    opacity: 1;
    background: linear-gradient(90deg, #00ff87 0%, #00a6ad 50%, #00ff87 100%);
}

.pricing-card.disabled {
    opacity: 0.5;
    transform: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.pricing-card.disabled::before {
    display: none;
}

/* Стиль для карточки "Выгодно" (лучшее предложение) */
.pricing-card.best-value {
    border-color: rgba(245, 87, 108, 0.6);
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(245, 87, 108, 0.4), 0 0 20px rgba(245, 87, 108, 0.2);
    z-index: 2;
}

.pricing-card.best-value::before {
    opacity: 1;
    height: 8px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #f093fb 100%);
}

.pricing-card.best-value:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 24px 56px rgba(245, 87, 108, 0.5), 0 0 30px rgba(245, 87, 108, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5), 0 0 30px rgba(255, 107, 53, 0.3);
    z-index: 3;
    animation: pulse-badge 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse-badge {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.pricing-header {
    text-align: center;
    width: 100%;
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #00a6ad 0%, #00d4ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 166, 173, 0.3);
}

.price-currency {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-period {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-weight: 500;
}

.pricing-savings {
    margin-top: 12px;
    text-align: center;
}

.monthly-price {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    animation: pulse-savings 2s ease-in-out infinite;
}

.savings-badge i {
    font-size: 10px;
    animation: flame-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes pulse-savings {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes flame-flicker {
    0% { transform: rotate(-2deg) scale(1); }
    50% { transform: rotate(2deg) scale(1.1); }
    100% { transform: rotate(-1deg) scale(0.95); }
}

.pricing-features {
    margin-top: 28px;
    width: 100%;
    padding: 24px 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 1);
}

.feature i {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
    margin-top: 2px;
    filter: drop-shadow(0 0 6px currentColor);
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px currentColor);
}

.feature span {
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    color: #00a6ad;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.feature-item.featured {
    color: #ff6b35;
    font-weight: 600;
}

.feature-item.featured i {
    color: #ff6b35;
    animation: gift-bounce 2s ease-in-out infinite;
}

@keyframes gift-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-3deg); }
    75% { transform: scale(1.1) rotate(3deg); }
}

.urgency-banner {
    position: absolute;
    top: 16px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 6px 16px 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    animation: urgency-pulse 2s ease-in-out infinite;
}

.urgency-banner i {
    margin-right: 4px;
    animation: tick-tock 1s ease-in-out infinite alternate;
}

@keyframes urgency-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 4px 16px rgba(231, 76, 60, 0.5); }
}

@keyframes tick-tock {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

.popularity-indicator {
    margin-top: 16px;
    width: 100%;
}

.popularity-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 8px;
}

.popularity-text i {
    animation: fire-glow 2s ease-in-out infinite;
}

.popularity-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.popularity-fill {
    width: 73%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    background-size: 200% 100%;
    animation: progress-flow 3s ease-in-out infinite;
    border-radius: 3px;
}

@keyframes fire-glow {
    0%, 100% { text-shadow: 0 0 4px rgba(255, 107, 53, 0.5); }
    50% { text-shadow: 0 0 8px rgba(255, 107, 53, 0.8), 0 0 12px rgba(255, 107, 53, 0.4); }
}

@keyframes progress-flow {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    font-weight: 500;
}

.page-subtitle .highlight {
    color: #00d4ff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
}

.page-subtitle .emoji {
    display: inline-block;
    animation: bounce-emoji 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }
    50% { text-shadow: 0 0 16px rgba(0, 212, 255, 0.8), 0 0 24px rgba(0, 212, 255, 0.4); }
}

@keyframes bounce-emoji {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 180px;
}

/* Earnings Info */
.earning-info {
    text-align: center;
    padding: 16px 0;
}

.earning-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.earning-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Referrals List */
.referrals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    transition: all 0.2s;
}

.referral-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.referral-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
}

.referral-info {
    display: flex;
    flex-direction: column;
}

.referral-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.referral-id {
    font-size: 12px;
    color: var(--text-secondary);
}

.referral-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.referral-earned {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.referral-earned strong {
    color: var(--success-color);
    font-size: 14px;
}

.referral-earned small {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Benefit badges */
.referral-benefits {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.benefit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Auth Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    height: 48px;
    width: auto;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.auth-form {
    margin-bottom: 24px;
}

.forgot-password-link {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.forgot-password-link a:hover {
    color: var(--primary-color);
}

.auth-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.auth-links p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.auth-links a:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s, visibility 0.3s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-svg {
    animation: rotate 1s linear infinite;
}

.loader-bg {
    opacity: 0.2;
}

.loader-fg {
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: progress 1.5s ease-in-out infinite;
}

.loader-text {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        stroke-dashoffset: 176;
    }
    50% {
        stroke-dashoffset: 44;
    }
    100% {
        stroke-dashoffset: 176;
    }
}

/* Input group for password toggle */
.input-group {
    position: relative;
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    flex: 1;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    z-index: 2;
}

.input-group-text {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    min-width: 48px;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.input-group-text:hover {
    background-color: var(--bg-secondary);
}

.input-group-text:active {
    transform: scale(0.95);
}

.input-group-text i {
    color: var(--text-primary);
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--primary-color);
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    margin: 0;
}

.input-group .btn:hover {
    transform: none;
}

.input-group .btn-outline-primary {
    border-color: var(--border-color);
}

.input-group .btn-outline-primary:hover {
    border-color: var(--primary-color);
}

/* Tablet - 768px to 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
    .vpn-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .vpn-mini-card {
        padding: 22px;
    }

    .vpn-card-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .vpn-card-value {
        font-size: 22px;
    }

    .device-count-big {
        font-size: 42px !important;
    }
}

/* Mobile - up to 768px */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px 20px;
        margin: 0 12px;
        max-width: 100%;
    }
    
    .auth-logo img {
        height: 40px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    /* Мобильная версия ключа подключения */
    .subscription-url-section .input-group {
        display: none !important;
    }
    
    .subscription-key-display {
        display: block !important;
        background: rgba(0, 166, 173, 0.1);
        border: 1px solid rgba(0, 166, 173, 0.3);
        border-radius: 8px;
        padding: 12px;
        margin: 8px 0;
        font-size: 11px;
        font-family: 'Courier New', monospace;
        color: #00d4ff;
        word-break: break-all;
        line-height: 1.4;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .subscription-key-display:active {
        background: rgba(0, 166, 173, 0.2);
        transform: scale(0.98);
    }
    
    .btn-copy-mobile {
        display: block !important;
        width: 100%;
        margin-top: 8px;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Улучшение полей ввода на мобильных */
    .form-control {
        font-size: 16px !important; /* Предотвращает зум в iOS */
        padding: 12px 14px;
        min-height: 48px;
    }
    
    .input-group .form-control {
        padding-right: 48px;
    }
    
    .input-group-text {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .btn-lg {
        font-size: 15px;
        padding: 14px 24px;
        min-height: 52px;
    }
    
    .alert {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .auth-links {
        padding-top: 16px;
    }
    
    .auth-links p {
        font-size: 13px;
    }
    
    .auth-links a {
        font-size: 14px;
    }
    
    .forgot-password-link a {
        font-size: 12px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pricing-card {
        min-height: 280px !important;
        padding: 20px 16px 20px !important;
    }
    
    .pricing-header {
        margin-bottom: 12px;
    }
    
    .pricing-title {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .price-amount {
        font-size: 32px !important;
    }
    
    .price-currency {
        font-size: 18px !important;
    }
    
    .pricing-savings {
        margin-top: 8px !important;
    }
    
    .monthly-price {
        font-size: 12px !important;
    }
    
    .pricing-card .btn {
        margin-top: 12px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        min-width: 100%;
    }
    
    .referral-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .referral-stats {
        align-items: flex-start;
        width: 100%;
    }
    
    .referral-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile adaptations for subscription URL */
    .subscription-url-section {
        padding: 12px;
        margin-top: 16px;
    }
    
    .subscription-url-section label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .input-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        font-size: 12px;
        padding: 10px 12px;
        min-width: 0;
        flex: 1 1 auto;
        max-width: 100%;
    }
    
    .input-group .btn {
        padding: 10px 16px;
        min-width: auto;
        white-space: nowrap;
    }
    
    /* Улучшенные стили для кнопок действий */
    .actions-grid {
        gap: 10px;
    }
    
    .actions-grid .btn {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* VPN Cards Grid - Mobile */
    .vpn-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }

    .vpn-mini-card {
        padding: 18px;
        border-radius: 14px;
        gap: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .vpn-card-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .vpn-card-content {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    
    .vpn-card-label {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .vpn-card-value {
        font-size: 20px;
        margin-bottom: 8px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
        gap: 5px;
        white-space: nowrap;
        display: inline-flex;
    }
    
    .status-badge::before {
        width: 6px;
        height: 6px;
        flex-shrink: 0;
    }
    
    .vpn-card-meta {
        font-size: 11px;
        margin-top: 8px;
        flex-wrap: wrap;
        display: flex;
        gap: 4px;
    }
    
    .device-count-big {
        font-size: 32px !important;
    }
    
    .traffic-progress {
        height: 6px;
        margin-top: 10px;
    }
    
    .traffic-percentage {
        font-size: 11px;
        margin-top: 6px;
        text-align: left;
    }
    
    .countries-flags-grid {
        font-size: 26px;
        gap: 6px;
        margin-top: 6px;
        line-height: 1.2;
    }
    
    .traffic-progress {
        height: 6px;
        margin-top: 10px;
    }
    
    .traffic-percentage {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .vpn-additional-info {
        padding: 14px 16px;
        margin-top: 16px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .info-row-label {
        font-size: 12px;
    }

    .info-row-value {
        font-size: 13px;
        word-break: break-word;
    }
    
    .subscription-url-section {
        margin-top: 16px;
    }
    
    .subscription-url-section label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .subscription-url-section .form-control {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .subscription-url-section .btn {
        padding: 10px 14px;
    }
    
    .vpn-card-meta {
        font-size: 12px;
    }

    .vpn-card-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 12px;
    }

    .vpn-card-value {
        font-size: 20px;
    }

    .device-count-big {
        font-size: 36px !important;
    }

    .countries-flags-grid {
        font-size: 28px;
        gap: 6px;
    }

    .vpn-additional-info {
        padding: 14px 16px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .info-row-value {
        font-size: 13px;
    }
}

/* Extra Small Mobile - up to 480px */
@media (max-width: 480px) {
    .auth-container {
        padding: 12px;
    }
    
    .auth-card {
        padding: 20px 16px;
        margin: 0 8px;
        border-radius: 12px;
    }
    
    .auth-logo img {
        height: 36px;
    }
    
    .auth-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .auth-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    /* Оптимизация полей для маленьких экранов */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        font-size: 16px !important;
        padding: 11px 12px;
        min-height: 46px;
        border-radius: 8px;
    }
    
    .input-group .form-control {
        padding-right: 46px;
    }
    
    .input-group-text {
        min-width: 42px;
        min-height: 42px;
        font-size: 16px;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .form-label i {
        font-size: 11px;
    }
    
    .btn-lg {
        font-size: 14px;
        padding: 13px 20px;
        min-height: 50px;
        border-radius: 10px;
    }
    
    .alert {
        font-size: 12px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .alert i {
        font-size: 14px;
    }
    
    .auth-links {
        padding-top: 14px;
        margin-top: 14px;
    }
    
    .auth-links p {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .auth-links a {
        font-size: 13px;
        gap: 4px;
    }
    
    .forgot-password-link {
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    .forgot-password-link a {
        font-size: 11px;
    }
    
    .vpn-cards-grid {
        gap: 12px;
    }

    .vpn-mini-card {
        padding: 14px;
        border-radius: 12px;
    }

    .vpn-card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-right: 10px;
    }

    .vpn-card-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .vpn-card-value {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 9px;
        gap: 3px;
    }
    
    .status-badge::before {
        width: 5px;
        height: 5px;
    }

    .device-count-big {
        font-size: 32px !important;
    }

    .vpn-card-meta {
        font-size: 10px;
        margin-top: 4px;
    }

    .countries-flags-grid {
        font-size: 20px;
        gap: 3px;
    }

    .traffic-progress {
        height: 5px;
        margin-top: 8px;
    }

    .traffic-percentage {
        font-size: 10px;
        margin-top: 4px;
    }

    .vpn-additional-info {
        padding: 12px 14px;
        margin-top: 14px;
    }

    .info-row {
        padding: 10px 0;
    }

    .info-row-label {
        font-size: 11px;
    }

    .info-row-value {
        font-size: 12px;
    }

    .subscription-url-section label {
        font-size: 11px;
    }
    
    .subscription-url-section .form-control {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .subscription-url-section .btn {
        padding: 8px 12px;
    }

    .card-header h5 {
        font-size: 14px;
    }

    .btn-sm {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.menu-toggle-btn {
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.menu-toggle-btn i {
    font-size: 18px;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Предотвращаем горизонтальный скролл */
    body {
        overflow-x: hidden;
    }
    
    .page-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar-section {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        width: 280px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .sidebar-section.show {
        transform: translateX(0);
    }
    
    .main-section {
        margin-left: 0;
        padding: 80px 16px 24px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .content-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 16px;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }
    
    /* Карточки не должны выходить за края */
    .card, .main-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .user-balance-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* VPN Info Sections Mobile */
    .vpn-status-section,
    .vpn-traffic-section,
    .vpn-connection-section,
    .vpn-countries-section {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }
    
    .info-item span {
        text-align: left;
        width: 100%;
    }
    
    .countries-flags {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
    }
    
    .stats-icon i {
        font-size: 18px;
    }
    
    .stats-number {
        font-size: 18px;
    }
    
    .stats-label {
        font-size: 11px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* VPN Cards для мобильных */
    .vpn-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .vpn-mini-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .card-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .card-header h5 {
        font-size: 15px;
        flex: 1 1 100%;
    }
    
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header .btn-sm {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 70px 12px 12px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stats-card {
        padding: 14px;
        gap: 12px;
    }
    
    .stats-icon {
        width: 36px;
        height: 36px;
    }
    
    .stats-icon i {
        font-size: 16px;
    }
    
    .stats-number {
        font-size: 16px;
    }
    
    .stats-label {
        font-size: 10px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .card-header h5 {
        font-size: 14px;
        width: 100%;
    }
    
    .card-header .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .card-header .btn i {
        margin-right: 6px;
    }
    
    /* На очень узких экранах показываем только иконку */
    @media (max-width: 360px) {
        .card-header .btn .btn-text {
            display: none;
        }
        
        .card-header .btn {
            width: auto;
            align-self: center;
            padding: 10px 14px;
        }
        
        .card-header .btn i {
            margin-right: 0;
        }
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .info-item label {
        font-size: 12px;
    }
    
    .info-item span {
        font-size: 12px;
    }
    
    .countries-flags {
        font-size: 18px;
        letter-spacing: 2px;
        padding: 8px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .actions-grid .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .mobile-menu-toggle {
        top: 16px;
        left: 16px;
    }
    
    .menu-toggle-btn {
        width: 42px;
        height: 42px;
    }
    
    .menu-toggle-btn i {
        font-size: 16px;
    }
}

/* Дополнительные улучшения для лучшего отображения */
.user-balance-header {
    font-size: 14px;
    font-weight: 500;
}

.balance-label {
    color: var(--text-secondary);
}

.balance-amount {
    color: var(--success-color) !important;
    font-weight: 600;
}

.stats-number {
    color: var(--text-primary);
    font-weight: 600;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.subscription-url-section label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

/* Дополнительные улучшения для лучшего отображения */
.user-balance-header {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.balance-amount {
    color: var(--success-color) !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.stats-number {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

.subscription-url-section label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-url-section label i {
    color: var(--primary-color);
}

/* Улучшенные цвета для различных элементов */
.device-count {
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

/* Улучшенный внешний вид карточек */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-white) 100%);
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Better focus states */
.form-control:focus,
.btn:focus,
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Scrollbar styling for better UX */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Animations */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.nav-link {
    transition: all 0.2s ease;
}

/* Убраны hover эффекты для минимализма */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Fade in animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.stats-card {
    animation: fadeIn 0.5s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.15s; }
.stats-card:nth-child(3) { animation-delay: 0.2s; }
.stats-card:nth-child(4) { animation-delay: 0.25s; }

/* Стили для сообщений */
.alert {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    border: none;
    font-size: 14px;
}

.alert-info {
    background-color: rgba(0, 166, 173, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Стили для сортировки рефералов */
.sort-controls {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sort-controls label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-buttons .btn-sm {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.sort-buttons .btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.sort-buttons .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.sort-buttons .btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
    .sort-buttons .btn-sm {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .user-balance-header {
        font-size: 13px;
    }
    
    .balance-amount {
        font-size: 15px;
    }
    
    .stats-number {
        font-size: 16px;
    }
    
    .stats-label {
        font-size: 11px;
    }
    
    /* Убираем hover эффекты на мобильных */
    .stats-card:hover,
    .card:hover,
    .vpn-status-section:hover,
    .vpn-traffic-section:hover,
    .vpn-connection-section:hover,
    .vpn-countries-section:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .user-balance-header {
        font-size: 12px;
    }
    
    .balance-amount {
        font-size: 14px;
    }
}
/* ====================================
   Install VPN Page Styles
   ==================================== */

/* Devices Grid */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.device-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    user-select: none;
}

.device-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

.device-card.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 166, 173, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 166, 173, 0.1);
}

.device-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.device-card h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.device-os {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Instruction Steps */
.instruction-steps {
    margin: 24px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.instruction-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* Android TV Methods */
.tv-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tv-method-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.tv-method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tv-method-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tv-method-card h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tv-method-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 40px;
}

/* Input Group for TV Code */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
}

/* Mobile Responsive for Install VPN Page */
@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .device-card {
        padding: 16px;
    }
    
    .device-icon {
        font-size: 36px;
    }
    
    .instruction-footer {
        flex-direction: column;
    }
    
    .instruction-footer .btn {
        width: 100%;
    }
    
    .tv-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .btn {
        width: 100%;
    }
}

/* ====================================
   VPN Info Blocks - Full Width Fix
   ==================================== */

/* �������� ������ VPN */
.vpn-status-section,
.vpn-traffic-section,
.vpn-connection-section,
.vpn-countries-section {
    width: 100%;
    margin-bottom: 24px;
}

/* ����� ���������� �� ��� ������ */
.info-block {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ��������� �������� ���������� */
.info-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.info-item label {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.info-item label i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.info-item span {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-wrap: break-word;
}

/* Section subtitles */
.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle i {
    color: var(--primary-color);
}

/* Mobile responsive для info blocks */
@media (max-width: 768px) {
    .info-block {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .info-item label {
        font-size: 13px;
    }
    
    .info-item span {
        text-align: left;
        font-size: 14px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vpn-status-section,
    .vpn-traffic-section,
    .vpn-connection-section,
    .vpn-countries-section {
        margin-bottom: 16px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.text-muted:hover {
    color: var(--text-primary);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* Notifications Bell - под надписью "Личный кабинет" */
.notifications-bell {
    position: relative;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 50px;
}

.notifications-bell:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 173, 0.2);
}

.notifications-bell i {
    font-size: 20px;
    color: var(--text-primary);
    pointer-events: none;
}

.notifications-bell:hover i {
    color: var(--primary-color);
}

.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff4444 0%, #ff0000 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Notifications Modal */
.notifications-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.notifications-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notifications-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.notifications-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background: rgba(0, 166, 173, 0.1);
}

.close-notifications-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.close-notifications-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notifications-body {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(0, 166, 173, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.notification-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Кнопки действий над уведомлением */
.notification-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notification-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notification-action-btn:active {
    transform: translateY(0);
}

/* Кнопка "Прочитать" */
.mark-read-btn {
    color: var(--primary-color);
    border-color: rgba(0, 166, 173, 0.3);
}

.mark-read-btn:hover {
    background: rgba(0, 166, 173, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Кнопка "Удалить" */
.delete-btn {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: #ff4444;
    color: #ff4444;
}

.notification-delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.notification-delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

.notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.notifications-empty i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.notifications-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.load-more-notifications-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.load-more-notifications-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .notifications-bell {
        padding: 8px;
        margin-top: 6px;
    }
    
    .notifications-bell i {
        font-size: 18px;
    }
    
    .notifications-badge {
        top: 2px;
        right: 2px;
        font-size: 9px;
        min-width: 16px;
        height: 16px;
    }
    
    .notifications-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .notifications-header {
        padding: 16px;
    }
    
    .notifications-header h3 {
        font-size: 18px;
    }
    
    .mark-all-read-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Адаптивные кнопки для мобильных */
    .notification-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .notification-action-btn .btn-text {
        display: inline;
    }
    
    .notification-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО УСТРОЙСТВ (ТЕМНАЯ ТЕМА) ===== */

/* Основной контейнер модального окна */
.devices-modal-custom {
    border-radius: 16px;
    border: 1px solid #2d3748;
    background: #1a1f26;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Заголовок модального окна */
.devices-modal-header {
    background: linear-gradient(135deg, #00a6ad 0%, #008a91 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.devices-modal-header .modal-title {
    font-weight: 600;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.devices-modal-header .btn-close-white {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Тело модального окна */
.devices-modal-body {
    padding: 1.5rem 2rem;
    background: #0f1419;
    max-height: 70vh;
    overflow-y: auto;
}

/* Кастомный скроллбар */
.devices-modal-body::-webkit-scrollbar {
    width: 8px;
}

.devices-modal-body::-webkit-scrollbar-track {
    background: #1a1f26;
    border-radius: 4px;
}

.devices-modal-body::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}

.devices-modal-body::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Информационный блок */
.devices-info-box {
    background: linear-gradient(135deg, rgba(0, 166, 173, 0.1) 0%, rgba(0, 138, 145, 0.1) 100%);
    border-left: 4px solid #00a6ad;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Счетчик устройств */
.devices-count-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00a6ad 0%, #008a91 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Кнопка "Удалить все" */
.btn-delete-all {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-all:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-delete-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Карточка устройства */
.device-card {
    background: #1e2329;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.device-card:hover {
    border-color: #00a6ad;
    box-shadow: 0 6px 20px rgba(0, 166, 173, 0.2);
    transform: translateY(-2px);
}

/* Заголовок карточки устройства */
.device-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2d3748;
}

.device-platform {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.device-platform i {
    font-size: 1.8rem;
}

.device-platform-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* Цвета иконок платформ */
.platform-android {
    color: #3DDC84;
}

.platform-apple {
    color: #ffffff;
}

.platform-windows {
    color: #0078D4;
}

.platform-linux {
    color: #FCC624;
}

.platform-other {
    color: #9ca3af;
}

/* Кнопка удаления устройства */
.device-delete-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.device-delete-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Тело карточки устройства */
.device-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.device-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.device-info-row i {
    width: 20px;
    text-align: center;
    color: #00a6ad;
}

.device-info-label {
    font-weight: 500;
    min-width: 100px;
    color: #9ca3af;
}

.device-info-value {
    color: #e5e7eb;
    flex: 1;
}

.device-info-value code {
    background: #0f1419;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #00a6ad;
    border: 1px solid #2d3748;
}

/* Блок ошибки */
.devices-error-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
}

/* Футер модального окна */
.devices-modal-footer {
    background: #1a1f26;
    border-top: 1px solid #2d3748;
    padding: 1rem 2rem;
}

.devices-modal-footer .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.devices-modal-footer .btn-secondary {
    background: #374151;
    border: none;
    color: #e5e7eb;
}

.devices-modal-footer .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.devices-modal-footer .btn-primary {
    background: linear-gradient(135deg, #00a6ad 0%, #008a91 100%);
    border: none;
    color: white;
}

.devices-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 173, 0.4);
}

/* Spinner загрузки */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.spinner-border.text-primary {
    border-color: rgba(0, 166, 173, 0.2);
    border-top-color: #00a6ad;
}

/* Пустое состояние */
#devices-empty {
    padding: 3rem 1rem;
    text-align: center;
}

#devices-empty i {
    opacity: 0.2;
    color: #00a6ad;
}

#devices-empty p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .devices-modal-header,
    .devices-modal-body,
    .devices-modal-footer {
        padding: 1rem;
    }
    
    .device-card {
        padding: 1rem;
    }
    
    .device-platform i {
        font-size: 1.5rem;
    }
    
    .device-platform-name {
        font-size: 1rem;
    }
    
    .device-info-label {
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .device-info-value {
        font-size: 0.85rem;
    }
}

/* Кастомное уведомление об успехе (темная тема) */
.custom-success-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 10000;
    
    display: flex;
    align-items: center;
    gap: 12px;
    
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    
    font-size: 15px;
    font-weight: 500;
    
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.custom-success-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.custom-success-alert i.fa-check-circle {
    font-size: 20px;
    color: white;
}

.custom-success-alert span {
    flex: 1;
    color: white;
}

.custom-alert-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-alert-close i {
    font-size: 14px;
}

/* Адаптивность для уведомления */
@media (max-width: 768px) {
    .custom-success-alert {
        left: 10px;
        right: 10px;
        transform: none;
        max-width: calc(100% - 20px);
    }
    
    .custom-success-alert.show {
        transform: none;
    }
}

/* Кнопка добавления трафика в карточке */
.add-traffic-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.add-traffic-btn:hover {
    background: var(--text-secondary);
    color: var(--card-bg);
    transform: translateY(-1px);
    text-decoration: none;
}

.add-traffic-btn i {
    font-size: 14px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .add-traffic-btn {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
        justify-content: center;
    }
}
