/**
 * R10.web.tr Forum - R10.NET Birebir Tasarım
 * Mor/Koyu Tema - Modern Forum
 */

/* ==================== CSS Variables ==================== */
:root {
    /* R10.net Colors */
    --r10-primary: #5c4d7d;
    --r10-primary-dark: #4a3d66;
    --r10-header-bg: #2d2d3a;
    --r10-nav-bg: #3d3d4d;
    --r10-purple: #6c5b7b;
    --r10-dark: #1e1e2d;
    
    /* Primary aliases (used across pages) */
    --primary-color: #5c4d7d;
    --primary-dark: #4a3d66;
    
    /* Background Colors */
    --bg-body: #f5f5f8;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-light: #fafafa;
    
    /* Text Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --text-white: #fff;
    --text-link: #5c4d7d;
    
    /* Status */
    --online-green: #4caf50;
    --notification-red: #e53935;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --info-color: #3498db;
    --secondary-color: #95a5a6;
    
    /* Border & Shadow */
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
    
    --border-radius: 4px;
    --border-radius-sm: 4px;
    --border-radius-lg: 8px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ==================== Container ==================== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== Header - R10.net Style ==================== */
.main-header {
    background: var(--r10-header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    color: #fff;
    font-size: 20px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #e74c3c;
}

.logo-domain {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.logo-slogan {
    display: none;
}

/* Grid Menu Button */
.grid-menu-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: 15px;
}

.grid-menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-btn {
    padding: 12px 18px;
    color: rgba(255,255,255,0.7);
}

.search-btn:hover {
    color: #fff;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    position: relative;
    border-radius: 8px;
    font-size: 18px;
}

.icon-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--notification-red);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
}

.user-btn:hover {
    background: rgba(255,255,255,0.15);
}

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

.user-btn .username {
    font-weight: 500;
    color: #fff;
}

.user-btn i {
    font-size: 12px;
    opacity: 0.7;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
}

.dropdown-menu a:hover {
    background: var(--bg-gray);
    color: var(--r10-primary);
}

.dropdown-menu a i {
    width: 18px;
    color: var(--text-muted);
}

