/* ===== СБРОС И БАЗОВЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0070f3;
    --primary-dark: #0051b3;
    --primary-light: #e6f0ff;
    --success: #00c851;
    --danger: #ff4444;
    --warning: #ffbb33;
    
    --bg-light: #f5f5f5;
    --bg-dark: #0a0a0a;
    --surface-light: #ffffff;
    --surface-dark: #1e1e1e;
    
    --text-light: #333333;
    --text-dark: #f0f0f0;
    --text-muted-light: #666666;
    --text-muted-dark: #aaaaaa;
    
    --border-light: #eeeeee;
    --border-dark: #333333;
    
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    padding-bottom: 80px; /* место для нижней навигации */
}

html.dark-theme body {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 20px;
}

/* ===== ВЕРХНЯЯ НАВИГАЦИЯ (СКРЫТА) ===== */
.top-nav {
    display: none;
}

/* ===== НИЖНЯЯ НАВИГАЦИЯ ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-light);
    border-top: 1px solid var(--border-light);
    padding: 8px 12px;
    padding-bottom: calc(8px + var(--safe-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

html.dark-theme .bottom-nav {
    background: var(--surface-dark);
    border-top-color: var(--border-dark);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted-light);
    font-size: 11px;
    gap: 2px;
    padding: 8px 0;
    border-radius: 30px;
    transition: all 0.2s;
    flex: 0 1 auto;
    min-width: 50px;
}

html.dark-theme .nav-item {
    color: var(--text-muted-dark);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 12px;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-weight: 500;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ВЫХОДА ===== */
.logout-btn {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #cc0000;
}

/* ===== КОЛОКОЛЬЧИК ===== */
.notifications-bell {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 99;
}

html.dark-theme .notifications-bell {
    background: var(--surface-dark);
}

.notifications-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--surface-light);
}

/* ===== СТАТИСТИКА ===== */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.03);
    border-radius: 30px;
}

html.dark-theme .stats-header {
    background: rgba(255,255,255,0.05);
}

.user-counter {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted-light);
}

.user-counter span {
    font-weight: bold;
    color: var(--primary);
}

/* ===== БАННЕР ПОБЕДИТЕЛЯ ===== */
.winner-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, gold, #ffd700);
    padding: 10px 16px;
    border-radius: 30px;
    margin: 12px 0;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.winner-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
}

.winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.winner-label {
    font-size: 11px;
    font-weight: bold;
    background: rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 30px;
}

/* ===== ФИЛЬТРЫ ЛЕНТЫ ===== */
.feed-filter {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    padding: 4px;
    background: rgba(0,0,0,0.03);
    border-radius: 30px;
}

html.dark-theme .feed-filter {
    background: rgba(255,255,255,0.05);
}

