/* ============================================
   FORUM CSS - vBulletin Style
   Orange-focused color palette (#F27849)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #F27849;
    --primary-dark: #d4612e;
    --primary-light: #f9a07a;
    --primary-glow: rgba(242, 120, 73, 0.15);
    --primary-glow-strong: rgba(242, 120, 73, 0.3);
    --bg-body: #f0f2f5;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-header: #2b2b2b;
    --bg-header-secondary: #3a3a3a;
    --bg-category-header: linear-gradient(135deg, #F27849, #d4612e);
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --text-light: #aaa;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --border-light: #eee;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(242, 120, 73, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ---- Top Bar ---- */
.forum-topbar {
    background: var(--bg-header);
    padding: 6px 0;
    font-size: 12px;
    color: #bbb;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.forum-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-links {
    display: flex;
    gap: 18px;
    list-style: none;
}

.topbar-links a {
    color: #bbb;
    font-size: 12px;
    transition: var(--transition);
}

.topbar-links a:hover {
    color: var(--primary-light);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right span {
    color: #999;
    font-size: 11px;
}

/* Hamburger toggle - hidden on desktop */
.topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #ddd;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    line-height: 1;
}

.topbar-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

/* ---- Header ---- */
.forum-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2b2b3e 50%, #1a1a2e 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.forum-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 120, 73, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.forum-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-category-header);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(242, 120, 73, 0.3);
}

.forum-logo .logo-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.forum-logo .logo-title span {
    color: var(--primary);
}

.forum-logo .tagline {
    font-size: 11px;
    color: #888;
    margin-top: -2px;
    letter-spacing: 0.5px;
}

/* ---- Search Bar ---- */
.header-search {
    position: relative;
    width: 320px;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    color: #ddd;
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
}

.header-search input::placeholder {
    color: #777;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(242, 120, 73, 0.15);
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 14px;
    pointer-events: none;
}

/* ---- User Actions ---- */
.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--bg-category-header);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 120, 73, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 120, 73, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(242, 120, 73, 0.05);
}

/* ---- Navigation ---- */
.forum-nav {
    background: var(--bg-header-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.forum-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
    background: rgba(242, 120, 73, 0.05);
}

.nav-links li a.active {
    border-bottom-color: var(--primary);
}

.nav-links li a .nav-icon {
    font-size: 15px;
}

.nav-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #888;
}

.nav-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-stats .stat-number {
    color: var(--primary);
    font-weight: 700;
}

/* ---- Container ---- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Breadcrumb Bar ---- */
.breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-size: 12px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

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

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

.breadcrumb li.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb .separator {
    color: #ccc;
    font-size: 10px;
    flex-shrink: 0;
}

/* ---- Topic Posts Wrapper (full width, no sidebar) ---- */
.topic-posts-wrapper {
    width: 100%;
    max-width: 100%;
}

/* ---- Welcome Banner ---- */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #e85d2a 50%, #c44919 100%);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(242, 120, 73, 0.25);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-banner h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
}

.welcome-banner p {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
}

.welcome-stats {
    display: flex;
    gap: 30px;
    margin-top: 16px;
    position: relative;
}

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

.welcome-stat .stat-val {
    font-size: 22px;
    font-weight: 800;
    display: block;
}

.welcome-stat .stat-label {
    font-size: 11px;
    color: #fff;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ---- Main Layout ---- */
.forum-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 0 40px;
}

/* ---- Category Block ---- */
.category-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.category-block:hover {
    box-shadow: var(--shadow-lg);
}

.category-header {
    background: var(--bg-category-header);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05));
    pointer-events: none;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    backdrop-filter: blur(4px);
}

