/* ==============================================================================
 * OXIN RolePlay Forum - assets/css/oxin-style.css
 * UI Theme 2026: Cyber Neon, Glassmorphism, 100% Offline, Ultra-High Contrast
 * Fully Responsive (Mobile, Tablet, Desktop, Ultra-Wide) - Zero CDN Dependencies
 * ============================================================================== */

/* 1. Font Faces (Local & Offline Vazirmatn) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazir/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazir/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 2. Root Variables (WCAG AAA High-Contrast & Cyberpunk Theme) */
:root {
    /* Background Hierarchy */
    --bg-base: #06040a;
    --bg-surface: rgba(18, 14, 30, 0.95);
    --bg-surface-hover: rgba(34, 25, 56, 0.98);
    --bg-card: rgba(22, 16, 38, 0.9);
    --bg-card-secondary: #130e22;
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Borders & Glows */
    --border-subtle: rgba(168, 85, 247, 0.35);
    --border-glow: rgba(192, 132, 252, 0.85);
    --border-highlight: rgba(255, 255, 255, 0.18);

    /* Neon Brand Colors */
    --primary-neon: #a855f7;
    --primary-glow: #9333ea;
    --secondary-neon: #38bdf8;
    --accent-cyan: #22d3ee;
    --accent-amber: #fbbf24;
    --accent-emerald: #10b981;
    --accent-rose: #ef4444;

    /* High-Contrast Typography (Ensures readability in pure dark mode) */
    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-neon: 0 0 25px rgba(168, 85, 247, 0.45);
    --shadow-card: 0 12px 35px -10px rgba(0, 0, 0, 0.85);

    /* Layout Dimensions */
    --mobile-nav-height: 62px;
}

/* 3. Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(125, 42, 232, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.2px;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    /* Extra padding at bottom for mobile nav bar on small screens */
    padding-bottom: 0;
}

::selection {
    background: var(--primary-neon);
    color: #ffffff;
}

/* 4. Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #090712;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-neon), var(--secondary-neon));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: #c084fc;
}

/* 5. Utility Classes & Typography */
.hover-light {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hover-light:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.text-break-all {
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .border-end-md {
        border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
}

/* 5-Column Grid Layout for RP Quick Actions */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.rp-action-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 54px;
}

.rp-action-card:hover {
    background: var(--bg-surface-hover) !important;
    border-color: var(--primary-neon) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

/* 6. Header, Top Bar & Navigation */
.oxin-navbar {
    background: rgba(14, 10, 26, 0.96) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.oxin-brand {
    font-weight: 800;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 20%, #d8b4fe 60%, var(--secondary-neon) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.server-badge {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.55);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.88rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    min-height: 38px;
}

.server-badge:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    transform: translateY(-1px);
}

.status-dot {
    width: 9px;
    height: 9px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: serverStatusPulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes serverStatusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 7. Mobile Bottom Navigation Bar (App-like Dock for Smartphones) */
.oxin-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: rgba(14, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 10000;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.85);
}

.oxin-mobile-nav-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 0;
    position: relative;
}

.mobile-nav-link .oxin-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #ffffff !important;
}

.mobile-nav-link.active .oxin-icon {
    color: var(--primary-neon) !important;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.mobile-nav-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(6px);
    background: var(--accent-rose);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    border: 1px solid #0e0a1a;
}

/* 8. Gaming Hero Banner */
.gaming-hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(42, 26, 76, 0.92), rgba(20, 14, 38, 0.97));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    margin-bottom: 26px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card), 0 0 24px rgba(168, 85, 247, 0.2);
}

.gaming-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1.5vw, 0.98rem);
    max-width: 680px;
    line-height: 1.8;
}

/* 9. Forum Category Cards & Responsive Rows */
.forum-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.forum-category-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), 0 0 25px rgba(168, 85, 247, 0.22);
}

.forum-category-header {
    background: linear-gradient(90deg, rgba(126, 34, 206, 0.85) 0%, rgba(46, 28, 82, 0.7) 100%);
    border-bottom: 1px solid var(--border-highlight);
    color: #ffffff;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.category-collapse-body {
    transition: max-height 0.35s ease, opacity 0.25s ease;
    overflow: hidden;
}

.category-collapse-body.is-collapsed {
    display: none !important;
}

.category-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-toggle-icon.is-collapsed {
    transform: rotate(180deg);
}

.forum-row {
    background: rgba(22, 17, 36, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background: var(--bg-surface-hover);
    transform: translateX(-4px);
}

.forum-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(56, 189, 248, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3e8ff;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.forum-row:hover .forum-icon-box {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: #ffffff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
    transform: scale(1.05);
}

.forum-title-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.forum-title-link:hover {
    color: #d8b4fe;
}

/* Subforums Hierarchy Styling */
.subforums-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-right: 4px;
}

.subforum-chip {
    background: rgba(14, 10, 24, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.subforum-chip:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--primary-neon);
    color: #ffffff;
    transform: translateY(-1px);
}

.forum-stats-pill {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: center;
    min-width: 140px;
    flex-shrink: 0;
}

.forum-stats-pill strong {
    color: #ffffff;
    font-size: 1.05rem;
}

/* 10. Sidebar & Statistics Widgets */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease;
}

.sidebar-widget:hover {
    border-color: rgba(168, 85, 247, 0.55);
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    color: #ffffff;
    font-weight: 700;
    background: rgba(168, 85, 247, 0.28);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(168, 85, 247, 0.55);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    line-height: 1.4;
}

.online-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    background: rgba(22, 17, 36, 0.95);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    transition: all 0.25s ease;
    text-decoration: none;
}