.filter-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted-light);
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* ===== ПОСТЫ ===== */
.post {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

html.dark-theme .post {
    background: var(--surface-dark);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.post-author-info {
    flex: 1;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.post-date {
    font-size: 11px;
    color: var(--text-muted-light);
}

.subscribe-btn-inline {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    height: 28px;
    min-width: auto;
}

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

.subscribe-btn-inline.subscribed {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.post-content {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.post-image {
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

html.dark-theme .post-actions {
    border-top-color: var(--border-dark);
}

.like-btn, .comments-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted-light);
    transition: all 0.2s;
    padding: 5px 8px;
    border-radius: 30px;
}

.like-btn.liked {
    color: var(--danger);
}

.like-btn:hover {
    color: var(--danger);
    background: rgba(255,68,68,0.1);
}

.comments-btn:hover {
    color: var(--primary);
    background: rgba(0,112,243,0.1);
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted-light);
    padding: 5px 8px;
}

.delete-post-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted-light);
    margin-left: auto;
    opacity: 0.6;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.delete-post-btn:hover {
    opacity: 1;
    color: var(--danger);
    background: rgba(255,68,68,0.1);
}

/* ===== КОММЕНТАРИИ ===== */
.comments-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

html.dark-theme .comments-container {
    border-top-color: var(--border-dark);
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.comment {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

html.dark-theme .comment {
    background: rgba(255,255,255,0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.comment-author {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 13px;
}

.comment-content {
    font-size: 13px;
    line-height: 1.4;
    padding-left: 32px;
}

.delete-comment-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.5;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.delete-comment-btn:hover {
    opacity: 1;
    color: var(--danger);
    background: rgba(255,68,68,0.1);
}

.add-comment {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.comment-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    font-size: 13px;
    background: var(--surface-light);
    color: var(--text-light);
}

html.dark-theme .comment-input {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-btn {
    padding: 8px 16px;
    border-radius: 24px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    min-width: 60px;
}

/* ===== КНОПКА "ЕЩЁ" ===== */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.load-more-btn {
    background: var(--surface-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 160px;
    font-size: 14px;
}

html.dark-theme .load-more-btn {
    background: var(--surface-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.spinner {
    color: var(--text-muted-light);
    padding: 12px;
}

/* ===== ПРОФИЛЬ ===== */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.btn-choose-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-choose-avatar:hover {
    background: var(--primary-dark);
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.admin-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 16px;
    background: var(--primary-light);
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
}

/* ===== СТАТИСТИКА ПРОФИЛЯ ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

html.dark-theme .stats {
    border-color: var(--border-dark);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted-light);
}

/* ===== БИО ===== */
.bio-container {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

html.dark-theme .bio-container {
    border-color: var(--border-dark);
}

.bio-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.bio-empty {
    color: var(--text-muted-light);
    font-style: italic;
}

.edit-bio-btn {
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
}

.bio-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 8px;
    background: var(--surface-light);
    color: var(--text-light);
}

html.dark-theme .bio-input {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.char-counter-bio {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted-light);
    margin-bottom: 12px;
}

.bio-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== РЕЙТИНГ И МЕДАЛИ ===== */
.rank-container {
    text-align: center;
    margin: 12px 0;
}

.rank-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-light);
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    color: var(--primary);
}

.status-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--primary-light);
    border-radius: 12px;
    margin: 16px 0;
}

.status-badge {
    font-size: 22px;
}

.status-text {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.medals-panel {
    margin: 20px 0;
    padding: 16px;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
}

html.dark-theme .medals-panel {
    background: rgba(255,255,255,0.05);
}

.medals-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 12px;
}

.medal-stat {
    text-align: center;
    flex: 1;
}

.medal-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.medal-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.medal-label {
    font-size: 11px;
    color: var(--text-muted-light);
}

#hideWinnerBtn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--warning);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

#hideWinnerBtn:hover {
    background: #ffaa00;
}

/* ===== ПОИСК ===== */
.search-box {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 15px;
    background: var(--surface-light);
    color: var(--text-light);
}

html.dark-theme .search-box input {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.user-card {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

html.dark-theme .user-card {
    background: var(--surface-dark);
}

.user-card h3 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 18px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin: 16px 0;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

html.dark-theme .user-stats {
    border-color: var(--border-dark);
}

.user-stats span {
    font-size: 13px;
}

/* ===== ТОПЫ ===== */
.top-categories {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    padding: 4px;
    background: rgba(0,0,0,0.03);
    border-radius: 30px;
}

html.dark-theme .top-categories {
    background: rgba(255,255,255,0.05);
}

.top-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted-light);
    transition: all 0.2s;
    font-size: 13px;
}

.top-btn.active {
    background: var(--primary);
    color: white;
}

.top-list {
    margin: 16px 0;
}

.top-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--surface-light);
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

html.dark-theme .top-item {
    background: var(--surface-dark);
}

.top-item.top-1 {
    background: linear-gradient(135deg, #fff9e6, #ffe4b5);
}

html.dark-theme .top-item.top-1 {
    background: linear-gradient(135deg, #4d3f1a, #665522);
}

.top-item.top-2 {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

html.dark-theme .top-item.top-2 {
    background: linear-gradient(135deg, #444, #555);
}

.top-item.top-3 {
    background: linear-gradient(135deg, #fdf5e6, #f0dbb4);
}

html.dark-theme .top-item.top-3 {
    background: linear-gradient(135deg, #4d3322, #664422);
}

.top-place {
    font-size: 18px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.top-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
    cursor: pointer;
}

.top-username {
    flex: 1;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 15px;
}

.top-username:hover {
    color: var(--primary);
}

.top-stat {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
}

.top-status {
    margin-left: 10px;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 11px;
}

/* ===== ПРАВИЛА ===== */
.rules-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 16px;
}

.rules-btn {
    width: 100%;
    padding: 12px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 15px;
}

html.dark-theme .rules-btn {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

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

.rules-text {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

html.dark-theme .rules-text {
    background: var(--surface-dark);
}

.rules-text h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 16px;
}

.rules-text p {
    font-size: 14px;
    margin: 8px 0;
}

.rules-footer-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
    font-style: italic;
    color: var(--text-muted-light);
    text-align: center;
    font-size: 13px;
}

/* ===== ПАНЕЛЬ АДМИНА ===== */
.admin-season-panel {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.admin-season-panel h3 {
    margin-bottom: 12px;
    color: #856404;
    font-size: 16px;
}

.season-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.season-inputs input {
    flex: 1;
    min-width: 180px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* ===== МОДАЛЬНОЕ ОКНО АВАТАРОК ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--surface-light);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

html.dark-theme .modal-content {
    background: var(--surface-dark);
}

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

html.dark-theme .modal-header {
    border-bottom-color: var(--border-dark);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted-light);
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--border-light);
}

.avatars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
}

.avatar-option {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    aspect-ratio: 1;
}

.avatar-option:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.avatar-option.current {
    border: 3px solid var(--primary);
}

.avatar-option.locked {
    cursor: not-allowed;
    opacity: 0.6;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
}

.lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

.upload-section {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

html.dark-theme .upload-section {
    border-top-color: var(--border-dark);
}

.upload-section h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.avatar-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--surface-light);
    color: var(--text-light);
    font-size: 14px;
}

html.dark-theme .avatar-input {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

/* ===== СОЗДАНИЕ ПОСТА ===== */
.textarea-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.post-input {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    min-height: 120px;
    background: var(--surface-light);
    color: var(--text-light);
}

html.dark-theme .post-input {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.post-input:focus {
    outline: none;
    border-color: var(--primary);
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: var(--text-muted-light);
    font-size: 11px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 20px;
}

html.dark-theme .char-counter {
    background: rgba(0,0,0,0.5);
    color: var(--text-muted-dark);
}

.char-counter.warning {
    color: #ff8800;
}

.char-counter.danger {
    color: var(--danger);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ===== ФОТО В ПОСТАХ ===== */
.photo-section {
    margin: 16px 0;
    padding: 14px;
    background: var(--bg-light);
    border-radius: 10px;
}

html.dark-theme .photo-section {
    background: rgba(255,255,255,0.05);
}

.photo-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted-light);
    font-size: 13px;
}

.photo-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    background: var(--surface-light);
    color: var(--text-light);
}

html.dark-theme .photo-input {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.photo-preview {
    margin-top: 10px;
    text-align: center;
}

.photo-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.photo-tip {
    margin: 10px 0;
    padding: 10px;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 12px;
}

/* ===== ОШИБКИ И УСПЕХ ===== */
.error {
    color: var(--danger);
    text-align: center;
    padding: 10px;
    background: rgba(255,68,68,0.1);
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

.success {
    color: var(--success);
    text-align: center;
    padding: 10px;
    background: rgba(0,200,81,0.1);
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

/* ===== УТИЛИТЫ ===== */
.hidden {
    display: none !important;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
/* ===== ИКОНКА СЕРДЦА ===== */
.heart-icon {
    color: #666;  /* серое в светлой теме */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 20px;  /* для текстового сердечка */
    transition: color 0.2s;
}

/* Если используешь SVG */
.heart-icon svg {
    width: 22px;
    height: 22px;
}

.liked .heart-icon {
    color: #ff4444 !important;
}

/* ТЁМНАЯ ТЕМА */
html.dark-theme .heart-icon {
    color: #ffffff;
}

html.dark-theme .liked .heart-icon {
    color: #ff4444 !important;
}

/* ЧИСЛО ЛАЙКОВ */
.likes-count {
    font-size: 16px;  /* чуть крупнее */
    margin-left: 2px;
}

/* КНОПКА ЛАЙКА */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 30px;
    transition: all 0.2s;
}
/* ===== ТЁМНАЯ ТЕМА — ВСЁ БЕЛОЕ ===== */
html.dark-theme {
    background: #0a0a0a;
}

html.dark-theme body {
    background: #0a0a0a;
    color: #ffffff;
}

html.dark-theme .container {
    background: #1e1e1e;
    color: #ffffff;
}

/* ЗАГОЛОВКИ */
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6 {
    color: #ffffff;
}

/* ТЕКСТЫ */
html.dark-theme p,
html.dark-theme span,
html.dark-theme div,
html.dark-theme li {
    color: #ffffff;
}

/* ССЫЛКИ */
html.dark-theme a:not(.btn):not(.nav-item) {
    color: #66aaff;
}

html.dark-theme .post {
    background: #2d2d2d;
    color: #ffffff;
}

html.dark-theme .post-author {
    color: #ffffff;
}

html.dark-theme .post-date {
    color: #cccccc;
}

html.dark-theme .post-content {
    color: #ffffff;
}

html.dark-theme .stats-header {
    background: #2d2d2d;
    color: #ffffff;
}

html.dark-theme .user-counter {
    background: #3d3d3d;
    color: #ffffff;
}

html.dark-theme .user-counter span {
    color: #66aaff;
}

html.dark-theme .filter-btn {
    color: #ffffff;
    background: #3d3d3d;
    border-color: #555;
}

html.dark-theme .filter-btn.active {
    background: #0070f3;
    color: white;
}

html.dark-theme .post-actions {
    border-top-color: #444;
}

html.dark-theme .views-count {
    color: #cccccc;
}

html.dark-theme .comments-count {
    color: #cccccc;
}

html.dark-theme .comment {
    background: #3d3d3d;
}

html.dark-theme .comment-author {
    color: #ffffff;
}

html.dark-theme .comment-content {
    color: #e0e0e0;
}

html.dark-theme .load-more-btn {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #555;
}

html.dark-theme .rules-btn {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #555;
}

html.dark-theme .rules-text {
    background: #2d2d2d;
    color: #ffffff;
}

html.dark-theme .user-card {
    background: #2d2d2d;
    color: #ffffff;
}

html.dark-theme .top-item {
    background: #2d2d2d;
}

html.dark-theme .top-username {
    color: #ffffff;
}

html.dark-theme .modal-content {
    background: #2d2d2d;
    color: #ffffff;
}

html.dark-theme .avatar-input {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #555;
}

html.dark-theme .post-input {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #555;
}

html.dark-theme .post-input::placeholder {
    color: #aaa;
}

html.dark-theme .bio-input {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #555;
}

html.dark-theme .bio-text {
    color: #ffffff;
}

html.dark-theme .stat-label {
    color: #cccccc;
}

html.dark-theme .medal-label {
    color: #cccccc;
}

html.dark-theme .field-note {
    color: #aaa;
}
/* ===== СТРАНИЦА СОЗДАНИЯ ПОСТА ===== */

/* ЗАГОЛОВОК */
.create-header {
    text-align: center;
    margin-bottom: 24px;
}

.create-header h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.create-header p {
    color: var(--text-muted-light);
    font-size: 14px;
}

/* ФОРМА */
.create-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ПОЛЕ ВВОДА */
.create-textarea-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.create-textarea {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: var(--surface-light);
    color: var(--text-light);
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.create-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,112,243,0.1);
}

/* СЧЁТЧИК СИМВОЛОВ */
.create-char-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-muted-light);
    font-weight: 500;
    box-shadow: var(--shadow);
}

.create-char-counter.warning {
    color: #ff8800;
    background: #fff3e0;
}

.create-char-counter.danger {
    color: var(--danger);
    background: #ffe5e5;
}

/* БЛОК ДЛЯ ФОТО */
.create-photo-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin: 8px 0;
    border: 1px solid var(--border-light);
}

.create-photo-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted-light);
    font-size: 14px;
    font-weight: 500;
}

.create-photo-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 30px;
    font-size: 14px;
    background: var(--surface-light);
    color: var(--text-light);
    transition: all 0.2s;
}

.create-photo-input:focus {
    outline: none;
    border-color: var(--primary);
}

.create-photo-preview {
    margin-top: 16px;
    text-align: center;
}

.create-photo-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ПОДСКАЗКА */
.create-photo-tip {
    margin-top: 16px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 13px;
}

.create-photo-tip p {
    margin: 4px 0;
    color: var(--primary-dark);
}

.create-photo-tip a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.create-photo-tip a:hover {
    text-decoration: underline;
}

.create-tip-steps {
    margin: 8px 0 8px 20px;
    color: var(--text-light);
}

.create-tip-example {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted-light);
    margin-top: 8px;
}

/* КНОПКИ */
.create-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.create-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    box-shadow: var(--shadow);
}