.category-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-header-right {
    display: grid;
    grid-template-columns: 80px 80px 240px;
    gap: 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.category-header-right span {
    text-align: center;
}

.category-header-right span:last-child {
    text-align: left;
}

.category-collapse-btn {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.category-collapse-btn:hover {
    color: white;
}

/* ---- Forum Row ---- */
.forum-row {
    display: grid;
    grid-template-columns: 40px 1fr 80px 80px 240px;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background: var(--primary-glow);
}

.forum-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.forum-icon.has-new {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 3px 10px rgba(242, 120, 73, 0.25);
}

.forum-icon.no-new {
    background: #e8e8e8;
    color: #aaa;
}

.forum-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.forum-info h3 a {
    color: var(--text-primary);
}

.forum-info h3 a:hover {
    color: var(--primary);
}

.forum-info .forum-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.forum-info .subforum-links {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.subforum-links a {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 2px 8px;
    border-radius: 50px;
    transition: var(--transition);
}

.subforum-links a:hover {
    background: var(--primary-glow-strong);
}

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

.forum-count .count-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.forum-count .count-label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-post {
    display: flex;
    align-items: center;
    gap: 10px;
}

.last-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.last-post-info {
    min-width: 0;
}

.last-post-info .post-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: block;
}

.last-post-info .post-title:hover {
    color: var(--primary);
}

.last-post-info .post-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.last-post-info .post-meta .post-author {
    color: var(--primary);
    font-weight: 500;
}

/* ---- Sidebar ---- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.widget-header {
    background: var(--bg-category-header);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-header .widget-icon {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.widget-body {
    padding: 14px 16px;
}

/* ---- Online Users Widget ---- */
.online-user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.online-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 8px;
    background: var(--bg-light);
    border-radius: 50px;
    transition: var(--transition);
}

.online-user:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.online-summary {
    padding: 10px 0 4px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
}

.online-summary strong {
    color: var(--primary);
    font-weight: 700;
}

/* ---- Stats Widget ---- */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--primary-glow);
    transform: translateY(-2px);
}

