/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */

:root {
    /* Основные цвета */
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    /* Нейтральные цвета */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: #2C3E50;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #FFFFFF;
    
    /* Границы и тени */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-color: #E1E8ED;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Размеры */
    --navbar-height: 70px;
    --sidebar-width: 280px;
    
    /* Переходы */
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   КОНТЕЙНЕРЫ И СЕТКИ
   ============================================ */

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-light);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.btn-outline:hover {
    background-color: var(--bg-secondary);
}

/* Кнопка outline на темном фоне (hero) */
.hero .btn-outline {
    color: white;
    border: 2px solid white;
    background: transparent;
}

.hero .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

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

.btn-link {
    color: var(--accent-color);
    padding: 0;
}

/* ============================================
   ЛЕНДИНГ
   ============================================ */

.landing-page {
    min-height: 100vh;
}

/* Hero секция */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: var(--text-light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23F8F9FA" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

@keyframes gradientMove {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #FFD700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a8c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(168, 192, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(168, 192, 255, 0.8));
    }
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.3));
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Секции */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2C3E50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* О нас */
.about-section {
    background-color: var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 50px;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
    letter-spacing: -2px;
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Анимация для статистики */
.stat-animated {
    animation: float 3s ease-in-out infinite;
}

.stat-animated:nth-child(1) {
    animation-delay: 0s;
}

.stat-animated:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-animated:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Преимущества */
.benefits-section {
    background-color: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.benefit-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
}

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

.benefit-card:hover .benefit-icon {
    animation: iconSpin 0.6s ease-in-out;
    filter: drop-shadow(0 6px 20px rgba(102, 126, 234, 0.4));
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.15);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Как вступить */
.join-section {
    background-color: var(--bg-primary);
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.step-card {
    background: var(--bg-primary);
    padding: 60px 40px 40px;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.step-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step-card h3 {
    font-size: 28px;
    margin: 20px 0;
    text-align: center;
    color: var(--text-primary);
}

.step-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
}

.step-info {
    padding: 16px 20px;
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

/* Контакты */
.contacts-section {
    background-color: var(--bg-secondary);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: #667eea;
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ============================================
   АВТОРИЗАЦИЯ
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 40px 20px;
}

.auth-container {
    background: var(--bg-primary);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 650px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.form-divider span {
    background-color: var(--bg-primary);
    padding: 0 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-color);
    font-weight: 600;
}

.alert {
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   ДАШБОРД
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    background-color: var(--bg-secondary);
}

.dashboard-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--navbar-height);
}

.dashboard-navbar h1 {
    color: white;
}

.dashboard-navbar .nav-menu {
    color: white;
}

.dashboard-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.dashboard-navbar h1 {
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
    color: white;
    font-weight: 600;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background-color: var(--danger-color);
    color: white;
}

.badge-manager {
    background-color: var(--warning-color);
    color: white;
}

.badge-member {
    background-color: var(--accent-color);
    color: white;
}

.badge-level {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.dashboard-content {
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: calc(100vh - var(--navbar-height));
    position: sticky;
    top: var(--navbar-height);
    padding: 30px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(102, 126, 234, 0.1);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.sidebar-link:hover {
    background-color: rgba(102, 126, 234, 0.05);
    padding-left: 35px;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border-radius: 0 12px 12px 0;
    margin-right: 10px;
}

.sidebar-link.active .sidebar-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

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

.sidebar-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-text {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 30px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 30px;
}

.access-level {
    font-size: 14px;
    color: var(--text-secondary);
}

.main-content {
    flex: 1;
    padding: 40px;
    min-width: 0;
    overflow-x: hidden;
}

.page-header {
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.page-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2C3E50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    word-wrap: break-word;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 36px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.dashboard-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

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

.dashboard-section:hover {
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.section-header h2 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #2C3E50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Списки */
.news-list,
.builds-list,
.events-list {
    display: grid;
    gap: 20px;
}

.news-card,
.build-card,
.event-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.news-card:hover,
.build-card:hover,
.event-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #667eea;
}

.news-card h3,
.build-card h3,
.event-card h3 {
    color: var(--text-primary);
}

.news-card p,
.build-card p,
.event-card p {
    color: var(--text-secondary);
}

.news-date,
.build-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.build-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.build-version {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
}

.event-card {
    display: flex;
    gap: 24px;
}

.event-date {
    background: var(--accent-color);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 80px;
}

.event-day {
    font-size: 32px;
    font-weight: 700;
}

.event-month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-time {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.birthdays-list {
    display: grid;
    gap: 16px;
}

.birthday-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-primary);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.birthday-card:hover {
    border-color: #667eea;
    box-shadow: var(--shadow-md);
}

.birthday-icon {
    font-size: 32px;
}

.birthday-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.birthday-date {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Участники */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.member-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.member-name {
    font-size: 20px;
    margin-bottom: 12px;
}

.member-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.member-birthday,
.member-since {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.member-contacts {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.contact-link {
    font-size: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-link:hover {
    transform: scale(1.2);
}

/* Сборки детально */
.builds-container,
.news-container,
.events-container {
    display: grid;
    gap: 30px;
}

.build-item,
.news-item,
.event-item {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.build-version-large {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
}

.build-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    color: var(--text-secondary);
}

.build-title {
    font-size: 28px;
    margin: 24px 0;
}

.build-changelog {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 24px 0;
}

.build-changelog summary {
    cursor: pointer;
    font-weight: 600;
    padding: 8px;
}

.changelog-content {
    margin-top: 16px;
    line-height: 1.8;
}

.build-actions {
    margin-top: 24px;
}

/* Профиль */
.profile-container {
    max-width: 800px;
}

.profile-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.profile-main-info h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-stat .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-stat .stat-value {
    font-size: 20px;
    font-weight: 600;
}

.profile-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.profile-form h3 {
    margin-bottom: 24px;
}

/* Админ-панель */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
}

.admin-stat-card.pending {
    border: 2px solid var(--warning-color);
}

.admin-stat-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.admin-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.admin-stat-link {
    color: var(--accent-color);
    font-weight: 600;
}

.admin-sections {
    margin-top: 40px;
}

.admin-section {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.admin-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.admin-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-table-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1200px;
}

.admin-table thead {
    background-color: var(--bg-dark);
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 13px;
    white-space: nowrap;
}

.admin-table td {
    font-size: 14px;
}

.admin-table td small {
    display: inline;
    margin-right: 8px;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.admin-table tbody tr.pending-user {
    background-color: #fff3cd;
}

.admin-table tbody tr.warning-user {
    background-color: #ffe5e5;
    border-left: 4px solid #E74C3C;
}

.warning-badge {
    font-size: 16px;
    cursor: help;
    margin-left: 8px;
}

/* Dropdown действия */
.dropdown-actions {
    position: relative;
}

.dropdown-toggle {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '';
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    z-index: 1000;
    margin-top: 4px;
    border: 1px solid var(--border-color);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

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

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 24px;
}

.modal-close {
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-form {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid #E1E8ED;
    min-height: 60px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    opacity: 0;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.checkbox-label:hover::before {
    opacity: 1;
}

.checkbox-label input[type="checkbox"] {
    margin: 3px 0 0 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.7;
    font-size: 15px;
    padding-top: 2px;
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label a:hover {
    color: #764ba2;
}

.info-box {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 30px;
}

.info-box h3 {
    margin-bottom: 12px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

.pending-message {
    background: var(--bg-primary);
    max-width: 600px;
    margin: 60px auto;
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.pending-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.pending-message h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.pending-message p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.pending-info {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    text-align: left;
}

.pending-info h3 {
    margin-bottom: 16px;
}

.pending-info ul {
    list-style-position: inside;
    line-height: 2;
}

/* Анимации */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

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

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

@media (max-width: 1200px) {
    .main-content {
        padding: 30px 20px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .sidebar-text {
        font-size: 13px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .main-content {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
        position: relative;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .join-steps {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* DASHBOARD SIDEBAR НА МОБИЛЬНЫХ */
    .sidebar {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        z-index: 1000;
        width: 280px;
        transition: left 0.3s ease;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    /* Оверлей для sidebar */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    /* Dashboard navbar на мобильных */
    .dashboard-navbar .nav-brand h1 {
        font-size: 18px;
    }
    
    .dashboard-navbar .user-info {
        display: none;
    }
    
    .dashboard-navbar .btn-outline {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    /* Таблицы на мобильных - горизонтальный скролл */
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    /* Карточки статистики на мобильных */
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .stat-icon {
        margin-bottom: 10px;
    }
    
    /* Секции на мобильных */
    .dashboard-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    /* Benefit cards на мобильных */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* События на мобильных */
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: auto;
        width: 100%;
    }
    
    .auth-container {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .dashboard-navbar h1 {
        font-size: 18px;
    }
    
    .user-info {
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .auth-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .checkbox-label {
        padding: 12px;
        gap: 10px;
    }
    
    .checkbox-label span {
        font-size: 14px;
    }
}

