/* ===== СОВРЕМЕННАЯ СВЕТЛАЯ СХЕМА ===== */
:root {
    /* Мягкие светлые фоны */
    --bg-primary: #fafbfc;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #ffffff;
    
    /* Акцентные цвета - яркие и современные */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    
    --warning-color: #f59e0b;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    
    --danger-color: #ef4444;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    
    --info-color: #3b82f6;
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    
    /* Текстовые цвета с отличным контрастом */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    /* Границы и тени */
    --border-color: #e5e7eb;
    --border-color-hover: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Геометрия */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ===== НАВИГАЦИЯ ===== */
.glass-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
    font-size: 1.75rem !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
}

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

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5em;
}

.text-light {
    color: var(--text-secondary) !important;
}

/* ===== КАРТОЧКИ ===== */
.glass-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-hover);
}

/* ===== СТАТИСТИЧЕСКИЕ КАРТОЧКИ ===== */
.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* ===== КНОПКИ ===== */
.btn-modern {
    position: relative;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.btn-modern:hover::before {
    left: 100%;
}

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

.btn-primary-modern {
    background: var(--primary-gradient);
    color: white;
    border: 1px solid var(--primary-light);
}

.btn-success-modern {
    background: var(--success-gradient);
    color: white;
    border: 1px solid var(--success-color);
}

.btn-warning-modern {
    background: var(--warning-gradient);
    color: white;
    border: 1px solid var(--warning-color);
}

/* ===== ТАБЛИЦЫ ===== */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 1rem 0.75rem !important;
    background: var(--bg-secondary) !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.875rem 0.75rem !important;
    background: var(--bg-tertiary) !important;
    vertical-align: middle !important;
    font-weight: 500 !important;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--bg-secondary) !important;
    transform: none;
}

.table tbody tr:hover td {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Prevent horizontal scrollbar in comparison tables */
.table-responsive {
    overflow-x: hidden !important;
}

.comparison-section .table-responsive {
    overflow: hidden;
}

/* ===== ИКОНКИ ===== */
.fa-check-circle {
    color: var(--success-color) !important;
    font-size: 1.25rem;
}

.fa-times-circle {
    color: var(--text-muted) !important;
    font-size: 1.25rem;
}

.fa-infinity {
    color: var(--info-color) !important;
    font-size: 1.25rem;
}

.fa-clock {
    color: var(--text-muted) !important;
}

/* ===== БЕЙДЖИ ===== */
.badge {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: var(--shadow-sm);
}

.bg-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.bg-success {
    background: var(--success-gradient) !important;
    color: white !important;
}

/* ===== ФОРМЫ ===== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
}

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

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== ПАГИНАЦИЯ ===== */
.page-link {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
    margin: 0 2px !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
    box-shadow: var(--shadow-sm) !important;
}

.page-link:hover {
    background: var(--bg-secondary) !important;
    transform: translateY(-1px) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: white !important;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.15s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.25s; }

/* ===== СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ ===== */
.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .glass-card {
        margin: 0.5rem;
        border-radius: var(--border-radius-sm);
    }
    
    .table th, .table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== УТИЛИТАРНЫЕ КЛАССЫ ===== */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-light { background: var(--bg-secondary) !important; }

/* ===== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Улучшение для пустых состояний */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Hover эффекты для интерактивных элементов */
.clickable:hover {
    cursor: pointer;
    transform: translateY(-1px);
    transition: var(--transition);
}

/* ===== PRICING CARDS ===== */
.plan-card-modern {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

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

.plan-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

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

.plan-card-modern.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.02) 100%);
    position: relative;
}

.plan-card-modern.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.1;
}

