/* Премиальный дизайн в стиле лучших SaaS-платформ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Цветовая палитра */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #64748b;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Нейтральные цвета */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    
    /* Размеры */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: white;
    overflow-x: hidden;
}

/* Современный header с фиксированной позицией */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* АВТОМАТИЧЕСКАЯ АДАПТАЦИЯ КНОПОК ПОД РАЗМЕРЫ ЭКРАНА - v20251022110000 */

/* УЛУЧШЕННЫЙ АДАПТИВНЫЙ ТЕКСТ КНОПОК */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

.btn-text-tiny {
    display: none;
}

/* Планшеты - короткий текст */
@media (max-width: 768px) {
    .btn-text-desktop {
        display: none;
    }
    
    .btn-text-mobile {
        display: inline;
    }
}

/* Телефоны - только иконки */
@media (max-width: 480px) {
    .btn-text-desktop {
        display: none;
    }
    
    .btn-text-mobile {
        display: none;
    }
    
    .btn-text-tiny {
        display: inline;
    }
    
    .header-actions .btn {
        padding: 0.4rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .header-actions .btn i {
        font-size: 1rem;
    }
}

/* Очень маленькие экраны - компактные иконки */
@media (max-width: 360px) {
    .header-actions .btn {
        padding: 0.3rem;
        min-width: 35px;
    }
    
    .header-actions .btn i {
        font-size: 0.9rem;
    }
}
/* АВТОМАТИЧЕСКАЯ АДАПТАЦИЯ КНОПОК ПОД РАЗМЕРЫ ЭКРАНА */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: row;
        gap: clamp(0.2rem, 2vw, 0.5rem);
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
        max-width: 100%;
    }
    
    .header-actions .btn {
        flex: 0 1 auto;
        padding: clamp(0.3rem, 1.5vw, 0.6rem) clamp(0.4rem, 2vw, 0.8rem);
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        text-align: center;
        border-radius: clamp(4px, 1vw, 8px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all 0.3s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        min-width: fit-content;
        max-width: none;
    }
    
    .header-actions .btn-ghost {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .header-actions .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .header-actions .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
    }
    
    .header-actions .btn-primary:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    }
}

/* АВТОМАТИЧЕСКАЯ АДАПТАЦИЯ ДЛЯ ВСЕХ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 480px) {
    .header-actions {
        gap: clamp(0.1rem, 1.5vw, 0.3rem);
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
    }
    
    .header-actions .btn {
        padding: clamp(0.25rem, 1.2vw, 0.5rem) clamp(0.3rem, 1.8vw, 0.6rem);
        font-size: clamp(0.65rem, 2.2vw, 0.8rem);
        min-width: fit-content;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .header-actions {
        gap: clamp(0.05rem, 1vw, 0.2rem);
    }
    
    .header-actions .btn {
        padding: clamp(0.2rem, 1vw, 0.4rem) clamp(0.25rem, 1.5vw, 0.5rem);
        font-size: clamp(0.6rem, 2vw, 0.75rem);
    }
}

/* Современные кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Главная секция */
/* Базовый стиль для desktop - переопределяется в медиа-запросах для мобильных */
.hero, .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Исправление для мобильных - применяется ко всем экранам меньше 769px */
@media (max-width: 768px) {
    .hero, .hero-section {
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
    }
}

.hero::before, .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Адаптивный заголовок */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

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

/* Секция функций */
.features {
    padding: 8rem 0;
    background: white;
}