.create-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.create-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.create-cancel-btn {
    background: var(--surface-light);
    color: var(--text-light);
    border: 2px solid var(--border-light);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.create-cancel-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-muted-light);
}

/* УВЕДОМЛЕНИЯ */
.create-error {
    color: var(--danger);
    text-align: center;
    padding: 12px;
    background: rgba(255,68,68,0.1);
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 500;
}

.create-success {
    color: var(--success);
    text-align: center;
    padding: 12px;
    background: rgba(0,200,81,0.1);
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 500;
}

/* ===== ТЁМНАЯ ТЕМА ===== */
html.dark-theme .create-textarea {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

html.dark-theme .create-char-counter {
    background: rgba(0,0,0,0.7);
    color: #aaa;
}

html.dark-theme .create-photo-section {
    background: #2d2d2d;
    border-color: #444;
}

html.dark-theme .create-photo-label {
    color: #aaa;
}

html.dark-theme .create-photo-input {
    background: #3d3d3d;
    border-color: #555;
    color: #fff;
}

html.dark-theme .create-photo-tip {
    background: #1a2a3a;
}

html.dark-theme .create-photo-tip p {
    color: #66aaff;
}

html.dark-theme .create-tip-example {
    background: #3d3d3d;
    color: #aaa;
}

html.dark-theme .create-cancel-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

html.dark-theme .create-cancel-btn:hover {
    background: #3d3d3d;
    border-color: #666;
}
/* ===== СТРАНИЦА ПОИСКА ===== */

/* ЗАГОЛОВОК */
.search-header {
    text-align: center;
    margin-bottom: 24px;
}

.search-header h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.search-header p {
    color: var(--text-muted-light);
    font-size: 14px;
}

/* ПОЛЕ ПОИСКА */
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    position: relative;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-light);
    font-size: 18px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border-light);
    border-radius: 40px;
    font-size: 16px;
    background: var(--surface-light);
    color: var(--text-light);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,112,243,0.1);
}

