/* ==========================================================================
   СОДЕРЖАНИЕ:
   1. Переменные и конфигурация
   2. Базовые стили
   3. Шапка и навигация
   4. Профиль и пользовательские настройки
   5. Компоненты (карточки, кнопки, табы)
   6. Формы и интерактивные элементы
   7. Анимации и эффекты
   8. Утилиты и вспомогательные классы
   9. Медиа-запросы
   10. Страницы администратора
   11. Страницы eSIM
   12. Страница оплаты
   13. Страница тарифов
   14. Страница промокодов
   15. Компоненты интерфейса (баннеры, уведомления)
   ========================================================================== */

/* ==========================================================================
   1. Переменные и конфигурация
   ========================================================================== */

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ============================================================================
   🏝️ TROPICAL BREEZE THEME - Светлая тропическая тема
   ============================================================================ */
:root {
    /* ========== ЦВЕТОВАЯ ПАЛИТРА ========== */
    
    /* Фоновые цвета */
    --bg-main: #FEFEFE;                    /* Основной - чистый белый */
    --bg-secondary: #F8F9FA;               /* Вторичный - светло-серый */
    --bg-accent: #FFF4E6;                  /* Акцентный - абрикосовый */
    --bg-card: #FFFFFF;                    /* Карточки - белоснежный */
    
    /* Оранжевая палитра */
    --orange-main: #FF9A00;                /* Основной - сочный оранжевый */
    --orange-light: #FFB84D;               /* Светлый - янтарный */
    --orange-dark: #FFA726;                /* Темный - золотой */
    --orange-pale: #FFF7ED;                /* Бледный - для фонов */
    
    /* Бирюзовая/голубая палитра */
    --cyan-main: #00BCD4;                  /* Основной - яркая бирюза */
    --cyan-light: #4DD0E1;                 /* Светлый - небесный */
    --cyan-dark: #0097A7;                  /* Темный - глубокий */
    --cyan-pale: #E0F7FA;                  /* Бледный - для фонов */
    
    /* Текстовые цвета */
    --text-main: #212121;                  /* Основной текст - черный */
    --text-secondary: #616161;             /* Вторичный - серый */
    --text-muted: #9E9E9E;                 /* Приглушенный - светло-серый */
    --text-white: #FFFFFF;                 /* Белый текст */
    
    /* Границы и разделители */
    --border-main: #EEEEEE;                /* Основная граница */
    --border-light: #F5F5F5;               /* Светлая граница */
    --border-accent: rgba(255, 154, 0, 0.2); /* Акцентная оранжевая */
    
    /* ========== ГРАДИЕНТЫ ========== */
    --primary-gradient: linear-gradient(135deg, #FF9A00 0%, #00BCD4 100%);
    --gradient-reverse: linear-gradient(135deg, #00BCD4 0%, #FF9A00 100%);
    --gradient-orange: linear-gradient(135deg, #FFB84D 0%, #FF9A00 100%);
    --gradient-cyan: linear-gradient(135deg, #4DD0E1 0%, #00BCD4 100%);
    --gradient-soft: linear-gradient(180deg, #FEFEFE 0%, #F8F9FA 100%);
    --card-gradient: linear-gradient(145deg, #FFFFFF, #FFF4E6);
    
    /* ========== СВЕЧЕНИЯ (GLOW EFFECTS) ========== */
    --glow-orange: 0 8px 24px rgba(255, 154, 0, 0.3);
    --glow-orange-strong: 0 8px 32px rgba(255, 154, 0, 0.5);
    --glow-cyan: 0 8px 24px rgba(0, 188, 212, 0.3);
    --glow-cyan-strong: 0 8px 32px rgba(0, 188, 212, 0.5);
    --glow-mixed: 0 8px 32px rgba(255, 154, 0, 0.25), 
                  0 8px 32px rgba(0, 188, 212, 0.25);
    --glow-white: 0 4px 16px rgba(255, 255, 255, 0.8);
    
    /* ========== ОБРАТНАЯ СОВМЕСТИМОСТЬ ========== */
    --primary-color: var(--orange-main);
    --secondary-color: var(--cyan-main);
    --accent-color: var(--orange-main);
    --accent-color-light: var(--orange-light);
    --accent-color-dark: var(--orange-dark);
    --text-color: var(--text-main);
    --text-secondary: var(--text-secondary);
    --dark-bg: var(--bg-main);
    --card-bg: var(--bg-card);
    
    /* Статусные цвета */
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: var(--orange-main);
    --loading-color: var(--cyan-main);
    
    /* RGB версии для удобства использования в rgba() */
    --accent-rgb: 73, 136, 248;
    --warning-rgb: 255, 149, 0;
    --success-rgb: 34, 197, 94;
    --error-rgb: 239, 68, 68;
    
    /* Границы */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Отступы */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Эффекты */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --shadow-default: 0 4px 12px var(--shadow-color);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Темизация */
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--card-bg);
    --bg-accent-soft: rgba(47, 56, 115, 0.6);
    
    /* z-индексы */
    --z-base: 1;
    --z-content: 10;
    --z-nav: 9999; /* Максимальный z-index для навигации */
    --z-banners: 90;
    --z-modals: 500;
    --z-tooltips: 200;
    --z-notifications: 300;
}

/* ==========================================================================
   2. Базовые стили
   ========================================================================== */

/* Нормализация */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Отключение скроллбара */
::-webkit-scrollbar {
    width: 0;
}

body {
    font-family: 'Merriweather', sans-serif;
    font-weight: 400; /* Уменьшена жирность для светлой темы */
    background: var(--gradient-soft); /* Мягкий градиент фона */
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: 0; /* Убрано, чтобы не перекрывать навигацию */
    overflow-y: auto;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    position: relative;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md);
    box-sizing: border-box;
    position: relative;
    height: auto;
    min-height: 80vh;
    display: flex;
    padding-top: 70px;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    padding-bottom: 100px; /* Увеличено для навигации */
}

/* Общие стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Comfortaa', serif;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(24px, 5vw, 32px);
    margin: var(--spacing-md) 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

h2 {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--text-color);
}

h3 {
    font-size: clamp(18px, 3.5vw, 24px);
    color: var(--text-color);
}

/* ==========================================================================
   3. Шапка и навигация
   ========================================================================== */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.header-icon {
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    background-size: cover;
    display: inline-block;
    margin-bottom: 5px;
    position: relative;
    background-color: #ccc;
}

.header-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #D4009F, #8C3FAD, #6D00FA);
    z-index: -1;
    padding: 3px;
}

.header-title {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: clamp(16px, 5vw, 20px);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: background-color var(--transition-normal);
    text-align: center;
}

.header-title:active {
    background-color: var(--tg-theme-hover-color, #3c3c3c);
}

/* ============================================================================
   🔮 НАВИГАЦИЯ - СТЕКЛЯННЫЙ ЭФФЕКТ (GLASSMORPHISM)
   ============================================================================ */
.navigation {
    position: fixed !important; /* ВСЕГДА закреплено внизу экрана! */
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 94%;
    max-width: 600px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    
    /* 🔮 Стеклянный эффект */
    background: rgba(255, 255, 255, 0.75) !important; /* Полупрозрачный белый */
    backdrop-filter: blur(20px) saturate(180%); /* Размытие + насыщенность */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Тени и границы */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),          /* Основная тень */
        0 2px 8px rgba(0, 0, 0, 0.04),           /* Внутренняя тень */
        inset 0 1px 0 rgba(255, 255, 255, 0.9); /* Блик сверху */
    border: 1px solid rgba(255, 255, 255, 0.5);  /* Полупрозрачная граница */
    border-radius: 20px; /* Увеличено для стеклянного эффекта */
    
    /* Градиентная линия-индикатор сверху */
    position: relative;
    overflow: visible;
    
    z-index: var(--z-nav);
    padding: 14px 0;
    height: auto;
    min-height: 68px;
    max-height: 72px;
    
    transition: transform var(--transition-normal), 
                opacity var(--transition-normal),
                box-shadow 0.3s ease;
}

/* Градиентная линия-индикатор сверху меню */
.navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 0 0 20px 20px;
    opacity: 0.8;
    box-shadow: var(--glow-mixed);
}

.navigation a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    width: 20%;
    max-width: 20%;
    text-align: center;
    padding: 4px 2px; /* Добавлен padding для лучшего центрирования */
    margin: 0;
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible; /* Изменено для корректного отображения индикатора */
    min-height: 56px; /* Минимальная высота для стабильности */
    gap: 4px; /* Расстояние между иконкой и текстом */
}

.navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.navigation a:active::before {
    opacity: 1;
    transform: scale(1);
}

.navigation a div,
.navigation a svg {
    transition: all var(--transition-normal);
    z-index: 1;
    flex-shrink: 0; /* Предотвращает сжатие иконок */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Фиксированная ширина для единообразия */
    height: 32px; /* Фиксированная высота для единообразия */
}

/* ========== ИКОНКИ НАВИГАЦИИ ========== */
.navigation a svg path {
    fill: var(--text-muted); /* Приглушенный серый для неактивных */
    transition: fill var(--transition-normal), 
                stroke var(--transition-normal),
                filter 0.3s ease;
}

.navigation a svg rect,
.navigation a svg line {
    stroke: var(--text-muted);
    transition: stroke var(--transition-normal), filter 0.3s ease;
}

/* ========== АКТИВНЫЙ ЭЛЕМЕНТ НАВИГАЦИИ ========== */
.navigation a.active {
    color: var(--orange-main);
    position: relative;
}

/* Индикатор внизу активного элемента */
.navigation a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px 4px 0 0;
    box-shadow: var(--glow-mixed);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Цветное свечение вокруг активного элемента */
.navigation a.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(255, 154, 0, 0.15) 0%, 
        rgba(0, 188, 212, 0.1) 50%,
        transparent 70%);
    border-radius: 12px;
    z-index: -1;
    animation: colorPulse 3s ease-in-out infinite;
}