.features-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Features section - БАЗОВЫЙ СТИЛЬ ДЛЯ DESKTOP */
.features-section {
    padding: 6rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* Marketplaces badges */
.marketplaces-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.marketplace-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.marketplace-badge.avito {
    background: linear-gradient(135deg, #5B9E55 0%, #4a7f46 100%);
    font-size: 16px;
    padding: 12px 24px;
}

/* User info */
.user-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.user-info p {
    margin: 4px 0;
    color: white;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Секция статистики */
.stats {
    padding: 6rem 0;
    background: var(--gray-900);
    color: white;
}

.stats-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-300);
    font-weight: 500;
}

/* CTA секция */
.cta {
    padding: 8rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Футер */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* Формы */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

.form-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--gray-600);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
    margin: 0;
    text-indent: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Убираем все возможные отступы */
.form-input::-webkit-input-placeholder {
    text-indent: 0;
}

.form-input::-moz-placeholder {
    text-indent: 0;
}

.form-input::placeholder {
    text-indent: 0;
}

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

.form-input.is-invalid {
    border-color: var(--error);
}

.form-input.is-valid {
    border-color: var(--success);
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: var(--gray-500);
    font-size: 0.8rem;
    line-height: 1.4;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    animation: slideIn 0.5s ease-out;
}

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

/* Всплывающие уведомления */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flash-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.flash-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.flash-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--gray-700);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary);
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 0 0.5rem;
        flex-wrap: nowrap;
        gap: 0.25rem;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.4rem !important;
        white-space: nowrap;
        flex-shrink: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70%;
        font-weight: 800 !important;
    }
    
    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
    }
    
    .nav {
        display: none;
    }
    
    .hero-content {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Исправление обрезания текста на мобильных */
    .hero-title {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .hero-title span {
        white-space: normal !important;
        display: inline !important;
    }
    
    .hero-description {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Исправление обрезания контента на мобильных */
    .hero, .hero-section {
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 3rem;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .header-content {
        padding: 0 0.25rem;
        gap: 0.1rem;
    }
    
    .logo {
        font-size: 0.9rem;
        gap: 0.3rem;
        max-width: 70%;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* Адаптация для экранов меньше 360px */
@media (max-width: 360px) {
    .header-content {
        padding: 0 0.1rem;
    }
    
    .logo {
        font-size: 0.8rem;
        gap: 0.2rem;
        max-width: 75%;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-container,
    .stats-container,
    .cta-container,
    .footer-container {
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .form-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Modern Dashboard Styles */
.modern-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 2rem;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6rem 0 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.welcome-section {
    padding-top: 1rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.header-actions {
    padding-top: 1rem;
}

.header-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.dashboard-main {
    background: white;
    border-radius: 20px;
    margin: 0 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-actions {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.action-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.action-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.shops-section {
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.shop-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.shop-url {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fef2f2;
    color: #dc2626;
}

.shop-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.shop-stat {
    text-align: center;
}

.shop-stat .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.shop-stat .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-outline {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

.recent-activity {
    padding: 2rem;
    background: #f8fafc;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: #64748b;
}

.empty-activity {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-actions {
        flex-direction: column;
    }
    
    .dashboard-main {
        margin: 0 0.5rem;
    }
}

/* Улучшенные стили для форм */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.form-help {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: flex-start;
}

.btn-form {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-form-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-form-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-form-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-form-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
    text-decoration: none;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive для форм */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-form {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SUBSCRIPTION PAGE STYLES ===== */
.subscription-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
}

.subscription-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.subscription-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.subscription-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.subscription-content {
    padding: 2rem 0;
}

/* Subscription Cards Grid */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.subscription-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.trial-card {
    border-color: #10b981;
}

.paid-card {
    border-color: #667eea;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 2rem 2rem 1rem;
    gap: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.trial-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.paid-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-info {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.card-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.trial {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.paid {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.card-body {
    padding: 0 2rem 2rem;
}

.trial-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.trial-features, .pricing-features {
    margin: 0;
}

.trial-features ul, .pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trial-features li, .pricing-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
}

.trial-features li i, .pricing-features li i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.price-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.period {
    font-size: 1rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.card-footer {
    padding: 0 2rem 2rem;
}

.btn-card {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-activate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

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

.btn-add-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

.btn-add-new {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: white;
    text-decoration: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* Additional Shop Section */
.additional-shop-section {
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid #f1f5f9;
}

.pricing-header {
    display: flex;
    align-items: center;
    padding: 2rem 2rem 1rem;
    gap: 1rem;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.pricing-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.pricing-info p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.pricing-body {
    padding: 0 2rem 2rem;
}

.price-breakdown {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.price-item.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-item.discount {
    color: #10b981;
}

.price-label {
    color: #64748b;
}

.price-value {
    font-weight: 600;
    color: #1e293b;
}

.pricing-benefits h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.pricing-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-benefits li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
}

.pricing-benefits li i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.pricing-footer {
    padding: 0 2rem 2rem;
}

/* Shop Management Section */
.shop-management-section {
    margin-bottom: 3rem;
}

.shops-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.shop-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.shop-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.shop-details p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.shop-subscription {
    flex: 1;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.trial {
    background: #10b981;
}

.status-indicator.paid {
    background: #667eea;
}

.status-indicator.paused {
    background: #f59e0b;
}

.status-text {
    font-weight: 600;
    color: #1e293b;
}

.days-left {
    font-size: 0.875rem;
    color: #64748b;
}

.shop-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-pause {
    background: #fef3c7;
    color: #d97706;
}

.btn-pause:hover {
    background: #f59e0b;
    color: white;
}

.btn-resume {
    background: #d1fae5;
    color: #059669;
}

.btn-resume:hover {
    background: #10b981;
    color: white;
}

.btn-upgrade {
    background: #e0e7ff;
    color: #667eea;
}

.btn-upgrade:hover {
    background: #667eea;
    color: white;
}

/* Add Shop Section */
.add-shop-section {
    margin-bottom: 3rem;
}

.add-shop-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.add-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.add-shop-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.add-shop-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.add-shop-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.add-shop-details p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.pricing-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.original-price {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.discount-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.add-shop-action {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subscription-title {
        font-size: 2rem;
    }
    
    .shop-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .shop-info {
        width: 100%;
    }
    
    .shop-subscription {
        width: 100%;
    }
    
    .shop-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .add-shop-card {
        flex-direction: column;
        text-align: center;
    }
    
    .add-shop-info {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-header {
        flex-direction: column;
        text-align: center;
    }
}

/* No Shops Section */
.no-shops {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px dashed #e2e8f0;
}

.no-shops-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #94a3b8;
    font-size: 2rem;
}

.no-shops h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.no-shops p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* ===== ANALYTICS PAGE STYLES ===== */
.analytics-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
}

.analytics-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.analytics-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.analytics-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.analytics-content {
    padding: 2rem 0;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-card.total-messages {
    border-color: #667eea;
}

.stat-card.today-messages {
    border-color: #10b981;
}

.stat-card.week-messages {
    border-color: #f59e0b;
}

.stat-card.month-messages {
    border-color: #ef4444;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card.total-messages .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.today-messages .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.week-messages .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.month-messages .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e2937;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Charts Section */
.charts-section {
    margin-bottom: 3rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #f1f5f9;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-chart {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-chart.active,
.btn-chart:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.chart-body {
    height: 300px;
    position: relative;
}

/* Metrics Section */
.metrics-section {
    margin-bottom: 3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.metric-info {
    flex: 1;
}

.metric-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

/* Actions Section */
.actions-section {
    margin-bottom: 3rem;
}

.export-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-export {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ===== INSTRUCTIONS PAGE STYLES ===== */
.instructions-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 8rem 0 3rem;
    margin-bottom: 2rem;
}

.instructions-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.instructions-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.instructions-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.instructions-content {
    padding: 2rem 0;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content {
    margin-top: 1rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-example {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 4px solid #667eea;
}

.step-example code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: #1e293b;
}

.step-example small {
    color: #64748b;
    font-size: 0.875rem;
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.guide-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.guide-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.guide-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.code-example {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.code-example code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    display: block;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.code-example code:hover {
    color: #ffffff;
}

/* Catalog Guide */
.catalog-guide {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.catalog-format h3,
.catalog-tips h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.format-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.format-header {
    background: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    padding: 1rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.format-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.format-row:last-child {
    border-bottom: none;
}

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

.tips-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #64748b;
}

.tips-list li i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

/* Advanced Grid */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.advanced-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.advanced-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.advanced-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.advanced-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.advanced-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.advanced-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advanced-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.advanced-step .step-number {
    position: static;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.analytics-list,
.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-list li,
.security-list li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.analytics-list li:last-child,
.security-list li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.faq-question i {
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Support Section */
.support-section {
    margin-bottom: 3rem;
}

.support-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    text-align: center;
}

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

.support-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-support {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-support:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid,
    .charts-grid,
    .metrics-grid,
    .steps-grid,
    .guide-grid,
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-guide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .format-header,
    .format-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .support-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .export-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .analytics-title,
    .instructions-title {
        font-size: 2rem;
    }
}

/* Стили для кнопок деактивации подписки */
.btn-deactivate {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 5px;
}

.btn-deactivate:hover {
    background: linear-gradient(135deg, #ff5252, #e53e3e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-reactivate {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 5px;
}

.btn-reactivate:hover {
    background: linear-gradient(135deg, #38b2ac, #319795);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Стили для аналитики токенов */
.token-analytics-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.token-analytics-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.token-analytics-header-content {
    text-align: center;
    color: white;
}

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

.token-analytics-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.token-analytics-content {
    padding: 3rem 0;
}

.overall-stats-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.2;
}

.stat-label {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.shops-stats-section {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.shops-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.shop-stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shop-stat-card:hover {
    transform: translateY(-4px);
}

.shop-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.shop-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.shop-url {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.shop-cost {
    text-align: right;
}

.cost-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    display: block;
}

.cost-period {
    font-size: 0.9rem;
    color: #718096;
}

.shop-stat-body {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.message-types-breakdown {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.message-types-breakdown h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.message-types-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
}

.type-name {
    font-weight: 500;
    color: #2d3748;
    text-transform: capitalize;
}

.type-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.type-tokens, .type-cost, .type-count {
    color: #718096;
}

.tips-section {
    margin-top: 3rem;
}

.tips-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tips-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

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

.tips-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li i {
    color: #48bb78;
    font-size: 1rem;
}

/* ===== ЛИМИТЫ ТОКЕНОВ ===== */
.limits-section {
    margin-bottom: 2rem;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.limit-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.limit-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.limit-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.limit-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.limit-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

.limit-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.limit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.limit-label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.limit-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .token-analytics-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .shops-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-stat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .shop-cost {
        text-align: left;
    }
    
    .stat-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .type-stats {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===== УЛУЧШЕННАЯ МОБИЛЬНАЯ АДАПТИВНОСТЬ ===== */

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Общие улучшения */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Заголовки */
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    /* Контейнеры */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Хедер */
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Главная секция - исправления */
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Секции */
    .features {
        padding: 4rem 0;
    }
    
    .features-container {
        padding: 0 1rem;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem auto;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Статистика */
    .stats {
        padding: 4rem 0;
    }
    
    .stats-container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    /* CTA секция */
    .cta {
        padding: 4rem 0;
    }
    
    .cta-container {
        padding: 0 1rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .cta-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Кнопки */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* Минимальный размер для касания */
    }
    
    .btn-primary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Карточки */
    .card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1rem;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }
    
    /* Сетки */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Формы */
    .form-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Предотвращает зум на iOS */
        min-height: 44px;
    }
    
    .form-textarea {
        min-height: 120px;
        font-size: 16px;
    }
    
    /* Таблицы */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    /* Модальные окна */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Футер */
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Анимации */
    .fade-in {
        animation-duration: 0.3s;
    }
    
    .slide-up {
        animation-duration: 0.3s;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    /* Еще более компактные стили */
    .container {
        padding: 0 0.75rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.625rem;
        font-size: 16px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    /* Уменьшаем отступы */
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        padding: 0;
    }
    
    .hero-actions {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions .btn {
        max-width: 260px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Секции */
    .features {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
        padding: 0;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
    
    /* Статистика */
    .stats {
        padding: 3rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* CTA */
    .cta {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 1.6rem !important;
    }
    
    .cta-subtitle {
        font-size: 0.9rem !important;
        padding: 0;
    }
    
    .cta-actions .btn {
        max-width: 260px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* Планшеты в портретной ориентации (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Улучшения для касаний */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем области касания */
    .btn, .nav-links a, .footer-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Убираем hover эффекты на мобильных */
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* Улучшаем навигацию */
    .nav-links a {
        padding: 1rem;
        margin: 0.25rem 0;
    }
}

/* Темная тема для мобильных */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-control {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
}

/* Улучшения для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .form-control {
        font-size: 16px; /* Предотвращает зум */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    .btn {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
}

/* Улучшения для Android Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-control {
        font-size: 16px;
    }
}


/* ===== АДМИН ПАНЕЛЬ ===== */

/* Кнопки админ-панели */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.section-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.section-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.section-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.section-actions .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Управление пользователями */
.admin-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: #6366f1;
    outline: none;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.user-stats .stat-card:hover {
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-details strong {
    display: block;
    color: #1f2937;
    font-size: 0.9rem;
}

.user-details small {
    color: #6b7280;
    font-size: 0.8rem;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-user {
    background: #dbeafe;
    color: #1e40af;
}

.role-admin {
    background: #fef3c7;
    color: #d97706;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-blocked {
    background: #fee2e2;
    color: #991b1b;
}

.status-unverified {
    background: #fef3c7;
    color: #d97706;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.bulk-actions {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 2px solid #6366f1;
}

.bulk-actions-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-count {
    font-weight: 600;
    color: #1f2937;
}

.bulk-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bulk-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-info {
    font-weight: 500;
    color: #6b7280;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.user-detail {
    line-height: 1.6;
}

.user-detail p {
    margin: 0.5rem 0;
    color: #374151;
}

.user-detail strong {
    color: #1f2937;
}

/* Управление магазинами */
.shop-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.shop-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.shop-stats .stat-card:hover {
    transform: translateY(-2px);
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.shop-details strong {
    display: block;
    color: #1f2937;
    font-size: 0.9rem;
}

.shop-details small {
    color: #6b7280;
    font-size: 0.8rem;
}

.owner-info strong {
    display: block;
    color: #1f2937;
    font-size: 0.9rem;
}

.owner-info small {
    color: #6b7280;
    font-size: 0.8rem;
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.subscription-trial {
    background: #fef3c7;
    color: #d97706;
}

.subscription-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.shop-detail {
    line-height: 1.6;
}

.shop-detail p {
    margin: 0.5rem 0;
    color: #374151;
}

.shop-detail strong {
    color: #1f2937;
}

/* 2FA для админа */
.security-status {
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-enabled .status-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-disabled .status-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-content h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.status-text p {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
}

.status-enabled {
    color: #059669;
    font-weight: 600;
}

.status-disabled {
    color: #d97706;
    font-weight: 600;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.step-content p {
    margin: 0 0 1rem 0;
    color: #6b7280;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.verify-form {
    max-width: 400px;
}

.verify-form .form-group {
    margin-bottom: 1rem;
}

.verify-form input {
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
}

.management-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.option-card:hover {
    transform: translateY(-2px);
}

.option-card.danger {
    border-left: 4px solid #ef4444;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-card.danger .option-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.option-content h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.option-content p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.login-history {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.warning-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.warning-message i {
    color: #ef4444;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.warning-message h4 {
    color: #dc2626;
    margin: 0.5rem 0;
}

.warning-message p {
    color: #991b1b;
    margin: 0.25rem 0;
}

.backup-codes-container {
    text-align: center;
}

.codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.backup-code {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    color: #374151;
}

/* Секция безопасности в админ-панели */
.security-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.security-item:last-child {
    border-bottom: none;
}

.security-item i {
    width: 20px;
    color: #6366f1;
    font-size: 1.1rem;
}

.security-item span:first-of-type {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

.security-item span:last-of-type {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Адаптивность для 2FA */
@media (max-width: 768px) {
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .management-options {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        flex-direction: column;
        text-align: center;
    }
    
    .option-icon {
        align-self: center;
    }
    
    .codes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для управления пользователями */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .filter-group select {
        flex: 1;
    }
    
    .user-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .bulk-actions-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .bulk-buttons {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}
.admin-dashboard {
    padding: 2rem 0;
    background: white;
    min-height: 100vh;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin: 0 1rem 3rem 1rem;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.admin-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.admin-content {
    padding: 0 1rem;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
}

.user-id {
    font-size: 0.8rem;
    color: #6b7280;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.verified {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.unverified {
    background: #fee2e2;
    color: #991b1b;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

.role-badge.user {
    background: #e0e7ff;
    color: #3730a3;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-icon.danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f9fafb;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.shop-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.shop-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.shop-status.active {
    background: #d1fae5;
    color: #065f46;
}

.shop-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.shop-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.shop-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.analytics-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
}

.analytics-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.chart-container {
    height: 200px;
    position: relative;
}

.top-users {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.user-tokens {
    font-weight: 600;
    color: #667eea;
}

.logs-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.log-entry {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: #6b7280;
    min-width: 80px;
}

.log-level {
    font-weight: 600;
    min-width: 80px;
}

.log-entry.error .log-level {
    color: #dc2626;
}

.log-entry.warning .log-level {
    color: #d97706;
}

.log-entry.info .log-level {
    color: #2563eb;
}

.log-message {
    flex: 1;
    color: #374151;
}

/* Мобильные стили для админ панели */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* ===== FLASH СООБЩЕНИЯ ===== */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.flash-message {
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

.flash-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.flash-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.flash-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.flash-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Цвета для разных типов сообщений */
.flash-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
}

.flash-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
}

.flash-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
}

.flash-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Автоскрытие flash сообщений */
.flash-message {
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-out 4.7s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Мобильные стили для flash сообщений */
@media (max-width: 768px) {
    .flash-messages {
        top: 80px;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .flash-content {
        padding: 0.875rem 1rem;
    }
    
    .flash-text {
        font-size: 0.85rem;
    }
    
    .flash-icon {
        font-size: 1.1rem;
    }
}

/* ===== МОБИЛЬНОЕ МЕНЮ-ГАМБУРГЕР ===== */

/* Кнопка гамбургер */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Скрываем кнопку на десктопе */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Показываем кнопку на мобильных */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.3s ease forwards;
    }
    
    .nav-links.active li {
        animation-delay: calc(var(--i) * 0.1s);
    }
    
    .nav-links li:nth-child(1) { --i: 1; }
    .nav-links li:nth-child(2) { --i: 2; }
    .nav-links li:nth-child(3) { --i: 3; }
    .nav-links li:nth-child(4) { --i: 4; }
    .nav-links li:nth-child(5) { --i: 5; }
    .nav-links li:nth-child(6) { --i: 6; }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        min-width: 200px;
        text-align: center;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    /* Кнопки в мобильном меню */
    .nav-links .btn {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 250px;
    }
}

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

/* Улучшения для очень маленьких экранов */
@media (max-width: 480px) {
    .nav-links {
        padding: 1rem;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
        min-width: 180px;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }
}

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
}

.admin-header h1 {
    color: var(--gray-800);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.users { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-icon.shops { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.messages { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.revenue { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 500;
}

.stat-change {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--error); }

.content-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-500);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.recent-activity {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: white;
}

.activity-icon.user { background: #3b82f6; }
.activity-icon.shop { background: #10b981; }
.activity-icon.message { background: #f59e0b; }
.activity-icon.payment { background: #8b5cf6; }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.quick-actions {
    display: grid;
    gap: 1rem;
}

.quick-action {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 15px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--gray-200);
    transform: translateX(5px);
}

.quick-action i {
    margin-right: 1rem;
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray-500);
}

.error {
    background: #fef2f2;
    color: var(--error);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .content-sections {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Дополнительные стили для админ-панели */
.admin-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.table th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.role-badge, .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #dbeafe;
    color: #1e40af;
}

.role-user {
    background: #f0fdf4;
    color: #166534;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-blocked {
    background: #fee2e2;
    color: #991b1b;
}

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

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.shop-header h4 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
}

.shop-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.shop-details {
    margin-bottom: 1.5rem;
}

.shop-details p {
    margin: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.shop-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.analytics-card h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.status-card h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-500);
}

.security-status {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-500);
}

.settings-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-500);
}

/* Стили для выхода из админ-панели */
.sidebar-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1rem 0;
}

.logout-btn {
    color: var(--error) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: var(--error) !important;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Метрики магазина */
.shop-metrics {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.metrics-row {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.metric-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Горизонтальная структура настроек */
.auth-main-card.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.status-section {
    margin-top: auto;
}

/* Уменьшенный масштаб для настроек */
.configure-shop-container {
    zoom: 0.8;
    transform-origin: top center;
}

/* ПРОФЕССИОНАЛЬНЫЙ ДИЗАЙН НАСТРОЕК */
.configure-shop-container {
    background: #ffffff !important;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Принудительно белый фон для всей страницы */
body {
    background: #ffffff !important;
}

.container-fluid {
    background: #ffffff !important;
}

.row {
    background: #ffffff !important;
}

/* Профессиональная карточка */
.professional-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-icon i {
    font-size: 1.5rem;
    color: white;
}

.header-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.header-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.card-body {
    padding: 2rem;
    background: white;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title i {
    font-size: 1.2rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #667eea;
}

.instructions h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 0.5rem;
    color: #555;
}

.example {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.example code {
    background: #dee2e6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #495057;
}

.oauth-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.oauth-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.status-badge {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-description {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 0 0;
    border-left: 3px solid #667eea;
}

/* Шаблоны промптов */
.prompt-templates-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f4;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.template-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    border-color: #667eea;
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.template-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.template-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.template-card.active .template-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.template-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.template-card.active h5 {
    color: white;
}

.template-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.template-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

/* Единая центрированная карточка */
.unified-auth-card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    max-width: 800px !important;
}

.unified-auth-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

.unified-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 2rem !important;
    text-align: center !important;
    border-radius: 20px 20px 0 0 !important;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.header-icon i {
    font-size: 2rem !important;
    color: white !important;
}

.unified-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.unified-subtitle {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0.5rem 0 0 0 !important;
    font-weight: 500 !important;
}

.unified-content {
    padding: 2.5rem !important;
    background: white !important;
}

.section {
    margin-bottom: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

.section:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.section-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    gap: 0.75rem !important;
}

.section-header i {
    font-size: 1.2rem !important;
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.section-header h4 {
    margin: 0 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.oauth-buttons {
    display: flex !important;
    gap: 1.25rem !important;
    margin: 1.5rem 0 !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.oauth-buttons .btn {
    min-width: 140px !important;
    padding: 0.875rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.oauth-description {
    color: #666 !important;
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
}

.instructions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 1.75rem !important;
    border-radius: 16px !important;
    margin-top: 1.25rem !important;
    border-left: 5px solid #667eea !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.instructions h6 {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.instructions ol {
    margin: 0 !important;
    padding-left: 1.5rem !important;
}

.instructions li {
    margin-bottom: 0.5rem !important;
    color: #555 !important;
}

.example {
    background: #e9ecef !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-top: 1rem !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9rem !important;
}

.example code {
    background: #dee2e6 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    color: #495057 !important;
}

/* Улучшенный заголовок */
.enhanced-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-icon i {
    font-size: 1.5rem;
    color: white;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    width: fit-content;
}

.status-indicator i {
    color: #10b981;
    font-size: 0.7rem;
}

.configure-shop-container .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.configure-shop-container .col-md-6 {
    flex: 0 0 calc(50% - 1rem) !important;
    max-width: calc(50% - 1rem) !important;
    display: flex !important;
}

.configure-shop-container .auth-main-card {
    width: 100% !important;
    margin-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.configure-shop-container .auth-main-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

.configure-shop-container .auth-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 2rem !important;
    margin: -1px -1px 0 -1px !important;
    border-radius: 20px 20px 0 0 !important;
}

.configure-shop-container .auth-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: white !important;
}

.configure-shop-container .auth-subtitle {
    font-size: 0.9rem !important;
    opacity: 0.9 !important;
    margin: 0.5rem 0 0 0 !important;
    color: white !important;
}

.configure-shop-container .auth-icon-wrapper {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
}

.configure-shop-container .auth-icon-wrapper i {
    font-size: 1.5rem !important;
    color: white !important;
}

.configure-shop-container .auth-content {
    padding: 2rem !important;
    background: white !important;
}

.configure-shop-container .form-control {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
}

.configure-shop-container .form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    background: white !important;
}

.configure-shop-container .status-badge {
    padding: 1.25rem 1.75rem !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.configure-shop-container .status-badge:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.configure-shop-container .status-description {
    background: rgba(0, 0, 0, 0.05) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0.5rem 0 0 0 !important;
    border-left: 3px solid #667eea !important;
}

.configure-shop-container .status-badge.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.configure-shop-container .status-badge.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

.configure-shop-container .btn {
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.configure-shop-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.configure-shop-container .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3) !important;
}

.configure-shop-container .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.configure-shop-container .btn-outline-primary {
    border: 2px solid #667eea !important;
    color: #667eea !important;
    background: transparent !important;
}

.configure-shop-container .btn-outline-primary:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Адаптивность для горизонтальной структуры */
@media (max-width: 992px) {
    .configure-shop-container .row > .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .metrics-row {
        gap: 0.5rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    /* На мобильных устройствах возвращаем вертикальную структуру */
    .configure-shop-container .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ======================================== */
/* ПЛАВНЫЕ ПЕРЕХОДЫ И АНИМАЦИИ */
/* ======================================== */

/* ПЛАВНЫЕ ПЕРЕХОДЫ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ */
* {
    transition: all 0.3s ease !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ СТРАНИЦ */
body {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ КНОПОК */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark {
    transition: all 0.3s ease !important;
    transform: translateZ(0) !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ КАРТОЧЕК */
.card, .shop-card, .template-card, .professional-card {
    transition: all 0.3s ease !important;
    transform: translateZ(0) !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ ФОРМ */
.form-control, .form-select, .form-check-input {
    transition: all 0.3s ease !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ НАВИГАЦИИ */
.navbar, .nav-link, .navbar-brand {
    transition: all 0.3s ease !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ МОДАЛЬНЫХ ОКОН */
.modal, .modal-content, .modal-dialog {
    transition: all 0.3s ease !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ АНИМАЦИЙ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ПРИМЕНЕНИЕ АНИМАЦИЙ */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}

.scale-in {
    animation: scaleIn 0.3s ease forwards;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ HOVER */
.btn:hover, .card:hover, .nav-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ FOCUS */
.form-control:focus, .btn:focus {
    transform: scale(1.02) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ СТРАНИЦ */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.3s ease forwards;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ ЗАГРУЗКИ */
.loading {
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ ОШИБОК */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ======================================== */
/* ГОРИЗОНТАЛЬНАЯ КОМПОНОВКА НАСТРОЕК */
/* ======================================== */

/* Горизонтальная компоновка настроек */
.settings-horizontal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Горизонтальные секции */
.settings-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.settings-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Горизонтальные поля в ряд */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .settings-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Улучшенные стили для профессиональной карточки */
.professional-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.professional-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.professional-card .card-body {
    padding: 2rem;
}

/* Улучшенные стили для секций */
.settings-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.settings-section .section-title i {
    color: #667eea;
    font-size: 1.2rem;
}

.settings-section .section-title h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}/* Современные стили для Avito AI Bot */

/* Основные стили для современных компонентов */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

    /* DESKTOP VERSION - Complete styles for screens 769px and wider */
@media (min-width: 769px) {
    /* Hero section base */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        position: relative;
        overflow: hidden;
        padding-top: 80px;
        padding-bottom: 6rem;
    }
    
    /* Декоративные элементы для заполнения пространства */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: 0;
        right: 0;
        height: 200px;
        background: white;
        border-radius: 50% 50% 0 0;
    }
    
    /* Container inside hero */
    .hero-section .container {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        padding: 0 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
    }
    
    /* Hero content layout */
    .hero-section .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        width: 100%;
        text-align: center;
    }
    
    /* Hero text styling */
    .hero-section .hero-text {
        flex: 0 0 auto;
        max-width: 700px;
    }
    
    .hero-title {
        font-size: 4.5rem !important;
        line-height: 1.1 !important;
        color: white !important;
        font-weight: 800 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 1.6rem !important;
        color: white !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Hero image/illustration */
    .hero-section .hero-image {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Hero actions buttons */
    .hero-section .hero-actions {
        justify-content: center !important;
        margin-bottom: 2rem;
    }
    
    /* Gradient text */
    .gradient-text {
        color: white !important;
        text-shadow: 0 0 20px rgba(255, 235, 59, 0.5) !important;
    }
}

.hero-section .hero-illustration {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

.hero-title {
    color: white !important;
    font-weight: 800 !important;
    font-size: 3.5rem !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #6366f1 !important; /* Fallback цвет */
}

.hero-description {
    color: white !important; /* Белый текст на градиенте */
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary {
    background: #6366f1;
    border: none;
    color: white;
}

.hero-actions .btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.hero-actions .btn-outline-primary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.hero-actions .btn-outline-primary:hover {
    background: white;
    color: #6366f1;
    transform: translateY(-2px);
}

/* Улучшение стилей форм */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-full {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.modern-card {
    background: var(--white, #ffffff);
    border-radius: var(--radius-lg, 1rem);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
    padding: 2rem;
    margin: 1rem 0;
}

.modern-button {
    background: var(--primary, #6366f1);
    color: var(--white, #ffffff);
    border: none;
    border-radius: var(--radius, 0.5rem);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-button:hover {
    background: var(--primary-dark, #4f46e5);
    transform: translateY(-1px);
}

.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200, #e2e8f0);
    border-radius: var(--radius, 0.5rem);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-nav {
    background: var(--white, #ffffff);
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
    padding: 1rem 0;
}

.modern-footer {
    background: var(--gray-900, #0f172a);
    color: var(--gray-300, #cbd5e1);
    padding: 3rem 0;
    margin-top: 4rem;
}

.modern-hero {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: var(--white, #ffffff);
    padding: 4rem 0;
    text-align: center;
}

.modern-section {
    padding: 4rem 0;
}

.modern-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.modern-feature {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50, #f8fafc);
    border-radius: var(--radius-lg, 1rem);
}

.modern-feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white, #ffffff);
    font-size: 1.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modern-container {
        padding: 0 15px;
    }
    
    .modern-hero {
        padding: 2rem 0;
    }
    
    .modern-section {
        padding: 2rem 0;
    }
    
    .modern-features {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {
    /* Исправление обрезания контента на маленьких мобильных */
    .hero, .hero-section {
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 0 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.2 !important;
    }
    
    .hero-title span {
        white-space: normal !important;
        display: inline !important;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.5 !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .feature-card {
        padding: 2.5rem 1.5rem !important;
    }
    
    .feature-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2.5rem !important;
    }
    
    .feature-card h3 {
        font-size: 1.75rem !important;
    }
    
    .feature-card p {
        font-size: 1.15rem !important;
    }
}

/* === Landing & Auth cleanup (2025-11-11) === */
/* Базовый стиль для desktop - переопределяется в медиа-запросах для мобильных */
@media (min-width: 769px) {
    .hero-section {
        background: linear-gradient(135deg, #4338ca 0%, #6366f1 45%, #8b5cf6 100%);
        color: var(--white);
        padding: 5rem 0;
    }
}

.hero-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    max-width: 560px;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-description,
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-actions .btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
}

.hero-illustration {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
}

.features-section {
    padding: 5rem 0;
    background: var(--white);
}

.features-section .section-title {
    text-align: center;
    color: var(--gray-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2.25rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--gray-200);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    background: var(--gradient-primary);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 1.5rem;
}

.auth-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.auth-header h1 {
    font-size: 2.25rem;
    color: var(--gray-900);
}

.auth-header p {
    color: var(--gray-500);
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    font-weight: 600;
    color: var(--gray-700);
    display: block;
    margin-bottom: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-300);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-card .btn {
    width: 100%;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-illustration {
        width: 280px;
        height: 280px;
        font-size: 5rem;
    }
}

@media (max-width: 640px) {
    .hero, .hero-section {
        padding: 3.5rem 0 3rem 0;
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .hero-content {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .hero-title span {
        white-space: normal !important;
        display: inline !important;
    }
    
    .hero-description {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .auth-card {
        padding: 2.25rem 1.75rem;
        border-radius: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