.search-box input::placeholder {
    color: var(--text-muted-light);
    opacity: 0.7;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

/* РЕЗУЛЬТАТЫ */
.search-results {
    margin-top: 24px;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted-light);
    font-size: 16px;
}

.search-error {
    text-align: center;
    padding: 40px;
    color: var(--danger);
    background: rgba(255,68,68,0.1);
    border-radius: 16px;
    font-size: 16px;
}

/* КАРТОЧКА ПОЛЬЗОВАТЕЛЯ */
.search-user-card {
    background: var(--surface-light);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.search-user-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.search-user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.search-user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.search-user-info {
    flex: 1;
}

.search-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.search-user-name h3 {
    font-size: 22px;
    color: var(--text-light);
    margin: 0;
}

.search-user-name .admin-badge {
    font-size: 18px;
    color: var(--primary);
    background: var(--primary-light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-user-date {
    color: var(--text-muted-light);
    font-size: 13px;
}

/* СТАТИСТИКА */
.search-user-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    margin: 16px 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}

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

.search-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.search-stat-label {
    color: var(--text-muted-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* КНОПКА ПЕРЕХОДА */
.search-profile-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-profile-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-profile-btn:active {
    transform: translateY(0);
}

/* ===== ТЁМНАЯ ТЕМА ===== */
html.dark-theme .search-box input {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

html.dark-theme .search-box input::placeholder {
    color: #888;
}

html.dark-theme .search-user-card {
    background: #2d2d2d;
    border-color: #444;
}

html.dark-theme .search-user-name h3 {
    color: #fff;
}

html.dark-theme .search-user-date {
    color: #aaa;
}

html.dark-theme .search-user-stats {
    border-color: #444;
}

html.dark-theme .search-stat-label {
    color: #aaa;
}
/* ===== СБРОС И БАЗОВЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0070f3;
    --primary-dark: #0051b3;
    --primary-light: #e6f0ff;
    --success: #00c851;
    --danger: #ff4444;
    --warning: #ffbb33;
    
    --bg-light: #f5f5f5;
    --bg-dark: #0a0a0a;
    --surface-light: #ffffff;
    --surface-dark: #1e1e1e;
    
    --text-light: #333333;
    --text-dark: #f0f0f0;
    --text-muted-light: #666666;
    --text-muted-dark: #aaaaaa;
    
    --border-light: #eeeeee;
    --border-dark: #333333;
    
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    padding-bottom: 80px;
}

html.dark-theme body {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 20px;
}

/* ===== ЗАГОЛОВОК ===== */
.header {
    margin-bottom: 20px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 16px;
}

/* ===== ВЕРХНЯЯ НАВИГАЦИЯ (ДЛЯ ПК) ===== */
.top-nav {
    display: none;
}

/* ===== НИЖНЯЯ НАВИГАЦИЯ (ДЛЯ ТЕЛЕФОНА) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-light);
    border-top: 1px solid var(--border-light);
    padding: 8px 12px;
    padding-bottom: calc(8px + var(--safe-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

html.dark-theme .bottom-nav {
    background: var(--surface-dark);
    border-top-color: var(--border-dark);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted-light);
    font-size: 11px;
    gap: 2px;
    padding: 8px 0;
    border-radius: 30px;
    transition: all 0.2s;
    flex: 0 1 auto;
    min-width: 50px;
}

html.dark-theme .nav-item {
    color: var(--text-muted-dark);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 12px;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-weight: 500;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ВЫХОДА ===== */
.logout-btn {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #cc0000;
}

/* ===== КОЛОКОЛЬЧИК УВЕДОМЛЕНИЙ ===== */
.notifications-bell {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 99;
}

html.dark-theme .notifications-bell {
    background: var(--surface-dark);
}

.notifications-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--surface-light);
}

/* ===== ПРОФИЛЬ ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface-light);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-choose-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: 3px solid white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn-choose-avatar:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-name {
    flex: 1;
}

.profile-name h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 18px;
    background: var(--primary-light);
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

/* ===== СТАТИСТИКА ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: var(--surface-light);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.stat {
    text-align: center;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 16px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== МЕСТО В ТОПЕ ===== */
.rank-container {
    text-align: center;
    margin: 15px 0;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 40px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

/* ===== СТАТУС ===== */
.status-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--primary-light);
    border-radius: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.status-badge {
    font-size: 28px;
}

.status-text {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 16px;
}

/* ===== КНОПКА ПОДПИСКИ ===== */
.subscribe-section {
    text-align: center;
    margin: 20px 0;
}

.subscribe-section .btn {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 16px;
}

/* ===== ОПИСАНИЕ (BIO) ===== */
.bio-container {
    margin: 25px 0;
    padding: 20px;
    background: var(--surface-light);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bio-display {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    white-space: pre-wrap;
}

.bio-empty {
    color: var(--text-muted-light);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.edit-bio-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 15px;
    font-size: 14px;
}

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

.bio-edit {
    margin-top: 15px;
}

.bio-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 15px;
    background: var(--surface-light);
    color: var(--text-light);
    resize: vertical;
    min-height: 100px;
}

.bio-input:focus {
    outline: none;
    border-color: var(--primary);
}

.char-counter-bio {
    text-align: right;
    color: var(--text-muted-light);
    font-size: 12px;
    margin: 8px 0;
}

.bio-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 30px;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

/* ===== ПАНЕЛЬ МЕДАЛЕЙ ===== */
.medals-panel {
    margin: 25px 0;
    padding: 20px;
    background: var(--surface-light);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.medals-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.medal-stat {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 16px;
}

.medal-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.medal-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.medal-label {
    color: var(--text-muted-light);
    font-size: 12px;
}

.btn-warning {
    width: 100%;
    background: var(--warning);
    color: var(--text-light);
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.btn-warning:hover {
    background: #ffaa00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--surface-light);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

html.dark-theme .modal-content {
    background: var(--surface-dark);
}

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

html.dark-theme .modal-header {
    border-bottom-color: var(--border-dark);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted-light);
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--border-light);
}

.avatars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
}

.avatar-option {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    aspect-ratio: 1;
}

.avatar-option:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.avatar-option.current {
    border: 3px solid var(--primary);
}

.avatar-option.locked {
    cursor: not-allowed;
    opacity: 0.6;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
}

.lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.upload-section {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.upload-section h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.avatar-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--surface-light);
    color: var(--text-light);
    font-size: 14px;
}

.avatar-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== ПОСТЫ ===== */
h2 {
    font-size: 20px;
    margin: 30px 0 20px;
    color: var(--text-light);
    position: relative;
    padding-left: 12px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
}

.posts {
    margin-top: 20px;
}

.post {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

html.dark-theme .post {
    background: var(--surface-dark);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.post-header strong {
    font-size: 16px;
    color: var(--text-light);
}

.post-header small {
    font-size: 12px;
    color: var(--text-muted-light);
}

.delete-post-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted-light);
    margin-left: auto;
    opacity: 0.6;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.delete-post-btn:hover {
    opacity: 1;
    color: var(--danger);
    background: rgba(255,68,68,0.1);
}

.post-content {
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0;
    color: var(--text-light);
    word-wrap: break-word;
}

.post-image {
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.post-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted-light);
}

/* ===== ТЁМНАЯ ТЕМА ===== */
html.dark-theme .profile-header,
html.dark-theme .stats,
html.dark-theme .bio-container,
html.dark-theme .medals-panel,
html.dark-theme .post {
    background: #2d2d2d;
    border-color: #444;
}

html.dark-theme .profile-name h2,
html.dark-theme .post-header strong,
html.dark-theme .post-content {
    color: #fff;
}

html.dark-theme .stat {
    background: #3d3d3d;
}

html.dark-theme .stat-label,
html.dark-theme .post-stats {
    color: #aaa;
}

html.dark-theme .medal-stat {
    background: #3d3d3d;
}

html.dark-theme .medal-label {
    color: #aaa;
}

html.dark-theme .bio-input {
    background: #3d3d3d;
    border-color: #555;
    color: #fff;
}
/* ===== ГАЛОЧКА АДМИНА В ПРОФИЛЕ ===== */
.profile-name .admin-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin-left: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    vertical-align: middle;
}

/* ГАЛОЧКА В ЛЕНТЕ (УЖЕ РАБОТАЕТ) */
.post-author .admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin-left: 4px;
    border: 1px solid white;
}