.plan-card-modern.premium-card {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.plan-card-modern.premium-card::before {
    background: var(--warning-gradient);
}

/* Improved stat cards within pricing */
.plan-card-modern .stat-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card-modern .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.plan-card-modern:hover .stat-card::before {
    left: 100%;
}

.plan-card-modern:hover .stat-card {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

/* Plan badges */
.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

/* Animation delays for pricing cards */
.plan-delay-0 { animation-delay: 0.1s; }
.plan-delay-1 { animation-delay: 0.3s; }
.plan-delay-2 { animation-delay: 0.5s; }

/* Price styling */
.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Pulse glow effect for featured card */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), var(--shadow-lg);
    }
}

.plan-card-modern.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Smooth transitions for plan switching */
.monthly-price, .yearly-price {
    transition: all 0.3s ease;
}

/* Enhanced button styles for pricing */
.plan-card-modern .btn-modern {
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card-modern .btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.plan-card-modern .btn-modern:hover::before {
    left: 100%;
}

/* ===== DASHBOARD STYLES ===== */
.password-generator-modern {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.password-generator-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1;
}

.generator-header h4 {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Compact Password Output Area */
.password-output-compact {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.password-output-compact:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.02);
}

.password-output-compact .empty-state {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.password-output-compact .empty-state i {
    font-size: 1.2rem;
}

.magic-wand-container {
    position: relative;
    display: inline-block;
}

.sparkle-effect {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Compact Generator Controls */
.generator-controls-compact {
    background: rgba(249, 250, 251, 0.8);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

/* Legacy support */
.generator-controls {
    background: rgba(249, 250, 251, 0.8);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.control-group {
    position: relative;
}

.control-group label {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* DJ-Style Volume Regulator Slider */
.range-modern {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, transparent, transparent);
    border-radius: 6px;
    outline: none;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

/* Track styling with nice gray color */
.range-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #d1d5db;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Progress track */
.range-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 6px;
    width: var(--range-progress, 50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-modern:hover::after {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
}

/* DJ-style vertical line thumb */
.range-modern::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

.range-modern::-webkit-slider-thumb:hover {
    height: 36px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.range-modern::-webkit-slider-thumb:active {
    height: 30px;
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Firefox styling */
.range-modern::-moz-range-thumb {
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-modern::-moz-range-thumb:hover {
    height: 36px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.range-modern::-moz-range-track {
    height: 8px;
    background: #d1d5db;
    border-radius: 6px;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.range-modern::-moz-range-progress {
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Enhanced range container */
.control-group {
    position: relative;
}

.control-group .range-modern {
    margin: 8px 0;
}

/* Range value indicators */
.range-modern + .range-indicators {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Modern Stats Panel - Compact */
.stats-panel-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.stats-panel-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

/* Stats Header */
.stats-header-modern {
    position: relative;
}

.user-avatar-stats {
    position: relative;
    display: inline-block;
}

.plan-badge-stats {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Modern Stat Cards - Compact */
.stat-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.stat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.stat-icon-container {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.1);
}

.stat-info {
    flex-grow: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

.stat-limit {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 0.5rem;
}

.stat-alert {
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

/* Modern Progress Bar */
.progress-modern {
    height: 8px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-modern {
    height: 100%;
    border-radius: 6px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.progress-bar-modern.bg-primary {
    background: var(--primary-gradient);
}

.progress-bar-modern.bg-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-bar-modern.bg-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-bar-modern.bg-danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Tariff Limited Card */
.stat-card-modern.tariff-limited {
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    position: relative;
}

.stat-card-modern.tariff-limited::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.tariff-indicator {
    opacity: 0.7;
}

.upgrade-hint {
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.tariff-context {
    border-top: 1px solid #fde68a;
    padding-top: 0.5rem;
}

/* Upgrade CTA */
.upgrade-cta-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upgrade-cta-modern:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.15);
}

.upgrade-cta-modern.upgrade-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 
        0 10px 25px rgba(251, 191, 36, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.1);
}

.upgrade-cta-modern.upgrade-premium:hover {
    box-shadow: 
        0 15px 35px rgba(251, 191, 36, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.15);
}

.upgrade-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
    z-index: 0;
}

.upgrade-glow-gold {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
    z-index: 0;
}

.upgrade-cta-modern .text-center {
    position: relative;
    z-index: 1;
    color: white;
}

.upgrade-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.upgrade-cta-modern h6 {
    color: white !important;
}

.upgrade-cta-modern p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* CTA Buttons */
.btn-cta-modern {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-cta-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.btn-cta-premium {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-cta-premium:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.5);
    color: white;
    transform: translateY(-1px);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.btn-shimmer-gold {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s;
}

.btn-cta-modern:hover .btn-shimmer {
    left: 100%;
}

.btn-cta-premium:hover .btn-shimmer-gold {
    left: 100%;
}

/* Animations */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Home Page Plan Cards - Modern Design */
.home-plan-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-plan-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Current Plan Styling */
.home-plan-card.current-plan {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.home-plan-card.current-plan:hover {
    box-shadow: 
        0 25px 50px rgba(16, 185, 129, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Popular Plan Styling */
.home-plan-card.popular-plan {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.home-plan-card.popular-plan:hover {
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Premium Plan Styling */
.home-plan-card.premium-plan {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 
        0 10px 30px rgba(245, 158, 11, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.home-plan-card.premium-plan:hover {
    box-shadow: 
        0 25px 50px rgba(245, 158, 11, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Plan Badges */
.current-plan-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.popular-plan-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.premium-plan-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Plan Icon */
.plan-icon-container {
    text-align: center;
    margin-top: 1rem;
}

.plan-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3b82f6;
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.home-plan-card:hover .plan-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px rgba(59, 130, 246, 0.2),
        0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Plan Title and Price */
.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: capitalize;
}

.plan-price-home {
    margin-bottom: 1rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.plan-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Plan Stats */
.plan-stats {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.plan-features li:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

/* Plan Action Buttons */
.plan-action {
    margin-top: auto;
}

.btn-current-plan {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    opacity: 0.9;
}

.btn-home-free {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
}

.btn-home-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
    color: white;
}

.btn-home-upgrade {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-home-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-home-downgrade {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    font-weight: 600;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    opacity: 0.7;
}

/* Premium Upgrade Button */
.premium-plan .btn-home-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.premium-plan .btn-home-upgrade:hover {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

/* Button Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
    z-index: 1;
}

.btn-home-upgrade:hover .btn-shine {
    left: 100%;
}

/* Small text in buttons */
.btn-home-upgrade small {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Animation delays for cards */
.plan-delay-0 { animation-delay: 0s; }
.plan-delay-1 { animation-delay: 0.2s; }
.plan-delay-2 { animation-delay: 0.4s; }

/* Modern Hero Section */
.hero-section-modern {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0 0.5rem 0;
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.hero-orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    top: 50%;
    left: 80%;
    animation-delay: 4s;
}

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

/* Hero Trust Badge */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.trust-badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Hero Title */
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 0.8rem;
}

.hero-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
    max-width: 480px;
}

/* Hero Benefits */
.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.hero-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.btn-shine-hero {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.btn-hero-primary:hover .btn-shine-hero {
    left: 100%;
}

/* Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin-left: -8px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.social-proof-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.social-proof-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-score {
    color: white;
    font-weight: 600;
    margin-left: 0.5rem;
}

.social-proof-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

/* Hero Visual Demo */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-password-demo {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.password-demo-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.demo-dots {
    display: flex;
    gap: 0.5rem;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
}

.demo-dots span:nth-child(1) { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #fbbf24; }
.demo-dots span:nth-child(3) { background: #10b981; }

.demo-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.demo-password-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.demo-password-text {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.demo-copy-btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-copy-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.demo-controls {
    margin-bottom: 1rem;
}

.demo-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.slider-track {
    flex-grow: 1;
    height: 4px;
    background: linear-gradient(to right, #3b82f6 60%, #e5e7eb 60%);
    border-radius: 2px;
    margin-left: 1rem;
}

.demo-options {
    display: flex;
    gap: 0.5rem;
}

.demo-option {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.demo-option.active {
    background: #3b82f6;
    color: white;
}

.demo-generate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.demo-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Security Elements */
.security-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.security-shield, .security-lock, .security-key {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    animation: float 4s ease-in-out infinite;
}

.security-shield {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.security-lock {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

.security-key {
    top: 60%;
    left: -5%;
    animation-delay: 3s;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section-modern {
        min-height: 60vh;
        padding: 1.5rem 0 0.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .password-demo-card {
        padding: 1rem;
    }
}

/* Benefits Section - Modern Design */
.benefit-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid transparent;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.1),
        0 6px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    text-align: center;
}

.benefit-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.benefit-card-modern.selling-benefit {
    border-color: rgba(59, 130, 246, 0.2);
}

.benefit-card-modern.selling-benefit:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Benefit Icon Container */
.benefit-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.benefit-icon-container.selling {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-card-modern:hover .benefit-icon-container.selling {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
        0 12px 35px rgba(59, 130, 246, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Benefit Content */
.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.benefit-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.benefit-metrics {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.metric-item {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* Mini Benefit Cards */
.benefit-card-mini {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card-mini:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 1);
}

.benefit-icon-mini {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #3b82f6;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-card-mini:hover .benefit-icon-mini {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
}

.benefit-content-mini {
    flex-grow: 1;
}

.benefit-title-mini {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.benefit-desc-mini {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Trust Statistics */
.trust-stats {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trust-item {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.trust-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.trust-description {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .benefit-card-modern {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit-icon-container {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit-title {
        font-size: 1.1rem;
    }
    
    .benefit-description {
        font-size: 0.9rem;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .benefit-card-mini {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .benefit-content-mini {
        text-align: center;
    }
}

/* Modern Switches */
.switch-modern .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    background-color: var(--border-color);
    border: none;
    transition: all 0.3s ease;
}

.switch-modern .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.switch-modern .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.switch-modern label {
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.switch-modern:hover label {
    color: var(--primary-color) !important;
}

/* Compact Switches */
.switch-compact .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 1rem;
    background-color: var(--border-color);
    border: none;
    transition: all 0.3s ease;
}

.switch-compact .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.switch-compact .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.switch-compact label {
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.switch-compact:hover label {
    color: var(--primary-color) !important;
}

/* Generate Button */
.generate-button {
    position: relative;
    overflow: hidden;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.generate-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #5b50e8 0%, #7c3aed 100%);
}

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

.generate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.generate-button:hover::before {
    left: 100%;
}

/* Dashboard Stats */
.stat-card-dashboard {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

.stat-number-dashboard {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-dashboard {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Avatar */
.user-avatar-modern {
    position: relative;
    display: inline-block;
}

.plan-badge-mini {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Upgrade Card */
.upgrade-card-modern {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upgrade-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warning-gradient);
}

.upgrade-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--warning-color);
}

/* Security Tips */
.security-tips-modern {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.security-tip-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.security-tip-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    background: rgba(99, 102, 241, 0.02);
}

.security-tip-card:last-child {
    margin-bottom: 0;
}

/* Password Display Styles */
.password-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
    word-break: break-all;
    transition: all 0.3s ease;
}

.password-text:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Loading States */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse animation for badges */
.pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

/* Enhanced generation animations */
.generating {
    animation: generating-pulse 1.5s ease-in-out infinite;
}

@keyframes generating-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.generating-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: generating-spin 1s linear infinite;
}

@keyframes generating-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Password result animations */
.password-result-container {
    animation: result-appear 0.6s ease-out;
}

@keyframes result-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-text-container {
    position: relative;
    overflow: hidden;
}

.password-text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: text-reveal 1s ease-out;
}

@keyframes text-reveal {
    to {
        left: 100%;
    }
}

.password-actions button {
    transform: translateY(10px);
    opacity: 0;
    animation: action-slide-up 0.4s ease-out forwards;
}

.password-actions button:nth-child(1) {
    animation-delay: 0.2s;
}

.password-actions button:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes action-slide-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced button interactions */
.password-actions button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Error result animations */
.error-result {
    animation: error-shake 0.6s ease-out;
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.error-icon-container {
    animation: error-bounce 0.8s ease-out;
}

@keyframes error-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced sparkle effects for success */
.password-result-container::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: success-sparkle 2s ease-in-out infinite;
}

@keyframes success-sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Range slider value update animation */
.pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Control group focus states */
.control-group:focus-within label {
    color: var(--primary-color) !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Enhanced switch animations */
.switch-modern .form-check-input:checked {
    animation: switch-success 0.3s ease-out;
}

@keyframes switch-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Stats card number animation on update */
.stat-number-dashboard.updating {
    animation: number-update 0.5s ease-out;
}

@keyframes number-update {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.2);
        color: var(--primary-color);
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Additional compact styles */
.generating-icon i {
    font-size: 1.2rem;
}

/* Enhanced compact design spacing */
.generator-controls-compact .form-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.generator-controls-compact .badge {
    font-size: 0.75rem;
}

/* Better mobile layout for compact design */
@media (max-width: 992px) {
    .generator-controls-compact .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    .generator-controls-compact .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .password-generator-modern {
        padding: 1.5rem;
    }
    
    .generator-controls,
    .generator-controls-compact {
        padding: 1rem;
    }
    
    .stat-card-dashboard {
        padding: 1rem;
    }
    
    .stat-number-dashboard {
        font-size: 1.5rem;
    }
    
    .password-text {
        font-size: 1rem;
    }
    
    .password-actions {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .password-actions button {
        width: 100%;
    }
    
    .generator-controls-compact .row {
        flex-direction: column;
    }
    
    .generator-controls-compact .col-lg-3,
    .generator-controls-compact .col-lg-4,
    .generator-controls-compact .col-lg-5 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .generator-controls-compact .d-flex {
        justify-content: center;
    }
}

/* ===== СОВРЕМЕННАЯ НАВИГАЦИЯ ===== */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

.navbar-modern:hover {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(229, 231, 235, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* ===== ЛОГОТИП БРЕНДА ===== */
.navbar-brand-modern {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.brand-link:hover::before {
    left: 100%;
}

.brand-link:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: brandShine 3s infinite;
}

.brand-icon i {
    color: white;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-top: 0.125rem;
}

/* ===== НАВИГАЦИОННЫЕ ССЫЛКИ ===== */
.navbar-nav-modern {
    display: flex;
    align-items: center;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-modern {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.05);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.nav-link-modern:hover::before,
.nav-link-modern.active::before {
    transform: scaleX(1);
}

.nav-link-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-link-content i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link-content span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-link-modern:hover .nav-link-content i,
.nav-link-modern.active .nav-link-content i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.nav-link-modern:hover .nav-link-content span,
.nav-link-modern.active .nav-link-content span {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Enhanced active state for current page */
.nav-link-modern.active {
    background: rgba(99, 102, 241, 0.08);
}

.nav-link-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.nav-link-modern:hover .nav-link-indicator {
    width: 60%;
}

.nav-link-modern.active .nav-link-indicator {
    width: 90%;
    height: 4px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* ===== ПОЛЬЗОВАТЕЛЬСКИЕ ДЕЙСТВИЯ ===== */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== ПОЛЬЗОВАТЕЛЬСКОЕ МЕНЮ ===== */
.user-menu-modern {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.user-button:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.user-avatar i {
    color: white;
    font-size: 0.9rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.user-chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.user-button:hover .user-chevron,
.user-button.active .user-chevron {
    transform: rotate(180deg);
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 250px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color);
}

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

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.user-avatar-large i {
    color: white;
    font-size: 1.5rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name-large {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-plan {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(239, 68, 68, 0.05);
    transition: left 0.3s ease;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    background: rgba(239, 68, 68, 0.05);
    color: var(--danger-color);
}

.dropdown-item i {
    margin-right: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== КНОПКИ АВТОРИЗАЦИИ ===== */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav-secondary,
.btn-nav-primary {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-nav-secondary {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-nav-secondary:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-nav-primary {
    color: white;
    background: var(--primary-gradient);
    border: 1px solid transparent;
    position: relative;
}

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

.btn-shine-nav {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-nav-primary:hover .btn-shine-nav {
    left: 100%;
}

.btn-nav-secondary i,
.btn-nav-primary i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px auto;
    border-radius: 1px;
    transition: all 0.3s ease;
}

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

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

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

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ ===== */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.mobile-nav.show {
    max-height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-nav-content {
    padding: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.05);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    transform: scaleX(1);
}

.mobile-nav-link.danger::before {
    background: rgba(239, 68, 68, 0.05);
}

.mobile-nav-link.primary::before {
    background: var(--primary-gradient);
}

.mobile-nav-link i {
    margin-right: 0.75rem;
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.mobile-nav-link.danger i {
    color: var(--danger-color);
}

.mobile-nav-link.primary i {
    color: white;
}

.mobile-nav-link span {
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.mobile-nav-link.primary span {
    color: white;
}

.mobile-nav-link:hover i {
    transform: scale(1.1);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ===== АНИМАЦИИ ===== */
@keyframes brandShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(50%) translateY(50%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991.98px) {
    .navbar-nav-modern {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-content {
        height: 60px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .auth-buttons {
        gap: 0.5rem;
    }
    
    .btn-nav-secondary,
    .btn-nav-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .mobile-nav {
        top: 60px;
    }
}

@media (max-width: 575.98px) {
    .navbar-container {
        padding: 0 0.75rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .user-name {
        display: none;
    }
    
    .btn-nav-secondary span,
    .btn-nav-primary span {
        display: none;
    }
    
    .btn-nav-secondary,
    .btn-nav-primary {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .user-dropdown {
        right: -1rem;
        min-width: 220px;
    }
}

/* ===== HERO DEMO УЛУЧШЕННЫЕ СТИЛИ ===== */
.demo-slider {
    margin-bottom: 1rem;
    position: relative;
}

.demo-slider .slider-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.demo-slider .slider-header span {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.demo-slider .range-modern {
    width: 100%;
    margin: 0.5rem 0;
}

/* Smooth transitions for demo slider - only progress bar animates via CSS */
.demo-slider .range-modern.animating::after {
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Remove thumb CSS transitions - we animate via JavaScript for smoother movement */
.demo-slider .range-modern.animating::-webkit-slider-thumb {
    transition: none !important;
}

.demo-slider .range-modern.animating::-moz-range-thumb {
    transition: none !important;
}

/* Override default range-modern transition for smoother demo animation */
.demo-slider .range-modern.animating {
    transition: none !important;
}

.demo-slider .range-indicators {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #374151;
    margin-top: 0.5rem;
    font-weight: 600;
}

.demo-slider .range-indicators .range-min,
.demo-slider .range-indicators .range-max {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.demo-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.demo-option {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.demo-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.demo-option:hover::before {
    left: 100%;
}

.demo-option.active {
    background: rgba(99, 102, 241, 0.9);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    text-shadow: none;
}

.demo-option.active::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.demo-generate-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.demo-generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.demo-generate-btn:hover::before {
    left: 100%;
}

.demo-copy-btn {
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.demo-copy-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.demo-password-field {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

#hero-demo-password {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    flex-grow: 1;
    margin-right: 0.75rem;
    word-break: break-all;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Анимации для hero demo */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.password-demo-card {
    transition: all 0.3s ease;
}

.password-demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Улучшенные hover эффекты */
.password-demo-card:hover .demo-option.active {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.password-demo-card:hover .slider-track::after {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}