.stat-item .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item .stat-name {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Recent Topics Widget ---- */
.recent-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.recent-topic-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-topic-item:first-child {
    padding-top: 0;
}

.recent-topic-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.recent-topic-info .topic-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.recent-topic-info .topic-title:hover {
    color: var(--primary);
}

.recent-topic-info .topic-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.recent-topic-info .topic-meta span {
    color: var(--primary);
    font-weight: 500;
}

/* ---- Latest Topics Section ---- */
.latest-topics-section {
    margin-top: 4px;
    margin-bottom: 20px;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 .section-icon {
    color: var(--primary);
}

.section-header .view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-header .view-all:hover {
    color: var(--primary-dark);
}

.latest-topics-table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.topics-table-header {
    display: grid;
    grid-template-columns: 1fr 70px 90px 180px;
    padding: 10px 20px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-row {
    display: grid;
    grid-template-columns: 1fr 70px 90px 180px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: var(--transition);
}

.topic-row:last-child {
    border-bottom: none;
}

.topic-row:hover {
    background: var(--primary-glow);
}

.topic-row:nth-child(even) {
    background: var(--bg-light);
}

.topic-row:nth-child(even):hover {
    background: var(--primary-glow);
}

.topic-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topic-status-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topic-status-icon.hot {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(242, 120, 73, 0.4);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.topic-status-icon.normal {
    background: #ccc;
}

.topic-status-icon.closed {
    background: #999;
}

.topic-content {
    min-width: 0;
}

.topic-title-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    line-height: 1.5;
    word-break: break-word;
}

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

.topic-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
    vertical-align: middle;
}

.topic-tag.pinned {
    background: #fff3e0;
    color: #e65100;
}

.topic-tag.hot-tag {
    background: #fce4ec;
    color: #c62828;
}

.topic-tag.new {
    background: #e8f5e9;
    color: #2e7d32;
}

.topic-starter {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.topic-starter a {
    color: var(--primary);
    font-weight: 500;
}

.topic-replies,
.topic-views {
    text-align: center;
}

.topic-replies .count,
.topic-views .count {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.topic-replies .label,
.topic-views .label {
    font-size: 10px;
    color: var(--text-light);
}

.topic-last-reply {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-last-reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd, #bbb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.topic-last-reply-info {
    font-size: 11px;
    min-width: 0;
}

.topic-last-reply-info .reply-author {
    color: var(--primary);
    font-weight: 600;
    display: block;
}

.topic-last-reply-info .reply-date {
    color: var(--text-muted);
    font-size: 10px;
}

/* ---- Footer ---- */
.forum-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 30px 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.forum-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 120, 73, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    line-height: 1.7;
    margin: 18px 0 16px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(242,120,73,0.3);
}

.footer-section ul {
    list-style: none;
    padding-top: 8px;
}

.footer-section ul li {
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-section ul li:hover {
    transform: translateX(4px);
}

.footer-section ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

/* ---- Footer Company Info ---- */
.footer-company {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    margin-top: 10px;
}

.footer-company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-company-info h5 {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-company-info p {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    margin-bottom: 4px;
    line-height: 1.6;
}

.footer-company-info p strong {
    color: rgba(255,255,255,0.75);
}

.footer-badges {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

.footer-badge-card {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
}

.badge-icon-large {
    font-size: 24px;
}

.footer-badge-card strong {
    color: #fff;
    font-size: 13px;
}

.footer-badge-card small {
    color: rgba(255,255,255,0.45);
    font-size: 9px;
    line-height: 1.3;
}

.badge-label {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(76,175,80,0.2);
    color: #66bb6a;
}

/* ---- Footer Bottom ---- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left p {
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-bottom-left small {
    color: var(--primary);
    font-weight: 600;
    font-size: 10px;
}

.footer-bottom a {
    color: var(--primary);
}

.footer-bottom-right {
    display: flex;
    gap: 8px;
}

.footer-badge-inline {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(37,99,235,0.15);
    color: #64b5f6;
}

.footer-badge-inline.accent {
    background: rgba(76,175,80,0.15);
    color: #66bb6a;
}

/* ---- Page Hero (Yeni Konular, etc.) ---- */
.page-hero {
    background: var(--bg-category-header);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08));
    pointer-events: none;
}

.page-hero-content h2 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-hero-content p {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.page-hero-stats {
    display: flex;
    gap: 20px;
}

.page-stat {
    text-align: center;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    backdrop-filter: blur(4px);
}

.page-stat-val {
    display: block;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.page-stat-label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 8px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--border-light);
}

.filter-tab {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.filter-tab:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.filter-tab.active {
    background: var(--bg-category-header);
    color: white;
    box-shadow: 0 2px 8px rgba(242,120,73,0.25);
}

.filter-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.filter-info strong {
    color: var(--primary);
}

/* ---- Pagination ---- */
.pagination-bar {
    display: flex;
    justify-content: center;
    padding: 20px 0 30px;
}

.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-decoration: none;
    padding: 0 10px;
}

a.page-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.page-item.active {
    background: var(--bg-category-header);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(242,120,73,0.3);
}

.page-dots {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 0 4px;
}

.page-next {
    font-size: 16px;
}

/* ---- Category Hero ---- */
.category-hero {
    background: var(--bg-category-header);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06));
    pointer-events: none;
}

.category-hero-icon {
    font-size: 42px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-hero-content {
    flex: 1;
}

.category-hero-content h1 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.5;
}

.category-hero-stats {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* ---- Category Actions ---- */
.category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.btn-new-topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-category-header);
    color: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(242,120,73,0.3);
}

.btn-new-topic:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(242,120,73,0.4);
}

/* ---- Sort Select ---- */
.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ---- Category Topics ---- */
.category-topics {
    margin-bottom: 12px;
}

.pinned-section {
    margin-bottom: 4px;
}

.pinned-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 10px 20px 6px;
}

.category-topic-row {
    display: grid;
    grid-template-columns: 40px 1fr 160px 200px;
    gap: 14px;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 3px;
    transition: var(--transition);
}

.category-topic-row:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-topic-row.pinned {
    background: rgba(242,120,73,0.03);
    border-color: rgba(242,120,73,0.15);
}

/* Status Icons */
.ct-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ct-status-icon.hot-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 2px 6px rgba(247,147,30,0.3);
}

.ct-status-icon.hot-icon::after {
    content: '🔥';
    font-size: 13px;
}

