.forum-section {
    padding: 100px 24px 60px;
    min-height: calc(100vh - 200px);
    animation: fadeIn 0.5s ease;
}

.forum-container {
    max-width: 1200px;
    margin: 0 auto;
}

.forum-header {
    text-align: center;
    margin-bottom: 48px;
}

.forum-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forum-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

.forum-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(121, 129, 166, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-icon svg {
    width: 18px;
    height: 18px;
}

.sidebar-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-content {
    padding: 12px;
}

.online-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.online-user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.online-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.online-avatar.no-avatar {
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.online-user:hover .online-avatar {
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

.online-info {
    flex: 1;
    min-width: 0;
}

.online-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-group {
    font-size: 12px;
    color: var(--text-muted);
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #2ed573;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px rgba(46, 213, 115, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.recent-list {
    display: flex;
    flex-direction: column;
}

.recent-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.recent-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.recent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.recent-author {
    color: var(--accent-purple-light);
}

.forum-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.forum-category:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(121, 129, 166, 0.1), transparent);
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-info {
    flex: 1;
}

.category-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.subcategories-list {
    padding: 8px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.subcategory-item:last-child {
    margin-bottom: 0;
}

.subcategory-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
}

.subcategory-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.subcategory-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.subcategory-icon svg {
    width: 20px;
    height: 20px;
}

.subcategory-content {
    flex: 1;
    min-width: 0;
}

.subcategory-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.subcategory-desc {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 16px;
}

.topics-count, .posts-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.coming-soon {
    font-size: 12px;
    color: var(--accent-purple);
    background: rgba(121, 129, 166, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.topics-section, .thread-section {
    padding: 100px 24px 60px;
    min-height: calc(100vh - 200px);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    font-family: inherit;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-back svg {
    width: 16px;
    height: 16px;
}

.topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.topics-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-new-topic {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-purple);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-new-topic:hover {
    background: var(--accent-purple-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 129, 166, 0.4);
}

.btn-new-topic svg {
    width: 18px;
    height: 18px;
}

.btn-new-topic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topic-item:hover {
    border-color: var(--accent-purple);
    transform: translateX(4px);
}

.topic-icon {
    width: 40px;
    height: 40px;
    background: rgba(121, 129, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.topic-icon svg {
    width: 20px;
    height: 20px;
}

.topic-content {
    flex: 1;
    min-width: 0;
}

.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.topic-author {
    font-weight: 600;
}

.topic-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.topic-replies, .topic-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.topic-replies svg, .topic-views svg {
    width: 16px;
    height: 16px;
}

.no-topics {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-topics-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    opacity: 0.5;
}

.thread-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.thread-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.post-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.post-avatar-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.post-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
}

.post-author-info {
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    transition: color 0.2s ease;
}

.post-author:hover {
    text-decoration: underline;
    cursor: pointer;
}

.post-group {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.post-date {
    font-size: 12px;
    color: var(--text-muted);
}

.post-content {
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.reply-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.reply-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.reply-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    min-height: 120px;
}

.reply-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-send-reply {
    padding: 12px 24px;
    background: var(--accent-purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-send-reply:hover {
    background: var(--accent-purple-light);
    color: var(--bg-primary);
}

.btn-send-reply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.topic-modal {
    max-width: 600px;
}

@media (max-width: 1024px) {
    .forum-main-layout {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-block {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .forum-title {
        font-size: 32px;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .subcategory-item {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .subcategory-stats {
        width: 100%;
        margin-left: 56px;
        margin-top: 8px;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .topics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .topic-item {
        flex-wrap: wrap;
    }
    
    .topic-stats {
        width: 100%;
        margin-left: 56px;
        margin-top: 12px;
    }
    
    .thread-title {
        font-size: 20px;
    }
    
    .online-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 8px;
}

.topic-badge.closed {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.topic-badge.staff {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

.topic-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.topic-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.topic-item.closed-topic {
    opacity: 0.8;
}

.topic-item.staff-topic {
    border-left: 3px solid #ffa502;
}

.topic-item.closed-topic .topic-icon {
    color: #ff4444;
}

.topic-item.staff-topic .topic-icon {
    color: #ffa502;
}

.thread-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    vertical-align: middle;
}

.thread-badge.closed {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.thread-badge.staff {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.post-author-link {
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-author-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.topic-author {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.topic-author:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.text-editor {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.toolbar-btn svg {
    display: block;
}

.toolbar-btn b, .toolbar-btn i, .toolbar-btn u, .toolbar-btn s {
    color: inherit;
}

.toolbar-select {
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.editor-wrapper {
    position: relative;
    width: 100%;
}

.editor-content {
    min-height: 120px;
    max-height: 400px;
    padding: 16px;
    padding-bottom: 32px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-y: auto;
    outline: none;
    background: var(--bg-input);
    border: none;
    margin-bottom: 0;
    field-sizing: content;
}

.editor-content:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    font-weight: 500;
    line-height: 1;
}

.char-counter.limit-exceeded {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.3);
}

.char-counter.limit-warning {
    color: #ffa502;
    background: rgba(255, 165, 2, 0.3);
}

#replyBox .editor-content {
    position: relative;
    padding-bottom: 32px;
}

.reply-actions .char-counter {
    position: static;
    background: transparent;
    padding: 0;
    font-size: 13px;
}

.topic-content-input {
    display: block;
    min-height: 120px;
    max-height: 400px;
    padding: 16px;
    padding-bottom: 32px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-y: auto;
    outline: none;
    background: var(--bg-input);
    border: none;
    margin-bottom: 0;
}

.topic-content-input:focus {
    outline: none;
}

.topic-content-input:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.editor-content .char-counter {
    display: none;
}

#newTopicModal .editor-wrapper {
    position: relative;
}

#replyBox .editor-wrapper {
    position: relative;
}

#newTopicModal .editor-content {
    position: relative;
    padding-bottom: 32px;
}

#newTopicModal .char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    font-weight: 500;
}

#newTopicModal .char-counter.limit-exceeded {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.2);
}

#newTopicModal .char-counter.limit-warning {
    color: #ffa502;
    background: rgba(255, 165, 2, 0.2);
}

.editor-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.editor-content a {
    color: var(--accent-purple-light);
    text-decoration: none !important;
}

.editor-content a:hover {
    text-decoration: underline !important;
}

.editor-content ul, .editor-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.editor-content li {
    margin: 4px 0;
}

.post-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 16px 0;
    width: 100%;
    display: block;
}

.editor-content hr.post-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 16px 0;
    width: 100%;
    display: block;
}

.post-content {
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    word-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.post-content a {
    color: var(--accent-purple-light);
    text-decoration: none !important;
}

.post-content a:hover {
    text-decoration: underline !important;
}

.post-content ul, .post-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.post-content li {
    margin: 4px 0;
}

.post-content hr.post-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 16px 0;
    width: 100%;
}

.post-content a {
    color: var(--accent-purple-light);
    text-decoration: none !important;
}

.post-content a:hover {
    text-decoration: underline !important;
}

.topic-content a,
.editor-content a {
    text-decoration: none !important;
}

.topic-content a:hover,
.editor-content a:hover {
    text-decoration: underline !important;
}

.post-content ul, .post-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.post-content li {
    margin: 4px 0;
}

.post-content hr.post-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 16px 0;
    width: 100%;
}

.editor-content {
    field-sizing: content;
    min-height: 120px;
}

@supports not (field-sizing: content) {
    .editor-content {
        height: auto;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.topic-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
}

.topic-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.topic-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.topic-modal .modal-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.topic-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.topic-modal .modal-close:hover {
    color: var(--text-primary);
}

.topic-modal .modal-close svg {
    width: 24px;
    height: 24px;
}

.topic-modal .form-group {
    margin-bottom: 20px;
}

.topic-modal .form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.topic-modal .form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.topic-modal .form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.topic-modal .btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.topic-modal .btn-primary:hover {
    background: var(--accent-purple-light);
    color: var(--bg-primary);
}

.post-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 20px 0;
}

.editor-content hr.post-hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.config-list {
    margin: 12px 0;
    padding-left: 24px;
}

.config-list li {
    margin: 6px 0;
    line-height: 1.5;
}

.config-list ul,
.config-list ol {
    margin: 6px 0;
}