/* Активные иконки становятся цветными */
.navigation a.active svg path,
.navigation a.active div svg path {
    fill: var(--orange-main);
    filter: drop-shadow(0 2px 4px rgba(255, 154, 0, 0.3));
}

.navigation a.active svg rect,
.navigation a.active svg line {
    stroke: var(--cyan-main);
    filter: drop-shadow(0 2px 4px rgba(0, 188, 212, 0.3));
}

/* ========== HOVER ЭФФЕКТЫ ========== */
.navigation a:hover svg rect,
.navigation a:hover svg line {
    stroke: var(--cyan-light);
}

.navigation a:hover svg path {
    fill: var(--orange-light);
    filter: drop-shadow(0 2px 6px rgba(255, 154, 0, 0.4));
}

.navigation span {
    font-size: 11px; /* Немного уменьшен для лучшего размещения */
    font-weight: 500;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2; /* Добавлена высота строки */
    letter-spacing: 0.01em; /* Небольшое расстояние между буквами */
    max-width: 100%; /* Гарантирует, что текст не выходит за границы */
}

/* Класс для скрытия навигации */
.navigation-hidden {
    transform: translate(-50%, 100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform var(--transition-normal), opacity var(--transition-normal) !important;
}

/* ==========================================================================
   4. Профиль и пользовательские настройки
   ========================================================================== */

/* ============================================================================
   👤 ПРОФИЛЬ - СВЕТЛАЯ ТЕМА
   ============================================================================ */
.profile {
    position: relative;
    background: var(--bg-card); /* Белый фон */
    border: 1px solid var(--border-main);
    padding: 0; /* Убираем padding, добавим в header */
    margin-bottom: clamp(15px, 4vw, 20px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Для красивого header */
}

/* Оранжево-бирюзовый header профиля */
.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px; /* Увеличено для аватара + padding */
    background: var(--primary-gradient);
    z-index: 0;
    box-shadow: var(--glow-mixed);
}

.profile-header {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 20px clamp(15px, 4vw, 20px) 15px;
    margin-bottom: 0;
    min-height: 110px; /* Соответствует высоте ::before */
}

.profile-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: clamp(8px, 2vw, 12px);
    z-index: 1;
    padding: 20px clamp(15px, 4vw, 20px);
    background: var(--bg-card);
}

