:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light: #f5f6fa;
    --success: #00b894;
    --error: #d63031;
    --gray: #dfe6e9;
    --dark-gray: #636e72;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 1rem;
}

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

.logo i {
    font-size: 1.8rem;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

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

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
}

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

.nav-link i {
    font-size: 1.1rem;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

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

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

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

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

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

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

.btn-success:hover {
    background-color: #00a383;
    transform: translateY(-2px);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Auth */
@media (min-width: 769px) {
    .mobile-auth {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 4rem 1rem 1rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .header-buttons {
        display: none;
    }

    .mobile-auth {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 1rem;
    }

    .mobile-auth .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        justify-content: center;
    }

    .mobile-auth .nav-link:last-child {
        border-bottom: none;
    }

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

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

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

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(110deg, var(--primary) 0%, var(--secondary) 90%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    margin: 2rem 0;
}

.content-primary {
    flex: 1;
    min-width: 0;
}

/* News Sidebar */
.news-sidebar {
    width: 320px;
    flex-shrink: 0;
}

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

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 3px solid var(--primary);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
}

.news-badges {
    position: absolute;
    top: -8px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.badge-new {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.badge-important {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.news-category {
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.category-update {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.category-security {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}

.category-feature {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.category-other {
    background: rgba(253, 203, 110, 0.1);
    color: #f39c12;
}

.news-date {
    color: var(--dark-gray);
}

.news-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.user-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.user-status {
    color: var(--dark-gray);
    font-size: 1rem;
}

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

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

.stat-card {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* Стили для статусов сайтов */
.site-status {
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.status-active {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-pending {
    background-color: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}

.status-inactive {
    background-color: #fbe9e7;
    color: #d32f2f;
    border: 1px solid #ffccbc;
}

/* Дополнительная статистика */
.site-additional-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.stat-row i {
    width: 16px;
    text-align: center;
}

/* Адаптивность для статистики */
@media (max-width: 480px) {
    .site-stats {
        flex-direction: column;
        gap: 8px;
    }

    .site-additional-stats {
        font-size: 12px;
    }
}
/* Стили для кнопок действий */
.site-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: #f5f5f5;
    color: #333;
}

.btn-icon .fa-edit:hover {
    color: #2196F3;
}

.btn-icon .fa-trash:hover {
    color: #f44336;
}

/* Формы в действиях */
.site-actions form {
    margin: 0;
    padding: 0;
}

/* Уведомления */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
    color: #f57c00;
}

/* Форма редактирования */
.site-form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
/* Уведомление о модерации */
.moderation-notification {
    margin: 0 auto;
    max-width: 300px;
}

.notification-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
    border-radius: 25px;
    color: #f57c00;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.notification-link:hover {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.notification-text {
    font-size: 14px;
    white-space: nowrap;
}

.notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background-color: #ff5722;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

/* Анимация пульсации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.moderation-notification {
    animation: pulse 2s infinite;
}

/* Адаптивность для уведомления */
@media (max-width: 768px) {
    .moderation-notification {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 10px 0;
    }

    .notification-link {
        justify-content: center;
        padding: 10px 20px;
    }

    .notification-text {
        font-size: 13px;
    }

    .header-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .notification-text {
        font-size: 12px;
    }

    .notification-link {
        padding: 8px 12px;
    }
}

.stat-card h3 {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* Progress */
.progress-container {
    background: var(--gray);
    border-radius: 10px;
    height: 12px;
    margin: 1.5rem 0;
}

.progress-bar {
    background: var(--success);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.page-header h1 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

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

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

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.add-btn {
    background-color: var(--success);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.add-btn:hover {
    background-color: #00a383;
    transform: translateY(-2px);
}

.visit-btn {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.visit-btn:hover {
    background-color: var(--primary-dark);
}

/* Sites */
.sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.site-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
}

.site-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.site-description {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.site-url {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.site-url a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.site-url a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.empty-state p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

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

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-buttons {
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================= Стили для аутентификации ================= */
.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
}

.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--error);
    background: rgba(214, 48, 49, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Стили для блока начислений */
.rewards-info {
    margin-top: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.rewards-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.reward-card {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reward-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #6c5ce7;
}

.reward-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.reward-value {
    margin: 0;
    font-weight: 600;
    color: #00b894;
}

.withdrawal-info {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}
.withdrawal-info.warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ffc107;
}

.withdrawal-info.warning .info-icon {
    color: #ffa000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .withdrawal-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
}

.reward-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.reward-value {
    margin: 0;
    font-weight: 600;
    color: #00b894;
}

        /* Logout Button */
        .logout-btn {
            background-color: var(--dark);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            justify-content: center;
        }

        .logout-btn:hover {
            background-color: #1a1a1a;
        }

        /* Профиль пользователя */
        .profile-section {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .profile-container {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .profile-avatar {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .avatar-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #f0f0f0;
        }

        .avatar-upload-btn {
            background: none;
            border: none;
            color: #4a6bff;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .profile-info h1 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: #333;
        }

    /* Адаптация блока статистики для мобильных */
    .profile-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        min-width: 0;
        flex: 1;
        min-width: 120px;
    }

    /* Медиа-запрос для мобильных устройств */
    @media (max-width: 768px) {
        .profile-stats {
            flex-direction: column;
            gap: 10px;
        }

        .stat-item {
            flex: none;
            width: 100%;
            box-sizing: border-box;
        }

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

        .user-avatar {
            margin: 0 auto 15px auto;
        }
    }

        .stat-item i {
            color: #4a6bff;
        }

        .profile-details {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.8rem;
        }

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

        .detail-label {
            font-weight: 500;
            color: #666;
        }

        .detail-value {
            color: #333;
        }

     /* ================= Стили для страницы настроек ================= */
     .settings-container {
         background: white;
         border-radius: 10px;
         box-shadow: 0 2px 10px rgba(0,0,0,0.05);
         padding: 2rem;
         max-width: 600px; /* Ограничиваем ширину */
         margin: 0 auto; /* Центрируем по горизонтали */
     }

     .settings-section {
         margin-bottom: 3rem;
         /*text-align: center;  Центрируем текст */
     }

     .settings-section h2 {
         font-size: 1.3rem;
         margin-bottom: 1.5rem;
         padding-bottom: 0.5rem;
         border-bottom: 1px solid var(--gray);
         display: flex;
         align-items: center;
         /*justify-content: center;  Центрируем заголовок */
         gap: 10px;
     }

     /* Центрируем все элементы внутри секций настроек */
     .settings-section > * {
         display: flex;
         flex-direction: column;
         align-items: center;
     }

     /* Для групп переключателей и input'ов */
     .theme-switcher,
     .settings-section form,
     .settings-section div {
         display: flex;
         flex-direction: column;
         align-items: center;
         gap: 1rem;
         width: 100%;
     }

     /* Центрируем отдельные элементы */
     .theme-option,
     .form-group,
     .setting-item {
         display: flex;
         justify-content: center;
         align-items: center;
         gap: 10px;
         width: 100%;
     }

     /* Для кнопок в настройках */
     .settings-actions {
         display: flex;
         justify-content: center;
         gap: 1rem;
         margin-top: 2rem;
     }

     /* Адаптивность для мобильных */
     @media (max-width: 768px) {
         .settings-container {
             padding: 1.5rem;
             margin: 0 15px;
             width: calc(100% - 30px);
         }

         .settings-actions {
             flex-direction: column;
             align-items: center;
         }

         .settings-actions .btn {
             width: 100%;
             max-width: 300px;
         }
     }

    <style>
        /* Стили для информации о подключении */
        .ip-info {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            border-left: 4px solid #4CAF50;
        }

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

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

        .info-label {
            font-weight: 600;
            color: #2c3e50;
            min-width: 120px;
        }

        .info-value {
            color: #7f8c8d;
            font-family: 'Courier New', monospace;
            background: #e9ecef;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 14px;
        }

        /* Уведомление о смене IP */
        .ip-change-alert {
            margin-bottom: 20px;
        }

        .alert-warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #ffc107;
        }

        .ip-comparison {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            font-family: 'Courier New', monospace;
            background: #fff;
            padding: 10px;
            border-radius: 6px;
        }

        .old-ip {
            color: #dc3545;
            font-weight: 600;
        }

        .new-ip {
            color: #28a745;
            font-weight: 600;
        }

        /* Стили для истории входов */
        .login-history {
            margin-top: 25px;
        }

        .login-history h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 18px;
        }

        .history-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .history-item {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            transition: all 0.3s ease;
            position: relative;
        }

        .history-item.latest {
            border-color: #4CAF50;
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
        }

        .history-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-1px);
        }

        .history-details {
            display: grid;
            grid-template-columns: 1fr auto auto;
            gap: 15px;
            align-items: center;
        }

        .history-ip {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: #2c3e50;
        }

        .history-time {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #7f8c8d;
            font-size: 14px;
        }

        .history-status {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Стили для кнопки "Показать все" */
        .show-all-link {
            text-align: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e0e0e0;
        }

        .btn-show-all {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: #f8f9fa;
            color: #6c757d;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .btn-show-all:hover {
            background: #e9ecef;
            color: #495057;
            transform: translateY(-1px);
        }

        .status-success {
            color: #28a745;
            font-weight: 600;
            background: #d4edda;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .status-failed {
            color: #dc3545;
            font-weight: 600;
            background: #f8d7da;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .badge-current {
            background: #4CAF50;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        /* Индикатор нового устройства */
        .new-device-indicator {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff6b6b;
            color: white;
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 600;
        }

        /* Адаптивность для мобильных */
        @media (max-width: 768px) {
            .history-details {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .info-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .info-label {
                min-width: auto;
            }

            .ip-comparison {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .history-ip,
            .history-time,
            .history-status {
                justify-content: flex-start;
            }
        }

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

        .history-item {
            animation: fadeIn 0.5s ease-out;
        }

        .history-item:nth-child(1) { animation-delay: 0.1s; }
        .history-item:nth-child(2) { animation-delay: 0.2s; }
        .history-item:nth-child(3) { animation-delay: 0.3s; }

        /* Иконки */
        .fa-globe { color: #4CAF50; }
        .fa-history { color: #6c757d; }
        .fa-desktop { color: #2196F3; }
        .fa-clock { color: #ff9800; }
        .fa-check-circle { color: #28a745; }
        .fa-times-circle { color: #dc3545; }
        .fa-exclamation-triangle { color: #ffc107; }

        /* Дополнительные стили для лучшего UX */
        .section-title {
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .section-title h2 {
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 22px;
        }

        .empty-history {
            text-align: center;
            padding: 40px 20px;
            color: #7f8c8d;
        }

        .empty-history i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #bdc3c7;
        }

        .empty-history h3 {
            margin-bottom: 10px;
            color: #2c3e50;
        }
    </style>
/* Стили для мобильного меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-content {
    padding: 70px 20px 30px;
    position: relative;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Общие стили для навигации */
.nav-content .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nav-content .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Стили для десктопной версии */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* На десктопе скрываем мобильные кнопки авторизации */
@media (min-width: 969px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .nav-content {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 0;
    }

    .close-menu {
        display: none;
    }

    /* Скрываем мобильные кнопки Вход/Регистрация на ПК */
    .mobile-auth {
        display: none !important;
    }

    /* Показываем только основные ссылки навигации */
    .nav-content > .nav-link:not(.mobile-auth .nav-link) {
        display: flex;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 968px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        display: block;
        right: -100%;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Скрываем десктопные кнопки авторизации */
    .header-buttons .auth-buttons {
        display: none !important;
    }

    /* Показываем мобильное меню как боковую панель */
    .nav-content {
        flex-direction: column;
        align-items: stretch;
        padding: 70px 20px 30px;
    }

    /* Показываем ВСЕ ссылки в мобильном меню */
    .nav-content > .nav-link {
        display: flex !important;
        justify-content: flex-start;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Показываем мобильные кнопки авторизации */
    .mobile-auth {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .mobile-auth .nav-link {
        justify-content: center;
        padding: 12px;
        background: var(--primary-light);
        border-radius: 8px;
        color: #333;
        border-bottom: none;
    }

    .mobile-auth .nav-link:hover {
        background: var(--primary);
        color: white;
    }

    /* Скрываем основные кнопки в header-buttons на мобильных */
    .header-buttons .auth-buttons {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .nav-content {
        padding: 60px 15px 20px;
    }
}

.message-counter {
    /* базовые стили остаются */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

/* Используем classappend для модификаторов */
.message-counter.empty {
    background: #95a5a6;
}

.message-counter.high {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.message-counter.very-high {
    background: linear-gradient(135deg, #c23616 0%, #e84118 100%);
    animation: pulse 1.5s infinite;
}

/* Стили для счетчика новостей */
.news-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.4);
    border: 2px solid white;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    top: -2px;
}

.news-counter.blue-theme {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.news-counter.blue-theme.high {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.news-counter.blue-theme.very-high {
    background: linear-gradient(135deg, #d63031 0%, #ff7675 100%);
}

body.menu-open {
    overflow: hidden;
}