:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #8b5cf6;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --warning: #f59e0b;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 64px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.header__logo i {
    font-size: 1.5rem;
}

.header__search {
    display: flex;
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header__search input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.875rem;
    background: var(--bg);
    transition: all var(--transition);
    font-family: var(--font);
}

.header__search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg-card);
}

.header__search button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text);
}

.main {
    flex: 1;
    padding: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

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

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

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

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

.btn--ghost:hover {
    background: var(--bg);
    color: var(--text);
}

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

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

.btn--sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge--admin { background: #fef3c7; color: #92400e; }
.badge--moderator { background: #e0e7ff; color: #3730a3; }
.badge--user { background: var(--bg); color: var(--text-secondary); }
.badge--pin { background: #fef3c7; color: #92400e; }
.badge--lock { background: var(--danger-bg); color: var(--danger); }

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

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

.alert--success {
    background: var(--success-bg);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h1 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.page-header__sub {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.page-header__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs__sep {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-card {
    display: grid;
    grid-template-columns: 56px 1fr 140px 200px;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

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

.category-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.category-card__title:hover {
    color: var(--primary);
}

.category-card__desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.category-card__stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.category-card__last {
    font-size: 0.85rem;
}

.category-card__last-thread {
    display: block;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.category-card__last-thread:hover {
    color: var(--primary);
}

.category-card__last-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.recent-section {
    margin-top: 2rem;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.thread-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 140px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.thread-prefix {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    vertical-align: middle;
}

.thread-row:hover {
    box-shadow: var(--shadow-md);
}

.thread-row--pinned {
    border-left: 3px solid var(--warning);
}

.thread-row__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-row__title {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.thread-row__title:hover {
    color: var(--primary);
}

.thread-row__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.thread-row__meta a {
    color: var(--text-secondary);
    font-weight: 500;
}

.thread-row__preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.thread-row__stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.thread-row__stats i {
    width: 16px;
    text-align: center;
}

.thread-row__last {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.thread-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.thread-meta i {
    margin-right: 0.2rem;
}

.thread-actions {
    display: flex;
    gap: 0.25rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-card__sidebar {
    padding: 1.25rem;
    background: var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    border-right: 1px solid var(--border);
}

.post-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow);
}

.post-card__author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.post-card__author:hover {
    color: var(--primary);
}

.post-card__role {
    font-size: 0.65rem;
}

.post-card__joined,
.post-card__count {
    font-size: 0.75rem;
}

.post-card__content {
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.post-card__header {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card__number {
    color: var(--text-muted);
    font-weight: 500;
}

.post-card__body {
    flex: 1;
    padding: 1.25rem;
    line-height: 1.7;
    word-wrap: break-word;
}

.post-card__footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.like-btn:hover {
    border-color: #f87171;
    color: #ef4444;
    background: #fef2f2;
}

.like-btn--active {
    border-color: #f87171;
    color: #ef4444;
    background: #fef2f2;
}

.like-btn--disabled {
    cursor: default;
}

.reply-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.reply-form h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.thread-locked-notice {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow);
}

.auth-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-card__title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-card__title i {
    color: var(--primary);
}

.auth-card__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: all var(--transition);
    background: var(--bg-card);
    color: var(--text);
}

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

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

.form-group input[type="file"] {
    padding: 0.5rem;
    background: var(--bg);
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 700px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

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

.search-form__input {
    display: flex;
    gap: 0.75rem;
}

.search-form__input input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font);
    transition: all var(--transition);
}

.search-form__input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.profile-header__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.profile-header__info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.profile-header__info > * {
    display: block;
    margin-top: 0.25rem;
}

.profile-header__location,
.profile-header__date,
.profile-header__seen {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-header__location i,
.profile-header__date i,
.profile-header__seen i {
    width: 18px;
    text-align: center;
    margin-right: 0.2rem;
}

.profile-bio {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-bio h3 {
    margin-bottom: 0.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stats__item {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.profile-stats__number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stats__label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-edit-avatar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-edit-avatar__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page__code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.error-page h1 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.pagination__link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.pagination__link--active {
    background: var(--primary);
    color: #fff;
}

.pagination__link--active:hover {
    background: var(--primary-dark);
    color: #fff;
}

.pagination__dots {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

.text-muted {
    color: var(--text-muted);
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.footer__right a {
    color: var(--text-secondary);
}

.footer__right a:hover {
    color: var(--primary);
}

.footer__sep {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .category-card {
        grid-template-columns: 48px 1fr;
        gap: 0.75rem;
    }

    .category-card__stats,
    .category-card__last {
        display: none;
    }

    .thread-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .thread-row__avatar {
        display: none;
    }

    .thread-row__stats {
        flex-direction: row;
        gap: 1rem;
    }

    .thread-row__last {
        flex-direction: row;
        gap: 0.5rem;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-card__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .post-card__avatar {
        width: 50px;
        height: 50px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .header__search {
        display: none;
    }

    .header__nav {
        display: none;
    }

    .header__nav.active {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 1rem;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .header__burger {
        display: block;
        margin-left: auto;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .form-card {
        padding: 1.25rem;
    }
}

.profile-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font);
    transition: all var(--transition);
}

.profile-tab:hover {
    color: var(--text);
}

.profile-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.profile-tab__count {
    background: var(--bg);
    padding: 0.1rem 0.45rem;
    border-radius: 99px;
    font-size: 0.75rem;
}

.wall-form {
    padding: 1rem;
    margin-bottom: 1rem;
}

.wall-form__inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.wall-form__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wall-form__inner textarea {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font);
    resize: vertical;
    min-height: 60px;
    transition: border-color var(--transition);
}

.wall-form__inner textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.wall-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.65rem;
}

.wall-notice {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.wall-posts {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.wall-post {
    padding: 1rem;
}

.wall-post__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.wall-post__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.wall-post__author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.wall-post__author:hover {
    color: var(--primary);
}

.wall-post__date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wall-post__delete {
    margin-left: auto;
}

.wall-post__delete button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.wall-post__delete button:hover {
    color: var(--danger);
}

.wall-post__body {
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.forum-stats-block {
    margin-top: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.forum-stats-block__header {
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.forum-stats-block__header i {
    color: var(--primary);
}

.forum-stats-block__body {
    padding: 1.25rem;
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.forum-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s;
}

.forum-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.forum-stat-item > i {
    font-size: 1.35rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.forum-stat-item:nth-child(1) > i { color: var(--primary); background: var(--primary-light); }
.forum-stat-item:nth-child(2) > i { color: #16a34a; background: #dcfce7; }
.forum-stat-item:nth-child(3) > i { color: #8b5cf6; background: #ede9fe; }
.forum-stat-item:nth-child(4) > i { color: #f43f5e; background: #ffe4e6; }

.forum-stat-item__num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.forum-stat-item__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forum-stats-extra {
    display: flex;
    gap: 2rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.85rem;
}

.forum-stats-extra__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.35rem;
}

.forum-stats-extra__value {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.forum-stats-online-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.forum-stats-online {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.forum-stats-online__label {
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.forum-stats-online a {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .forum-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .forum-stats-extra {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.forum-category {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.forum-category__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.forum-category__header i {
    color: #fbbf24;
}

.forum-category__body {
    display: flex;
    flex-direction: column;
}

.forum-category__body .category-card {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-light);
}

.forum-category__body .category-card:last-child {
    border-bottom: none;
}

.forum-category__empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
}

.category-card__subforums {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.category-card__subforums i {
    font-size: 0.7rem;
}

.category-card__subforums a {
    color: var(--text-secondary);
    font-weight: 500;
}

.category-card__subforums a:hover {
    color: var(--primary);
}

.category-card--sub {
    background: #f8fafc;
}

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

.subforums-section .categories-list {
    gap: 0.35rem;
}

/* Header with centered logo */
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Desktop */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-actions {
        justify-content: flex-end;
    }
}
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}