.dropdown-menu a:hover i {
    color: var(--r10-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.badge {
    background: var(--notification-red);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Guest Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

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

.btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff !important;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
}

.btn-block {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.theme-toggle i {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* ==================== Main Navigation ==================== */
.main-nav {
    background: var(--r10-nav-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    row-gap: 6px;
}

.nav-list li {
    flex: 0 0 auto;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-list li a i {
    font-size: 14px;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle .fa-caret-down {
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-toggle .fa-caret-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-primary) !important;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu a:hover {
    background: var(--r10-purple) !important;
    color: #fff !important;
}

.nav-dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--r10-purple);
}

.nav-dropdown-menu a:hover i {
    color: #fff;
}

.nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.nav-dropdown-menu .text-success {
    color: var(--success-color) !important;
    font-size: 8px;
}

.mobile-menu-btn {
    display: none;
    padding: 10px;
    color: #fff;
}

/* ==================== Tabs Navigation ==================== */
.tabs-nav {
    background: var(--r10-purple);
    margin-bottom: 20px;
}

.tabs-list {
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.tabs-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tabs-list a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.tabs-list a.active {
    color: #fff;
    border-bottom-color: #fff;
    background: rgba(255,255,255,0.1);
}

.tabs-list a i {
    font-size: 14px;
}

/* ==================== Main Content ==================== */
.main-content {
    padding: 20px 0 40px;
}

/* ==================== Topics Table ==================== */
.topics-table {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.topics-table-header {
    display: grid;
    grid-template-columns: 1fr 140px 120px 180px;
    background: var(--r10-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.topics-table-header > div {
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.topics-header-stats {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.topics-header-stats span {
    display: block;
}

.topic-row {
    display: grid;
    grid-template-columns: 1fr 140px 120px 180px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.topic-row:hover {
    background: #fafafa;
}

.topic-cell {
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

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

.topic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topic-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.topic-title-link {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

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

.topic-title-link.highlight {
    color: #e74c3c;
    font-weight: 600;
}

.topic-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.stat-num {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-dot {
    width: 8px;
    height: 8px;
    background: var(--online-green);
    border-radius: 50%;
}

.topic-author {
    color: var(--text-secondary);
    font-size: 13px;
}

.topic-author a {
    color: var(--r10-primary);
}

.topic-author a:hover {
    text-decoration: underline;
}

.topic-category {
    font-size: 13px;
}

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

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

.load-more-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--r10-purple);
    color: #fff;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: var(--r10-primary-dark);
}

/* ==================== Category Box ==================== */
.category-box {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--r10-purple);
    color: #fff;
    cursor: pointer;
}

.category-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.category-header h2 i {
    font-size: 14px;
}

.category-toggle {
    color: rgba(255,255,255,0.7);
}

.category-content {
    /* Content area */
}

/* Forum Row */
.forum-row {
    display: grid;
    grid-template-columns: 80px 1fr 180px 140px;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

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

.forum-row:hover {
    background: #fafafa;
}

.forum-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
}

.forum-icon i {
    font-size: 28px;
    color: #8a7aa0;
}

.forum-icon.has-new i {
    color: var(--r10-primary);
}

.forum-info {
    min-width: 0;
}

.forum-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forum-name:hover {
    color: var(--r10-primary);
}

.forum-viewers {
    font-size: 12px;
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.forum-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.subforums {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.subforum-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.subforum-link:hover {
    color: var(--r10-primary);
    background: #eee;
}

.subforum-link i {
    font-size: 10px;
    color: var(--text-muted);
}

.forum-last-post {
    font-size: 13px;
}

.last-post-title {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.last-post-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.last-post-info a {
    color: var(--text-secondary);
}

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

.forum-stats {
    text-align: right;
}

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

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

.forum-stats-row {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

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

.forum-stat-item .num {
    font-weight: 600;
    color: var(--text-primary);
}

.forum-stat-item .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--online-green);
    border-radius: 50%;
    margin: 0 4px;
}

/* No Posts */
.no-posts {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ==================== Stats Box ==================== */
.stats-box {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 25px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

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

.stat-item .number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--r10-primary);
}

.stat-item .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.online-users {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.online-users h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.online-users h4 .dot {
    width: 10px;
    height: 10px;
    background: var(--online-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-list a {
    color: var(--r10-primary);
    font-size: 13px;
}

.online-list a:hover {
    text-decoration: underline;
}

/* ==================== Announcement Bar ==================== */
.announcement-bar {
    display: none;
}

/* ==================== Recent Topics Slider ==================== */
.recent-topics-slider {
    display: none;
}

/* ==================== Ads Banner ==================== */
.ads-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.ad-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

/* ==================== Footer ==================== */
.main-footer {
    background: var(--r10-header-bg);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--r10-primary);
}

.stats-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 13px;
}

.copyright {
    opacity: 0.7;
}

.legal-text {
    font-size: 11px;
    margin-top: 5px;
}

.footer-nav {
    display: flex;
    gap: 15px;
}

.footer-nav a {
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
}

/* ==================== Alerts ==================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

.alert-close:hover {
    opacity: 1;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-muted);
}

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

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

.breadcrumb i {
    font-size: 10px;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 25px;
}

.page-link {
    padding: 8px 14px;
    background: #fff;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    font-size: 13px;
    box-shadow: var(--shadow);
}

.page-link:hover {
    background: var(--r10-primary);
    color: #fff;
}

.page-link.active {
    background: var(--r10-primary);
    color: #fff;
}

/* ==================== Top Banner ==================== */
.top-banner {
    display: none;
}

/* ==================== Form Controls ==================== */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    color: #333;
}

.form-control:focus {
    border-color: var(--r10-primary);
    box-shadow: 0 0 0 3px rgba(92, 77, 125, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== Auth Pages ==================== */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    width: 100%;
}

.auth-box {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--r10-primary), var(--r10-purple));
    border-radius: var(--border-radius-lg);
    color: #fff;
}

.auth-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.auth-features {
    margin-top: 20px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

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

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

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .forum-row {
        grid-template-columns: 60px 1fr 150px 120px;
    }
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forum-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .forum-icon {
        display: none;
    }
    
    .forum-last-post,
    .forum-stats {
        display: none;
    }
    
    .topics-table-header {
        display: none;
    }
    
    .topic-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .topic-stats,
    .topic-author,
    .topic-category {
        display: none;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .tabs-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tabs-list a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ads-banner {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* ==================== Utility Classes ==================== */
.text-primary {
    color: var(--r10-primary) !important;
}

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

.text-success {
    color: var(--online-green) !important;
}

.text-danger {
    color: var(--notification-red) !important;
}

.mt-2 {
    margin-top: 10px;
}

.mb-2 {
    margin-bottom: 10px;
}

/* Hidden Elements */
.category-box.collapsed .category-content {
    display: none;
}

/* ==================== Page Header ==================== */
.page-header {
    background: linear-gradient(135deg, var(--r10-primary) 0%, var(--r10-purple) 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header h1 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* ==================== Theme Settings Modal ==================== */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    overflow-y: auto;
}

.theme-modal.show {
    opacity: 1;
    visibility: visible;
}

.theme-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.theme-modal.show .theme-modal-content {
    transform: translateY(0);
}

.theme-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.theme-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.theme-modal-title i {
    color: var(--r10-primary);
    font-size: 20px;
}

.theme-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s;
}

.theme-modal-close:hover {
    background: #eee;
    color: #333;
}

.theme-modal-body {
    padding: 10px 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Theme Option Row */
.theme-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.theme-option:hover {
    background: #fafafa;
}

.theme-option:last-child {
    border-bottom: none;
}

.theme-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f5;
    border-radius: 10px;
    color: var(--r10-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.theme-option-info {
    flex: 1;
    min-width: 0;
}

.theme-option-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.theme-option-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.theme-option-control {
    flex-shrink: 0;
}

/* Theme Select */
.theme-select {
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    min-width: 180px;
}

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

/* Theme Button Group */
.theme-btn-group {
    display: flex;
    gap: 8px;
}

.theme-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #fff;
    transition: all 0.2s;
    white-space: nowrap;
}

.theme-btn:hover {
    border-color: var(--r10-primary);
    color: var(--r10-primary);
}

.theme-btn.active {
    background: var(--r10-primary);
    border-color: var(--r10-primary);
    color: #fff;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

/* Theme Settings Button in Header */
.theme-settings-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-left: 10px;
    transition: all 0.2s;
    white-space: nowrap;
}

.theme-settings-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.theme-settings-btn i {
    font-size: 14px;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .theme-modal-content {
    background: #2d2d3a;
}

body.dark-mode .theme-modal-header {
    background: #252532;
    border-color: #3d3d4d;
}

body.dark-mode .theme-modal-title {
    color: #fff;
}

body.dark-mode .theme-option {
    border-color: #3d3d4d;
}

body.dark-mode .theme-option:hover {
    background: #353545;
}

body.dark-mode .theme-option-icon {
    background: #3d3d4d;
}

body.dark-mode .theme-option-info h4 {
    color: #fff;
}

body.dark-mode .theme-option-info p {
    color: #999;
}

body.dark-mode .theme-select {
    background-color: #3d3d4d;
    border-color: #4d4d5d;
    color: #fff;
}

body.dark-mode .theme-btn {
    background: #3d3d4d;
    border-color: #4d4d5d;
    color: #ccc;
}

body.dark-mode .theme-btn:hover {
    border-color: var(--r10-primary);
}

body.dark-mode .category-box,
body.dark-mode .topics-table,
body.dark-mode .stats-box {
    background: #2d2d3a;
}

body.dark-mode .forum-row:hover,
body.dark-mode .topic-row:hover {
    background: #353545;
}

body.dark-mode .forum-row,
body.dark-mode .topic-row {
    border-color: #3d3d4d;
}

body.dark-mode .load-more-btn {
    background: var(--r10-primary);
}

@media (max-width: 768px) {
    .theme-modal {
        padding: 20px 10px;
    }
    
    .theme-option {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .theme-option-control {
        width: 100%;
    }
    
    .theme-btn-group {
        flex-wrap: wrap;
    }
    
    .theme-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .color-picker {
        justify-content: center;
    }
}

/* ==================== Grid Menu Dropdown ==================== */
.grid-menu-dropdown {
    position: relative;
}

.grid-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 480px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.grid-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.grid-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.grid-menu-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 15px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    border-radius: 8px;
    transition: all 0.2s;
}

.grid-item:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.grid-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.grid-item span {
    font-size: 11px;
    color: #333;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* ==================== Header Dropdowns (Mesaj & Bildirim) ==================== */
.header-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 380px;
    max-width: 420px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
}

.dropdown-header span {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

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

.action-btn {
    padding: 5px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
}

.action-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.action-icon:hover {
    background: rgba(255,255,255,0.3);
}

.dropdown-body {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-body::-webkit-scrollbar {
    width: 5px;
}

.dropdown-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
    font-size: 24px;
}

/* Message Item */
.message-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.message-item:hover {
    background: #f8f9fa;
}

.message-item.unread {
    background: #fff8f8;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 14px;
}

.message-sender {
    font-size: 13px;
    color: #666;
}

.message-time {
    font-size: 12px;
    color: #27ae60;
    margin-top: 3px;
}

/* Notification Item */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f8f9ff;
}

.notification-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.notification-text strong {
    color: var(--r10-purple);
}

.notification-text .highlight {
    color: #e74c3c;
    font-weight: 600;
}

.notification-time {
    font-size: 12px;
    color: #27ae60;
    margin-top: 5px;
}

.notification-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.dropdown-footer {
    padding: 12px;
    text-align: center;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.dropdown-footer a {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

/* ==================== User Panel Dropdown ==================== */
.user-panel {
    min-width: 350px;
    max-width: 380px;
}

.user-panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--r10-purple), #8e44ad);
    color: #fff;
}

.user-panel-avatar {
    position: relative;
}

.user-panel-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    border: 2px solid #fff;
}

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

.user-panel-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.last-visit {
    font-size: 12px;
    opacity: 0.8;
}

.last-visit i {
    margin-right: 5px;
}

.logout-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.user-panel-tabs {
    display: flex;
    background: #f5f5f5;
}

.user-panel-tabs .tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.user-panel-tabs .tab-btn:hover {
    color: var(--r10-purple);
}

.user-panel-tabs .tab-btn.active {
    color: var(--r10-purple);
    background: #fff;
    border-bottom-color: var(--r10-purple);
}

.user-panel-content {
    padding: 10px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.panel-link:hover {
    background: #f8f9fa;
    color: var(--r10-purple);
}

.panel-link i {
    width: 20px;
    text-align: center;
    color: #888;
}

.panel-link:hover i {
    color: var(--r10-purple);
}

.panel-link.admin {
    color: var(--r10-purple);
}

.panel-link.admin i {
    color: var(--r10-purple);
}

.status-badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff3e0;
    color: #e67e22;
}

.status-badge.inactive {
    background: #ffebee;
    color: #e74c3c;
}

.status-badge.active {
    background: #e8f5e9;
    color: #27ae60;
}

.user-panel-footer {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
}

.footer-btn {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #666;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.footer-btn.purple {
    background: var(--r10-purple);
}

.footer-btn .count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.user-online-indicator {
    position: absolute;
    bottom: 3px;
    left: -3px;
    width: 12px;
    height: 12px;
    background: #27ae60;
    border-radius: 50%;
    border: 2px solid var(--r10-header-bg);
}

.settings-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.settings-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ==================== Thanks System ==================== */
.thanks-btn {
    color: var(--text-muted);
    transition: var(--transition);
}

.thanks-btn:hover {
    color: var(--r10-purple);
}

.thanks-btn.thanked {
    color: var(--r10-purple);
    background: rgba(92, 77, 125, 0.1);
}

.thanks-btn.thanked i {
    animation: pulse 0.3s ease;
}

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

.thanks-count {
    margin-left: 4px;
    font-size: 12px;
}

.post-thanks-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.thanks-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.thanks-header:hover {
    background: #e9e9ef;
}

.thanks-header i:first-child {
    color: var(--r10-purple);
}

.thanks-header .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.thanks-header.expanded .toggle-icon {
    transform: rotate(180deg);
}

.thanks-list {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.thanks-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    transition: var(--transition);
}

.thanks-user:hover {
    border-color: var(--r10-purple);
    background: rgba(92, 77, 125, 0.05);
}

.thanks-user img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.thanks-user a {
    color: var(--text-primary);
    font-weight: 500;
}

.thanks-user a:hover {
    color: var(--r10-purple);
}

/* ==================== User Level System ==================== */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

.level-badge i {
    font-size: 14px;
}

.level-name {
    font-size: 12px;
}

.user-level-display {
    margin-top: 5px;
}

.level-progress-bar {
    margin-top: 10px;
}

.level-progress-bar .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.level-progress-bar .progress-track {
    height: 6px;
    background: var(--bg-gray);
    border-radius: 3px;
    overflow: hidden;
}

.level-progress-bar .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Levels Page */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.level-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.level-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.level-card.current-level {
    border-color: var(--r10-purple);
}

.level-card .level-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #fff;
}

.level-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.level-card .level-requirements {
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 15px;
    text-align: left;
}

.level-card .level-requirements li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-card .level-requirements li i {
    color: var(--text-muted);
    width: 16px;
}

.level-card .user-count {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== Reputation System ==================== */
.reputation-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.reputation-positive {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.reputation-negative {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.reputation-neutral {
    background: var(--bg-gray);
    color: var(--text-muted);
}

.rep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.rep-btn:hover {
    background: var(--bg-gray);
}

.rep-btn.positive:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.rep-btn.negative:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.rep-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

/* Reputation Modal */
.rep-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.rep-modal.active {
    display: flex;
}

.rep-modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    width: 400px;
    max-width: 90%;
    box-shadow: var(--shadow-lg);
}

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

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

.rep-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.rep-modal-body {
    padding: 20px;
}

.rep-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rep-type-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.rep-type-btn.positive.active,
.rep-type-btn.positive:hover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.rep-type-btn.negative.active,
.rep-type-btn.negative:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.rep-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.rep-reason-item {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.rep-reason-item:hover,
.rep-reason-item.selected {
    border-color: var(--r10-purple);
    background: rgba(92, 77, 125, 0.05);
}

.rep-custom-reason {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: none;
}

.rep-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Trade Rating Display */
.trade-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trade-rating .stars {
    color: #f1c40f;
}

.trade-rating .count {
    font-size: 12px;
    color: var(--text-muted);
}

.trade-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.trade-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.trade-stat.positive {
    color: #27ae60;
}

.trade-stat.negative {
    color: #e74c3c;
}

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

/* ==================== Badge System ==================== */
.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.user-badge.badge-sm {
    width: 18px;
    height: 18px;
    font-size: 12px;
}

.user-badge.badge-lg {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.badges-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.verified-seller-badge,
.trusted-seller-badge {
    display: inline-flex;
    margin-left: 4px;
    font-size: 14px;
}

/* Badges Page */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.badge-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.badge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.badge-card.owned {
    border: 2px solid var(--r10-purple);
}

.badge-card .badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: #fff;
}

.badge-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.badge-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.badge-card .badge-rarity {
    margin-top: 10px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}

.badge-rarity.common { background: #e9ecef; color: #666; }
.badge-rarity.rare { background: #dbeafe; color: #2563eb; }
.badge-rarity.epic { background: #f3e8ff; color: #9333ea; }
.badge-rarity.legendary { background: #fef3c7; color: #d97706; }

/* Seller Verification Badge Styles */
.seller-verification-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.seller-verification-status.verified {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.seller-verification-status.trusted {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.seller-verification-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* ==================== Enhanced Stats Box ==================== */
.stats-box {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-top: 20px;
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.stats-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.stats-header h3 i {
    color: var(--r10-purple);
    margin-right: 8px;
}

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

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

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

.stat-item .number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--r10-purple);
}

.stat-item .label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.stat-item .today-stat {
    display: block;
    font-size: 11px;
    color: var(--success-color);
    margin-top: 5px;
}

.online-users {
    padding: 15px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.online-users h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.online-users h4 .dot {
    width: 10px;
    height: 10px;
    background: var(--online-green);
    border-radius: 50%;
}

.online-users h4 .dot.pulse {
    animation: pulse-dot 2s infinite;
}

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

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-user-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-white);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

.online-user-item:hover {
    background: var(--r10-purple);
    color: #fff;
}

.online-user-item img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.view-all-online {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 12px;
    color: var(--r10-purple);
}

.newest-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(92, 77, 125, 0.1), rgba(92, 77, 125, 0.05));
    border-radius: var(--border-radius);
    font-size: 13px;
    margin-bottom: 15px;
}

.newest-member i {
    color: var(--r10-purple);
}

.newest-member a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--r10-purple);
    font-weight: 600;
}

.newest-member a img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.hot-topics-today {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.hot-topics-today h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hot-topics-today h4 i {
    color: #e74c3c;
    margin-right: 6px;
}

.hot-topics-today ul {
    list-style: none;
}

.hot-topics-today li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.hot-topics-today li:last-child {
    border-bottom: none;
}

.hot-topics-today li a {
    color: var(--text-primary);
    font-size: 13px;
}

.hot-topics-today li a:hover {
    color: var(--r10-purple);
}

.topic-meta-small {
    font-size: 11px;
    color: var(--text-muted);
}

.topic-meta-small i {
    margin-right: 3px;
}

/* ==================== Subscription System ==================== */
.topic-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 2px solid var(--r10-purple);
    color: var(--r10-purple);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--r10-purple);
    color: white;
}

.btn-subscribe.subscribed {
    background: var(--r10-purple);
    color: white;
}

.btn-subscribe.subscribed:hover {
    background: #5a4a6d;
    border-color: #5a4a6d;
}

.btn-subscribe.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-subscribe.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Follow Button */
.btn-follow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 2px solid var(--r10-purple);
    color: var(--r10-purple);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-follow:hover {
    background: var(--r10-purple);
    color: white;
}

.btn-follow.following {
    background: var(--r10-purple);
    color: white;
}

.btn-follow.following:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(calc(100% + 50px));
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification i {
    font-size: 20px;
}

.toast-notification span {
    font-size: 14px;
    font-weight: 500;
}

.toast-success {
    border-left: 4px solid #27ae60;
}

.toast-success i {
    color: #27ae60;
}

.toast-error {
    border-left: 4px solid #e74c3c;
}

.toast-error i {
    color: #e74c3c;
}

.toast-info {
    border-left: 4px solid var(--r10-purple);
}

.toast-info i {
    color: var(--r10-purple);
}

/* Subscriptions Page */
.subscriptions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.subscriptions-tabs .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.subscriptions-tabs .tab-btn.active {
    color: var(--r10-purple);
}

.subscriptions-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--r10-purple);
}

.subscription-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease;
}

.subscription-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.subscription-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.subscription-info .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.subscription-info .icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--r10-purple), #8b6ea8);
    border-radius: 10px;
    color: white;
    font-size: 18px;
}

.subscription-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.subscription-details h4 a {
    color: var(--text-primary);
}

.subscription-details h4 a:hover {
    color: var(--r10-purple);
}

.subscription-details .meta {
    font-size: 12px;
    color: var(--text-muted);
}

.subscription-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscription-actions .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Followers/Following List */
.followers-list, .following-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.follow-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
}

.follow-card .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.follow-card-info {
    flex: 1;
}

.follow-card-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.follow-card-info h4 a {
    color: var(--text-primary);
}

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

/* ==================== Multi-Quote System ==================== */
.multi-quote-btn.active {
    color: var(--r10-purple);
    background: rgba(108, 91, 123, 0.1);
}

.multi-quote-btn.active i {
    color: var(--r10-purple);
}

.multi-quote-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    padding: 12px 25px;
    z-index: 9999;
    transition: bottom 0.3s ease;
}

.multi-quote-bar.show {
    bottom: 30px;
}

.multi-quote-bar .mq-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.multi-quote-bar .mq-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--r10-purple);
}

.multi-quote-bar .mq-count i {
    font-size: 16px;
}

.multi-quote-bar .mq-actions {
    display: flex;
    gap: 10px;
}

.multi-quote-bar .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.multi-quote-bar .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.multi-quote-bar .btn-outline:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

/* ==================== BBCode Quote Styles ==================== */
.quote-block {
    background: linear-gradient(135deg, #f8f9fa, #f0f1f3);
    border-left: 4px solid var(--r10-purple);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 15px 20px;
    margin: 15px 0;
    position: relative;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 50px;
    color: rgba(108, 91, 123, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-block .quote-author {
    font-weight: 600;
    color: var(--r10-purple);
    margin-bottom: 8px;
    font-size: 13px;
}

.quote-block .quote-content {
    color: var(--text-secondary);
    font-style: italic;
    padding-left: 5px;
}

/* ==================== Topic Status Icons ==================== */
.topic-status-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--icon-color-rgb, 108, 91, 123), 0.1);
    color: var(--icon-color, var(--r10-purple));
    font-size: 16px;
    transition: var(--transition);
}

.topic-status-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Status Colors */
.topic-status-icon.status-announcement {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.topic-status-icon.status-sticky {
    background: rgba(108, 91, 123, 0.12);
    color: var(--r10-purple);
}

.topic-status-icon.status-poll {
    background: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
}

.topic-status-icon.status-solved {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.topic-status-icon.status-locked {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.topic-status-icon.status-moved {
    background: rgba(253, 126, 20, 0.12);
    color: #fd7e14;
}

.topic-status-icon.status-archived {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.topic-status-icon.status-legendary {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    color: #e91e63;
    animation: legendaryPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.3); }
    50% { box-shadow: 0 0 10px 3px rgba(233, 30, 99, 0.2); }
}

.topic-status-icon.status-hot {
    background: rgba(255, 87, 34, 0.12);
    color: #ff5722;
    animation: hotFlicker 1.5s ease-in-out infinite;
}

@keyframes hotFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.topic-status-icon.status-popular {
    background: rgba(33, 150, 243, 0.12);
    color: #2196f3;
}

.topic-status-icon.status-attachment {
    background: rgba(121, 85, 72, 0.12);
    color: #795548;
}

.topic-status-icon.status-new {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.topic-status-icon.status-normal {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

/* Unread Topic Indicator */
.topic-row.unread .topic-status-icon {
    position: relative;
}

.topic-row.unread .topic-status-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--r10-purple);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.topic-row.unread .topic-title {
    font-weight: 600;
}

/* Topic Prefix Badges */
.topic-prefix {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 6px;
}

.topic-prefix i {
    font-size: 10px;
}

/* Topic Badges */
.topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.topic-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 3px;
}

.topic-badges .badge i {
    font-size: 9px;
}

.badge-announcement {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge-sticky {
    background: rgba(108, 91, 123, 0.1);
    color: var(--r10-purple);
}

.badge-poll {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.badge-solved {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge-locked {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.badge-hot {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

.badge-attachment {
    background: rgba(121, 85, 72, 0.1);
    color: #795548;
}

.badge-more {
    background: var(--bg-gray);
    color: var(--text-muted);
}

/* Topic Row Updates */
.topic-row .topic-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

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

.topic-row .topic-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.topic-row .topic-title a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.topic-row .topic-title a:hover {
    color: var(--r10-purple);
}

/* Topic Meta Info */
.topic-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.topic-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-meta .meta-item i {
    font-size: 11px;
}

/* Topic Author */
.topic-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.topic-author .mini-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

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

.topic-author a:hover {
    color: var(--r10-purple);
}

/* Poll Indicator */
.poll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-radius: var(--border-radius);
    font-size: 12px;
    margin-top: 6px;
}

.poll-indicator .poll-votes {
    font-weight: 600;
}

/* Topic Stats with Icons */
.topic-stats-detailed {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topic-stats-detailed .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.topic-stats-detailed .stat-item i {
    font-size: 12px;
    opacity: 0.7;
}

.topic-stats-detailed .stat-item .value {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Topic Row Styles based on Status */
.topic-row.sticky {
    background: linear-gradient(135deg, rgba(108, 91, 123, 0.05), rgba(108, 91, 123, 0.02));
    border-left: 3px solid var(--r10-purple);
}

.topic-row.announcement {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(220, 53, 69, 0.02));
    border-left: 3px solid #dc3545;
}

.topic-row.solved {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
    border-left: 3px solid #28a745;
}

.topic-row.locked {
    background: rgba(108, 117, 125, 0.05);
    border-left: 3px solid #6c757d;
}

.topic-row.hot {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.05), rgba(255, 87, 34, 0.02));
    border-left: 3px solid #ff5722;
}

/* Topic Last Post */
.topic-last {
    text-align: right;
}

.topic-last .last-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topic-last .last-user {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.topic-last .last-user:hover {
    color: var(--r10-purple);
}

.topic-last .last-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Static policy/content pages */
.doc-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 0 50px;
}

.doc-page-header {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

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

.doc-page-header p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.doc-page-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.doc-page-content h2 {
    font-size: 20px;
    margin: 22px 0 10px;
    color: var(--text-primary);
}

.doc-page-content h3 {
    font-size: 17px;
    margin: 18px 0 8px;
    color: var(--text-primary);
}

.doc-page-content p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.doc-page-content ul,
.doc-page-content ol {
    margin: 0 0 14px 20px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.doc-page-content a {
    color: var(--r10-purple);
    text-decoration: underline;
}

.doc-note {
    margin-top: 24px;
    padding: 14px 16px;
    border-left: 4px solid var(--r10-purple);
    background: #f7f5fc;
    border-radius: 8px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .doc-page {
        padding: 20px 0 34px;
    }

    .doc-page-header,
    .doc-page-content {
        padding: 20px;
        border-radius: 10px;
    }

    .doc-page-header h1 {
        font-size: 24px;
    }
}

/* ===== Small Phone Responsive Fixes (2026) ===== */

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    .card-body {
        padding: 12px;
    }
    .btn {
        min-height: 44px;
        font-size: 0.85rem;
    }
    .stats-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 2rem 0;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .thread-grid {
        grid-template-columns: 1fr;
    }
    .topic-header {
        flex-direction: column;
        gap: 10px;
    }
    .user-info-card {
        flex-direction: column;
        text-align: center;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .post-content {
        padding: 12px;
    }
    .post-header {
        flex-direction: column;
        gap: 8px;
    }
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    .category-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