/* ТЁМНАЯ ТЕМА */
html.dark-theme .profile-name .admin-badge,
html.dark-theme .post-author .admin-badge {
    background: #66aaff;
    color: #1e1e1e;
    border-color: #2d2d2d;
}
/* ===== ГАЛОЧКА АДМИНА В ПРОФИЛЕ (ТОЛЬКО ДЛЯ АДМИНА) ===== */
.profile-name .admin-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin-left: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    vertical-align: middle;
}

/* СКРЫВАЕМ ГАЛОЧКУ ПО УМОЛЧАНИЮ */
.profile-name .admin-badge {
    display: none !important;
}

/* ПОКАЗЫВАЕМ ТОЛЬКО КОГДА ЕСТЬ КЛАСС (ЧЕРЕЗ JS) */
.profile-name .admin-badge[style*="inline"] {
    display: inline-flex !important;
}
/* ===== СТРАНИЦА УВЕДОМЛЕНИЙ ===== */
.notifications-header {
    margin-bottom: 20px;
}

.notifications-header h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 4px;
}

.page-header h2 {
    font-size: 18px;
    color: var(--text-muted-light);
    margin: 0;
}

.page-header h2::before {
    display: none;
}

.notifications-list {
    margin-top: 16px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--surface-light);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.notification-item.unread {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
}

