/* ================================
   СОВРЕМЕННЫЙ ДИЗАЙН CRYPTOSHOP
   Поддержка светлой и темной темы
   ================================ */

/* CSS Переменные для тем */
:root {
    /* Светлая тема */
    --primary-color: #6366f1;
    --primary-hover: #5b4cd6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Фон */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    
    /* Текст */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Границы - делаем темнее */
    --border-color: #cbd5e1;  /* Было #e2e8f0 */
    --border-light: #e2e8f0;  /* Было #f1f5f9 */
    --border-strong: #94a3b8;  /* Было #cbd5e1 */
    
    /* Тени - делаем заметнее */
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);  /* Было 0.05 */
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);  /* Было 0.1, 0.06 */
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.1);  /* Было 0.1, 0.05 */
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.1);  /* Было 0.1, 0.04 */
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Темная тема */
[data-bs-theme="dark"] {
    /* Фон */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    /* Текст */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #1e293b;
    
    /* Границы */
    --border-color: #334155;
    --border-light: #475569;
    --border-strong: #64748b;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* ================================
   ОБЩИЕ СТИЛИ
   ================================ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* FAQ Hero Section */
.faq-hero {
    background: #4338CA !important; /* Индиго цвет как у кнопки */
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .faq-hero {
    background: #6366F1 !important; /* Более яркий индиго для темной темы */
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
}

.faq-hero h1,
.faq-hero p {
    color: white !important;
}

/* ===========================================
   ШАПКА И ЛОГОТИП
   =========================================== */

.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.modern-header .container {
    position: relative;
    z-index: 2;
}

/* Логотип */
.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    flex-shrink: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo-text {
    color: white;
}

.logo-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Виджеты в шапке */
.header-widgets {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Виджет баланса */
.balance-widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    min-width: 180px;
}

.balance-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.balance-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.balance-info {
    flex: 1;
}

.balance-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Кнопки авторизации */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.auth-buttons .btn {
    font-weight: 500;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.auth-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.auth-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.auth-buttons .btn-light {
    background: white;
    border-color: white;
    color: var(--primary-color);
    font-weight: 600;
}

.auth-buttons .btn-light:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Адаптивность шапки */
@media (max-width: 768px) {
    .logo-title {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .balance-widget {
        min-width: auto;
        padding: 0.75rem 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .modern-header .row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-widgets {
        justify-content: center;
    }
}

/* ================================
   НАВИГАЦИЯ
   ================================ */

.navbar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.main-navigation {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.admin-menu-item {
    background: var(--gradient-primary);
    color: var(--text-inverse) !important;
}

.navbar-nav .nav-link.admin-menu-item:hover {
    opacity: 0.9;
    color: var(--text-inverse) !important;
}

/* ===========================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМ
   =========================================== */

.theme-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
    margin: 0 0.5rem !important;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(180deg);
}

/* Анимация для смены иконки */
.theme-toggle-btn.changing i {
    animation: iconFlip 0.5s ease-in-out;
}

@keyframes iconFlip {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(90deg) scale(0.8); }
    100% { transform: rotate(180deg) scale(1); }
}

/* Специальные стили для навигации */
.navbar-nav .theme-toggle-btn {
    padding: 0 !important;
}

.navbar-nav .nav-link.theme-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Адаптация для темной темы */
[data-bs-theme="dark"] .theme-toggle-btn {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
    background: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===========================================
   ОСНОВНОЙ КОНТЕНТ
   =========================================== */

.main-content {
    min-height: 60vh;
}

/* ===========================================
   ХЛЕБНЫЕ КРОШКИ
   =========================================== */

.modern-breadcrumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modern-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.modern-breadcrumb .breadcrumb-item {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.modern-breadcrumb .breadcrumb-item:not(.active) {
    color: var(--primary-color);
}

.modern-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    position: relative;
}

.modern-breadcrumb .breadcrumb-item a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.modern-breadcrumb .breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 600;
}

.modern-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--text-secondary);
    margin: 0 0.75rem;
    font-weight: 400;
    opacity: 0.6;
}

/* Иконки для хлебных крошек */
.modern-breadcrumb .breadcrumb-item:first-child a::before {
    content: '🏠';
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Анимация появления */
.modern-breadcrumb {
    animation: slideInDown 0.5s ease-out;
}

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

/* Адаптация для темной темы */
[data-bs-theme="dark"] .modern-breadcrumb {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.15), rgba(79, 70, 229, 0.15));
    border-color: rgba(67, 56, 202, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .modern-breadcrumb::before {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

[data-bs-theme="dark"] .modern-breadcrumb .breadcrumb-item a:hover {
    background: rgba(67, 56, 202, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .modern-breadcrumb {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem !important;
        font-size: 0.875rem;
    }
    
    .modern-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.5rem;
    }
    
    .modern-breadcrumb .breadcrumb-item:first-child a::before {
        margin-right: 0.25rem;
    }
}

/* ================================
   ПРАВЫЙ САЙДБАР
   ================================ */

.sidebar-right {
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-content {
    padding: 1.5rem 1rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Новости */
.news-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    background-color: var(--bg-hover);
    transform: translateX(2px);
}

.news-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-inverse);
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.news-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.news-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Популярные товары */
.popular-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.popular-item:hover {
    background-color: var(--bg-hover);
    box-shadow: var(--shadow-md);
}

.popular-image {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-success);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--text-inverse);
    font-size: 1rem;
}

.popular-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.popular-price {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
}

/* Карточка поддержки */
.support-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.support-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.support-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.support-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* ================================
   КАРТОЧКИ
   ================================ */

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================
   КНОПКИ
   ================================ */

.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Кнопки - делаем темнее в светлой теме */
.btn.btn-primary {
    background-color: #4338CA !important;  /* Было #4F46E5 */
    border: none;
    color: #ffffff !important;
    font-weight: 600;
}

.btn.btn-primary:hover {
    background-color: #3730A3 !important;  /* Было #4338CA */
    color: #ffffff !important;
}

/* Темная тема */
[data-bs-theme="dark"] .btn.btn-primary {
    background-color: #6366F1 !important;  /* Яркий индиго для темной темы */
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn.btn-primary:hover {
    background-color: #818CF8 !important;  /* Светлее при наведении */
    color: #ffffff !important;
}

/* Кнопка купить в каталоге */
.buy-button {
    background-color: #4338CA !important;  /* Было #4F46E5 */
    border: none;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.buy-button:hover {
    background-color: #3730A3 !important;  /* Было #4338CA */
    color: #ffffff !important;
}

/* Темная тема для кнопки купить */
[data-bs-theme="dark"] .buy-button {
    background-color: #6366F1 !important;  /* Яркий индиго для темной темы */
    color: #ffffff !important;
}

[data-bs-theme="dark"] .buy-button:hover {
    background-color: #818CF8 !important;  /* Светлее при наведении */
    color: #ffffff !important;
}

/* Стили для отключенной кнопки */
.buy-button:disabled {
    background-color: var(--gray) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    color: var(--text-inverse);
}

.btn-success:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ================================
   ФОРМЫ
   ================================ */

/* Общие стили для полей ввода */
.form-control {
    background-color: var(--bg-card);
    border: 2px solid #CBD5E1;  /* Обновляем толщину и цвет обводки */
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--bg-card);
    border-color: #4338CA;  /* Темный индиго при фокусе */
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ================================
   МИКРО-АНИМАЦИИ
   ================================ */

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ================================
   ФУТЕР
   ================================ */

.modern-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.support-link:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.support-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-info {
    text-align: right;
}

.copyright {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.availability {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ================================
   АДАПТИВНОСТЬ
   ================================ */

@media (max-width: 991.98px) {
    .sidebar-right {
        display: none !important;
    }
    
    .main-content .col-xl-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .logo-title {
        font-size: 2rem;
    }
    
    .balance-widget {
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .logo-section {
        margin-bottom: 1rem;
    }
    
    .logo-title {
        font-size: 1.75rem;
    }
    
    .logo-subtitle {
        font-size: 1rem;
    }
    
    .main-navigation {
        margin-bottom: 1rem;
    }
    
    .support-links {
        justify-content: center;
    }
    
    .footer-info {
        text-align: center;
        margin-top: 1rem;
    }
}

/* ================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМ
   ================================ */

#theme-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    color: var(--primary-color) !important;
}

/* Индикатор загрузки */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top: 2px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Пульсация для активных элементов */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
} 

/* ===========================================
   РЕКЛАМНЫЕ БАННЕРЫ
   =========================================== */

.ad-banner {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    height: 120px;
}

.ad-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.banner-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ad-banner:hover .banner-image {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.ad-banner:hover .banner-overlay {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.banner-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Адаптация для темной темы */
[data-bs-theme="dark"] .ad-banner {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .ad-banner:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .banner-overlay {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.9), rgba(79, 70, 229, 0.9));
}

/* Анимация загрузки для баннеров */
.banner-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Адаптивность для баннеров */
@media (max-width: 1199.98px) {
    .ad-banner {
        height: 100px;
    }
    
    .banner-title {
        font-size: 0.9rem;
    }
    
    .banner-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar-right {
        display: none !important;
    }
}

/* Исправления для навигации - используем Bootstrap переменные */
.navbar-nav .nav-link {
    color: var(--bs-navbar-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-navbar-hover-color) !important;
}

/* Переключатель темы */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 54px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #e2e8f0;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider .fa-sun {
    color: #f59e0b;
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 16px;
    transition: .4s;
    opacity: 0;
}

.slider .fa-moon {
    color: #6366f1;
    position: absolute;
    right: 6px;
    top: 6px;
    font-size: 16px;
    transition: .4s;
    opacity: 1;
}

input:checked + .slider {
    background-color: #334155;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:checked + .slider .fa-sun {
    opacity: 1;
}

input:checked + .slider .fa-moon {
    opacity: 0;
}

[data-bs-theme="dark"] .slider {
    background-color: #1e293b;
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 10px;
}

.theme-toggle-container:hover {
    background: none !important;
}

/* Выравнивание переключателя языка */
.language-toggle-container {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    height: 42px; /* Такая же высота как у переключателя темы (28px + padding) */
    vertical-align: middle !important;
    justify-content: center;
}

.language-toggle-container:hover {
    background: none !important;
    color: var(--text-primary) !important;
    transform: none !important;
}

/* Дополнительное выравнивание для dropdown языка */
.language-toggle-container .dropdown-toggle {
    display: flex;
    align-items: center;
    border: none;
    background: none;
    color: inherit;
    padding: 0;
}

/* Переопределение для Bootstrap nav-link если используется */
.navbar-nav .nav-link.language-toggle-container {
    vertical-align: middle !important;
    line-height: normal !important;
}

/* Специфичные стили для dropdown языка */
.navbar-nav .nav-item.dropdown.language-toggle-container {
    display: flex !important;
    align-items: center !important;
    margin: 0 0.25rem !important;
    height: 42px !important;
}

.navbar-nav .nav-item.dropdown.language-toggle-container .nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.navbar-nav .nav-item.dropdown.language-toggle-container .nav-link:hover {
    background: none !important;
    color: var(--text-primary) !important;
    transform: none !important;
}

/* Дополнительное выравнивание для всего navbar */
.navbar-nav {
    align-items: center !important;
}

.navbar-nav .nav-item {
    display: flex !important;
    align-items: center !important;
}

/* Убираем вертикальные отступы для всех nav-item */
.navbar-nav .nav-item.language-toggle-container {
    align-self: center !important;
}

/* ================================
   ПРИМЕЧАНИЕ: Стили карточек теперь в universal-card-styles.css
   ================================ */

/* Карточки товаров - усиливаем контраст в светлой теме */
.modern-product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #CBD5E1;  /* Было 1px solid #E5E7EB */
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* Добавляем базовую тень */
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
    border-color: #4338CA;  /* Было #4F46E5 - делаем темнее */
}

/* FAQ страница - усиливаем контраст в светлой теме */
.category-card {
    background: var(--bg-card);
    border: 2px solid #CBD5E1 !important;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    border-color: #4338CA !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.2);
}

/* Иконка категории */
.category-card .category-icon {
    color: #4338CA !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    color: #3730A3 !important;
    transform: scale(1.1);
}

/* Темная тема */
[data-bs-theme="dark"] .category-card .category-icon {
    color: #818CF8 !important;
}

[data-bs-theme="dark"] .category-card:hover .category-icon {
    color: #A5B4FC !important;
}

.accordion-item {
    border: 2px solid #CBD5E1 !important;  /* Было 1px solid #E2E8F0 */
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* Усиливаем тень */
}

.accordion-button {
    border: none !important;
    border-radius: var(--radius-md) !important;
}

.accordion-button:not(.collapsed) {
    background-color: #4338CA !important;  /* Было #4F46E5 */
    color: white !important;
}

/* Поле поиска в FAQ - исправляем обводку */
.faq-search .search-container {
    border: none !important;  /* Убираем внешнюю обводку контейнера */
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-search .search-container input {
    border: 2px solid #CBD5E1 !important;  /* Перемещаем обводку на само поле ввода */
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.faq-search .search-container input:focus {
    border-color: #4338CA !important;
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.2);
    outline: none;
}

/* Темная тема */
[data-bs-theme="dark"] .modern-product-card {
    border-color: var(--border-light);  /* Оставляем прежний цвет для темной темы */
}

[data-bs-theme="dark"] .modern-product-card:hover {
    border-color: #6366F1;  /* Яркий индиго при наведении в темной теме */
}

/* FAQ страница - светлая тема */
.category-card {
    background: var(--bg-card);
    border: 1px solid #E2E8F0 !important;  /* Более заметная обводка */
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);  /* Легкая тень */
}

.category-card:hover {
    border-color: #4F46E5 !important;  /* Индиго при наведении */
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);  /* Тень с цветом индиго */
}

.accordion-item {
    border: 1px solid #E2E8F0 !important;  /* Более заметная обводка */
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);  /* Легкая тень */
}

.accordion-button {
    border: none !important;
    border-radius: var(--radius-md) !important;
}

.accordion-button:not(.collapsed) {
    background-color: #4F46E5 !important;  /* Индиго для активного состояния */
    color: white !important;
}

/* Поле поиска в FAQ */
.faq-search .search-container {
    border: 2px solid #E2E8F0 !important;  /* Более заметная обводка */
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);  /* Легкая тень */
}

.faq-search .search-container:focus-within {
    border-color: #4F46E5 !important;  /* Индиго при фокусе */
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);  /* Тень с цветом индиго */
}

/* Темная тема */
[data-bs-theme="dark"] .category-card {
    border-color: var(--border-light) !important;
    box-shadow: none;
}

[data-bs-theme="dark"] .category-card:hover {
    border-color: #6366F1 !important;  /* Яркий индиго для темной темы */
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

[data-bs-theme="dark"] .accordion-item {
    border-color: var(--border-light) !important;
    box-shadow: none;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #6366F1 !important;  /* Яркий индиго для темной темы */
}

[data-bs-theme="dark"] .faq-search .search-container {
    border-color: var(--border-light) !important;
    box-shadow: none;
}

[data-bs-theme="dark"] .faq-search .search-container:focus-within {
    border-color: #6366F1 !important;  /* Яркий индиго для темной темы */
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

/* Карточка контактов */
.contact-card {
    background: var(--bg-card);
    border: 2px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    border-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.2);
}

.contact-card .contact-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card .contact-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-card .contact-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-card .contact-icon {
    color: #4338CA;
    font-size: 1.25rem;
}

/* Темная тема */
[data-bs-theme="dark"] .contact-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .contact-card:hover {
    border-color: #818CF8;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

[data-bs-theme="dark"] .contact-card .contact-icon {
    color: #818CF8;
}