.ct-status-icon.new-icon {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    box-shadow: 0 2px 6px rgba(41,182,246,0.3);
}

.ct-status-icon.new-icon::after {
    content: '💬';
    font-size: 13px;
}

.ct-status-icon.normal-icon {
    background: var(--bg-tertiary);
}

.ct-status-icon.normal-icon::after {
    content: '💬';
    font-size: 13px;
    opacity: 0.5;
}

.ct-status-icon.solved-icon {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    box-shadow: 0 2px 6px rgba(67,160,71,0.3);
    font-size: 13px;
}

.ct-status-icon.pinned-icon {
    background: linear-gradient(135deg, #f2784990, #f2784940);
    font-size: 13px;
}

/* Main Content */
.ct-main {
    min-width: 0;
}

.ct-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: var(--transition);
}

.ct-title:hover {
    color: var(--primary);
}

.ct-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.ct-author {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.ct-date {
    color: var(--text-secondary);
}

.ct-tag {
    background: var(--bg-tertiary);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Badges */
.ct-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
    vertical-align: middle;
}

.ct-badge.hot {
    background: rgba(255,107,53,0.12);
    color: #ff6b35;
}

.ct-badge.new {
    background: rgba(41,182,246,0.12);
    color: #29b6f6;
}

.ct-badge.solved {
    background: rgba(67,160,71,0.12);
    color: #43a047;
}

/* Stats */
.ct-stats {
    display: flex;
    gap: 16px;
}

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

.ct-stat-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.ct-stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Last Reply */
.ct-last {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-last-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-category-header);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.ct-last-info {
    min-width: 0;
}

.ct-last-author {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-last-author:hover {
    color: var(--primary);
}

.ct-last-date {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
}

/* ---- Topic Time ---- */
.topic-time {
    color: var(--primary);
    font-weight: 500;
}

/* ---- Scroll to Top ---- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg-category-header);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(242, 120, 73, 0.35);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 120, 73, 0.5);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-block {
    animation: fadeInUp 0.4s ease forwards;
}

.category-block:nth-child(2) { animation-delay: 0.1s; }
.category-block:nth-child(3) { animation-delay: 0.2s; }

/* ---- Recent Topic Item (Sidebar) ---- */
.recent-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.recent-topic-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-topic-item:first-child {
    padding-top: 0;
}

.recent-topic-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.recent-topic-info {
    flex: 1;
    min-width: 0;
}

.recent-topic-info .topic-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: block;
    margin-bottom: 2px;
}

.recent-topic-info .topic-title:hover {
    color: var(--primary);
}

.recent-topic-info .topic-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.online-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   MEMBER PROFILE PAGE STYLES
   ============================================ */

/* ---- Profile Card ---- */
.member-profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--border-light);
}

.member-cover {
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, #e85d2a 40%, #c44919 70%, #1a1a2e 100%);
    position: relative;
}

.member-cover-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><text x="10" y="15" font-size="14" fill="rgba(255,255,255,0.06)">✈ ✈ ✈ ✈ ✈ ✈ ✈ ✈</text></svg>') repeat;
}

.member-profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 28px 24px;
    margin-top: -40px;
    position: relative;
}

.member-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.member-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 900;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.member-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4caf50;
    border: 3px solid var(--bg-white);
}

.member-identity {
    flex: 1;
    min-width: 0;
    padding-top: 44px;
}

