.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ask-btn {
    background: #238636;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
}

.back-btn {
    background: #1f6feb;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.question-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.question-card:hover {
    border-color: #79c0ff;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.question-title a {
    color: #e6edf3;
    text-decoration: none;
}

.question-title a:hover {
    color: #79c0ff;
}

.question-meta {
    font-size: 0.75rem;
    color: #8b949e;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.8rem;
}

.question-excerpt {
    font-size: 0.85rem;
    color: #c9d1d9;
}

.delete-link {
    color: #f85149;
    font-size: 0.7rem;
    text-decoration: none;
    margin-left: 10px;
}

.question-container {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-full-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.5rem;
}

.question-content {
    font-size: 1rem;
    color: #c9d1d9;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #21262d;
}

.question-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.question-images a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #30363d;
    aspect-ratio: 1;
}

.question-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.answers-section {
    margin-top: 2rem;
}

.answers-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: #79c0ff;
}

.answer-card {
    background: #0a0c10;
    border: 1px solid #21262d;
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.answer-meta {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.answer-content {
    font-size: 0.9rem;
    color: #c9d1d9;
    white-space: pre-wrap;
}

.answer-form,
.ask-form-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.answer-form textarea,
.form-group input,
.form-group textarea {
    width: 100%;
    background: #0a0c10;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1rem;
    color: #e6edf3;
    font-family: inherit;
}

.answer-form textarea {
    min-height: 120px;
}

.btn-answer {
    background: #1f6feb;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    color: white;
    cursor: pointer;
    margin-top: 1rem;
    font-family: inherit;
}

.btn-submit {
    background: #238636;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    color: white;
    cursor: pointer;
    font-family: inherit;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.form-group textarea {
    min-height: 180px;
}

.form-hint {
    font-size: 0.75rem;
    color: #6e7681;
    margin-top: 0.35rem;
}

.form-group input[type="file"] {
    padding: 0.6rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    text-decoration: none;
}

.pagination .current {
    background: #1f6feb;
}

.empty-forum {
    text-align: center;
    padding: 4rem;
    color: #8b949e;
}

.flash-msg {
    background: #d2992215;
    border: 1px solid #d29922;
    color: #e3b341;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.forum-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #e6edf3;
}

.forum-author:hover .forum-author-name {
    color: #79c0ff;
}

.forum-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #30363d;
    background: #0a0c10;
}

.forum-author-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.user-prefix {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: lowercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.user-prefix--admin {
    background: #f8514925;
    color: #f85149;
    border: 1px solid #f8514960;
}

/* Profile */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #30363d;
    background: #0a0c10;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 1.6rem;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-bio {
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
    white-space: pre-wrap;
}

.profile-stats {
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 0.5rem;
}

.profile-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-edit-btn {
    background: #1f6feb;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
}

.profile-questions-title {
    font-size: 1.2rem;
    color: #79c0ff;
    margin-bottom: 1rem;
}

.profile-question-item {
    display: block;
    background: #0a0c10;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.profile-question-item:hover {
    border-color: #79c0ff;
}

.profile-question-item h3 {
    font-size: 1rem;
    color: #e6edf3;
    margin-bottom: 0.35rem;
}

.profile-question-item span {
    font-size: 0.75rem;
    color: #6e7681;
}

.profile-empty {
    color: #8b949e;
    font-size: 0.9rem;
}

.avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30363d;
    margin-bottom: 1rem;
}

.error-msg {
    background: #f8514910;
    border: 1px solid #f85149;
    color: #f85149;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.success-msg {
    background: #3fb95010;
    border: 1px solid #3fb950;
    color: #3fb950;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.forum-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.35rem;
    letter-spacing: 0.02em;
}

.forum-status--published {
    background: rgba(63, 185, 80, 0.12);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.35);
}

.forum-status--pending {
    background: rgba(210, 153, 34, 0.12);
    color: #d29922;
    border: 1px solid rgba(210, 153, 34, 0.35);
}

.forum-status--rejected {
    background: rgba(248, 81, 73, 0.12);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.35);
}

.moderation-notice {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin: 0.75rem 0;
}

.moderation-notice--pending {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.35);
    color: #d29922;
}

.moderation-notice--rejected {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.35);
    color: #f85149;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .question-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