.notification-item.read {
    opacity: 0.8;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted-light);
}

.notification-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.empty-notifications {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface-light);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.empty-notifications h3 {
    font-size: 20px;
    color: var(--text-muted-light);
    margin-bottom: 8px;
}

.empty-notifications p {
    color: var(--text-muted-light);
    font-size: 14px;
}

/* ТЁМНАЯ ТЕМА */
html.dark-theme .notification-item {
    background: #2d2d2d;
}

html.dark-theme .notification-item.unread {
    background: #1a2a3a;
}

html.dark-theme .notification-icon {
    background: #3d3d3d;
}

html.dark-theme .notification-text {
    color: #fff;
}

html.dark-theme .empty-notifications {
    background: #2d2d2d;
}
/* ===== СТРАНИЦЫ ВХОДА И РЕГИСТРАЦИИ ===== */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted-light);
    font-size: 16px;
}

.auth-card {
    background: var(--surface-light);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.auth-card h2 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 24px;
    text-align: center;
}

.auth-card h2::before {
    display: none;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted-light);
    margin-left: 4px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 16px;
    background: var(--surface-light);
    color: var(--text-light);
    transition: all 0.2s;
}

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

.form-group .field-note {
    color: var(--text-muted-light);
    font-size: 12px;
    margin-left: 4px;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-muted-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    color: var(--danger);
    text-align: center;
    padding: 12px;
    background: rgba(255,68,68,0.1);
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
}