.profile-info-row {
    display: flex; 
    flex-direction: row; /* Горизонтальное расположение */
    gap: clamp(12px, 3vw, 18px);
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.profile-avatar {
    margin: 2px;
    width: 64px;
    height: 64px;
    display: flex;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient); /* Тропический градиент */
    box-shadow: var(--glow-mixed);
}

.profile-avatar > div {
    width: 60px;
    height: 60px;
    border-radius: 100px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 2px solid white; /* Белая рамка внутри */
}

.profile-name {
    font-size: clamp(1.2em, 3vw, 1.5em);
    font-weight: 700;
    color: var(--text-white); /* Белый текст на градиенте */
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Тень для читаемости */
}

.profile-labels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-label {
    color: var(--text-secondary);
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    font-weight: 400;
    margin-right: 10px;
}

.profile-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    gap: 12px;
    width: 100%;
}

.profile-value {
    color: var(--text-main); /* Темный текст для светлой темы */
    font-size: clamp(1.1em, 2.8vw, 1.3em);
    font-weight: 600;
    text-align: right;
    display: flex;
    gap: 12px;
    align-items: center;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-button {
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.profile-button {
    padding: 6px 18px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 1em;
    transition: background-color var(--transition-normal);
    white-space: nowrap;
    border: none;
    font-family: inherit;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.profile-button:hover {
    background-color: #3c3c3c;
}

.profile-background {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.background-svg-1 {
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 120px;
    opacity: 0.5;
    z-index: -1;
}

.background-svg-2 {
    position: absolute;
    right: 40px;
    top: 40px;
    width: 50px;
    height: 50px;
    opacity: 0.5;
    z-index: -1;
}

/* ============================================================================
   💰 КНОПКА "ПОПОЛНИТЬ" - С ГРАДИЕНТОМ И СВЕЧЕНИЕМ
   ============================================================================ */
.topup-button {
    padding: 10px 18px;
    background: var(--primary-gradient);
    background-size: 200% 100%;
    color: var(--text-white);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-family: Merriweather;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-mixed);
    transition: all 0.4s ease;
    animation: shimmer 3s linear infinite;
}

.topup-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s linear infinite;
}

.topup-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-orange-strong), var(--glow-cyan-strong);
    background-position: 100% 0;
}

.topup-button:active {
    transform: translateY(0) scale(0.98);
}

.topup-button svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Стили для страницы профиля */
.profile-page .profile {
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease;
    background: var(--bg-secondary, rgba(47, 56, 115, 0.6));
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-page h1 {
    margin-bottom: 25px;
    animation: fadeIn 0.4s ease;
}

/* Улучшенный отступ для контейнера на странице профиля */
.profile-page .container {
    padding-top: 30px;
    padding-bottom: 80px;
}

/* Стили для кнопок действий в профиле */
.profile-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.profile-action-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
    background: linear-gradient(135deg, rgba(55, 65, 130, 0.9), rgba(45, 52, 60, 0.95));
}

.profile-action-button svg {
    margin-right: 10px;
}

/* Стили для карточек меню на странице профиля */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* 🏝️ TROPICAL BREEZE - Карточки меню */
.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    background: var(--bg-card); /* Белый фон */
    border-radius: 12px;
    border: 2px solid var(--border-main);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        2px 0 8px rgba(255, 154, 0, 0.08), /* Оранжевая тень */
        -2px 0 8px rgba(0, 188, 212, 0.08); /* Бирюзовая тень */
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
}

.menu-card:hover, .menu-card:active {
    transform: translateY(-3px);
    box-shadow: var(--glow-mixed);
    border-color: var(--orange-main);
}

.menu-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    transition: transform var(--transition-normal);
}

.menu-card:hover img {
    transform: scale(1.1);
}

.menu-card span {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. Компоненты (карточки, кнопки, табы)
   ========================================================================== */

/* ============================================================================
   🗂️ КАТЕГОРИИ НА ГЛАВНОЙ СТРАНИЦЕ - СВЕТЛАЯ ТЕМА
   ============================================================================ */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: var(--spacing-md) 0;
    padding: 6px;
    background: var(--bg-secondary); /* Светло-серый фон */
    border: 1px solid var(--border-main);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: 'Comfortaa', sans-serif;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-light);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.category-tab:hover {
    color: var(--text-main);
    background: var(--bg-card);
}

.category-tab:hover::before {
    opacity: 1;
}

.category-tab.active {
    background: var(--gradient-orange); /* Оранжевый градиент */
    color: var(--text-white);
    box-shadow: var(--glow-cyan); /* Голубое свечение! */
    font-weight: 600;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-cyan); /* Бирюзовый индикатор */
    border-radius: 3px;
    box-shadow: var(--glow-cyan);
    animation: pulseGlow 2s ease-in-out infinite;
}