.member-username {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.member-role {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-role.member {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.member-role.admin {
    background: linear-gradient(135deg, var(--primary-glow), #ffe0b2);
    color: var(--primary-dark);
}

.member-role.moderator {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.member-role.vip {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.member-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

.member-quick-actions {
    display: flex;
    gap: 10px;
    padding-top: 44px;
    flex-shrink: 0;
}

/* ---- Stats Bar ---- */
.member-stats-bar {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-top: 16px;
    overflow: hidden;
}

.member-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border-right: 1px solid var(--border-light);
    transition: var(--transition);
}

.member-stat-item:last-child {
    border-right: none;
}

.member-stat-item:hover {
    background: var(--primary-glow);
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

/* ---- Content Grid ---- */
.member-content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* ---- Info Cards ---- */
.member-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 16px;
}

.member-info-header {
    background: var(--bg-category-header);
    color: white;
    padding: 12px 18px;
}

.member-info-header h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.member-info-body {
    padding: 16px 18px;
}

.member-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.member-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.member-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.member-info-row:first-child {
    padding-top: 0;
}

.info-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.info-key {
    color: var(--text-muted);
    min-width: 100px;
    font-weight: 600;
}

.info-val {
    color: var(--text-primary);
    margin-left: auto;
    text-align: right;
}

.info-val a {
    color: var(--primary);
}

/* ---- Badges Grid ---- */
.member-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.member-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: default;
}

.member-badge-item:hover {
    background: var(--primary-glow);
    transform: translateY(-2px);
}

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

.badge-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ---- Member Tabs ---- */
.member-tabs {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 16px;
}

.member-tab {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.member-tab:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.member-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-glow);
}

/* ---- Member Posts List ---- */
.member-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-post-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 18px 20px;
    transition: var(--transition);
}

.member-post-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.member-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.member-post-topic {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

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

.member-post-category {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.member-post-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-post-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   TOPIC DETAIL PAGE STYLES
   ============================================ */

/* ---- Topic Messages Header ---- */
.topic-messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-category-header);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
}

/* ---- Topic Header Bar ---- */
.topic-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 16px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

.topic-page-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.topic-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.topic-meta-item a {
    color: var(--primary);
    font-weight: 600;
}

.topic-header-actions {
    flex-shrink: 0;
}

/* ---- Post Block ---- */
.post-block {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.post-block:hover {
    box-shadow: var(--shadow-lg);
}

.post-block.post-op {
    border-left: 3px solid var(--primary);
}

/* ---- Author Panel ---- */
.post-author-panel {
    background: var(--bg-light);
    padding: 18px 14px;
    text-align: center;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.post-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(242, 120, 73, 0.25);
}

.post-author-name {
    font-weight: 700;
    font-size: 14px;
}

.post-author-name a {
    color: var(--text-primary);
}

.post-author-name a:hover {
    color: var(--primary);
}

.post-author-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 50px;
}

.post-author-role.admin {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.post-author-role.moderator {
    background: linear-gradient(135deg, #7b1fa2, #6a1b9a);
    color: white;
}

.post-author-role.vip {
    background: linear-gradient(135deg, #ff8f00, #f57c00);
    color: white;
}

.post-author-role.member {
    background: #e8e8e8;
    color: #666;
}

.post-author-stats {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.post-author-badges {
    margin-top: 4px;
}

.badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.badge-admin {
    background: rgba(242, 120, 73, 0.12);
    color: var(--primary);
}

.badge-mod {
    background: rgba(123, 31, 162, 0.1);
    color: #7b1fa2;
}

.badge-vip {
    background: rgba(255, 143, 0, 0.1);
    color: #ff8f00;
}

/* ---- Post Content Panel ---- */
.post-content-panel {
    display: flex;
    flex-direction: column;
}

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

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

.post-number {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
}

.post-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-primary);
    flex: 1;
}

.post-body p {
    margin-bottom: 12px;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body ul, .post-body ol {
    margin: 10px 0 14px 20px;
}

.post-body ul li, .post-body ol li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.post-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.post-body strong {
    color: var(--primary-dark);
}

/* ---- Quote Block ---- */
.post-quote {
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
}

.quote-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.post-quote p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0 !important;
}

/* ---- Post Tags ---- */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.post-tag {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 3px 10px;
    border-radius: 50px;
    transition: var(--transition);
}

.post-tag:hover {
    background: var(--primary-glow-strong);
}

/* ---- Post Footer ---- */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.post-reactions {
    display: flex;
    gap: 6px;
}

.reaction-btn {
    background: white;
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.reaction-btn:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.reaction-btn.active {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 600;
}

.reaction-btn span {
    font-size: 11px;
}

.post-actions {
    display: flex;
    gap: 4px;
}

.post-action-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.post-action-btn:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

/* ---- Pagination ---- */
.topic-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 16px;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.page-next {
    padding: 0 12px;
}

.page-dots {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 4px;
}

/* ---- Reply Form ---- */
.reply-form-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.reply-form-header {
    background: var(--bg-category-header);
    padding: 14px 20px;
}

.reply-form-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.reply-form-body {
    padding: 16px 20px 20px;
}

.reply-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.toolbar-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-family: inherit;
}

.toolbar-btn:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--primary);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
    margin: 0 4px;
}

.reply-textarea {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 150px;
    box-sizing: border-box;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 120, 73, 0.1);
    background: white;
}

.reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.reply-info {
    font-size: 11px;
    color: var(--text-muted);
}

.reply-actions {
    display: flex;
    gap: 8px;
}

/* ---- Reply Login Prompt ---- */
.reply-login-box {
    text-align: center;
    padding: 50px 30px;
}
.reply-login-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.8;
}
.reply-login-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}
.reply-login-box > p {
    color: var(--text-light);
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.reply-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.reply-login-actions .btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
}
.reply-login-note {
    font-size: 13px;
    color: var(--text-muted);
}
.reply-login-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.reply-login-note a:hover {
    text-decoration: underline;
}