.online-user-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.5);
}

/* 11. Buttons & Interactive Controls (Touch-Friendly) */
.btn-oxin {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--primary-glow) 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.45);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    min-height: 42px;
}

.btn-oxin:hover {
    background: linear-gradient(135deg, #c084fc 0%, var(--primary-neon) 100%);
    box-shadow: 0 6px 28px rgba(168, 85, 247, 0.7);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    min-height: 42px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.oxin-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.22em;
    fill: currentColor;
    flex-shrink: 0;
}

/* 12. Forms & Form Inputs */
.form-control,
.form-select {
    background-color: rgba(22, 17, 36, 0.94) !important;
    color: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(34, 26, 56, 0.98) !important;
    border-color: var(--primary-neon) !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* RTL Form-Select Arrow Fix */
.form-select {
    background-position: left 0.75rem center !important;
    padding-left: 2.25rem !important;
    padding-right: 0.75rem !important;
}

/* 13. Table Glassmorphism Overrides */
.table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-hover-bg: rgba(168, 85, 247, 0.08) !important;
    color: var(--text-secondary) !important;
}

/* 14. Post Typography, Quotes & Code Blocks */
blockquote,
.post-quote {
    background: rgba(14, 10, 24, 0.8);
    border-right: 4px solid var(--primary-neon);
    padding: 14px 18px;
    margin: 14px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
}

pre,
code {
    font-family: Consolas, 'Courier New', monospace;
    direction: ltr;
    text-align: left;
}

code {
    background: rgba(168, 85, 247, 0.15);
    color: #38bdf8;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    font-size: 0.9em;
}

/* 15. Breadcrumbs Modern Glass */
.oxin-breadcrumb {
    background: rgba(22, 17, 36, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
}

.oxin-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.oxin-breadcrumb a:hover {
    color: var(--primary-neon);
}

.oxin-breadcrumb-separator {
    color: #64748b;
    user-select: none;
}

/* 16. OxinUI Notification Engine: Toasts & Modal Dialogs */
.oxin-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.oxin-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    background: rgba(22, 17, 36, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    animation: oxinToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.oxin-toast.toast-success {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.3);
}

.oxin-toast.toast-error {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.3);
}

.oxin-toast.toast-info {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.3);
}

@keyframes oxinToastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* OxinUI Modal Dialog */
.oxin-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 4, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.25s ease;
}

.oxin-modal-box {
    background: rgba(22, 17, 36, 0.98);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.35);
    animation: oxinModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: right;
}

@keyframes oxinModalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==============================================================================
 * 17. Comprehensive Responsive Breakpoints (Mobile, Tablet, Desktop, Ultra-Wide)
 * ============================================================================== */

/* A. Tablets & Small Desktops (<= 991px) */
@media (max-width: 991.98px) {
    .gaming-hero-banner {
        padding: 24px;
    }
    .hero-title {
        font-size: 1.45rem;
    }
    .forum-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .forum-stats-pill {
        align-self: flex-start;
        min-width: 100%;
        text-align: right;
    }
    /* Messages & Chat Box Split on Tablets */
    .conversations-scroll {
        max-height: 380px !important;
    }
}

/* B. Mobile Landscape & Portrait (<= 767.98px) */
@media (max-width: 767.98px) {
    body {
        /* Add bottom clearance for fixed bottom navigation bar */
        padding-bottom: calc(var(--mobile-nav-height) + 14px) !important;
    }

    /* Enable Mobile Bottom Navigation Bar */
    .oxin-mobile-bottom-nav {
        display: block !important;
    }

    /* Transform Topic Author Sidebar to sleek top-row in Topic View */
    .col-md-3.col-xl-2.text-center.border-start,
    .col-md-3.col-xl-2.p-3.p-lg-4.text-center.border-start {
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: right !important;
        padding: 12px 14px !important;
        gap: 12px !important;
        background: rgba(14, 10, 24, 0.92) !important;
    }

    .col-md-3.col-xl-2 .position-relative.d-inline-block.mb-3 {
        margin-bottom: 0 !important;
    }

    .col-md-3.col-xl-2 img.rounded-circle {
        width: 48px !important;
        height: 48px !important;
    }

    .col-md-3.col-xl-2 .pt-2.border-top {
        display: none !important; /* Hide redundant stats on mobile inside post */
    }

    .col-md-3.col-xl-2 .badge {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }

    /* Top bar adjustments for mobile */
    .server-badge {
        padding: 4px 10px;
        font-size: 0.78rem;
    }

    /* Reduce hero banner padding */
    .gaming-hero-banner {
        padding: 18px;
        border-radius: var(--radius-md);
    }

    /* Full-width responsive buttons on mobile */
    .d-flex.flex-wrap.gap-2 .btn-oxin,
    .d-flex.flex-wrap.gap-2 .btn-glass {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

/* C. Extra Small Devices & Compact Smartphones (<= 575.98px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.84rem;
        line-height: 1.7;
    }

    /* Full width buttons in dialogs/forms */
    .btn-oxin,
    .btn-glass {
        width: 100%;
        justify-content: center;
    }

    .oxin-toast-container {
        left: 10px;
        right: 10px;
        bottom: calc(var(--mobile-nav-height) + 12px);
    }

    .oxin-toast {
        min-width: 100%;
        max-width: 100%;
    }

    .forum-category-header {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .forum-row {
        padding: 14px;
    }

    .forum-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .oxin-breadcrumb {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* D. Ultra-Wide Screens (>= 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1340px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
}