.theme-toggle {
    text-align: center;
    margin-top: 20px;
}

.theme-btn {
    background: var(--surface-light);
    border: 2px solid var(--border-light);
    border-radius: 40px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.theme-icon {
    font-size: 18px;
}

/* ТЁМНАЯ ТЕМА */
html.dark-theme .auth-card {
    background: #2d2d2d;
}

html.dark-theme .form-group input {
    background: #3d3d3d;
    border-color: #555;
    color: #fff;
}

html.dark-theme .auth-footer {
    border-top-color: #444;
}

html.dark-theme .theme-btn {
    background: #2d2d2d;
    border-color: #555;
    color: #fff;
}
/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.index-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

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

.logo {
    font-size: 64px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

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

.index-header h1 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 16px;
    color: var(--text-muted-light);
}

.index-card {
    background: var(--surface-light);
    border-radius: 30px;
    padding: 30px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.index-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.feature-icon {
    font-size: 32px;
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    transition: all 0.3s;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    background: var(--primary-light);
    color: var(--primary);
}

.feature-text {
    font-size: 13px;
    color: var(--text-muted-light);
    font-weight: 500;
}

.index-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.index-btn {
    flex: 1;
    padding: 16px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.index-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0,112,243,0.3);
}

.index-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,112,243,0.4);
}