/* ---- Topic Info Widget ---- */
.topic-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
}

.topic-info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.info-value a {
    color: var(--primary);
}

/* ---- Global overflow prevention ---- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .forum-row {
        grid-template-columns: 40px 1fr 70px 70px 200px;
    }
    .topics-table-header,
    .topic-row {
        grid-template-columns: 1fr 80px 80px 190px;
    }
}

@media (max-width: 992px) {
    .forum-main {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .forum-row {
        grid-template-columns: 34px 1fr 60px 60px;
    }
    .last-post {
        display: none;
    }
    .category-header-right {
        display: none;
    }
    .topics-table-header,
    .topic-row {
        grid-template-columns: 1fr 70px 70px 170px;
    }
    .topic-last-reply-info .reply-author {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    /* Page Hero */
    .page-hero {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
        gap: 14px;
    }
    .page-hero-content h2 {
        font-size: 17px;
    }
    .page-hero-stats {
        gap: 10px;
    }
    .page-stat {
        padding: 8px 14px;
    }
    .page-stat-val {
        font-size: 16px;
    }
    /* Filter */
    .filter-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .page-item {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Category Hero Mobile */
    .category-hero {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
        gap: 12px;
    }
    .category-hero-icon {
        width: 56px;
        height: 56px;
        font-size: 32px;
    }
    .category-hero-content h1 {
        font-size: 18px;
    }
    .category-hero-stats {
        gap: 10px;
    }
    /* Category Topics Mobile */
    .category-topic-row {
        grid-template-columns: 32px 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 12px 14px;
    }
    .ct-stats, .ct-last {
        display: none;
    }
    .ct-title {
        font-size: 13px;
    }
    .category-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .btn-new-topic {
        justify-content: center;
    }
    .category-sort {
        width: 100%;
    }
    .sort-select {
        width: 100%;
    }

    /* Topbar - hamburger menu */
    .forum-topbar {
        padding: 0;
    }
    .forum-topbar .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 8px 12px;
        gap: 0;
    }
    .topbar-toggle {
        display: block;
        order: 1;
    }
    .topbar-right {
        order: 2;
        margin-left: auto;
    }
    .topbar-links {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #222;
        border-radius: var(--radius-sm);
        margin-top: 8px;
        padding: 6px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .topbar-links.open {
        display: flex;
    }
    .topbar-links li {
        list-style: none;
    }
    .topbar-links a {
        display: block;
        padding: 10px 16px;
        font-size: 13px;
        color: #ccc;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: var(--transition);
    }
    .topbar-links li:last-child a {
        border-bottom: none;
    }
    .topbar-links a:hover {
        background: rgba(242, 120, 73, 0.1);
        color: var(--primary);
        padding-left: 20px;
    }

    /* Header */
    .header-main {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 0;
    }
    .forum-logo {
        flex: 1;
        min-width: 0;
    }
    .header-search {
        order: 3;
        width: 100%;
    }
    .header-actions {
        order: 2;
        flex-shrink: 0;
    }
    .forum-logo .logo-title {
        font-size: 18px;
    }
    .forum-logo .tagline {
        font-size: 10px;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    /* Navigation - horizontal scroll */
    .forum-nav .container {
        padding: 0;
    }
    .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 12px;
        white-space: nowrap;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li a {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .nav-links li a .nav-icon {
        font-size: 13px;
    }
    .nav-stats {
        display: none;
    }

    /* Welcome Banner */
    .welcome-banner {
        padding: 18px 16px;
        margin: 16px 0;
        border-radius: var(--radius-md);
    }
    .welcome-banner h1 {
        font-size: 16px;
    }
    .welcome-banner p {
        font-size: 12px;
    }
    .welcome-stats {
        gap: 12px;
        flex-wrap: wrap;
    }
    .welcome-stat .stat-val {
        font-size: 17px;
    }
    .welcome-stat .stat-label {
        font-size: 10px;
    }

    /* Latest Topics */
    .section-header h2 {
        font-size: 15px;
    }
    .topics-table-header {
        display: none;
    }
    .topic-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
    }
    .topic-main {
        gap: 8px;
    }
    .topic-title-link {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .topic-replies, .topic-views {
        display: none;
    }
    .topic-last-reply {
        padding-left: 22px;
    }
    .topic-last-reply-info .reply-date {
        font-size: 10px;
    }

    /* Forum Categories */
    .category-header {
        padding: 12px 14px;
    }
    .category-header h2 {
        font-size: 13px;
    }
    .category-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .forum-row {
        grid-template-columns: 34px 1fr;
        gap: 10px;
        padding: 12px 14px;
    }
    .forum-count {
        display: none;
    }
    .forum-info h3 {
        font-size: 13px;
    }
    .forum-info .forum-desc {
        font-size: 11px;
    }
    .subforum-links a {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Sidebar */
    .sidebar {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Breadcrumb */
    .breadcrumb-bar {
        padding: 8px 0;
    }
    .breadcrumb {
        font-size: 11px;
        gap: 4px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .breadcrumb li {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Member Profile Page */
    .member-cover {
        height: 100px;
    }
    .member-profile-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 16px 16px;
        margin-top: -30px;
        gap: 0;
    }
    .member-avatar {
        width: 72px;
        height: 72px;
        font-size: 26px;
        border-width: 3px;
    }
    .member-online-dot {
        width: 14px;
        height: 14px;
        bottom: 4px;
        right: 4px;
    }
    .member-identity {
        padding-top: 10px;
    }
    .member-username {
        font-size: 20px;
    }
    .member-quick-actions {
        padding-top: 12px;
        width: 100%;
    }
    .member-quick-actions .btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }
    .member-stats-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
    .member-stat-item {
        padding: 10px 4px;
    }
    .stat-value {
        font-size: 16px;
    }
    .stat-label {
        font-size: 9px;
    }
    .member-content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .member-badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .member-tabs {
        border-radius: var(--radius-md);
    }
    .member-tab {
        padding: 10px 8px;
        font-size: 12px;
    }
    .member-post-item {
        padding: 14px 16px;
    }
    .member-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .member-post-topic {
        font-size: 14px;
    }

    /* Topic Detail Page */
    .topic-header-bar {
        flex-direction: column;
        gap: 10px;
        padding: 14px 0 12px;
    }
    .topic-page-title {
        font-size: 17px;
    }
    .topic-header-meta {
        gap: 10px;
        font-size: 11px;
    }
    .topic-messages-header {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        font-size: 13px;
        padding: 10px 14px;
    }
    .post-block {
        grid-template-columns: 1fr;
        margin-bottom: 12px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        position: relative;
    }
    .post-block:first-of-type {
        border-radius: var(--radius-md);
    }
    .post-author-panel {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 14px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        gap: 2px 12px;
        text-align: left;
        background: var(--bg-white);
        align-items: center;
    }
    .post-avatar-large {
        width: 48px;
        height: 48px;
        font-size: 17px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .post-author-name {
        font-size: 15px;
        font-weight: 700;
    }
    .post-author-role {
        font-size: 9px;
    }
    .post-author-stats {
        width: 100%;
        flex-direction: row;
        gap: 14px;
        margin-top: 0;
        font-size: 11px;
        padding-left: 60px;
    }
    .post-header {
        position: absolute;
        top: 14px;
        right: 14px;
        padding: 0;
        border-bottom: none;
        background: transparent;
        gap: 8px;
    }
    .post-date {
        font-size: 10px;
        color: var(--text-muted);
    }
    .post-number {
        font-size: 11px;
    }
    .post-body {
        padding: 14px;
        font-size: 13px;
    }
    .post-footer {
        padding: 8px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .post-actions {
        flex-wrap: wrap;
    }
    .topic-pagination {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .reply-form-body {
        padding: 12px 14px;
    }
    .reply-toolbar {
        flex-wrap: wrap;
    }
    .reply-form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .reply-actions {
        width: 100%;
    }
    .reply-actions .btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .forum-logo .logo-title {
        font-size: 16px;
    }
    .forum-logo .tagline {
        display: none;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .btn {
        padding: 7px 12px;
        font-size: 11px;
        gap: 4px;
    }
    .topbar-links {
        gap: 6px;
    }
    .topbar-links a {
        font-size: 11px;
    }

    /* Welcome banner compact */
    .welcome-banner {
        padding: 14px 12px;
        margin: 12px 0;
    }
    .welcome-banner h1 {
        font-size: 14px;
    }
    .welcome-banner p {
        font-size: 11px;
    }
    .welcome-stats {
        gap: 8px;
    }
    .welcome-stat {
        flex: 1;
        min-width: 0;
    }
    .welcome-stat .stat-val {
        font-size: 15px;
    }
    .welcome-stat .stat-label {
        font-size: 9px;
    }

    /* Topics */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }
    .section-header h2 {
        font-size: 14px;
    }
    .topic-row {
        padding: 10px 12px;
    }
    .topic-title-link {
        font-size: 12px;
    }
    .topic-starter {
        font-size: 10px;
    }
    .topic-tag {
        font-size: 8px;
        padding: 1px 4px;
    }
    .topic-last-reply {
        display: none;
    }

    /* Category */
    .category-header {
        padding: 10px 12px;
    }
    .category-header h2 {
        font-size: 12px;
        letter-spacing: 0;
    }
    .category-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .category-header-left {
        gap: 8px;
    }
    .forum-row {
        grid-template-columns: 30px 1fr;
        gap: 8px;
        padding: 10px 12px;
    }
    .forum-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .forum-info h3 {
        font-size: 12px;
    }

    /* Sidebar widgets */
    .widget-header {
        padding: 10px 12px;
    }
    .widget-header h3 {
        font-size: 12px;
    }
    .widget-body {
        padding: 12px;
    }
    .online-user {
        font-size: 11px;
        padding: 2px 6px;
    }
    .stat-item {
        padding: 10px 6px;
    }
    .stat-item .stat-value {
        font-size: 16px;
    }

    /* Nav links wrap */
    .nav-links li a {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Footer */
    .forum-footer {
        padding: 28px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-section h4 {
        font-size: 13px;
    }
    .footer-section ul li a {
        font-size: 11px;
    }
    .footer-company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-badges {
        justify-content: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-bottom-right {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    .header-actions .btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    .welcome-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .forum-logo .logo-title {
        font-size: 15px;
    }
}

/* ---- Tooltip Styles ---- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--bg-header);
    color: white;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

@media (max-width: 768px) {
    .forum-footer {
        padding: 20px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .footer-section h4 {
        margin-bottom: 12px;
        font-size: 14px;
    }
    .footer-brand .footer-desc {
        text-align: left;
    }
    .footer-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
}