.category-tab:active {
    transform: scale(0.98);
}

/* Адаптивность для категорий */
@media (max-width: 480px) {
    .category-tabs {
        gap: 4px;
        padding: 3px;
    }
    
    .category-tab {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* ============================================================================
   🌍 КАРТОЧКИ СТРАН - СВЕТЛАЯ ТЕМА
   ============================================================================ */
.country-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 12px;
    background: var(--bg-card); /* Белый фон */
    border: 2px solid var(--border-main);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        4px 0 12px rgba(255, 154, 0, 0.1), /* Оранжевая тень слева */
        -4px 0 12px rgba(0, 188, 212, 0.1); /* Бирюзовая тень справа */
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.country-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-button:hover {
    transform: translateY(-3px);
    border-color: var(--orange-main); /* Оранжевая рамка при hover */
    box-shadow: var(--glow-mixed);
    animation: float 2s ease-in-out infinite;
}

.country-button:hover::before {
    opacity: 1;
}

.country-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.country-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    color: var(--text-main); /* Темный текст для светлой темы */
    text-align: left;
    font-family: Merriweather;
    font-size: clamp(0.9rem, 1.2vw + 0.4rem, 1.2rem); 
    font-style: normal;
    font-weight: 600; /* Увеличена жирность */
    line-height: normal;
    letter-spacing: 0.02em;
}

.arrow {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9A00"><path d="M10 17l5-5-5-5v10z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
    transition: transform var(--transition-normal), opacity 0.3s ease;
}

.country-button:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
}

.country-button:active .arrow {
    transform: translateX(3px);
}

/* Иконки и фотографии стран */
.country-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.country-header .country-flag {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: var(--spacing-md) 0;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-elevated);
    transition: all var(--transition-normal);
}

.country-header .country-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.payment-container .country-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: pulse 3s infinite ease-in-out;
}

.country-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.country-image:hover img {
    transform: scale(1.05);
}

/* eSIM карточки */
.esim-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0 10px;
}

.esim-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-default);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.esim-card:hover, .esim-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent-color);
}