.index-btn.secondary {
    background: var(--surface-light);
    color: var(--text-light);
    border: 2px solid var(--border-light);
}

.index-btn.secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.index-guest {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.index-guest p {
    color: var(--text-muted-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.guest-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s;
}

.guest-link:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

/* ТЁМНАЯ ТЕМА ДЛЯ ГЛАВНОЙ */
html.dark-theme .index-card {
    background: #2d2d2d;
    border-color: #444;
}

html.dark-theme .feature-icon {
    background: #3d3d3d;
}

html.dark-theme .index-btn.secondary {
    background: #2d2d2d;
    color: #fff;
    border-color: #555;
}

html.dark-theme .index-guest {
    border-top-color: #444;
}

html.dark-theme .guest-link:hover {
    background: #1a2a3a;
}
/* ===== КНОПКИ ВХОД И РЕГИСТРАЦИЯ В ТЁМНОЙ ТЕМЕ ===== */
html.dark-theme .index-btn.primary {
    color: #ffffff !important;
}

html.dark-theme .index-btn.secondary {
    color: #ffffff !important;
    border-color: #666;
}

html.dark-theme .index-btn.secondary:hover {
    color: #ffffff !important;
    border-color: var(--primary);
}

html.dark-theme .auth-btn {
    color: #ffffff !important;
}

html.dark-theme .theme-btn {
    color: #ffffff !important;
}

html.dark-theme .guest-link {
    color: #66aaff !important;
}
/* ===== УМНАЯ ГЛАВНАЯ ===== */
.welcome-section {
    text-align: center;
    margin-bottom: 25px;
}

.welcome-avatar {
    margin-bottom: 15px;
}

.welcome-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.welcome-section h2 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.welcome-text {
    color: var(--text-muted-light);
    font-size: 14px;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.quick-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s;
}

.quick-action-btn.primary {
    background: var(--primary-light);
    color: var(--primary);
}

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

.quick-icon {
    font-size: 24px;
}

.quick-label {
    font-size: 13px;
    font-weight: 500;
}

.index-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.index-divider::before,
.index-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border-light);
}

.index-divider::before {
    left: 0;
}

.index-divider::after {
    right: 0;
}

.index-divider span {
    background: var(--surface-light);
    padding: 0 10px;
    color: var(--text-muted-light);
    font-size: 13px;
}

.guest-section {
    text-align: center;
}

.guest-text {
    color: var(--text-muted-light);
    font-size: 14px;
    margin-bottom: 10px;
}

/* ТЁМНАЯ ТЕМА */
html.dark-theme .quick-action-btn {
    background: #3d3d3d;
    color: #fff;
}

html.dark-theme .quick-action-btn.primary {
    background: #1a2a3a;
    color: #66aaff;
}

html.dark-theme .index-divider::before,
html.dark-theme .index-divider::after {
    background: #444;
}

html.dark-theme .index-divider span {
    background: #2d2d2d;
    color: #aaa;
}
/* Кнопка бана */
.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
}

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

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

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

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  padding: 20px;
}

.dark-theme .modal-content {
  background: #1f2937;
  color: white;
}

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

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 10px;
}