﻿/* Базовые стили */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --dark-bg: #0a0f1a;
    --dark-surface: #111827;
    --dark-border: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 8px;
    --transition: all 0.3s ease;


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.dark {
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка */
.app-header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.8rem;
}

.logo-accent {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

    .nav-link:hover {
        color: var(--text-primary);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .nav-link:hover::after {
        width: 100%;
    }

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Основной контент */
.app-main {
    flex: 1;
    padding: 2rem 0;
}

/* Подвал */
.app-footer {
    background-color: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

    .footer-logo .logo-icon {
        font-size: 1.8rem;
    }

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.footer-apps {
    margin-top: 1rem;
}

.app-link {
    display: inline-block;
    transition: var(--transition);
}

.play-store-badge {
    height: 50px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.app-link:hover .play-store-badge {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-list li {
        margin-bottom: 0.75rem;
    }

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

    .footer-link:hover {
        color: var(--text-primary);
        transform: translateX(5px);
    }

    .footer-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .footer-link:hover::before {
        width: 100%;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    text-align: left;
}

    .footer-copyright p {
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 400px;
}

.footer-social {
    display: flex;
    align-items: center;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

.social-icon {
    font-size: 1.2rem;
}

/* ===== УНИВЕРСАЛЬНЫЕ КОМПОНЕНТЫ ===== */

/* Кнопки (универсальные) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }

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

    .btn-outline:hover {
        background-color: rgba(99, 102, 241, 0.1);
        transform: translateY(-2px);
    }

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

    .btn-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    }

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--dark-border);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

/* Универсальный грид для карточек */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Карточки (базовый стиль) */
.card-base {
    background: linear-gradient(145deg, var(--dark-surface), #0f1420);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .card-base::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transition: transform 0.3s ease;
        border-radius: 16px 16px 0 0;
    }

    .card-base:hover {
        border-color: var(--primary-color);
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
    }

        .card-base:hover::before {
            transform: scaleX(1);
        }

    /* Модификаторы карточек */
    .card-base.popular {
        border-color: var(--primary-color);
    }

        .card-base.popular:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
        }

    .card-base.unavailable {
        opacity: 0.7;
        filter: grayscale(0.5);
    }

        .card-base.unavailable::before {
            background: linear-gradient(90deg, var(--warning), var(--danger));
        }

        .card-base.unavailable:hover {
            box-shadow: 0 15px 30px rgba(245, 158, 11, 0.15);
        }

/* Заголовок карточки */
.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Бейдж "Популярный" */
.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
    margin-left: 0.5rem;
    vertical-align: middle;
    line-height: 1.5;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Цена в карточке */
.card-price {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.price-currency {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.price-original {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

    .price-original s {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

.discount-badge {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Детали карточки (компактный блок) */
.card-details-compact {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-icon {
    font-size: 1.1rem;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Список преимуществ */
.card-features {
    padding: 0.5rem 1.5rem 1rem;
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

    .feature-item::before {
        content: "✓";
        color: var(--success);
        font-weight: bold;
        font-size: 1.1rem;
    }

/* Действия карточки */
.card-actions {
    padding: 1rem 1.5rem 1.5rem;
    margin-top: auto;
}

/* Карточки (общие) */
.card {
    background-color: var(--dark-surface);
    border-radius: var(--radius);
    border: 1px solid var(--dark-border);
    padding: 1.5rem;
    transition: var(--transition);
}

    .card:hover {
        border-color: var(--primary-color);
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.card-header {
    border-bottom: 1px solid var(--dark-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

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

/* Сообщения */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.w-100 {
    width: 100%;
}

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

.small {
    font-size: 0.875rem;
}

/* ===== DRAWER МЕНЮ ===== */
.drawer-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1;
}

.drawer-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-surface);
    border-right: 1px solid var(--dark-border);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1099;
}

.drawer-menu.active {
    left: 0;
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-border);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    border: 1px solid var(--primary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-info {
    flex: 1;
}

.user-email {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    word-break: break-all;
}

.user-status {
    font-size: 0.8rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.drawer-nav {
    margin-bottom: 2rem;
}

.drawer-nav-section {
    margin-bottom: 1.5rem;
}

.drawer-nav-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

    .drawer-nav-link:hover {
        background-color: rgba(99, 102, 241, 0.1);
        color: var(--text-primary);
    }

    .drawer-nav-link.active {
        background-color: rgba(99, 102, 241, 0.2);
        color: var(--primary-color);
        font-weight: 600;
    }

.drawer-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}

.drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Mobile header для страниц */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.mobile-header-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 200px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Информационный блок (как на странице серверов) */
.info-block {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.info-icon {
    font-size: 2.5rem;
    background: rgba(99, 102, 241, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 30px;
}

    .info-link:hover {
        gap: 0.75rem;
        background: rgba(99, 102, 241, 0.2);
        color: var(--primary-color);
    }

/* ===== КНОПКА ПРОФИЛЯ ===== */
.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 0.75rem;
}

    .btn-profile:hover {
        background-color: rgba(99, 102, 241, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    }

.profile-icon {
    font-size: 1.2rem;
}

.profile-email {
    font-size: 0.9rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 2px 8px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    font-size: 11px;
    color: #007AFF;
    font-family: monospace;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

    .build-info .dot {
        width: 6px;
        height: 6px;
        background: #34C759;
        border-radius: 50%;
        display: inline-block;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-container {
    max-width: 500px;
    width: 100%;
    height: auto;
    max-height: 90vh;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(145deg, var(--dark-surface), #0f1420);
    border-radius: 24px;
    border: 1px solid var(--dark-border);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    flex-shrink: 0;
}

    .modal-header h3 {
        font-size: 1.5rem;
        color: var(--text-primary);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        transform: rotate(90deg);
    }

.modal-body-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 1.5rem;
    min-height: 0;
}

.modal-body {
    padding: 1rem 0;
}

.modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modal-highlight {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.modal-highlight-text {
    color: var(--text-primary);
    font-weight: 500;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--dark-border);
    flex-shrink: 0;
    background: var(--dark-surface);
}

    .modal-footer .btn {
        flex: 1;
    }

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Скрываем обычную навигацию на мобильных */
    .nav-links {
        display: none !important;
    }

    .auth-buttons {
        display: none !important;
    }

    .drawer-toggle {
        display: block;
    }

    .mobile-header {
        display: flex;
    }

    /* Адаптируем основной заголовок */
    .navbar {
        padding: 0.5rem 0;
        justify-content: flex-start;
    }

    .logo {
        display: none;
    }

    /* Футер на мобильных */
    .app-footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-disclaimer {
        margin: 0 auto;
    }

    .play-store-badge {
        height: 40px;
    }

    /* Карточки */
    .card-base.popular {
        transform: none;
    }

        .card-base.popular:hover {
            transform: translateY(-4px);
        }

    .info-block {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    /* Модальные окна */
    .modal-container {
        max-width: 95%;
        max-height: 95vh;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1rem 0.5rem;
    }

        .modal-header h3 {
            font-size: 1.3rem;
        }

    .modal-body-wrapper {
        padding: 0 1rem;
    }

    .modal-footer {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

        .modal-footer .btn {
            width: 100%;
        }

    .modal-icon {
        font-size: 2.5rem;
    }

    .modal-body p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) and (max-width: 768px) {
    .home-page .nav-links {
        display: none;
    }

    .home-page .auth-buttons {
        display: none;
    }

    .home-page .drawer-toggle {
        display: block;
    }

    .home-page .logo {
        display: flex;
    }

    .home-page .mobile-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .drawer-menu {
        width: 85%;
    }

    .mobile-header-title {
        max-width: 150px;
        font-size: 1rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .modal-header {
        padding: 0.75rem 0.75rem 0.25rem;
    }

        .modal-header h3 {
            font-size: 1.2rem;
        }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }
}

/* Анимации для drawer */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Для главной страницы */
.home-page .drawer-toggle {
    display: none;
}

.home-page .nav-links {
    display: flex;
}

.home-page .auth-buttons {
    display: flex;
}