.esim-card-header {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.esim-card-header svg {
    color: white;
    flex-shrink: 0;
}

.esim-card-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.esim-card-body {
    padding: 15px;
}

.esim-card-body p {
    margin: 0 0 10px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.esim-card-body p span {
    font-weight: 600;
    color: var(--text-muted);
}

.esim-view-details {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.esim-card:hover .esim-view-details {
    color: var(--accent-color-light);
}

.esim-view-details svg {
    transition: transform var(--transition-normal);
}

.esim-card:hover .esim-view-details svg {
    transform: translateX(4px);
}

.empty-esim-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
}

.empty-esim-message {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    gap: 15px;
    box-shadow: var(--shadow-default);
    border: 1px solid var(--border-color);
}

.empty-esim-message svg {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.empty-esim-message p {
    font-size: 16px;
    margin: 0;
    color: var(--text-muted);
}

.empty-esim-message .action-button {
    margin-top: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.empty-esim-message .action-button:hover {
    background: var(--accent-color-light);
    transform: translateY(-2px);
}

.page-title {
    margin: 20px 0 25px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.country-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(18px, 5vw, 24px);
    margin: var(--spacing-sm) 0 var(--spacing-lg);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
}

/* Стили для элементов страницы тарифов */
.tabs {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
    width: 100%;
    background: rgba(47, 56, 115, 0.3);
    border-radius: var(--border-radius-md);
    padding: 3px;
}

.tab-button {
    font-family: 'Comfortaa', sans-serif;
    flex: 1;
    padding: var(--spacing-md) 0;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    margin: 0 2px;
    font-size: clamp(16px, 4vw, 20px);
    position: relative;
    overflow: hidden;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-button.active:after {
    width: 50%;
}

.tab-button:hover:not(.active) {
    background-color: rgba(47, 56, 115, 0.5);
}

/* Тарифные карточки */
.tariff-button {
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tariff-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tariff-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tariff-content .tariff-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    color: #000000;
}

.tariff-price {
    color: #000000;
    font-weight: 700;
    font-size: clamp(18px, 5vw, 22px);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tariff-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tariff-button.selected {
    border: 2px solid #D4009F;
    box-shadow: 0 0 15px rgba(212, 0, 159, 0.3);
    animation: pulse 2s infinite;
}

.tariff-button.selected .tariff-content {
    position: relative;
    overflow: hidden;
}

.tariff-button.selected .tariff-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                            rgba(255,255,255,0) 0%, 
                            rgba(255,255,255,0.2) 50%, 
                            rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

.data-quantity {
    color: #000;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
}

.duration {
    font-size: clamp(13px, 3vw, 15px);
    color: #333;
}

.unlimited-note {
    color: var(--text-secondary);
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.6;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.8), rgba(35, 42, 48, 0.9));
    border-radius: var(--border-radius-md);
    margin: var(--spacing-md) 0;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    overflow: hidden;
}

.unlimited-note:before {
    content: '∞';
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.footer-text {
    color: var(--text-secondary);
    font-size: clamp(12px, 3vw, 14px);
    text-align: center;
    padding: var(--spacing-md) 0;
    line-height: 1.6;
    width: 100%;
    margin-bottom: 160px;
    background: rgba(35, 42, 48, 0.5);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
}

/* Стили для заголовка страны */
#country-title {
    position: relative;
    display: inline-block;
    padding: 0.3em 0.7em;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    margin-bottom: 10px;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Стили и анимации для флага */
.country-flag {
    animation: softPulse 3s ease-in-out infinite;
    width: 100px !important;
    height: 100px !important;
}

.country-flag.fade-in {
    animation: fadeIn 0.8s ease forwards, softPulse 3s ease-in-out infinite 0.8s;
}

.country-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Стили для покрытия eSIM */
.coverage-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
    border-radius: var(--border-radius-sm);
    background: rgba(47, 56, 115, 0.3);
    font-weight: 300;
    padding: var(--spacing-xs);
    transition: all var(--transition-normal);
}

.tariff-button:hover .coverage-info {
    background: rgba(47, 56, 115, 0.5);
}

/* Анимации для слайдов и загрузки */
.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Улучшенная анимация загрузки */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    gap: var(--spacing-md);
    min-height: 40vh;
}

.loading-gif {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.loading-container:after {
    content: 'Поиск лучших предложений...';
    color: var(--text-secondary);
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    animation: fadeIn 1s infinite alternate;
}

/* Стили для табов контента */
#tariffs-container {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#loading {
    transition: opacity 0.3s ease;
}

.tab-content {
    transition: opacity 0.2s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.tab-content:not(.active) {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Улучшенный вид кнопки тарифа при нажатии */
.tariff-button:active .tariff-content {
    transform: scale(0.98);
}

/* ==========================================================================
   6. Формы и интерактивные элементы
   ========================================================================== */

/* ============================================================================
   🔍 ПОИСК - СВЕТЛАЯ ТЕМА
   ============================================================================ */
.search-container {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px var(--spacing-md);
    background-color: var(--bg-card); /* Белый фон */
    color: var(--text-main);
    border: 2px solid var(--border-main);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Merriweather', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    background-color: var(--cyan-pale); /* Бледно-бирюзовый при фокусе */
    box-shadow: var(--glow-cyan);
    border-color: var(--cyan-main); /* Бирюзовая рамка */
    transform: translateY(-2px);
}

/* ==========================================================================
   7. Анимации и эффекты
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 4px 30px rgba(212, 0, 159, 0.3); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes progress-bar {
    0% { left: -50%; }
    100% { left: 100%; }
}

@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   ✨ TROPICAL BREEZE ANIMATIONS - Анимации для светлой темы
   ============================================================================ */

/* Пульсирующее свечение */
@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: var(--glow-mixed);
        opacity: 1;
    }
    50% { 
        box-shadow: var(--glow-orange-strong), var(--glow-cyan-strong);
        opacity: 0.9;
    }
}

/* Пульсация цветного фона */
@keyframes colorPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Блестящий эффект (shimmer) для кнопок */
@keyframes shimmer {
    0% { 
        background-position: -200% center;
    }
    100% { 
        background-position: 200% center;
    }
}

/* Плавающая анимация для карточек */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Радужная граница */
@keyframes rainbowBorder {
    0% {
        border-color: var(--orange-main);
        box-shadow: var(--glow-orange);
    }
    50% {
        border-color: var(--cyan-main);
        box-shadow: var(--glow-cyan);
    }
    100% {
        border-color: var(--orange-main);
        box-shadow: var(--glow-orange);
    }
}

/* ==========================================================================
   8. Утилиты и вспомогательные классы
   ========================================================================== */

/* Переходы для плавных переходов */
#tariffs-container {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#loading {
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   9. Медиа-запросы
   ========================================================================== */

/* Малые устройства (телефоны) */
@media only screen and (max-width: 375px) {
    .profile {
        /* padding управляется через profile-header и profile-content */
        margin-bottom: 15px;
    }
    
    .profile::before {
        height: 100px; /* Чуть меньше для мобилок */
    }
    
    .profile-header {
        min-height: 100px; /* Соответствует ::before */
        padding: 15px;
    }
    
    .profile-content {
        padding: 15px;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .profile-avatar > div {
        width: 46px;
        height: 46px;
    }
    
    .topup-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .topup-button svg {
        width: 16px;
        height: 16px;
    }

    .background-svg-1 {
        width: 70px;
        height: 70px;
    }

    .background-svg-2 {
        width: 30px;
        height: 30px;
        right: 20px;
        top: 20px;
    }
    
    .tariff-button {
        padding: var(--spacing-sm);
    }
    
    .tariff-content {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .tab-button {
        padding: var(--spacing-sm) 0;
        font-size: 14px;
    }
    
    .payment-container {
        padding: var(--spacing-md);
        margin: 10px auto;
    }
    
    .country-image {
        width: 100px;
        height: 100px;
    }
    
    .tariff-info h2 {
        font-size: 1.3rem;
    }
    
    .tariff-info p {
        font-size: 1rem;
    }
    
    .payment-method {
        padding: var(--spacing-sm);
    }
    
    .payment-method img {
        width: 40px;
        height: 40px;
    }
    
    .country-flag {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Маленькие экраны и низкие экраны */
@media (max-width: 480px), (max-height: 600px) {
    .tabs {
        margin: var(--spacing-sm) 0;
    }
    
    .navigation {
        padding: 12px 0; /* Унифицированный padding */
        min-height: 64px; /* Унифицированная высота */
        max-height: 68px;
        width: 96%; /* Чуть шире на маленьких экранах */
        bottom: 10px; /* Ближе к низу на маленьких экранах */
    }
    
    .navigation a {
        min-height: 52px; /* Уменьшена высота кнопок */
    }
    
    .navigation a div,
    .navigation a svg {
        width: 28px; /* Немного меньше иконки */
        height: 28px;
    }
    
    .navigation span {
        font-size: 10px; /* Чуть крупнее для читаемости */
    }
    
    /* body padding НЕ меняется! Остается 0 */
    .container {
        padding-bottom: 90px; /* Отступ для навигации через container */
    }
    
    .unlimited-note:before {
        font-size: 40px;
    }
    
    .loading-container {
        height: 150px;
    }
    
    .loading-container:after {
        font-size: 14px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .menu-card {
        padding: 15px 10px;
    }
    
    .menu-card img {
        width: 40px;
        height: 40px;
    }
    
    .menu-card span {
        font-size: 12px;
    }
}

/* Телефоны и планшеты */
@media (min-width: 481px) and (max-width: 767px) {
    .navigation {
        padding: 14px 0; /* Унифицированный padding */
        min-height: 68px;
        max-height: 72px;
        width: 94%;
        bottom: 12px;
    }
    
    .navigation a {
        font-size: 11px;
        padding: 4px 2px;
        min-height: 56px;
    }
    
    .navigation a div,
    .navigation a svg {
        width: 30px; /* Средний размер иконок */
        height: 30px;
    }
    
    .navigation span {
        font-size: 10px;
    }
    
    /* body padding НЕ меняется! Остается 0 */
    .container {
        padding-bottom: 95px; /* Отступ для навигации через container */
    }
    
    .info-banner {
        bottom: 93px; /* Синхронизировано с навигацией */
        padding: 12px;
        left: 8px;
        right: 8px;
        border-radius: 12px;
    }
}

/* Планшеты и маленькие настольные мониторы */
@media (min-width: 768px) {
    .country-button .country-image {
        width: 45px;
        height: 45px;
    }
    
    .country-header .country-flag {
        width: 120px !important;
        height: 120px !important;
    }
    
    .tariff-button {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .menu-card {
        padding: 25px 20px;
    }
    
    .menu-card img {
        width: 56px;
        height: 56px;
    }
}

/* Десктопные экраны */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 20px;
    }
    
    .navigation {
        padding: 14px 0; /* Унифицированный padding */
        min-height: 68px;
        max-height: 72px;
        width: 85%; /* Чуть уже на десктопах */
        max-width: 700px; /* Увеличена максимальная ширина */
        bottom: 16px; /* Чуть выше на десктопах */
    }
    
    .navigation a {
        max-width: 120px; /* Увеличена ширина кнопок */
        font-size: 12px;
        min-height: 56px;
    }
    
    .navigation a div,
    .navigation a svg {
        width: 32px; /* Стандартный размер */
        height: 32px;
    }
    
    .navigation span {
        font-size: 11px;
    }
    
    /* body padding НЕ меняется! Остается 0 */
    .container {
        padding-bottom: 105px; /* Отступ для навигации через container */
    }
    
    /* Улучшаем доступность на ПК */
    .navigation a:hover {
        color: #fff;
        transform: translateY(-2px); /* Уменьшен эффект */
        background: rgba(255, 255, 255, 0.05); /* Добавлен фон при наведении */
        border-radius: 12px;
    }
    
    .navigation a:hover svg path,
    .navigation a:hover div svg path {
        fill: #fff;
    }
}

/* ==========================================================================
   10. Страницы администратора
   ========================================================================== */

/* Основные стили админ-панели */
.admin-page body {
    font-family: Merriweather;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.admin-page .container {
    width: 90%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

.admin-page h1 {
    text-align: center;
    color: var(--tg-theme-text-color, var(--text-color));
    margin-bottom: 20px;
}

.admin-page .button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--tg-theme-button-text-color, white);
    background-color: var(--tg-theme-button-color, var(--accent-color));
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-default);
    transition: background-color var(--transition-normal);
    box-sizing: border-box;
    font-size: 16px;
}

.admin-page .button:hover {
    opacity: 0.9;
}

.admin-page .button.secondary {
    background-color: var(--tg-theme-secondary-bg-color, var(--secondary-color));
    color: var(--tg-theme-text-color, var(--text-color));
}

.admin-page .button.warning {
    background-color: var(--error-color);
    color: white;
}

.admin-page .button.warning:hover {
    background-color: #c82333;
}

/* ==========================================================================
   11. Страницы eSIM
   ========================================================================== */

/* Основные стили для eSIM страниц */
.esim-page body {
    background: var(--dark-bg) !important;
    color: var(--text-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* eSIM карточки */
.esim-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0 10px;
}

.esim-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-default);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.esim-card:hover, .esim-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent-color);
}

.esim-card-header {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.esim-card-header svg {
    color: white;
    flex-shrink: 0;
}

.esim-card-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.esim-card-body {
    padding: 15px;
}

.esim-card-body p {
    margin: 0 0 10px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.esim-card-body p span {
    font-weight: 600;
    color: var(--text-muted);
}

.esim-view-details {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.esim-card:hover .esim-view-details {
    color: var(--accent-color-light);
}

.esim-view-details svg {
    transition: transform var(--transition-normal);
}

.esim-card:hover .esim-view-details svg {
    transform: translateX(4px);
}

.empty-esim-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
}

.empty-esim-message {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    gap: 15px;
    box-shadow: var(--shadow-default);
    border: 1px solid var(--border-color);
}

.empty-esim-message svg {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.empty-esim-message p {
    font-size: 16px;
    margin: 0;
    color: var(--text-muted);
}

.empty-esim-message .action-button {
    margin-top: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.empty-esim-message .action-button:hover {
    background: var(--accent-color-light);
    transform: translateY(-2px);
}

/* eSIM Details Page */
.esim-details-page body {
    background: var(--dark-bg) !important;
    color: var(--text-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.esim-details-card {
    background: var(--bg-secondary, rgba(47, 56, 115, 0.6));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
}

.esim-details-header {
    background: var(--accent-color, #8C3FAD);
    padding: 16px;
    text-align: center;
}

.esim-package-name {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: white;
    margin: 0 auto;
    width: 220px;
    height: 220px;
    margin-top: 10px;
}

.qr-code-image {
    max-width: 100%;
    max-height: 100%;
}

.qr-code-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--accent-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.esim-info-container {
    padding: 20px;
}

.info-group {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.copy-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.copy-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.copy-btn.copied {
    color: var(--success-color);
    background-color: rgba(52, 199, 89, 0.1);
}

.price-value, .date-value {
    font-size: 1rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.status-icon {
    margin-bottom: 15px;
}

.error-icon {
    color: var(--error-color);
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 
Файл был оптимизирован:
1. Добавлена четкая структура с разбиением на логические блоки
2. Введены дополнительные CSS переменные для цветов, теней и т.д.
3. Сгруппированы медиа-запросы в отдельную секцию
4. Удалены дубликаты свойств
5. Использованы CSS переменные вместо жестко заданных значений
6. Улучшена читаемость кода с помощью комментариев
7. Стили из всех страниц перенесены в один файл
*/

/* Дополнительные настройки для страницы тарифов */

.loading-container {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Размеры флага для мобильных устройств */

@media only screen and (max-width: 375px) {
    .country-flag {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ==========================================================================
   12. Страница оплаты
   ========================================================================== */

/* Основные стили страницы оплаты */
.payment-page body {
    background: var(--dark-bg) !important;
    color: var(--text-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.payment-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Контейнер оплаты */
.payment-container {
    background: var(--bg-secondary, rgba(47, 56, 115, 0.6));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    padding: var(--spacing-lg);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease forwards;
}

/* Шапка контейнера */
.payment-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.8), rgba(35, 42, 48, 0.9));
}

/* Информация о тарифе */
.payment-header .tariff-info {
    background: rgba(47, 56, 115, 0.5);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.tariff-info h2 {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tariff-info p {
    margin: var(--spacing-xs) 0 0;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Заголовок оплаты */
.payment-title {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.payment-title h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

/* Способы оплаты */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    background: rgba(47, 56, 115, 0.5);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.payment-method:last-child {
    border-bottom: none;
}

.payment-method:hover, .payment-method:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.payment-method:hover {
    background: rgba(47, 56, 115, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.payment-method:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Иконка метода оплаты */
.payment-method-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-icon img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}

.payment-method img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px;
    object-fit: contain;
    margin-right: var(--spacing-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.payment-method:hover img {
    transform: scale(1.1);
}

/* Информация о методе оплаты */
.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 16px;
    color: var(--text-color);
}

.payment-method span {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.payment-method-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Стрелка и эффекты */
.payment-method-arrow {
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.payment-method:hover .payment-method-arrow,
.payment-method:active .payment-method-arrow {
    transform: translateX(5px);
    color: var(--text-color);
}

.payment-method::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, 
                              rgba(255,255,255,0) 0%, 
                              rgba(255,255,255,0.1) 50%, 
                              rgba(255,255,255,0) 100%);
    transition: all 0.5s ease;
}

.payment-method:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* Статус контейнер */
#status-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modals);
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.95), rgba(35, 42, 48, 0.98));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(10px) !important;
}

.status-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-elevated);
}

.status-info {
    margin-top: 20px;
}

#status-container h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

/* Индикатор прогресса */
.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color-light));
    transition: width 0.3s ease;
}

.progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-top: var(--spacing-sm);
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-gradient);
    animation: progress-bar 1.5s infinite ease-in-out;
    width: 50%;
}

/* ==========================================================================
   13. Страница тарифов
   ========================================================================== */

/* Стили для страницы тарифов */
.country-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(18px, 5vw, 24px);
    margin: var(--spacing-sm) 0 var(--spacing-lg);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
}

/* Стили для заголовка страны */
#country-title {
    position: relative;
    display: inline-block;
    padding: 0.3em 0.7em;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    margin-bottom: 10px;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Стили и анимации для флага */
.country-flag {
    animation: softPulse 3s ease-in-out infinite;
    width: 100px !important;
    height: 100px !important;
}

.country-flag.fade-in {
    animation: fadeIn 0.8s ease forwards, softPulse 3s ease-in-out infinite 0.8s;
}

.country-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.country-header .country-flag {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: var(--spacing-md) 0;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-elevated);
    transition: all var(--transition-normal);
}

.country-header .country-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Элементы выбора тарифов */
.tabs {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
    width: 100%;
    background: rgba(47, 56, 115, 0.3);
    border-radius: var(--border-radius-md);
    padding: 3px;
}

.tab-button {
    font-family: 'Comfortaa', sans-serif;
    flex: 1;
    padding: var(--spacing-md) 0;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    margin: 0 2px;
    font-size: clamp(16px, 4vw, 20px);
    position: relative;
    overflow: hidden;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-button.active:after {
    width: 50%;
}

.tab-button:hover:not(.active) {
    background-color: rgba(47, 56, 115, 0.5);
}

/* Тарифные карточки */
.tariff-button {
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.9), rgba(35, 42, 48, 0.95));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tariff-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tariff-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tariff-content .tariff-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    color: #000000;
}

.tariff-price {
    color: #000000;
    font-weight: 700;
    font-size: clamp(18px, 5vw, 22px);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tariff-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tariff-button.selected {
    border: 2px solid #D4009F;
    box-shadow: 0 0 15px rgba(212, 0, 159, 0.3);
    animation: pulse 2s infinite;
}

.tariff-button.selected .tariff-content {
    position: relative;
    overflow: hidden;
}

.tariff-button.selected .tariff-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                            rgba(255,255,255,0) 0%, 
                            rgba(255,255,255,0.2) 50%, 
                            rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

.data-quantity {
    color: #000;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
}

.duration {
    font-size: clamp(13px, 3vw, 15px);
    color: #333;
}

.unlimited-note {
    color: var(--text-secondary);
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.6;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(47, 56, 115, 0.8), rgba(35, 42, 48, 0.9));
    border-radius: var(--border-radius-md);
    margin: var(--spacing-md) 0;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    overflow: hidden;
}

.unlimited-note:before {
    content: '∞';
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

/* Стили для покрытия eSIM */
.coverage-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
    border-radius: var(--border-radius-sm);
    background: rgba(47, 56, 115, 0.3);
    font-weight: 300;
    padding: var(--spacing-xs);
    transition: all var(--transition-normal);
}

.tariff-button:hover .coverage-info {
    background: rgba(47, 56, 115, 0.5);
}

/* Анимации для слайдов и загрузки */
.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Улучшенная анимация загрузки */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    gap: var(--spacing-md);
    min-height: 40vh;
}

.loading-gif {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.loading-container:after {
    content: 'Поиск лучших предложений...';
    color: var(--text-secondary);
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    animation: fadeIn 1s infinite alternate;
}

/* Стили для табов контента */
#tariffs-container {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#loading {
    transition: opacity 0.3s ease;
}

.tab-content {
    transition: opacity 0.2s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.tab-content:not(.active) {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Улучшенный вид кнопки тарифа при нажатии */
.tariff-button:active .tariff-content {
    transform: scale(0.98);
}

.footer-text {
    color: var(--text-secondary);
    font-size: clamp(12px, 3vw, 14px);
    text-align: center;
    padding: var(--spacing-md) 0;
    line-height: 1.6;
    width: 100%;
    margin-bottom: 160px;
    background: rgba(35, 42, 48, 0.5);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   15. Компоненты интерфейса (баннеры, уведомления)
   ========================================================================== */

/* Информационный баннер */
.info-banner {
    position: fixed;
    bottom: 100px; /* Поднимаем баннер выше с учетом нового положения навигации */
    left: 16px;
    right: 16px;
    background: rgba(47, 56, 115, 0.6); /* Делаем полупрозрачным как меню */
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18); /* Согласуем с навигацией */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: var(--z-banners);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.info-banner.hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.info-banner-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-banner-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.info-banner-close {
    min-width: 44px;
    min-height: 44px;
    margin: -8px -8px -8px 0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: none;
}

.info-banner-close:hover, 
.info-banner-close:active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-color);
}

/* Недостающая анимация spin добавлена здесь для связности */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   14. Кнопки и навигационные элементы
   ========================================================================== */

/* Общие стили для кнопок */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    min-height: 36px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Стили заголовка страницы */
.page-title {
    margin: 20px 0 25px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===============================================================================
   ДУБЛИРУЮЩИЕ МЕДИА-ЗАПРОСЫ УДАЛЕНЫ
   Основные медиа-запросы для навигации находятся в разделе 9
   =============================================================================== */

/* ==========================================================================
   11.5. Страница пополнения баланса
   ========================================================================== */

/* Стили для контейнера пополнения баланса */
.topup-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: var(--spacing-md);
}

/* Карточка пополнения */
.topup-card {
    background: var(--bg-secondary, rgba(47, 56, 115, 0.6));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease forwards;
}

/* Поле ввода суммы */
.topup-card .input-field {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-size: 16px;
    transition: all var(--transition-normal);
    margin-bottom: var(--spacing-md);
}

.topup-card .input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(111, 76, 255, 0.2);
}

.topup-card .input-field::placeholder {
    color: var(--text-muted);
}

/* Фиксированные суммы */
.fixed-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.fixed-amount-btn {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.fixed-amount-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.fixed-amount-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(111, 76, 255, 0.3);
}

/* Методы оплаты */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.payment-method.selected {
    background: rgba(111, 76, 255, 0.2);
    border: 1px solid var(--primary-color);
}

.payment-method img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.payment-method:hover img {
    transform: scale(1.1);
}

.payment-method span {
    font-weight: 500;
    color: var(--text-color);
}

/* Футер страницы пополнения */
.topup-footer {
    background: var(--bg-secondary, rgba(47, 56, 115, 0.4));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
}

.topup-footer h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 18px;
    color: var(--text-color);
}

.topup-footer ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.topup-footer li {
    margin-bottom: 8px;
}

.topup-footer li:last-child {
    margin-bottom: 0;
}

/* Анимации для страницы пополнения */
.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   💎 УНИВЕРСАЛЬНЫЕ КНОПКИ ПОКУПКИ - TROPICAL BREEZE
   ============================================================================ */

/* Основная кнопка покупки */
.btn-primary,
.btn-buy,
.buy-button,
.purchase-button {
    padding: 12px 24px;
    background: var(--primary-gradient);
    background-size: 200% 100%;
    color: var(--text-white);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-family: Merriweather;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-mixed);
    transition: all 0.4s ease;
}

/* Shimmer эффект для всех кнопок */
.btn-primary::before,
.btn-buy::before,
.buy-button::before,
.purchase-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s linear infinite;
}

.btn-primary:hover,
.btn-buy:hover,
.buy-button:hover,
.purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-orange-strong), var(--glow-cyan-strong);
    background-position: 100% 0;
}

.btn-primary:active,
.btn-buy:active,
.buy-button:active,
.purchase-button:active {
    transform: translateY(0) scale(0.98);
}

/* Вторичная кнопка */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 2px solid var(--cyan-main);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

.btn-secondary:hover {
    background: var(--cyan-pale);
    box-shadow: var(--glow-cyan);
}

