/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C3E50;
    --secondary-color: #7F8C8D;
    --accent-color: #95A5A6;
    --dark-bg: #0A0A0A;
    --darker-bg: #050505;
    --card-bg: #1A1A1A;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --text-muted: #666;
    --border-color: #333;
    --success-color: #27AE60;
    --warning-color: #E67E22;
    --error-color: #E74C3C;
    --danger-color: #E74C3C;
    --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --gradient-secondary: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
    --gradient-success: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    --gradient-accent: linear-gradient(135deg, #95A5A6 0%, #BDC3C7 100%);
    --bg-secondary: #222;
    --border-radius: 12px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow-med: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --info-color: #3498db;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.preloader-logo {
    margin-bottom: 40px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.preloader-logo i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 20px rgba(44, 62, 80, 0.8);
}

.preloader-logo span {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(224, 224, 224, 0.5);
    letter-spacing: 2px;
}

.preloader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary-color);
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--accent-color);
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--secondary-color);
    animation-delay: 0.6s;
}

.preloader-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.loading-dots {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes logoGlow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

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

@keyframes dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Hide body scroll when preloader is active */
body.preloader-active {
    overflow: hidden;
}

/* Responsive Preloader */
@media (max-width: 768px) {
    .preloader-content {
        padding: 20px;
        max-width: 300px;
    }
    
    .preloader-logo i {
        font-size: 3rem;
    }
    
    .preloader-logo span {
        font-size: 1.5rem;
    }
    
    .preloader-spinner {
        width: 80px;
        height: 80px;
    }
    
    .preloader-text {
        font-size: 1rem;
    }
    
    .loading-dots span {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .preloader-content {
        padding: 15px;
        max-width: 250px;
    }
    
    .preloader-logo i {
        font-size: 2.5rem;
    }
    
    .preloader-logo span {
        font-size: 1.2rem;
    }
    
    .preloader-spinner {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring {
        border-width: 2px;
    }
}

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

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 62, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(127, 140, 141, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(149, 165, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Отступ для контента от фиксированного меню */
.main-content {
    min-height: calc(100vh - 100px);
}

/* Убираем отступ для главной страницы полностью */
.main-content:has(.hero) {
    padding-top: 0;
}

/* Для страниц с профилем, новостями, магазином и сменой пароля */
.profile-container,
.news-container,
.shop-container,
.change-password-container {
    padding-top: 120px;
    min-height: calc(100vh - 120px);
    background: var(--dark-bg);
}

/* Специальный стиль для auth-container с отступом */
.auth-container {
    padding-top: 120px;
    min-height: calc(100vh - 120px);
}

/* Для админ панели */
.admin-container {
    padding-top: 120px;
    min-height: calc(100vh - 120px);
    background: var(--dark-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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.5s;
}

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

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

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

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

.btn-secondary:hover {
    background: var(--darker-bg);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #C0392B 0%, #A93226 100%);
    transform: translateY(-2px);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-control:disabled {
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Profile Form Styles */
.profile-form {
    max-width: 600px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group input:disabled {
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(44, 62, 80, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.form-hint {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498DB;
    color: #3498DB;
}

.alert p {
    margin: 0;
}

.alert i {
    margin-right: 0.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.header.scrolled .nav-brand {
    text-shadow: none;
}

.nav-brand i {
    font-size: 2rem;
    color: var(--accent-color);
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.header.scrolled .nav-link {
    text-shadow: none;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.coins-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    margin-left: 8px;
}

.coins-badge i {
    font-size: 0.7rem;
    color: #000;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

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

.dropdown-item:hover {
    background: rgba(127, 140, 141, 0.1);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--accent-color);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 200px;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Убрали стили для hero-content */

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.stat i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hero News Block - Modern Cards */
.hero-news {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 3;
}

.hero-news .container {
    max-width: 1400px;
    padding: 0 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.news-item {
    position: relative;
    height: 240px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-meta-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 3;
}

.news-date-top, .news-author-top {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-date-top i, .news-author-top i {
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

.news-author-top {
    color: #4a9eff;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-item:hover .news-overlay {
    opacity: 1;
}

.news-text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.news-title {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.8rem 0;
}

.news-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin: 0;
}

/* Убрали footer, так как автор и дата теперь в верхнем углу */

/* Убрали стили для hero-buttons */

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(127, 140, 141, 0.3);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; }
.floating-icon:nth-child(2) { top: 60%; right: 15%; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--darker-bg);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--dark-bg);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.download-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.download-requirements {
    list-style: none;
    margin-bottom: 2rem;
}

.download-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.download-requirements i {
    color: var(--success-color);
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Community Section */
.community {
    padding: 80px 0;
    background: var(--darker-bg);
}

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

.community-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.community-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.community-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Support Section */
.support {
    padding: 80px 0;
    background: var(--dark-bg);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.support-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.support-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.support-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.support-method:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.support-method i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.support-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-form input,
.support-form select,
.support-form textarea {
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(127, 140, 141, 0.2);
}

.support-form input::placeholder,
.support-form textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

.footer-stats .stat {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.footer-stats .stat-number {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.footer-copyrights p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-copyrights p:first-child {
    text-align: left;
}

.footer-copyrights p:last-child {
    text-align: right;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

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

.music-btn.muted {
    background: var(--gradient-secondary);
}

.music-btn.muted i {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 0 0 8px 8px;
        box-shadow: var(--shadow-medium);
        padding: 20px;
        z-index: 1000;
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: var(--shadow-medium);
        min-width: auto;
        margin-top: 10px;
        padding: 10px;
        display: none;
        list-style: none;
        backdrop-filter: blur(10px);
    }
    
    .dropdown-item {
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
        list-style: none;
        border-radius: 6px;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        transform: translateX(5px);
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .dropdown-divider {
        height: 1px;
        background: var(--border-color);
        margin: 8px 0;
        opacity: 0.5;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown.active .dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .coins-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
        margin-left: 4px;
    }
    
    .coins-add-btn {
        width: 20px;
        height: 20px;
        margin-left: 4px;
    }
    
    .coins-add-btn i {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-accent {
        font-size: 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-copyrights {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-copyrights p:first-child,
    .footer-copyrights p:last-child {
        text-align: center;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .news-item {
        height: 160px;
    }
    
    .news-content h4 {
        font-size: 0.9rem;
    }
    
    .news-content p {
        font-size: 0.8rem;
    }
    
    .download-content,
    .support-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 100px 15px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-accent {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .community-card {
        padding: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-item {
        height: 120px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: none;
    outline: none;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top i {
        font-size: 1rem;
    }
}

/* Sound Toggle Button */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.sound-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sound-toggle:hover i {
    transform: scale(1.1);
}

/* Responsive adjustments for sound toggle button */
@media (max-width: 768px) {
    .sound-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .sound-toggle i {
        font-size: 1rem;
    }
}

/* Responsive adjustments for video background */
@media (max-width: 768px) {
    .hero-video {
        object-position: center;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Authentication Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 20px;
    position: relative;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 62, 80, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(127, 140, 141, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(149, 165, 166, 0.2) 0%, transparent 50%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

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

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

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

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-medium);
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--accent-color);
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(127, 140, 141, 0.2);
    background: rgba(10, 10, 10, 0.9);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

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

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.btn-full {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

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

.auth-divider span {
    background: rgba(26, 26, 26, 0.95);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.8);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.btn-discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.btn-vk:hover {
    background: #4C75A3;
    border-color: #4C75A3;
}

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

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary-color);
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--secondary-color);
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
    .auth-section {
        padding: 100px 15px 40px;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .social-auth {
        gap: 0.8rem;
    }
    
    .btn-social {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* Rules Page */
.rules-section {
    padding: 120px 0 80px;
    background: var(--dark-bg);
    min-height: 100vh;
}

.rules-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rules-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-heavy);
}

.rules-header h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.rules-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.rules-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.rules-navigation {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 140px;
}

.rules-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.rules-nav-item:hover {
    background: rgba(127, 140, 141, 0.1);
    color: var(--text-primary);
}

.rules-nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.rules-nav-item i {
    width: 20px;
    text-align: center;
}

.rules-sections {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.rules-section-content {
    display: none;
}

.rules-section-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.rules-section-content h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.rule-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rule-content h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.rule-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.rules-important,
.rules-contact {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.rules-important h3,
.rules-contact h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.rules-important h3 i {
    color: var(--warning-color);
}

.rules-contact h3 i {
    color: var(--accent-color);
}

.rules-important p,
.rules-contact p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rules-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rules-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive Design for Rules Page */
@media (max-width: 1024px) {
    .rules-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .rules-navigation {
        position: static;
        order: 2;
    }
    
    .rules-sections {
        order: 1;
    }
}

@media (max-width: 768px) {
    .rules-section {
        padding: 100px 0 60px;
    }
    
    .rules-header h1 {
        font-size: 2.5rem;
    }
    
    .rules-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .rules-sections {
        padding: 1.5rem;
    }
    
    .rules-section-content h2 {
        font-size: 1.8rem;
    }
    
    .rule-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .rule-number {
        align-self: flex-start;
    }
    
    .rules-footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rules-buttons {
        flex-direction: column;
    }
    
    .rules-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rules-header h1 {
        font-size: 2rem;
    }
    
    .rules-header p {
        font-size: 1rem;
    }
    
    .rules-navigation {
        padding: 1rem;
    }
    
    .rules-nav-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .rules-sections {
        padding: 1rem;
    }
    
    .rule-content h3 {
        font-size: 1.1rem;
    }
}

/* Forgot Password Page */
.code-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.code-timer span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
}

.code-timer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: successPulse 2s ease-in-out;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress indicator for forgot password steps */
.auth-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.progress-step.active .step-number {
    background: var(--gradient-primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.progress-step.active .step-label {
    color: var(--secondary-color);
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

.progress-line {
    width: 50px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}

.progress-line.completed {
    background: var(--success-color);
}

/* Responsive Design for Forgot Password */
@media (max-width: 768px) {
    .code-timer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .auth-options {
        gap: 0.8rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .success-message h3 {
        font-size: 1.3rem;
    }
    
    .auth-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step {
        margin: 0;
    }
    
    .progress-line {
        width: 2px;
        height: 20px;
        margin: 0.5rem 0;
    }
}

/* Profile Styles */
.profile-container {
    min-height: 100vh;
    background: var(--dark-bg);
    padding: 120px 0 2rem 0;
    /* padding-top: 120px, остальные отступы: 2rem */
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.profile-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 2rem;
}

.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.profile-nav {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-nav-item:hover {
    background: rgba(44, 62, 80, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.profile-nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.profile-nav-item.logout {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    color: var(--error-color);
}

.profile-nav-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
}

.profile-nav-item i {
    width: 20px;
    text-align: center;
}

.profile-main {
    flex: 1;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.profile-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid #e0e0e0;
}

.profile-avatar-placeholder i {
    font-size: 60px;
    color: #999;
}

.avatar-upload {
    margin: 15px 0;
}

.form-control-file {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-control-file:hover {
    border-color: #007bff;
}

.profile-info {
    display: grid;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.info-value {
    color: var(--text-primary);
    text-align: right;
}

.status-active {
    color: var(--success-color);
    font-weight: 600;
}

.status-locked {
    color: var(--error-color);
    font-weight: 600;
}

.coins-value {
    color: #FFD700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coins-value i {
    color: #FFD700;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.coins-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.coins-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

.coins-add-btn i {
    font-size: 0.8rem;
    color: white;
    text-shadow: none;
}

/* Стили для отображения голосов в профиле */
.votes-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.votes-value i {
    color: var(--accent-color);
    font-size: 1.1em;
}

.votes-today {
    font-size: 0.85em;
}

/* Стили для отображения роли пользователя в профиле */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.role-badge.level-1 {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.role-badge.level-2 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.role-badge.level-3 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.role-badge i {
    font-size: 0.9em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.votes-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #95A5A6, #BDC3C7);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.votes-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.5);
    background: linear-gradient(135deg, #BDC3C7, #95A5A6);
}

.votes-link i {
    font-size: 0.8rem;
    color: white;
    text-shadow: none;
}

/* Стили для магазина */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 2rem 2rem;
    /* padding-top: 120px, остальные отступы: 2rem */
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.shop-header h1 {
    color: var(--text-primary);
    margin: 0;
    font-size: 2.5rem;
}

.shop-balance {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
}

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

.category-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.category-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.category-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

.shop-section {
    margin-bottom: 3rem;
}

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

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.item-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.item-image {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #2C3E50, #34495E);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-rarity {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity-common { background: #9D9D9D; color: white; }
.rarity-uncommon { background: #1EFF00; color: black; }
.rarity-rare { background: #0070DD; color: white; }
.rarity-epic { background: #A335EE; color: white; }
.rarity-legendary { background: #FF8000; color: white; }

.item-info {
    padding: 1.5rem;
}

.item-name {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.item-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.item-price {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

.buy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.purchase-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-medium);
}

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

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 1.5rem;
}

.purchase-item-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.purchase-item-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.balance-check {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    text-align: center;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.shop-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.notification {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .purchase-item-info {
        flex-direction: column;
        text-align: center;
    }
}

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

.quick-actions .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .profile-nav {
        display: flex;
        overflow-x: auto;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .profile-nav-item {
        flex-shrink: 0;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .profile-nav-item span {
        display: none;
    }
    
    .profile-nav-item i {
        font-size: 1.2rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-value {
        text-align: left;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Стили для системы новостей */

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 20px 20px;
    /* padding-top: 120px, остальные отступы: 20px */
}

.page-header {
    margin: 120px 0 30px 0;
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header-content > div:first-child {
    text-align: left;
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.news-main {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.sidebar-widget h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.2em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Список новостей */
.news-list h2 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.5em;
}

.news-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.news-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.news-header h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-header h3 a:hover {
    color: var(--accent-color);
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.news-actions {
    display: flex;
    gap: 5px;
}

/* Категории */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--border-color);
    transform: translateX(5px);
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Формы */
.news-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.news-form {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    background: var(--dark-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.error {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
}

/* Статусы */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-published {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
}

.status-draft {
    background: rgba(230, 126, 34, 0.2);
    color: var(--warning-color);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--border-color);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Пустое состояние */
.no-news {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-news i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Адаптивность для новостей */
@media (max-width: 768px) {
    .news-content {
        grid-template-columns: 1fr;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

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

/* Заголовок админ панели */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.admin-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.admin-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Основной контент админ панели */
.admin-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Боковая панель */
.admin-sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.admin-nav-section {
    margin-bottom: 30px;
}

.admin-nav-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.1em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.admin-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-section li {
    margin-bottom: 5px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    background: rgba(44, 62, 80, 0.1);
    color: var(--text-primary);
}

.admin-nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-nav-link i {
    width: 16px;
    text-align: center;
}

/* Основная область контента */
.admin-main {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Заголовки секций */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.8em;
}

.section-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* Дашборд */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

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

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.card-content h3 {
    margin: 0 0 5px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.card-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.card-change {
    font-size: 0.8em;
    font-weight: 600;
}

.card-change.positive {
    color: var(--success-color);
}

.card-change.negative {
    color: var(--error-color);
}

.card-change.neutral {
    color: var(--warning-color);
}

/* Графики */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-container {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.chart-container h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.2em;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.chart-placeholder i {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stats-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.stats-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.2em;
}

.stats-placeholder {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.stats-placeholder i {
    font-size: 2.5em;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Управление пользователями */
.users-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-primary);
}

.search-box button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--secondary-color);
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* Таблицы */
.users-table-container,
.bans-table-container,
.news-table-container {
    overflow-x: auto;
}

.users-table,
.bans-table,
.news-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
}

.users-table th,
.bans-table th,
.news-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.users-table td,
.bans-table td,
.news-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.users-table tr:hover,
.bans-table tr:hover,
.news-table tr:hover {
    background: rgba(44, 62, 80, 0.1);
}

/* Бейджи ролей и статусов */
.role-badge,
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.role-badge.admin {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
}

.role-badge.moderator {
    background: rgba(230, 126, 34, 0.2);
    color: var(--warning-color);
}

.role-badge.user {
    background: rgba(127, 140, 141, 0.2);
    color: var(--text-secondary);
}

.status-badge.active {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
}

.status-badge.banned {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
}

.status-badge.published {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
}

/* Роли и права */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.role-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

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

.role-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2em;
}

.role-count {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.role-permissions h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1em;
}

.role-permissions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-permissions li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.role-permissions li i.fa-check {
    color: var(--success-color);
}

.role-permissions li i.fa-times {
    color: var(--error-color);
}

/* Элементы управления */
.news-controls {
    margin-bottom: 20px;
}

/* Плейсхолдеры */
.announcements-placeholder,
.server-settings-placeholder,
.website-settings-placeholder,
.backup-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--dark-bg);
}

.announcements-placeholder i,
.server-settings-placeholder i,
.website-settings-placeholder i,
.backup-placeholder i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.announcements-placeholder h3,
.server-settings-placeholder h3,
.website-settings-placeholder h3,
.backup-placeholder h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.5em;
}

/* Адаптивность для админ панели */
@media (max-width: 1024px) {
    .admin-content {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
        order: 2;
    }
    
    .admin-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .users-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls {
        justify-content: center;
    }
}

/* ===== СТРАНИЦА ГОЛОСОВАНИЯ ===== */
.vote-container {
    max-width: 100%;
}

.vote-info-card {
    background: var(--gradient-primary);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--shadow-medium);
    border: none;
    position: relative;
    overflow: hidden;
}

.vote-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    pointer-events: none;
}

.vote-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.vote-info-header i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--accent-color);
}

.vote-info-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.vote-info-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.vote-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.vote-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vote-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.vote-stat:hover::before {
    transform: translateX(100%);
}

.vote-stat:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.vote-sites h3,
.vote-rewards h3,
.vote-rules h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

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

.vote-site-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.vote-site-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
    border-radius: 25px;
}

.site-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.site-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.site-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.site-icon:hover::after {
    transform: translateX(100%);
}

.site-icon i {
    color: white;
    font-size: 1.2rem;
}

.site-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.site-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-reward {
    margin-left: auto;
    text-align: right;
}

.reward-amount {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success-color);
}

.reward-currency {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.site-timer {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.site-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    pointer-events: none;
}

.timer-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.timer-info i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.timer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timer-display {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-display span {
    background: var(--text-primary);
    color: var(--card-bg);
    padding: 5px 8px;
    border-radius: 5px;
    margin: 0 2px;
}

.vote-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: var(--gradient-success);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.vote-btn::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.5s ease;
}

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

.vote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.vote-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.vote-btn.ready {
    background: var(--gradient-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.reward-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.reward-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
    border-radius: 22px;
}

.reward-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.reward-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.reward-icon:hover::after {
    transform: translateX(100%);
}

.reward-icon i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.reward-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.reward-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rules-list {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.rules-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
    pointer-events: none;
}

.rule-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item i {
    color: var(--success-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.rule-item span {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Уведомления для страницы голосования */
.vote-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.vote-notification.show {
    transform: translateX(0);
}

.vote-notification.success {
    border-left: 4px solid var(--success-color);
}

.vote-notification.error {
    border-left: 4px solid var(--danger-color);
}

.vote-notification i {
    margin-right: 8px;
}

.vote-notification.success i {
    color: var(--success-color);
}

.vote-notification.error i {
    color: var(--danger-color);
}

/* Адаптивность для страницы голосования */
@media (max-width: 768px) {
    .vote-site-grid {
        grid-template-columns: 1fr;
    }
    
    .vote-stats {
        grid-template-columns: 1fr;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .vote-info-card {
        padding: 20px;
    }
    
    .vote-site-card {
        padding: 20px;
    }
    
    .site-header {
        flex-direction: column;
        text-align: center;
    }
    
    .site-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .site-reward {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* 2FA Styles */
.setup-steps {
    margin-bottom: 2rem;
}

.step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.step h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.app-links .btn {
    flex: 1;
    min-width: 150px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

#qrcode {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.secret-key {
    text-align: center;
    background: rgba(10, 10, 10, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.secret-key code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    word-break: break-all;
}

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

.tfa-status {
    text-align: center;
    margin-bottom: 2rem;
}

.status-success {
    margin-bottom: 2rem;
}

.status-success i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.status-success h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.status-success p {
    color: var(--text-secondary);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
}

/* reCAPTCHA Styles */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha > div {
    transform: scale(0.9);
    transform-origin: 0 0;
}

@media (max-width: 768px) {
    .g-recaptcha > div {
        transform: scale(0.8);
    }
    
    .app-links {
        flex-direction: column;
    }
    
    .app-links .btn {
        min-width: auto;
    }
    
    .qr-container {
        gap: 1rem;
    }
    
    #qrcode {
        padding: 0.5rem;
    }
    
    .secret-key code {
        font-size: 0.9rem;
    }
    
    /* Адаптивные стили для блока новостей */
    .hero-news {
        bottom: 30px;
        padding: 1.5rem 0;
    }
    
    .hero-news .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
    }
    
    .news-item {
        height: 240px;
        border-radius: 20px;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .news-header h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .news-body p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .news-meta {
        font-size: 0.7rem;
        padding-top: 0.6rem;
    }
    
    .news-author, .news-date {
        padding: 0.2rem 0.5rem;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .hero-news {
        bottom: 20px;
        padding: 1rem 0;
    }
    
    .hero-news .container {
        padding: 0 15px;
    }
    
    .news-grid {
        gap: 0.8rem;
    }
    
    .news-item {
        height: 200px;
        border-radius: 16px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-header h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .news-body p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .news-meta {
        font-size: 0.65rem;
        padding-top: 0.5rem;
    }
    
    .news-author, .news-date {
        padding: 0.2rem 0.4rem;
        gap: 0.2rem;
    }
}

/* Стили для премиум статуса */
.premium-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.premium-badge.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: premiumGlow 2s ease-in-out infinite alternate;
}

.premium-badge.inactive {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.premium-badge i {
    font-size: 1.1rem;
}

.premium-type {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

.premium-dates {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.premium-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.premium-upgrade:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

@keyframes premiumGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}

/* Адаптивные стили для премиум статуса */
@media (max-width: 768px) {
    .premium-status {
        gap: 0.3rem;
    }
    
    .premium-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .premium-dates {
        font-size: 0.75rem;
    }
    
    .premium-upgrade {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .premium-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .premium-type {
        font-size: 0.7rem;
    }
    
    .premium-dates {
        font-size: 0.7rem;
    }
}

.form-container h2 i {
    color: var(--primary-color);
}

.auth-notice {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.auth-notice i {
    font-size: 2rem;
    color: var(--primary-color);
}

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

.auth-notice p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.bug-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-section h3 i {
    color: var(--primary-color);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Правая колонка с информацией */


.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-card h3 i {
    color: var(--primary-color);
}

/* Советы по отправке багов */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tip-item i {
    color: var(--success-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.tip-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.tip-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Статистика багов */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.stat-card.critical {
    border-left: 4px solid #dc2626;
}

.stat-card.high {
    border-left: 4px solid #ea580c;
}

.stat-card.medium {
    border-left: 4px solid #d97706;
}

.stat-card.low {
    border-left: 4px solid #16a34a;
}

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

.stat-card.critical .stat-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.stat-card.high .stat-icon {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.stat-card.medium .stat-icon {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.stat-card.low .stat-icon {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Недавно исправленные баги */
.recent-fixes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.fix-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.fix-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fix-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.fix-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.fix-content small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--text-secondary);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: var(--card-bg);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-question span {
    font-weight: 500;
    color: var(--text-primary);
}

.faq-answer {
    display: none;
    padding: 1rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-large);
    z-index: 1000;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.1rem;
}

.notification.success .notification-content i {
    color: var(--success-color);
}

.notification.error .notification-content i {
    color: var(--error-color);
}

.notification.warning .notification-content i {
    color: var(--warning-color);
}

.notification.info .notification-content i {
    color: var(--info-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

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

/* Анимации */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Ошибки валидации */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error i {
    font-size: 0.8rem;
}



/* Заголовок страницы */
.bug-tracker-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.bug-tracker-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bug-tracker-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки баг-трекера */
.bug-tracker-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.bug-tracker-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

.bug-tracker-card .card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.bug-tracker-card .card-body {
    padding: 2rem;
}

/* Кнопки */
.btn-create-bug {
    background: var(--gradient-success);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-create-bug:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Фильтры */
.filters-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

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

.filter-group select,
.filter-group input {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    transition: all 0.3s ease;
    background: var(--dark-bg);
    color: var(--text-primary);
    width: 100%;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    outline: none;
}

/* Таблица багов */
.bugs-table {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

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

.bugs-table .table th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.bugs-table .table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}

.bugs-table .table tbody tr {
    transition: all 0.3s ease;
}

.bugs-table .table tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

/* Бейджи статусов */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
}

.status-in_progress {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
}

.status-resolved {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.status-closed {
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    color: white;
}

/* Бейджи критичности */
.severity-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-critical {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.severity-high {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
}

.severity-medium {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.severity-low {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

/* Бейджи приоритета */
.priority-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-urgent {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.priority-high {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
}

.priority-normal {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.priority-low {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

/* Категории */
.category-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Действия */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

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

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

.action-btn-view {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.action-btn-edit {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.action-btn-delete {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
}

/* Статистика */
.stats-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Пагинация */
.pagination-custom {
    justify-content: center;
    margin-top: 2rem;
}

.pagination-custom .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.pagination-custom .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Формы */
.form-control-custom {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: var(--dark-bg);
    color: var(--text-primary);
    width: 100%;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
    outline: none;
}

.form-select-custom {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: var(--dark-bg);
    color: var(--text-primary);
    width: 100%;
}

.form-select-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
    outline: none;
}

/* Алерты */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.alert-success-custom {
    background: var(--gradient-success);
    color: white;
}

.alert-danger-custom {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
}

/* Комментарии */
.comment-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

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

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bug-tracker-container {
        padding: 100px 1rem 2rem 1rem;
    }
    
    .bug-tracker-header h1 {
        font-size: 2rem;
    }
    
    .bug-tracker-header p {
        font-size: 1rem;
    }
    
    .bug-tracker-card .card-body {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn {
        width: 35px;
        height: 35px;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* ===== SERVER STATUS BLOCK IN HERO SECTION ===== */
.home-welcome-realms {
    position: absolute;
    top: 120px;
    right: 120px;
    z-index: 10;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.home-welcome-realms > div + div {
    margin-top: 10px;
}

.home-welcome-realms > div {
    align-items: center;
    background: hsla(0, 4%, 5%, 0.7);
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(90deg, #49b120, transparent);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 25px;
    position: relative;
    width: 400px;
    backdrop-filter: blur(10px);
}

/* Улучшенная мобильная адаптивность для блока статуса сервера */
@media (max-width: 768px) {
    .home-welcome-realms {
        top: 80px;
        right: 20px;
        left: 20px;
        width: auto;
    }
    
    .home-welcome-realms > div {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .home-welcome-realms > div > div:first-child > span:first-child {
        font-size: 14px;
    }
    
    .home-welcome-realms > div > div:first-child > span:last-child {
        font-size: 11px;
    }
    
    .home-welcome-realms > div > div:nth-child(2) > span:first-child {
        font-size: 18px;
    }
    
    .home-welcome-realms > div > div:nth-child(2) > span:last-child {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .home-welcome-realms {
        top: 60px;
        right: 15px;
        left: 15px;
    }
    
    .home-welcome-realms > div {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .home-welcome-realms > div > div:first-child > span:first-child {
        font-size: 13px;
    }
    
    .home-welcome-realms > div > div:first-child > span:last-child {
        font-size: 10px;
    }
    
    .home-welcome-realms > div > div:nth-child(2) > span:first-child {
        font-size: 16px;
    }
    
    .home-welcome-realms > div > div:nth-child(2) > span:last-child {
        font-size: 10px;
    }
    
    .home-welcome-realms > div > div:nth-child(3) {
        gap: 8px;
    }
    
    .home-welcome-realms > div > div:nth-child(3) > span:nth-child(2),
    .home-welcome-realms > div > div:nth-child(3) > span:nth-child(4) {
        font-size: 12px;
    }
    
    .icon_ally,
    .icon_horde {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 420px) {
    .home-welcome-realms {
        top: 50px;
        right: 10px;
        left: 10px;
    }
    
    .home-welcome-realms > div {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .home-welcome-realms > div > div:first-child > span:first-child {
        font-size: 12px;
    }
    
    .home-welcome-realms > div > div:first-child > span:last-child {
        font-size: 9px;
    }
    
    .home-welcome-realms > div > div:nth-child(2) > span:first-child {
        font-size: 14px;
    }
    
    .home-welcome-realms > div > div:nth-child(2) > span:last-child {
        font-size: 9px;
    }
    
    .home-welcome-realms > div > div:nth-child(3) {
        gap: 6px;
    }
    
    .home-welcome-realms > div > div:nth-child(3) > span:nth-child(2),
    .home-welcome-realms > div > div:nth-child(3) > span:nth-child(4) {
        font-size: 11px;
    }
    
    .icon_ally,
    .icon_horde {
        width: 16px;
        height: 16px;
    }
}

.home-welcome-realms > div.wotlk-realm {
    background: rgba(15, 41, 75, 0.2);
    border: none;
}

.home-welcome-realms > div.wotlk-realm:after {
    display: none;
}

.home-welcome-realms > div.wotlk-realm:before {
    background: rgba(39, 174, 96, 0.8);
}

.home-welcome-realms > div.wotlk-realm > div:nth-child(2) > span:last-child {
    color: #27AE60 !important;
    font-weight: 600;
}

.home-welcome-realms > div.soon {
    border-image-source: linear-gradient(90deg, #df0, transparent);
}

.home-welcome-realms > div.soon:after {
    display: none;
}

.home-welcome-realms > div.soon:before {
    background: rgba(221, 255, 0, 0.4);
}

.home-welcome-realms > div.soon > div:first-child > span:last-child > span:first-child {
    color: #df0;
}

.home-welcome-realms > div.offline {
    background: hsla(0, 4%, 5%, 0.2);
    border: none;
    opacity: 0.8;
}

.home-welcome-realms > div.offline:after {
    display: none;
}

.home-welcome-realms > div.offline:before {
    background: rgba(179, 13, 13, 0.4);
}

.home-welcome-realms > div.offline > div:first-child > span:last-child > span:first-child {
    color: #b30d0d;
}

.home-welcome-realms > div.offline > div:nth-child(2) > span:last-child {
    color: #b30d0d !important;
    font-weight: 600;
}

.home-welcome-realms > div > div {
    z-index: 2;
}

.home-welcome-realms > div > div:nth-child(3) {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.home-welcome-realms > div > div:nth-child(3) > span + span {
    margin-left: 10px;
}

.home-welcome-realms > div > div:nth-child(3) > span:nth-child(2) {
    color: #0a48e5;
    font-weight: 600;
}

.home-welcome-realms > div > div:nth-child(3) > span:nth-child(4) {
    color: #b30d0d;
    font-weight: 600;
}

/* Иконки фракций */
.icon_ally,
.icon_horde {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.icon_ally {
    background-image: url('/public/assets/image/alliance.svg');
}

.icon_horde {
    background-image: url('/public/assets/image/horde.svg');
}

.home-welcome-realms > div > div:nth-child(2) {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-welcome-realms > div > div:nth-child(2) > span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.home-welcome-realms > div > div:nth-child(2) > span:last-child {
    color: #727570;
    font-size: 12px;
}

.home-welcome-realms > div > div:first-child {
    display: flex;
    flex-direction: column;
}

.home-welcome-realms > div > div:first-child > span:first-child {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: row;
    font-size: 16px;
    font-weight: 600;
}

.home-welcome-realms > div > div:first-child > span:last-child {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    margin-top: 5px;
}

.home-welcome-realms > div > div:first-child > span:last-child > span:first-child {
    color: #49b120;
    font-weight: 700;
}

.home-welcome-realms > div > div:first-child > span:last-child > span:last-child {
    color: #727570;
    margin-left: 10px;
}

.home-welcome-realms > div:after {
    background: linear-gradient(90deg, rgba(73, 177, 32, 0.1), transparent);
    bottom: 0;
    content: " ";
    display: block;
    left: 8px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.home-welcome-realms > div:before {
    background: #27AE60;
    bottom: 0;
    content: " ";
    display: block;
    left: 0;
    position: absolute;
    top: 0;
    width: 8px;
    z-index: 1;
}

/* ===== СТИЛИ ДЛЯ СИСТЕМЫ СТРАНИЦ ===== */

/* Заголовок страницы */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.page-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.page-meta-item i {
    color: var(--accent-color);
}

/* Контент страницы */
.page-content {
    padding: 120px 0 60px 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-main {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-featured-image:hover img {
    transform: scale(1.02);
}

.page-body {
    line-height: 1.8;
    color: var(--text-primary);
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.page-body h1 { font-size: 2.5rem; }
.page-body h2 { font-size: 2rem; }
.page-body h3 { font-size: 1.5rem; }
.page-body h4 { font-size: 1.25rem; }

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body ul,
.page-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.page-body code {
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

.page-body pre {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.page-body pre code {
    background: none;
    padding: 0;
}

/* Теги страницы */
.page-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-tags h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/* Боковая панель */
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.page-nav,
.categories-nav,
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link,
.category-link,
.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover,
.category-link:hover,
.quick-link:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link i,
.category-link i,
.quick-link i {
    width: 16px;
    text-align: center;
}

/* Облако тегов */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.tag-cloud-item:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Навигация страницы */
.page-navigation {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.page-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Список страниц */
.pages-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.pages-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.pages-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-input-group {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-input-group button {
    padding: 1rem 1.5rem;
    border: none;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-input-group button:hover {
    background: var(--primary-color);
}

.pages-content {
    padding: 120px 0 60px 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.pages-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pages-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Сетка страниц */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.page-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.page-card-image {
    height: 200px;
    overflow: hidden;
}

.page-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-card:hover .page-card-image img {
    transform: scale(1.05);
}

.page-card-content {
    padding: 1.5rem;
}

.page-card-title {
    margin-bottom: 1rem;
}

.page-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.page-card-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.page-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.page-card-date,
.page-card-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-card-actions {
    margin-top: 1rem;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.pagination-number.active {
    background: var(--accent-color);
    color: white;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Боковая панель страниц */
.pages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Категории */
.page-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.category-tag:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Адаптивность для страниц */
@media (max-width: 1024px) {
    .page-layout,
    .pages-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-sidebar,
    .pages-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-title,
    .pages-title {
        font-size: 2rem;
    }
    
    .page-header {
        margin: 100px 0 30px 0;
    }
    
    .pages-header {
        padding: 100px 0 40px;
    }
    
    .page-content,
    .pages-content {
        padding: 80px 0 40px;
    }
    
    .page-main {
        padding: 1.5rem;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
    }
    
    .page-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .page-title,
    .pages-title {
        font-size: 1.5rem;
    }
    
    .page-header {
        margin: 80px 0 20px 0;
    }
    
    .pages-header {
        padding: 80px 0 30px;
    }
    
    .page-content,
    .pages-content {
        padding: 60px 0 30px;
    }
    
    .page-main {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-input-group input {
        border-radius: 8px 8px 0 0;
    }
    
    .search-input-group button {
        border-radius: 0 0 8px 8px;
    }
}

/* Сообщения "не найдено" для страниц */
.no-categories,
.no-tags {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.no-categories::before,
.no-tags::before {
    content: '⚠️';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Стили для персонажей */
.characters-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.stat-value.online-count {
    color: var(--success-color);
}

.characters-preview {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.characters-preview p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.characters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.character-card {
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.character-card.online::before {
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

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

.character-name h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.character-basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.character-level {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.character-class {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.character-race {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

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

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

.status-badge.online {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-badge.offline {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.status-badge i {
    font-size: 0.6rem;
}

.character-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.character-details,
.character-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-row,
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child,
.stat-row:last-child {
    border-bottom: none;
}

.detail-label,
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Стили для фракций */
.detail-value.faction-1 {
    color: #4A90E2; /* Синий для Альянса */
    font-weight: 700;
}

.detail-value.faction-2 {
    color: #E74C3C; /* Красный для Орды */
    font-weight: 700;
}

.detail-value.faction-0 {
    color: var(--text-secondary); /* Серый для нейтральных */
}

.character-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.creation-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.creation-date i {
    color: var(--accent-color);
}

/* Стили для пустого состояния */
.no-characters {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.no-characters-icon {
    margin-bottom: 1.5rem;
}

.no-characters-icon i {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.no-characters h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-characters p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Адаптивность для персонажей */
@media (max-width: 768px) {
    .characters-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .characters-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .character-card {
        padding: 1rem;
    }
    
    .character-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .character-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .character-status {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .characters-stats {
        padding: 1rem;
    }
    
    .character-card {
        padding: 0.8rem;
    }
    
    .character-name h3 {
        font-size: 1.1rem;
    }
    
    .character-level {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .no-characters {
        padding: 2rem 1rem;
    }
    
    .no-characters-icon i {
        font-size: 3rem;
    }
    
    .no-characters h3 {
        font-size: 1.3rem;
    }
}

/* Дополнительные стили для страницы персонажей */
.character-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logout-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.logout-date i {
    color: var(--accent-color);
}

.character-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

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

.stat-value.offline-count {
    color: var(--text-secondary);
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--gradient-secondary);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .no-characters-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .close {
        font-size: 1.5rem;
    }
}