/*
Theme Name: New Forum Theme
Description: Custom WordPress theme for bodybuilding/fitness forum with bbPress integration
Version: 1.0
Author: Custom Development
*/

.hero-shell {
    position: relative;
    z-index: 1;
}

.hero-shell-simple {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 6vw, 4.5rem);
}

.hero-card { border-radius: 0;  padding: clamp(2rem, 6vw, 3.5rem) 0;   border: none;   background: transparent;   backdrop-filter: none;   box-shadow: none;  max-width: 640px;}

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.hero-eyebrow-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(16, 185, 129, 0.75);
    margin-bottom: 1rem;
}

.hero-headline {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-headline-strong {
    margin: 0 0 0.75rem;
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.hero-description {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.hero-description-lead {
    font-size: 1.15rem;
    max-width: 520px;
    color: rgba(226, 232, 240, 0.82);
}

.hero-pill-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.hero-pill {  display: inline-flex;   align-items: center;   padding: 0.75rem 1.5rem;   border-radius: 6px;   border: 1px solid rgba(51, 65, 85, 0.6);   background: rgba(15, 23, 42, 0.7);   font-size: 0.9rem;   letter-spacing: 0.05em;   color: rgba(226, 232, 240, 0.95);}

.hero-cta-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
}

.hero-cta-wide .hero-btn {
    min-width: 220px;
    justify-content: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.65rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-btn svg {
    flex-shrink: 0;
}

.hero-btn-primary {
    background: #10b981;
    color: #03130b;
    /* Ops Section */
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
    margin-bottom: 0.35rem;
}

.signal-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #6ee7b7;
}

.directive-label {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

.directive-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.hero-btn svg { flex-shrink: 0; }

.hero-btn-primary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #0f172a;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #22d3a3, #65f6c9);
}

.hero-btn-ghost {
    border-color: rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.4);
}

.hero-btn-ghost:hover {
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    transform: translateY(-2px);
}

.hero-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    margin-top: 0.75rem;
}

.hero-assurances span {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    background: rgba(2, 6, 23, 0.4);
}



.hero-telemetry-row {
    width: 100%;
}

.hero-telemetry-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 32px;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    background: linear-gradient(145deg, rgba(1, 5, 12, 0.9), rgba(3, 12, 8, 0.82));
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.telemetry-header h3 {
    margin: 0.15rem 0 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.telemetry-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
    margin: 0;
}

.telemetry-sync {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.15rem;
}


.telemetry-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.telemetry-item:last-child {
    border-bottom: 0;
}

.telemetry-aux {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.telemetry-label {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.telemetry-value {
    display: block;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
}

.telemetry-meta {
    font-size: 0.85rem;
    color: rgba(110, 231, 183, 0.85);
}

.hero-activity-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.activity-pill {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.85);
    background: rgba(2, 6, 23, 0.45);
}

.hero-ticker {
    margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

.ticker-label {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
    flex-shrink: 0;
}

.ticker-items {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 18s linear infinite;
    white-space: nowrap;
    color: rgba(226, 232, 240, 0.9);
}

.ticker-items span {
    letter-spacing: 0.08em;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header Layout */
.site-header {
    background: #01050b;
    border-bottom: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
    position: relative;
    top: auto;
    z-index: auto;
}

.header-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
}

.header-primary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
    margin-right: auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.8);
}

.brand-tagline {
    letter-spacing: 0.45em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.85);
}

.brand-signal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6ee7b7;
}

.signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
    margin-left: auto;
}

.hero-briefing {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.hero-briefing li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    padding-top: 0.6rem;
}

.brief-label {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.75);
}

.brief-value {
    font-weight: 600;
}

@media (min-width: 992px) {
    .hero-telemetry-card {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }

    .telemetry-header {
        grid-column: 1 / -1;
    }

    .telemetry-grid {
        grid-column: 1;
    }

    .telemetry-aux {
        grid-column: 2;
        align-self: stretch;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-meta-pill { letter-spacing: 0.12em; font-size: 0.7rem; }
    .hero-cta-row { flex-direction: column; }
    .hero-btn { justify-content: center; width: 100%; }
    .hero-assurances { letter-spacing: 0.14em; }
    .telemetry-value { font-size: 2rem; }
    .hero-checklist,
    .hero-directives,
    .hero-signal-board { grid-template-columns: 1fr; }
    .hero-ticker { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .hero-meta-bar { flex-direction: column; }
    .hero-headline { font-size: 2.2rem; }
    .hero-description { font-size: 0.98rem; }
    .activity-pill { letter-spacing: 0.12em; font-size: 0.7rem; }
}

/* Hero Section */
.hero-command {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    color: #f8fafc;
}

.hero-command::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(0, 4, 2, 0.95) 10%, rgba(2, 12, 5, 0.78) 55%, rgba(7, 39, 19, 0.55) 100%),
        radial-gradient(circle at 25% 30%, rgba(16, 185, 129, 0.25), transparent 55%);
    z-index: 0;
}

.hero-command::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: 65% center;
    opacity: 0.35;
    mix-blend-mode: screen;
    z-index: 0;
}

.hero-shell {
    position: relative;
    z-index: 1;
}

.hero-shell-simple {
    max-width: 1220px;
    margin-left: clamp(1.5rem, 7vw, 6rem);
    margin-right: auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

.hero-card {
    max-width: none;
    padding: clamp(2.25rem, 6vw, 4rem) 0;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.hero-eyebrow-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(16, 185, 129, 0.75);
    margin-bottom: 1rem;
}

.hero-headline {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-headline-strong {
    font-size: clamp(2.5rem, 2vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

.hero-description {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.hero-description-lead {
    font-size: 1.18rem;
    max-width: 520px;
    color: rgba(226, 232, 240, 0.82);
}

.hero-pill-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(8, 12, 24, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.85);
}

.hero-cta-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
}

.hero-cta-wide .hero-btn {
    min-width: 220px;
    justify-content: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.65rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-btn svg { flex-shrink: 0; }

.hero-btn-primary {
    background: #10b981;
    color: #03130b;
    box-shadow: 0 25px 40px rgba(16, 185, 129, 0.5);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    background: #1cd3a0;
}

.hero-btn-ghost {
    border-color: rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.5);
}

.hero-btn-ghost:hover {
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-shell-simple { 
        margin: 0 auto; 
        padding: 0 1.5rem; 
        text-align: center;
    }
    .hero-card { 
        padding: 2rem 0; 
        margin: 0 auto;
    }
    .hero-pill-row { 
        flex-direction: column; 
        align-items: center;
    }
    .hero-cta-row {
        justify-content: center;
    }
    .hero-cta-wide .hero-btn { width: 100%; }
}

@media (max-width: 520px) {
    .hero-headline-strong { font-size: 2.4rem; }
    .hero-description-lead { font-size: 1rem; }
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    justify-content: center;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.site-title a {
    color: #10b981;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #34d399;
}

.header-quick-links {
    display: none !important;
}

.header-quick-links::-webkit-scrollbar {
    height: 6px;
}

.header-quick-links::-webkit-scrollbar-track {
    background: transparent;
}

.header-quick-links::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.35);
    border-radius: 999px;
}

.quick-data-chip {
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.12), rgba(2, 6, 23, 0.92));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 0.5rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(15, 23, 42, 0.8);
    min-height: 56px;
    min-width: 150px;
    flex: 0 0 150px;
}

.chip-label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.8);
    white-space: nowrap;
}

.chip-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
    white-space: nowrap;
}

.header-notification-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 0;
    margin-right: 0.35rem;
}

/* Hide mobile notification by default, show desktop one */
.nav-cluster .mobile-notification {
    display: none;
}

/* WordPress Custom Logo Support */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    height: auto;
    max-height: 100px;
    width: auto;
    max-width: 450px;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 37px !important;
    height: 37px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 5px !important;
    z-index: 1700 !important;
    position: relative !important;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    order: 4 !important;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #10b981;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background-color: #ff4444;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: #ff4444;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Styles */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    align-items: center;
    width: auto;
    justify-content: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.25);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.3);
}

.main-navigation a:hover {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Auth Buttons */
.auth-buttons { 
    display: flex; 
    gap: 0.75rem; 
    align-items: center;
    flex-shrink: 0 !important;
    order: 3;
    white-space: nowrap !important;
}

.btn-auth {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
}

.btn-login:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: #34d399;
}

.btn-signup {
    background: #10b981;
    color: white;
    border: 1px solid #10b981;
}

.btn-signup:hover {
    background: #059669;
    border-color: #059669;
}

/* User Menu (Logged In) */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

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

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1500;
}

.user-menu-wrapper.active .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: rgba(144, 205, 244, 0.1);
    color: #90cdf4;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

.user-name {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 992px) {
    .header-shell {
        padding: 1rem 1.25rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .header-shell {
        padding: 1rem !important;
    }

    .mobile-menu-toggle { 
        display: flex !important; 
        position: relative !important;
        z-index: 1700 !important;
        order: 2 !important; 
        margin: 0 !important;
        margin-left: 0.5rem !important;
        align-self: center !important;
        flex-shrink: 0 !important;
    }
    
    .header-primary-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    .brand-cluster {
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-cluster {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    /* Show mobile notification, hide desktop one */
    .nav-cluster .mobile-notification {
        display: flex !important;
        order: 1 !important;
    }
    
    .header-actions .header-notification-wrapper {
        display: none !important;
    }

    .header-actions {
        display: none !important;
    }

    .header-icons-pill {
        display: none !important;
    }
    
    .auth-buttons { display: none !important; }
    
    .header-quick-links { display: none !important; }
    
    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(2, 6, 23, 0.98) !important;
        color: #ffffff !important;
        transition: left 0.3s ease !important;
        z-index: 1600 !important;
        padding-top: 90px !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        display: block !important;
        border-radius: 0 !important;
    }
    
    .main-navigation.mobile-active {
        left: 0 !important;
    }
    
    .main-navigation ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .main-navigation a {
        padding: 1.25rem 2rem !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        justify-content: flex-start;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .main-navigation a:hover {
        background: rgba(16, 185, 129, 0.12) !important;
        color: #10b981 !important;
        padding-left: 2.5rem !important;
    }
    
    .brand-cluster {
        width: 100%;
        justify-content: space-between;
    }
    
    .brand-meta {
        text-align: right;
    }
    
    .custom-logo {
        max-height: 65px;
        max-width: 220px;
    }
    
    .user-name { display: none; }
}

/* Mobile-only utility */
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: block; } }

@media (max-width: 600px) {
    .header-shell {
        padding: 0.85rem 1rem 0.65rem;
    }
    
    .brand-meta {
        align-items: flex-start;
    }
    
}

@media (max-width: 480px) {
    .custom-logo {
        max-height: 45px;
        max-width: 150px;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.36em;
    }
    
    .chip-label {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }
}

/* Mobile Menu Overlay - DISABLED since drawer is full width */
.mobile-menu-overlay {
    display: none !important;
}

.mobile-menu-overlay.active {
    display: none !important;
}

/* Main Content Area */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: transparent;
}

/* bbPress pages: pure black background everywhere */
body.bbpress,
body.bbpress .site-main,
body.bbpress #page {
    /* deep black base with subtle marble texture */
    background-color: #000 !important;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 60%),
        url('assets/marble-dark.svg');
    background-size: cover, 800px 800px;
    background-repeat: no-repeat, repeat;
    background-attachment: fixed, fixed;
    color: #fff;
}
/* Remove light background on these pages */
body.bbpress .site-main,
body.page-template-page-reply .site-main { background: transparent !important; }
/* Force solid black header/footer on forum pages */
body.bbpress .site-header,
body.bbpress .site-footer { background: #000 !important; color: #fff; }
body.bbpress .container-fluid,
body.bbpress .row { background: transparent !important; color: #fff; }
/* Hide any generic page headers/breadcrumbs on bbPress pages */
body.bbpress .entry-header,
body.bbpress .archive-header,
body.bbpress .page-header,
body.bbpress .bbp-breadcrumb-wrapper,
body.bbpress .breadcrumbs,
body.bbpress .breadcrumb,
body.bbpress .yoast-breadcrumb,
body.bbpress .rank-math-breadcrumb { display: none !important; }
/* Neutralize any leftover white card styles from blog templates */
body.bbpress .single-post { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Bootstrap Layout Adjustments */
body.bbpress .container-fluid { padding: 0 !important; }
body.bbpress .row { margin: 0 !important; }
body.bbpress .col-lg-8, body.bbpress .col-md-7, body.bbpress .col-lg-9, body.bbpress .col-md-8 { padding: 30px 15px 30px 30px; background: transparent !important; }
body.bbpress .col-lg-4, body.bbpress .col-md-5, body.bbpress .col-lg-3, body.bbpress .col-md-4 { padding: 30px 30px 30px 15px; background: transparent !important; }

/* Forums Main Section */
.forums-main {
    padding: 0 14px;
}



.forums-main .section-header { 
    color: #888; 
    text-align: left; 
    padding: 0 0 1rem 0; 
    margin: 0; 
}

.forums-main .section-title.large { 
    color: #fff; 
    font-size: 24px; 
    font-weight: bold; 
    text-transform: none; 
    letter-spacing: normal; 
    margin: 0 0 20px 0;
}

/* Sidebar Styling */
.sidebar-card {
    background: #020403;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #10b981;
    margin-bottom: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.forums-list-clean {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(1.25rem, 3vw, 2.5rem) 0;
}



.widget-title {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.35rem;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Recent Topics in Sidebar */
.recent-topics-list {
    padding: 0;
}

.recent-topic-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

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

.topic-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.topic-link:hover {
    color: #fbbf24;
}

.recent-topic-item .topic-meta {
    font-size: 11px;
    color: #888;
}

.forum-name {
    color: #666;
}

/* Ad Spot */
.ad-spot {
    padding: 0;
}

.ad-label {
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(51,51,51,0.5);
}

.ad-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    background: rgba(0,0,0,0.35);
    border: 2px dashed rgba(255,255,255,0.08);
    margin: 16px;
    border-radius: 4px;
}

.ad-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Community Stats */
.community-stats { max-width: var(--container); margin: 32px auto; padding: 24px var(--edge) 20px; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); }
.community-stats-header { margin-bottom: 20px; text-align: center; }
.community-stats-header h2 { color: #fff; font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.community-stats-header p { color: #94a3b8; margin: 0; font-size: 14px; line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card { background: #0b0f14; border: 1px solid #1f2933; border-radius: 10px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; min-height: 100px; }
.stat-card .stat-label { display: block; color: #94a3b8; font-size: 11px; letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; font-weight: 500; }
.stat-card .stat-value { display: block; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.stat-card .stat-meta { display: block; color: #6b7280; font-size: 11px; margin-top: auto; line-height: 1.4; }
.stat-card.highlight { background: linear-gradient(180deg, #0b0f14 0%, #0e131a 100%); box-shadow: inset 0 0 0 1px rgba(16,185,129,.15); }

/* Community Highlights */
.community-highlights { max-width: var(--container); margin: 20px auto 32px; padding: 20px var(--edge); background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); }
.highlights-header h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.highlights-header p { color: #94a3b8; margin: 0 0 14px; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.highlight-card { background: #0b0f14; border: 1px solid #1f2933; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.highlight-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; background: #111827; border: 1px solid #1f2933; }
.highlight-card h4 { color: #fff; margin: 0; font-size: 16px; }
.highlight-card p { color: #94a3b8; margin: 0; font-size: 14px; }
.highlight-link { color: #10b981; text-decoration: none; font-weight: 600; font-size: 13px; }
.highlight-link:hover { color: #34d399; }

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

@media (max-width: 640px) {
    .community-stats, .community-highlights { margin-left: 12px; margin-right: 12px; }
    .community-stats-header h2 { font-size: 18px; }
    .community-stats-header p { font-size: 13px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card { padding: 16px 14px; min-height: 90px; }
}

/* Homepage Recent Topics Section */
.recent-topics {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    margin: 3rem auto;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.recent-topics .section-header {
    padding: 2rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.recent-topics .section-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.topics-list {
    padding: 0;
}

.topic-item {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-item:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: translateX(5px);
}

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

.topic-info {
    flex: 1;
}

.topic-title-home {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.topic-title-home a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.topic-title-home a:hover {
    color: #10b981;
}

.topic-meta-home {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.topic-author strong {
    color: #cbd5e1;
}

.topic-forum a {
    color: #10b981;
    text-decoration: none;
}

.topic-forum a:hover {
    color: #34d399;
}

.topic-stats-home {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 120px;
}

.topic-replies {
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 600;
}

.topic-time {
    font-size: 0.75rem;
    color: #64748b;
}

/* Mobile Responsive for Recent Topics */
@media (max-width: 768px) {
    .recent-topics {
        margin: 2rem 1rem;
        border-radius: 12px;
    }
    
body.bbpress .col-lg-8, body.bbpress .col-md-7, body.bbpress .col-lg-9, body.bbpress .col-md-8 { padding:0px !important; background: transparent !important; }
body.bbpress .col-lg-4, body.bbpress .col-md-5, body.bbpress .col-lg-3, body.bbpress .col-md-4 { padding: 0px !important; background: transparent !important; }



    .recent-topics .section-header {
        padding: 1.5rem 1.25rem 1rem 1.25rem;
    }
    
    .recent-topics .section-title {
        font-size: 1.5rem;
    }
    
    .topic-item {
        padding: 1.25rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .topic-stats-home {
        align-items: flex-start;
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
    }
    
    .topic-meta-home {
        gap: 0.75rem;
    }
}

.ad-placeholder small {
    font-size: 11px;
    color: #555;
}

/* Forum Stats */
.forum-stats {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.stat-number {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    display: block;
    color: #888;
    font-size: 11px;
    text-transform: lowercase;
    margin-top: 4px;
}

/* Online Users */
.online-users {
    padding: 16px;
}

.online-count {
    color: #fff;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.online-list {
    font-size: 12px;
    line-height: 1.5;
}

.online-user {
    color: #fbbf24;
}

.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-radius: 12px;
    background: rgba(12, 17, 25, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.38);
    min-height: 70px;
    max-height: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.topic-list .forum-ad-slot {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: rgba(12, 12, 12, 0.65);
    margin: 0;
}

.topic-item.forum-ad-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-row.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 12, 0.65);
    position: relative;
    overflow: hidden;
}

.forum-ad-slot-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    display: block;
}

.forum-ad-content {
    position: relative;
    z-index: 0;
    pointer-events: none;
    width: 100%;
}

.forum-ad-label,
.ad-slot-watermark {
    position: absolute;
    right: 12px;
    left: auto;
    bottom: 12px;
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.4);
    pointer-events: none;
    z-index: 2;
    background: rgba(15, 23, 42, 0.45);
    padding: 4px 10px 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
    max-width: calc(100% - 24px);
}

.post-card { 
    background: rgba(18,18,18,0.75); 
    border: 1px solid rgba(255,255,255,0.07); 
    border-radius: 10px; 
    box-shadow: 0 14px 36px rgba(0,0,0,0.45); 
    padding: 18px; 
    margin: 12px 0; 
    backdrop-filter: blur(6px); 
    width: 100%; 
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}
.post-card.original { border-left: 3px solid #60a5fa; }
.post-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.post-avatar { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; background: #0f1215; border: 1px solid rgba(255,255,255,0.08); }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 999px; }
.post-author { color: #e5e9f0; font-weight: 600; }
.post-role { color: #8b8b8b; font-size: 12px; }
.post-time { color: #8b8b8b; font-size: 12px; }

.post-body {
    color: #cbd5e1;
    line-height: 1.7;
    writing-mode: horizontal-tb !important;
    clear: both;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
}
.post-body p {
    display: block;
    margin: 0 0 10px;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
}
.post-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.post-body, .post-card .post-body * {
    max-width: 100%;
}
.post-card .post-body .alignleft,
.post-card .post-body .alignright,
.post-card .post-body .avatar,
.post-card .post-body .bbp-author,
.post-card .post-body .bbp-meta {
    float: none !important;
}

/* Quote/blockquote variants that plugins might output */
.post-card .post-body blockquote,
.post-card .post-body .bbp-quote,
.post-card .post-body .bbcode-quote,
.post-card .post-body .bbcode-block,
.post-card .post-body .quote { margin: 8px 0; padding: 10px 12px; border-left: 3px solid rgba(148,163,184,0.35); background: rgba(255,255,255,0.03); border-radius: 6px; color: #aebacf; }
.post-card .post-body blockquote .avatar,
.post-card .post-body .bbp-quote .avatar { display: none; }
.post-card .bbp-reply-content, .post-card .bbp-topic-content { float: none !important; width: 100% !important; }
.post-card .bbp-reply-author, .post-card .bbp-topic-author { display: none !important; }
.post-card .bbp-reply-content p, .post-card .bbp-topic-content p { white-space: normal; word-break: normal; overflow-wrap: anywhere; }

/* Force horizontal text flow inside bbPress post bodies */
.post-card .bbp-reply-content, .post-card .bbp-topic-content, .post-card .post-body {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
}
.post-card .bbp-reply-content *, .post-card .bbp-topic-content * {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
}

/* Constrain images inside posts */
.post-card img,
.post-card .bbp-reply-content img,
.post-card .bbp-topic-content img,
.post-card .post-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.post-actions { display: flex; gap: 14px; justify-content: flex-end; color: #94a3b8; font-size: 12px; margin-top: 12px; }
.post-actions a { color: #94a3b8; text-decoration: none; }
.post-actions a:hover { color: #cbd5e1; }

/* bbPress Search Results */
.search-main { padding: 32px var(--edge) 60px; background: #000; }
.bbpress-search-wrapper { background: #000; padding: 0; }
.bbpress-search-wrapper .search-main { margin: 0 auto; max-width: 1200px; }
.bbpress-search-wrapper, .bbpress-search-wrapper .site-main, .bbpress-search-wrapper #page { background: #000 !important; }
.bbpress-search-wrapper .entry-header, .bbpress-search-wrapper .archive-header, .bbpress-search-wrapper .page-header, .bbpress-search-wrapper .hero-section { display: none !important; }
.bbpress-search-wrapper .bbp-breadcrumb-wrapper, .bbpress-search-wrapper .breadcrumbs, .bbpress-search-wrapper .breadcrumb, .bbpress-search-wrapper .yoast-breadcrumb, .bbpress-search-wrapper .rank-math-breadcrumb { display: none !important; }
.search-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 22px; background: #05070c; border: 1px solid rgba(61,72,92,0.45); border-radius: 14px; box-shadow: 0 18px 38px rgba(0,0,0,0.55); }
.search-title { color: #f8fafc; font-size: 28px; font-weight: 700; margin: 0; }
.search-title .search-term { color: #67e8f9; }
.search-toolbar-form { flex: 1 1 320px; }
.search-toolbar-form #bbp-search-form { display: flex; gap: 10px; align-items: center; background: #05070c; border: 1px solid rgba(94,108,132,0.4); border-radius: 10px; padding: 8px 10px; }
.search-toolbar-form #bbp_search { flex: 1; background: transparent; border: 0; color: #e2e8f0; font-size: 15px; padding: 4px 6px; outline: none; }
.search-toolbar-form #bbp_search::placeholder { color: #64748b; }
.search-toolbar-form #bbp_search_submit { background: linear-gradient(135deg, #1dd1a1, #16a34a); border: 0; border-radius: 9px; padding: 9px 16px; font-weight: 600; color: #fff; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.search-toolbar-form #bbp_search_submit:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35); }

.search-results-panel { margin-top: 28px; background: #05070c; border: 1px solid rgba(40,48,64,0.55); border-radius: 16px; padding: 26px 28px 32px; box-shadow: 0 24px 54px rgba(0,0,0,0.55); }
.search-results-panel.empty { display: flex; align-items: center; justify-content: center; min-height: 220px; text-align: center; }
.search-results-panel .bbp-template-notice { background: rgba(15,18,24,0.75); border-color: rgba(94,108,132,0.4); color: #9aa7bd; border-radius: 12px; }
.search-results-grid { display: flex; flex-direction: column; gap: 18px; }

.search-card { background: rgba(15,17,25,0.95); border: 1px solid rgba(90,105,130,0.35); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.52); position: relative; overflow: hidden; }
.search-card::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,0.02); pointer-events: none; }
.search-card-meta { display: flex; gap: 14px; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.18em; }
.search-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; }
.search-pill.topic { background: rgba(16,185,129,0.18); color: #10b981; border: 1px solid rgba(16,185,129,0.36); }
.search-pill.reply { background: rgba(16,185,129,0.18); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.36); }
.search-pill.forum { background: rgba(244,114,182,0.18); color: #f9a8d4; border: 1px solid rgba(244,114,182,0.32); }
.search-time { color: #9aa7bd; font-size: 12px; text-transform: none; letter-spacing: normal; }

.search-card-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: #f1f5f9; }
.search-card-title a { color: inherit; text-decoration: none; }
.search-card-title a:hover { color: #7dd3fc; }

.search-card-context { color: #9aa7bd; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-card-context a { color: #cbd5e1; text-decoration: none; font-weight: 500; }
.search-card-context a:hover { color: #7dd3fc; }
.search-card-context .sep { color: #4b5563; margin: 0 4px; }

.search-card-body { display: flex; gap: 16px; align-items: flex-start; }
.search-avatar { width: 52px; height: 52px; border-radius: 999px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(148,163,184,0.35); background: #0d1016; box-shadow: 0 6px 16px rgba(0,0,0,0.45); }
.search-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-snippet { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.search-author { font-weight: 600; color: #f8fafc; font-size: 14px; }
.search-snippet p { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.6; }

.search-card-footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 12px; font-size: 12px; color: #94a3b8; }
.search-card-footer .search-meta { color: #9aa7bd; }
.search-card-footer .search-link { margin-left: auto; color: #7dd3fc; text-decoration: none; font-weight: 600; }
.search-card-footer .search-link:hover { color: #45b9f8; }

.search-pagination { margin-top: 28px; display: flex; justify-content: center; }

@media (max-width: 991px) {
    .search-toolbar-form { flex-basis: 100%; }
    .search-toolbar-form #bbp-search-form { width: 100%; }
}

@media (max-width: 640px) {
    .search-main { padding: 24px 14px 40px; }
    .search-title { font-size: 26px; }
    .search-card { padding: 18px 18px 20px; }
    .search-card-body { flex-direction: column; }
    .search-card-footer { flex-direction: column; align-items: flex-start; }
    .search-card-footer .search-link { margin-left: 0; }
    .search-avatar { width: 46px; height: 46px; }
}

/* Threaded replies visual indentation */
.topic-single .post-card.child { margin-left: 24px; }
.topic-single .post-card.depth-2 { margin-left: 48px; }
/* Threaded replies indentation */
.bbp-replies,
.bbp-threaded-replies,
.bbp-replies-list,
.bbp-replies ul,
.bbp-threaded-replies ul,
.bbp-replies-list ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.bbp-replies li,
.bbp-threaded-replies li,
.bbp-replies-list li {
    list-style: none;
}
/* Reply list layout */
.bbp-replies-list > li { margin: 14px 0; background: rgba(18,18,18,0.75); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); padding: 18px 18px 12px; backdrop-filter: blur(6px); position: relative; }
.bbp-replies-list > li > .reply-wrapper { margin: 0; padding: 0; }
/* If no child list follows, tighten bottom padding */
.bbp-replies-list > li:not(:has(> ul)) { padding-bottom: 16px; }
/* Inline author + replying target */
.reply-wrapper .post-author-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; font-weight: 600; }
.reply-wrapper .post-author-line .replying-inline { font-weight: 500; color: #95a7ba; font-size: 12px; }
.reply-wrapper .post-author-line .replying-inline a { color: #aebed0; text-decoration: none; }
.reply-wrapper .post-author-line .replying-inline a:hover { color: #d7e2ec; }
.reply-wrapper .replying-to { display: none !important; }
/* Children inside parent card */
.bbp-replies-list > li > ul { margin: 12px 0 4px; padding-left: 16px; position: relative; border-left: 1px solid rgba(255,255,255,0.08); }
/* Ensure nested list is visually inside the parent card (no overflow gap) */
.bbp-replies-list > li > ul { margin-right: -4px; }
.bbp-replies-list > li > ul > li { margin: 10px 0 0; padding-left: 6px; }
/* Child wrapper inherits inline layout */
.bbp-replies-list > li > ul > li > .reply-wrapper { padding: 0; }
.bbp-replies-list > li > ul > li .post-head { grid-template-columns: 34px 1fr auto; margin-bottom: 4px; }
.bbp-replies-list > li > ul > li .post-avatar { width: 34px; height: 34px; }
.bbp-replies-list > li > ul > li .post-author-line { font-size: 13px; }
.bbp-replies-list > li > ul > li .post-author-line .replying-inline { font-size: 11px; }
.bbp-replies-list > li > ul > li + li { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.bbp-replies-list > li > ul > li .post-actions { margin-top: 6px; }
/* Reset left margin helpers (we manage inside card) */
.bbp-threaded-replies, .bbp-replies-list { margin-left: 0; }

/* Child reply legacy styles disabled */
.post-card.child-reply { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }

/* Tighten vertical rhythm inside nested stacks */
.bbp-replies-list li > .post-card + ul > li > .post-card { margin-top: 8px; }
.replying-to { color: #9aa3ad; font-size: 12px; margin: 4px 0 8px; }

.replies-title { color: #8b8b8b; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 8px; padding: 0 4px; }

.reply-form-dark { background: rgba(18,18,18,0.75); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); padding: 16px; margin-top: 20px; }
.reply-form-dark h3 { margin: 0 0 10px; color: #e5e9f0; }
.reply-form-dark textarea, .reply-form-dark input[type="text"], .reply-form-dark input[type="email"], .reply-form-dark input[type="url"], .reply-form-dark select { width: 100%; background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; }
.reply-form-dark input[type="submit"], .reply-form-dark .button, .reply-form-dark button { background: #10b981; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.reply-form-dark input[type="submit"]:hover, .reply-form-dark .button:hover, .reply-form-dark button:hover { background: #2563eb; }

/* Topic actions */
.topic-actions { margin: 8px 0 12px; display: flex; justify-content: flex-end; }
.btn-reply { background: #10b981; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.btn-reply:hover { background: #2563eb; }

/* Secondary button */
.btn-secondary { background: #374151; color: #e5e7eb; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-secondary:hover { background: #4b5563; color: #fff; }

/* Hide bbPress admin link clutter on single-topic cards */
body.bbpress .post-card .bbp-admin-links,
body.bbpress .post-card .bbp-reply-admin-links { display: none !important; }

/* Single-topic width + breadcrumb polish */
.topic-single { max-width: 100%; margin: 0 auto; padding-left: 16px; padding-right: 16px; overflow-x: hidden; }
.topic-single .topic-grid { align-items: flex-start; }
.topic-single .topic-main { min-width: 0; display: block; overflow: hidden; }
.topic-sidebar { position: sticky; top: 84px; align-self: flex-start; }

/* Mobile thread styling inspired by XDA reference */
@media (max-width: 640px) {
    body.bbpress {
        background: #030504;
    }

    .topic-single {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        padding-bottom: 3rem;
    }

    .topic-single .post-card,
    .topic-single .bbp-replies-list > li,
    .topic-single .reply-form-dark {
        background: linear-gradient(180deg, rgba(10, 14, 13, 0.96), rgba(2, 4, 4, 0.92));
        border: 1px solid rgba(54, 228, 149, 0.16);
        border-radius: 16px;
        box-shadow: none;
    }

    .topic-single .post-card,
    .topic-single .bbp-replies-list > li {
        border-left: 3px solid rgba(16, 185, 129, 0.45);
        padding: 16px 16px 14px;
        margin: 16px 0;
    }

    .topic-single .post-head {
        grid-template-columns: 40px 1fr;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .topic-single .post-avatar {
        width: 40px;
        height: 40px;
    }

    .topic-single .post-time {
        grid-column: 2 / -1;
        font-size: 0.8rem;
        color: rgba(167, 255, 213, 0.65);
        margin-top: 2px;
    }

    .topic-single .post-author {
        font-size: 1rem;
        color: #f4fff7;
    }

    .topic-single .post-role {
        font-size: 0.78rem;
        color: rgba(203, 213, 225, 0.7);
    }

    .topic-single .post-body {
        font-size: 0.95rem;
        color: #dbeee1;
    }

    .topic-single .post-actions {
        justify-content: flex-start;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 12px;
        padding-top: 10px;
        gap: 1.25rem;
    }

    .topic-single .post-actions a {
        color: rgba(167, 255, 213, 0.9);
    }

    .topic-single .post-actions a:hover {
        color: #34d399;
    }

    .topic-single .reply-form-dark {
        margin-top: 1.5rem;
    }

    .topic-single .reply-form-dark textarea,
    .topic-single .reply-form-dark input[type="text"],
    .topic-single .reply-form-dark input[type="email"],
    .topic-single .reply-form-dark input[type="url"] {
        background: rgba(6, 8, 8, 0.9);
        border: 1px solid rgba(54, 228, 149, 0.2);
        color: #effdf3;
    }

    .topic-single .reply-form-dark input[type="submit"],
    .topic-single .reply-form-dark .button,
    .topic-single .reply-form-dark button {
        background: linear-gradient(120deg, #0fdd67, #0aa85a);
        box-shadow: 0 10px 24px rgba(13, 222, 120, 0.35);
        border: none;
    }
}

/* Standalone reply page visuals */
.reply-standalone {
    max-width: min(1100px, 100%);
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}
body.page-template-page-reply,
body.page-template-page-reply .site,
body.page-template-page-reply .site-content { background: #0b0b0b !important; }
/* Reply card should look like a simple card, not a modal */
body.page-template-page-reply .post-card.reply-card { background: rgba(18,18,18,0.8); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
body.page-template-page-reply .post-card.reply-card .form-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
/* Flatten inner form so it doesn't look like a modal */
body.page-template-page-reply .reply-form-dark { background: transparent; border: 0; box-shadow: none; padding: 0; }
/* Submit + Cancel inline */
body.page-template-page-reply .bbp-submit-wrapper { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
body.page-template-page-reply .bbp-submit-wrapper #bbp_reply_submit { order: 1; }
body.page-template-page-reply .bbp-submit-wrapper .btn-cancel-inline { order: 2; }
/* Media button styling */
body.bbpress .wp-media-buttons .button, body.page-template-page-reply .wp-media-buttons .button { background: #374151; color: #e5e7eb; border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 600; position: relative; z-index: 3; }
body.bbpress .wp-media-buttons .button:hover, body.page-template-page-reply .wp-media-buttons .button:hover { background: #4b5563; color: #fff; }
body.page-template-page-reply .wp-media-buttons { margin-bottom: 8px; }

/* Ensure post content spans inside cards */
.post-card .bbp-reply-content, .post-card .bbp-topic-content { float: none !important; width: 100% !important; }
.post-card .bbp-reply-author, .post-card .bbp-topic-author { display: none !important; }
.post-card .bbp-reply-content p, .post-card .bbp-topic-content p { white-space: normal; word-break: normal; overflow-wrap: anywhere; }

/* Better quote styling inside replies */
.post-card blockquote { margin: 8px 0; padding: 10px 12px; border-left: 3px solid rgba(148,163,184,0.35); background: rgba(255,255,255,0.03); border-radius: 6px; color: #aebacf; }

/* Auth (Login/Register) pages styled like cards */
.auth-page { padding-top: 24px; padding-bottom: 24px; }
.auth-card .auth-form label { color: #cbd5e1; font-weight: 600; font-size: 14px; }
.auth-card .auth-form input[type="text"],
.auth-card .auth-form input[type="email"],
.auth-card .auth-form input[type="password"] {
    width: 100%; background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; margin-top: 6px; margin-bottom: 12px;
}
.auth-card .auth-form .submit, .auth-card .auth-form .button, .auth-card .auth-form input[type="submit"], .auth-card .auth-form .button-primary {
    background: #10b981; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.auth-card .auth-form .submit:hover, .auth-card .auth-form .button:hover, .auth-card .auth-form input[type="submit"]:hover { background: #059669; }
.auth-links a { color: #9aa7bd; text-decoration: none; }
.auth-links a:hover { color: #c6d0e3; }
.auth-links .sep { color: #556; margin: 0 8px; }

/* Responsive: stack columns */
@media (max-width: 992px) {
    .topic-single { max-width: 100%; }
    .topic-single .topic-grid { display: block; }
    .topic-sidebar { position: static; margin-top: 16px; align-self: stretch; }
}
.topic-single .bbp-breadcrumb-wrapper { color: #94a3b8; margin-bottom: 8px; }
.topic-single .bbp-breadcrumb a { color: #9aa7bd; }
.topic-single .bbp-breadcrumb a:hover { color: #c6d0e3; }
.topic-single .post-actions a { font-weight: 600; }

/* Darken bbPress notices and editor chrome inside reply form */
.reply-form-dark .bbp-template-notice { background: rgba(255,255,255,0.06); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.08); }
.reply-form-dark .wp-editor-area, .reply-form-dark textarea#bbp_reply_content { background: #0f0f0f; color: #e5e9f0; }
.reply-form-dark #wp-bbp_reply_content-editor-container { border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
/* Keep bbPress reply editor minimal: no toolbars */
body.page-template-page-reply .reply-form-dark .quicktags-toolbar,
body.page-template-page-reply .reply-form-dark .wp-editor-tabs,
body.page-template-page-reply .reply-form-dark .mce-toolbar,
body.page-template-page-reply .reply-form-dark .mce-statusbar { display: none !important; }
body.page-template-page-reply .reply-form-dark .wp-media-buttons { margin-bottom: 8px; }
/* Reply form footer */
.reply-actions-secondary { margin-top: 12px; display: flex; justify-content: flex-end; gap: 10px; }

/* De-emphasize optional extras */
.reply-form-dark label[for="bbp_topic_tags"],
.reply-form-dark #bbp_topic_tags,
.reply-form-dark .bbp-form #bbp-anonymous-notice { display: none; }
.reply-form-dark .bbp-template-notice { display:none; }
.reply-form-dark input#bbp_topic_subscription, .reply-form-dark label[for="bbp_topic_subscription"] { display:none; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Welcome Section - matches the design */
.welcome-section {
    background: white;
    margin: 0 auto 2rem auto;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}

.welcome-section h1 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Forum Activity Section - matches the design exactly */
.forum-activity-section {
    background: white;
    margin: 0 auto 2rem auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.forum-activity-header {
    background: #5a6c7d;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: normal;
    font-size: 0.9rem;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: normal;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.activity-meta {
    color: #a0aec0;
    font-size: 0.75rem;
    margin: 0;
}

.activity-stats {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-left: 2rem;
}

.stat-column {
    text-align: center;
    min-width: 50px;
}

.stat-number {
    display: block;
    color: #4a5568;
    font-weight: normal;
    font-size: 0.85rem;
    line-height: 1;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.7rem;
    text-transform: lowercase;
    line-height: 1;
}

/* Join Community Section - matches the design */
.join-community-section {
    background: white;
    margin: 0 auto 2rem auto;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}

.join-community-section h2 {
    color: #4a5568;
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.join-community-section p {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.community-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-register {
    background: #e53e3e;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background: #c53030;
}

.btn-login {
    background: #718096;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background: #4a5568;
}

.forum-list {
    list-style: none;
}

.forum-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.forum-item:hover {
    background-color: #f8f9fa;
}

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

.forum-info {
    flex: 1;
}

.forum-title {
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.forum-title:hover {
    color: #e74c3c;
}

.forum-description {
    color: #666;
    font-size: 0.9rem;
}

.forum-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.stat-number {
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Topic List Styles */
.topic-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topic-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    font-weight: bold;
}

.topic-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    transition: background-color 0.3s;
}

.topic-item:hover {
    background-color: #f8f9fa;
}

.topic-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.topic-title:hover {
    color: #e74c3c;
}

.topic-meta {
    font-size: 0.9rem;
    color: #666;
}

.topic-author {
    color: #2c3e50;
    text-decoration: none;
}

.topic-stats {
    text-align: center;
    color: #666;
}

/* Single Topic Styles */
.topic-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.post-author {
    font-weight: bold;
    color: #2c3e50;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231,76,60,0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
}

/* Legacy button styles - removed, now using new header styles above */

/* Footer Styles */
.site-footer {
    background: #000;
    color: #a0aec0;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.8rem;
}

.site-footer .container {
    max-width: 900px;
}

.site-footer p {
    margin-bottom: 0.25rem;
}

.site-footer a {
    color: #4299e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #63b3ed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .welcome-section {
        margin: 1rem auto;
        padding: 2rem 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .forum-activity-section,
    .join-community-section {
        margin: 1rem auto;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .activity-stats {
        align-self: stretch;
        justify-content: space-around;
        border-top: 1px solid #e2e8f0;
        padding-top: 1rem;
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-register,
    .btn-login {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .welcome-section,
    .forum-activity-section,
    .join-community-section {
        margin: 1rem 10px;
        border-radius: 6px;
    }
    
    .forum-activity-header {
        padding: 0.75rem 1rem;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .activity-stats {
        gap: 1rem;
    }
}

/* Admin Bar Compatibility */
.admin-bar .site-header {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        margin-top: 46px;
    }
}

/* WordPress Specific Styles */
.wp-block-group {
    margin: 2rem 0;
}

.aligncenter {
    text-align: center;
    margin: 2rem auto;
    display: block;
}

.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 4px;
}

.pagination a:hover {
    background: #2c3e50;
    color: white;
}

.pagination .current {
    background: #2c3e50;
    color: white;
}

/* bbPress Specific Styles */
.bbpress-wrapper {
    width: 100%;
}

/* bbPress Forms */
.bbp-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dark theme overrides for bbPress forms on forum + reply pages */
body.bbpress .bbp-form,
body.page-template-page-reply .bbp-form { background: transparent; box-shadow: none; padding: 0; border-radius: 0; color: #cbd5e1; }
body.bbpress .bbp-form legend,
body.page-template-page-reply .bbp-form legend { color: #cbd5e1; }
body.bbpress .bbp-form label,
body.page-template-page-reply .bbp-form label { color: #cbd5e1; font-weight: 600; }
body.bbpress .bbp-form input[type="text"],
body.bbpress .bbp-form input[type="email"],
body.bbpress .bbp-form input[type="url"],
body.bbpress .bbp-form textarea,
body.bbpress .bbp-form select,
body.page-template-page-reply .bbp-form input[type="text"],
body.page-template-page-reply .bbp-form input[type="email"],
body.page-template-page-reply .bbp-form input[type="url"],
body.page-template-page-reply .bbp-form textarea,
body.page-template-page-reply .bbp-form select { background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; }
body.bbpress .bbp-form input:focus,
body.bbpress .bbp-form textarea:focus,
body.bbpress .bbp-form select:focus,
body.page-template-page-reply .bbp-form input:focus,
body.page-template-page-reply .bbp-form textarea:focus,
body.page-template-page-reply .bbp-form select:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
body.bbpress .bbp-form .button,
body.bbpress .bbp-form input[type="submit"],
body.page-template-page-reply .bbp-form .button,
body.page-template-page-reply .bbp-form input[type="submit"] { background: #10b981; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
body.bbpress .bbp-form .button:hover,
body.bbpress .bbp-form input[type="submit"]:hover,
body.page-template-page-reply .bbp-form .button:hover,
body.page-template-page-reply .bbp-form input[type="submit"]:hover { background: #2563eb; }

.bbp-form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.bbp-form legend {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.bbp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.bbp-form input[type="text"],
.bbp-form input[type="email"],
.bbp-form input[type="url"],
.bbp-form textarea,
.bbp-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.bbp-form input:focus,
.bbp-form textarea:focus,
.bbp-form select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.bbp-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bbp-form .bbp-submit-wrapper {
    margin-top: 2rem;
}

.bbp-form.xda-poll-fields input[type="text"] {
    max-width: 500px;
}

/* bbPress Status Labels */
.bbp-topic-meta .bbp-topic-permalink,
.bbp-reply-meta .bbp-reply-permalink {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.bbp-topic-meta .bbp-topic-permalink:hover,
.bbp-reply-meta .bbp-reply-permalink:hover {
    color: #e74c3c;
}

/* bbPress Admin Links */
.bbp-admin-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.bbp-admin-links a {
    color: #666;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.bbp-admin-links a:hover {
    color: #e74c3c;
}

/* Forum Statistics Grid */
.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Mobile Navigation (legacy block removed to prevent hiding the toggle) */

/* Notifications */
.forum-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: none;
}

.forum-notification.info {
    background: #3498db;
}

.forum-notification.success {
    background: #27ae60;
}

.forum-notification.warning {
    background: #f39c12;
}

.forum-notification.error {
    background: #e74c3c;
}

/* Character Counter */
.char-counter {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter-warning {
    color: #e74c3c;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    transition: all 0.3s;
}

#back-to-top:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* bbPress Breadcrumbs */
.bbp-breadcrumb {
    color: #666;
    font-size: 0.9rem;
}

.bbp-breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
}

.bbp-breadcrumb a:hover {
    color: #e74c3c;
}

/* Topic Status Indicators */
.topic-sticky-badge,
.topic-closed-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.topic-sticky-badge {
    background: #f39c12;
    color: white;
}

.topic-closed-badge {
    background: #95a5a6;
    color: white;
}

/* Hover Effects */
.forum-item.hovered,
.topic-item.hovered {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Polls UI */
.xda-poll-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 1rem 0 1.5rem 0;
    padding: 1rem 1.25rem;
}
.xda-poll-title {
    margin: 0 0 0.75rem 0;
    color: #4a5568;
    font-size: 1rem;
}
.xda-poll-option {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0.4rem 0;
}
.xda-poll-option input[type="radio"] { margin-top: 0; }
.xda-poll-option .option-label { color: #4a5568; font-size: 0.95rem; }
.xda-poll-option .option-stats { color: #718096; font-size: 0.8rem; min-width: 3ch; text-align: right; }
.xda-poll-option .option-bar { grid-column: 2 / -1; height: 6px; background: #edf2f7; border-radius: 3px; overflow: hidden; }
.xda-poll-option .option-bar > span { display: block; height: 100%; background: #4299e1; width: 0%; transition: width 0.3s ease; }
.xda-poll-actions { display: flex; gap: 1rem; align-items: center; margin-top: 0.75rem; }
.xda-poll-total { color: #718096; font-size: 0.85rem; }

/* Dark overrides for polls on homepage and bbPress pages */
body.home .xda-poll-card,
body.bbpress .xda-poll-card {
        background: rgba(12,12,12,0.7);
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 12px 30px rgba(0,0,0,0.45);
        backdrop-filter: blur(6px);
}
body.home .xda-poll-title,
body.bbpress .xda-poll-title { color: #e5e9f0; }
body.home .xda-poll-option .option-label,
body.bbpress .xda-poll-option .option-label { color: #cbd5e1; }
body.home .xda-poll-option .option-stats,
body.bbpress .xda-poll-option .option-stats { color: #94a3b8; }
body.home .xda-poll-option .option-bar,
body.bbpress .xda-poll-option .option-bar { background: rgba(255,255,255,0.06); }
body.home .xda-poll-option .option-bar > span,
body.bbpress .xda-poll-option .option-bar > span { background: #60a5fa; }
body.home .xda-poll-total,
body.bbpress .xda-poll-total { color: #94a3b8; }

/* Single Forum: modern topics list */
.forum-hero { margin: 8px 0 12px; padding: 18px 20px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.forum-hero .forum-title { font-size: 1.8em; font-weight: 700; letter-spacing: 0.5px; color: #cbd5e1; text-transform: uppercase; margin: 0 0 6px; }
.forum-hero .forum-desc { color: #9aa5b1; margin: 0; }
.topic-toolbar { display: flex; gap: 14px; align-items: center; margin: 14px 0 18px; }
.topic-search { flex: 1; }
.topic-search input[type="text"] { width: 100%; padding: 12px 14px; background: rgba(12,12,12,0.7); color: #e5e9f0; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; outline: none; }
.topic-search input::placeholder { color: #7b8794; }
.btn-new-topic { display: inline-block; background: #10b981; color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn-new-topic:hover { background: #2563eb; color: #0b1220; }

.topics-modern { background: rgba(12,12,12,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.5); backdrop-filter: blur(8px); }
.topics-modern .topics-header { display: grid; grid-template-columns: 1fr 120px 220px; gap: 16px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #8b8b8b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.topic-row { display: grid; grid-template-columns: 1fr 120px 220px; gap: 16px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); align-items: center; text-decoration: none; background: transparent; }
.topic-row:hover { background: rgba(255,255,255,0.03); }
.topic-main { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.topic-avatar { width: 40px; height: 40px; border-radius: 999px; background: #0f1215; border: 1px solid rgba(255,255,255,0.08); }
.topic-title-lg { color: #8ab4ff; font-weight: 700; font-size: 1em; line-height: 1.2; margin: 0 0 4px; }
.topic-title-lg:hover { color: #a5c8ff; }
.topic-sub { color: #9aa5b1; font-size: 13px; }
.topic-replies { color: #fff; text-align: center; font-weight: 600; }
.topic-last { text-align: left; color: #9aa5b1; font-size: 12px; }
.topic-last .label { color: #8b8b8b; text-transform: uppercase; font-size: 11px; margin-bottom: 2px; }

@media (max-width: 900px) {
    .topics-modern .topics-header, .topic-row { grid-template-columns: 1fr 80px 1fr; }
    .topic-main { grid-template-columns: 32px 1fr; }
    .topic-avatar { width: 32px; height: 32px; }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    /* Improve forum/topic list layout on mobile */
    .topics-modern { border-radius: 8px; }
    .topics-modern .topics-header { grid-template-columns: 1fr 60px; gap: 10px; font-size: 11px; }
    .topics-modern .topics-header > :nth-child(3) { display: none; }
    .topic-row { grid-template-columns: 1fr 60px; gap: 10px; padding: 12px 14px; }
    .topic-main { grid-template-columns: 28px 1fr; gap: 10px; }
    .topic-title-lg { font-size: 0.95em; }
    .topic-sub { font-size: 12px; }
    .topic-last { display: none; }
    .topic-replies { font-size: 13px; }

    /* Breadcrumbs tighter */
    .bbp-breadcrumb { font-size: 0.85rem; }

    /* Reduce excessive paddings */
    .forum-hero { padding: 14px 14px 8px; }
    .topic-toolbar { flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
    .btn-new-topic { padding: 10px 12px; font-size: 14px; }

    /* Subforum list (category view) responsive adjustments */
    .subforum-list-section .topic-header { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 10px; }
    .subforum-list-section .topic-item { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 10px; align-items: center; padding: 12px 14px; }
    .subforum-list-section .topic-item .forum-description { display: none; }
    .subforum-list-section .topic-item .topic-stats { text-align: center; }
    .subforum-list-section .topic-item .topic-meta { font-size: 12px; color: #9aa5b1; }

    /* Mobile nav and toggle are defined in main @media (max-width: 768px) block above */
    
    .hero-section {
        padding: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .forum-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .topic-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .topic-actions .btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .forum-notification {
        right: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    /* Stack items for very small screens */
    .topics-modern .topics-header { display: none; }
    .topic-row { grid-template-columns: 1fr; }
    .topic-main { grid-template-columns: 36px 1fr; }
    .topic-replies { justify-self: start; margin-left: 46px; color: #cbd5e1; }
    .topic-sub { margin-top: 4px; }

    /* Subforum list: stack columns on very small screens */
    .subforum-list-section .topic-header { display: none; }
    .subforum-list-section .topic-item { grid-template-columns: 1fr; }
    .subforum-list-section .topic-item .topic-stats { order: 3; justify-self: start; }
    .subforum-list-section .topic-item .topic-meta { order: 4; margin-top: 4px; }
    
    .forum-section-header,
    .topic-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .forum-item,
    .topic-item,
    .post-item {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .forum-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

/* --- New Topic Modal (bbPress) --- */
.bbp-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; }
.bbp-modal[hidden] { display: none !important; }
.bbp-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(2px); }
.bbp-modal__dialog { position: relative; width: min(800px, calc(100% - 32px)); max-height: 90vh; overflow: auto; background: rgba(10,10,10,0.95);
        backdrop-filter: none;
        color: #f8fafc; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); transform: translateY(6px); opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.bbp-modal.is-open .bbp-modal__dialog { opacity: 1; transform: translateY(0); }
.bbp-modal__header { display:flex; align-items:center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.85); position: sticky; top: 0; z-index: 1; }
.bbp-modal__header h3 { margin: 0; color: #e5e9f0; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; font-size: 14px; }
.bbp-modal__close { background: transparent; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; }
.bbp-modal__close:hover { color: #cbd5e1; }
.bbp-modal__body { padding: 16px; }

/* bbPress form inside modal */
.bbp-modal .bbp-form, .bbp-modal fieldset.bbp-form { background: transparent; border: 0; padding: 0; }
.bbp-modal .bbp-form label { color: #cbd5e1; }
.bbp-modal input[type="text"],
.bbp-modal input[type="email"],
.bbp-modal input[type="url"],
.bbp-modal textarea,
.bbp-modal select { width: 100%; background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; }
.bbp-modal textarea { min-height: 160px; }
.bbp-modal .button, .bbp-modal button, .bbp-modal input[type="submit"] { background: #10b981; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.bbp-modal .button:hover, .bbp-modal button:hover, .bbp-modal input[type="submit"]:hover { background: #2563eb; }

/* --- Dark Homepage Enhancements --- */
body.home, body.home .site-main { background: #000; }
body.home { color: #e5e9f0; }
body.home .site-main { padding: 0; }
/* Make homepage container fluid so background spans full width */
body.home .site-main > .container { max-width: none; padding: 0; margin: 0; }
body.home .container { max-width: none; }
body.home .site-header { background: #000; border-bottom: 1px solid #111; }
body.home .site-footer { background: #000; color: #94a3b8; }
/* bbPress footer glass bar */
body.bbpress .site-footer {
    background: transparent !important;
    padding: 24px 0 36px;
}
body.bbpress .site-footer .site-info {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(10,10,10,0.65);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 12px 16px;
    color: #9aa5b1;
}
body.bbpress .site-footer a { color: #10b981; }
body.bbpress .site-footer a:hover { color: #34d399; }
body.home .welcome-section,
body.home .forum-activity-section,
body.home .join-community-section { background: #0e131a; border-color: #1f2933; color: #cbd5e1; }
body.home .forum-activity-header { background: #111827; color: #e5e9f0; }
body.home .activity-item { border-color: #0f1720; }
body.home .activity-info h4 { color: #e5e9f0; }
body.home .activity-meta { color: #9aa5b1; }
body.home .stat-number { color: #e5e9f0; }
body.home .stat-label { color: #9aa5b1; }

/* Hero Banner */
.hero-dark { position: relative; min-height: 70vh; display:flex; align-items:center; justify-content:flex-start; padding:0; background:#000; background-size:cover; background-position:center right; border-bottom:none; width: calc(100% - calc(var(--edge) * 2)); max-width: 1200px; margin: var(--edge) auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.hero-dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.18) 100%); border-radius: inherit; pointer-events: none; }
.hero-inner { width: 100%; text-align: left; }
.hero-content { position: relative; z-index: 1; max-width: 520px; margin-left: var(--hero-left); text-align: left; }
.hero-headline { line-height: 1.05; margin: 0 0 10px; color: #ffffff; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.6); }
.hero-title { font-size: var(--hero-sub-size); line-height: 1.4; margin: 0 0 14px; color: #e5e9f0; letter-spacing: 0.2px; font-weight: 600; text-transform: none; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-ctas { display: flex; gap: 14px; }
.btn-hero { background: #10b981; color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; box-shadow: 0 6px 18px rgba(16,185,129,0.35); white-space: nowrap; }
.btn-hero:hover { background: #059669; }
.btn-hero-primary { background: #10b981; color: #fff; }
.btn-hero-secondary { background: transparent; color: #e5e9f0; border: 1px solid #475569; padding: 12px 18px; border-radius: 8px; text-decoration: none; }
.btn-hero-secondary:hover { background: #0b1220; border-color: #64748b; }

/* Hero responsiveness tweaks */
@media (max-width: 768px) {
    .hero-dark { min-height: 52vh; }
    .hero-content { max-width: 92%; }
    .hero-ctas { gap: 10px; }
    .btn-hero, .btn-hero-secondary { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 480px) {
    .hero-dark { min-height: 44vh; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn-hero, .btn-hero-secondary { width: 100%; text-align: center; padding: 10px 12px; font-size: 13.5px; }
}

/* Featured Forums Grid */
.featured-forums { max-width: var(--container); margin: var(--section-gap) auto; padding: 0 var(--edge); }
.featured-forums .section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-forums .section-header { max-width: var(--archive-width); margin: 56px auto 8px; padding: 0; }
.section-link { color: #10b981; text-decoration: none; font-size: 13px; }
.section-link:hover { color: #34d399; text-decoration: underline; }
.section-title { margin: 0 0 12px; font-size: var(--section-title-size); color: #e5e9f0; padding-left: 2px; letter-spacing: 0.4px; }
.section-title.large { font-size: 22px; font-weight: 800; text-transform: uppercase; color: #cbd5e1; margin: 0; letter-spacing: 0.6px; }
.forums-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; grid-auto-rows: 1fr; }
.forum-card { display: grid; grid-template-rows: auto 1fr; background: #111418; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--row-padding-y) var(--card-padding-x); text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,0.25) inset; height: 100%; }
.forum-card:hover { border-color: #334155; background: #0f141b; }
.forum-card-head { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; margin-bottom: 10px; }
.forum-card-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #f1f5f9; background: #0f1215; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; font-size: 18px; }
.forum-card-headings { display: grid; gap: 6px; }
.forum-card-title { font-weight: 900; color: #f1f5f9; text-transform: uppercase; letter-spacing: 0.3px; }
.forum-card-desc { color: #9aa5b1; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.forum-card-rows { display: grid; gap: 10px; margin-top: 10px; align-self: end; }
.forum-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 12px; min-height: 60px; display: grid; align-content: center; }
.metric-label { color: #9aa5b1; font-size: 11px; text-transform: none; }
.metric-value { color: #e5e9f0; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
    .forums-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section-title.large { font-size: 18px; }
    .forum-card { padding: 12px 14px; }
    .forum-card-head { grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 8px; }
    .forum-card-icon { width: 30px; height: 30px; font-size: 16px; }
    .forum-card-title { font-size: 14px; }
    .forum-card-desc { font-size: 12px; min-height: 32px; }
    .forum-card-rows { gap: 8px; margin-top: 8px; }
    .forum-card-row { gap: 8px; }
    .metric { padding: 8px 10px; min-height: 48px; }
    .metric-label { font-size: 10px; }
    .metric-value { font-size: 12.5px; }
}
@media (max-width: 480px) {
    .featured-forums { margin-top: 12px; }
    .forum-card { padding: 10px 12px; }
}

/* Top Ad Banner */ 
.site-top-adband { background: transparent;   border-bottom: 1px solid rgba(30, 41, 59, 0.5);    padding: 0;}
.top-ad-inner { 
    max-width: 1400px;     
    width: 100%; 
    margin: 0 auto;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(2rem, 5vw, 4rem); 
    display: flex;   flex-direction: column;
    gap: 4px;    align-items: stretch;
    text-align: center;
}

.top-ad-media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.top-ad-media img,
.top-ad-media video,
.top-ad-media iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-top-adband .xad-slot {
    width: 100%;
    padding: 0;
}

.site-top-adband .xad-slot--placeholder {
    width: 100%;
    border-radius: 0;
}

.site-top-adband .xad-placeholder {
    max-width: var(--container);
    margin: 0 auto;
}

.site-top-adband .ad-slot-watermark {
    right: 18px;
    left: auto !important;
}
.site-top-adband--placeholder .top-ad-inner {
    padding: 4px 0;
}

.site-top-adband--placeholder .top-ad-media {
    min-height: 34px;
    padding: 0 var(--edge);
}

.site-top-adband--placeholder .xad-slot--placeholder {
    min-height: 34px;
}

.site-top-adband--placeholder .top-ad-media > * {
    width: 100%;
}

.site-top-adband--live .top-ad-media {
    min-height: unset;
    padding: 0;
}

/* Ad badge for header ad */
.top-ad-badge {
    position: absolute;
    bottom: 8px;
    background: rgba(15, 23, 42, 0.5);
    color: rgba(203, 213, 245, 0.7);
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 8px;
    pointer-events: none;
    display: inline-flex;
    width: 111px;
    right: 20px;
}

/* ============================================
   Ad Carousel Styles
   ============================================ */
.xda-ad-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.xda-carousel-slides {
    position: relative;
    width: 100%;
}

.xda-carousel-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.xda-carousel-slide.active {
    display: block;
    opacity: 1;
}

.xda-carousel-prev,
.xda-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 32px;
    line-height: 1;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.xda-carousel-prev:hover,
.xda-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.xda-carousel-prev:focus,
.xda-carousel-next:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

.xda-carousel-prev {
    left: 10px;
}

.xda-carousel-next {
    right: 10px;
}

.xda-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.xda-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.xda-carousel-dot:hover {
    background: rgba(148, 163, 184, 0.6);
    transform: scale(1.2);
}

.xda-carousel-dot.active {
    background: #4a9eff;
    transform: scale(1.3);
}

.xda-carousel-dot:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .xda-carousel-prev,
    .xda-carousel-next {
        font-size: 24px;
        padding: 6px 10px;
    }
    
    .xda-carousel-prev {
        left: 5px;
    }
    
    .xda-carousel-next {
        right: 5px;
    }
}

@media (max-width: 640px) {
    .top-ad-inner { padding: 6px var(--edge) 8px; }
    .top-ad-media { min-height: 80px; padding: 0 var(--edge); }
}

/* Homepage Ad Slots */
.ad-slot {
    max-width: 1400px;
    margin: clamp(1.5rem, 3vw, 2rem) auto;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 5vw, 4rem);
    background: transparent;
    border: none;
    border-top: 1px solid rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    border-radius: 0;
    position: relative;
}
.ad-home-top { margin-top: 0; }
.ad-home-middle { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.ad-home-bottom { margin-top: 1.5rem; margin-bottom: 2rem; }

.ad-slot img,
.ad-slot video,
.ad-slot iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.ad-slot .wp-video, .ad-slot .wp-video-shortcode,
.ad-slot .wp-video video {
    width: 100% !important;
    height: auto !important;
}
.ad-slot .wp-embed-aspect-16-9 .wp-block-embed__wrapper,
.ad-slot .wp-embed-aspect-4-3 .wp-block-embed__wrapper { height: auto; }

.ad-slot-header,
.ad-slot-label {
    display: none;
}

/* Trending Topics */
.trending-topics { max-width: var(--container); margin: var(--section-gap) auto; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); padding: 0 var(--edge); }
.trending-topics .section-title { padding: var(--row-padding-y); border-bottom: 1px solid #1f2933; margin: 0; }
.trending-list { list-style: none; margin: 0; padding: 0; }
.trending-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid #0f1720; }
.trending-item:first-child { border-top: 0; }
.trending-title { color: #e5e9f0; text-decoration: none; }
.trending-title:hover { color: #22c55e; }
.trending-meta { color: #94a3b8; font-size: 12px; }

/* Recent Discussions */
.recent-discussions { max-width: var(--container); margin: var(--section-gap) auto; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); padding: 0 var(--edge); }
.recent-discussions .section-title { padding: var(--row-padding-y); border-bottom: 1px solid #1f2933; margin: 0; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-top: 1px solid #0f1720; }
.recent-item:first-child { border-top: 0; }
.recent-title { color: #e5e9f0; text-decoration: none; font-weight: 500; }
@media (max-width: 768px) {
    .trending-item, .recent-item { padding: 12px 14px; }
    .trending-meta, .recent-meta { font-size: 11.5px; }
}
@media (max-width: 480px) {
    .trending-topics, .recent-discussions, .latest-polls { border-radius: 10px; }
}

/* Forums Archive List */
.bbpress .topic-list, .featured-forums .topic-list { 
    max-width: none; 
    margin: 0 0 var(--section-gap); 
    background: rgba(12,12,12,0.7);
    border: 1px solid rgba(255,255,255,0.06); 
    border-radius: 10px; 
    padding: 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.topic-header { 
    background: rgba(0,0,0,0.88); 
    color: #888; 
    padding: 12px 20px; 
    display: grid; 
    grid-template-columns: 1fr 80px 80px 160px; 
    gap: 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.06); 
    font-size: 11px; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    font-weight: bold;
}
.topic-item { 
    display: grid; 
    grid-template-columns: 1fr 80px 80px 160px; 
    gap: 20px; 
    padding: 16px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.06); 
    align-items: start; 
    min-height: auto; 
    background: transparent;
    transition: background 0.2s ease;
}
.topic-item:hover { background: rgba(255,255,255,0.03); }
.topic-item:last-child { border-bottom: none; }
.topic-item:last-child { border-bottom: none; }
.forum-info .topic-title { 
    font-weight: normal; 
    color: #fff; 
    text-decoration: none; 
    font-size: 14px; 
    line-height: 1.4;
}
.forum-info .topic-title:hover { color: #fff; }
.forum-description { color: #9aa5b1; font-size: 12px; margin-top: 4px; line-height: 1.45; }
.topic-stats { 
    color: #fff; 
    text-align: center; 
    font-weight: normal; 
    font-size: 13px;
}
.topic-meta { color: #f5d742; text-align: left; overflow: hidden; }
.topic-meta .trunc { color: #f5d742; text-decoration: none; font-size: 13px; }
.topic-meta .trunc:hover { text-decoration: none; color: #ffd84d; }
.topic-meta-sub { 
    color: #8b8b8b; 
    font-size: 11px; 
    display: block; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-top: 2px;
}

.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-radius: 12px;
    background: rgba(12, 17, 25, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.38);
    min-height: 70px;
    max-height: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.topic-list .forum-ad-slot {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: rgba(12, 12, 12, 0.65);
    margin: 0;
}

.topic-item.forum-ad-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-row.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 12, 0.65);
    position: relative;
    overflow: hidden;
}

.topic-list .forum-ad-slot:last-child,
.topic-item.forum-ad-slot:last-child {
    border-bottom: none;
}

.forum-ad-slot-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    display: block;
}

.forum-ad-content {
    position: relative;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
}

.forum-ad-label {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.6);
    pointer-events: none;
    z-index: 2;
}

.forum-ad-content > * {
    margin: 0 auto;
}

.forum-ad-content img,
.forum-ad-content video,
.forum-ad-content iframe {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.forum-ad-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    color: #cbd5f5;
    font-size: 14px;
    padding: 12px 18px;
    background: rgba(9, 14, 20, 0.7);
}

.forum-ad-label {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.6);
    pointer-events: none;
}

@media (max-width: 900px) {
    .topic-header { grid-template-columns: 1fr 80px 80px 1fr; }
    .topic-item { grid-template-columns: 1fr 80px 80px 1fr; }
}
.recent-title:hover { color: #22c55e; }
.recent-meta { color: #94a3b8; font-size: 12px; }

/* Community Stats */
.community-stats { max-width: var(--container); margin: var(--section-gap) auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 0 var(--edge); }
.stat-pill { background: #0e131a; border: 1px solid #1f2933; border-radius: 10px; padding: 16px; text-align: center; }
.stat-number { display: block; font-size: 24px; font-weight: 700; color: #e5e9f0; }
.stat-label { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }

@media (max-width: 600px) {
    .hero-title { font-size: 24px; }
    .hero-sub { font-size: 14px; }
    .forums-grid { grid-template-columns: 1fr; }
}

/* Latest Polls */
.latest-polls { max-width: var(--container); margin: var(--section-gap) auto; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); padding: 0 var(--edge); }
.latest-polls .section-title { padding: var(--row-padding-y); border-bottom: 1px solid #1f2933; margin: 0; }
.polls-list { list-style: none; margin: 0; padding: 0; }
.poll-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid #0f1720; }
.poll-item:first-child { border-top: 0; }
.poll-title { color: #e5e9f0; text-decoration: none; }
.poll-title:hover { color: #10b981; }
.poll-meta { color: #94a3b8; font-size: 12px; }

/* Child count badge & thread toggle */
.child-count-badge { background: rgba(16,185,129,0.15); color: #10b981; font-size: 11px; line-height: 1; padding: 4px 6px 3px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; position: relative; top: -1px; }
.thread-toggle { background: transparent; border: 0; color: #9aa7b5; font-size: 14px; font-weight: 600; padding: 2px 6px; cursor: pointer; border-radius: 6px; line-height: 1; }
.thread-toggle:hover { background: rgba(255,255,255,0.06); color: #d1d9e1; }
.thread-toggle:focus { outline: 2px solid #10b981; outline-offset: 2px; }

/* Lighter vertical guide line */
.bbp-replies-list > li > ul { border-left: 1px solid rgba(255,255,255,0.05); }

/* Depth-based scaling */
.bbp-replies-list li .reply-wrapper.depth-0 .post-avatar img { width: 48px; height: 48px; }
.bbp-replies-list li .reply-wrapper.depth-1 .post-avatar img { width: 42px; height: 42px; }
.bbp-replies-list li .reply-wrapper.depth-2 .post-avatar img { width: 38px; height: 38px; }
.bbp-replies-list li .reply-wrapper.depth-3 .post-avatar img { width: 34px; height: 34px; }
.bbp-replies-list li .reply-wrapper.depth-4 .post-avatar img { width: 30px; height: 30px; }
.bbp-replies-list li .reply-wrapper.depth-5 .post-avatar img { width: 28px; height: 28px; }
.bbp-replies-list li .reply-wrapper[class*="depth-"] .post-avatar { overflow: hidden; border-radius: 50%; }

.bbp-replies-list li .reply-wrapper.depth-1 .post-author-line { font-size: 13.5px; }
.bbp-replies-list li .reply-wrapper.depth-2 .post-author-line { font-size: 13px; }
.bbp-replies-list li .reply-wrapper.depth-3 .post-author-line { font-size: 12.5px; }
.bbp-replies-list li .reply-wrapper.depth-4 .post-author-line { font-size: 12px; }
.bbp-replies-list li .reply-wrapper.depth-5 .post-author-line { font-size: 11.5px; }

/* Slightly tighter padding for deeper levels */
.bbp-replies-list > li > ul > li > .reply-wrapper.depth-1 { padding-top: 0; }

/* When collapsed */
li.collapsed > ul { display: none !important; }
li.collapsed > .reply-wrapper .thread-toggle { background: rgba(255,255,255,0.04); }

/* Vote Bar Styles */
.vote-bar { display:flex; gap:10px; margin-top:8px; }
.vote-bar .vote-btn { background:rgba(255,255,255,0.06); border:0; color:#cbd5e1; padding:6px 10px; border-radius:6px; font-size:13px; font-weight:600; display:inline-flex; gap:6px; align-items:center; cursor:pointer; }
.vote-bar .vote-btn .icon { font-size:14px; }
.vote-bar .vote-btn.active { background:#10b981; color:#fff; }
.vote-bar .vote-btn:hover { background:rgba(255,255,255,0.1); }
.vote-bar.voting .vote-btn { opacity:.6; pointer-events:none; }
.post-votes { margin-top:6px; }
/* Report Modal Styling */
.report-modal { position:fixed; inset:0; z-index:9999; }
.report-modal .report-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); }
.report-modal .report-modal-inner { position:relative; max-width:480px; margin:8vh auto; background:#0f1217; border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:24px 26px 22px; box-shadow:0 10px 40px rgba(0,0,0,0.6); color:#e2e8f0; }
.report-modal .report-title { margin:0 0 14px; font-size:18px; font-weight:600; }
.report-modal .report-close { position:absolute; top:10px; right:10px; background:transparent; border:0; color:#94a3b8; font-size:20px; cursor:pointer; }
.report-modal .report-close:hover { color:#fff; }
.report-modal .report-field { display:block; font-size:13px; font-weight:500; margin:0 0 14px; }
.report-modal select, .report-modal textarea { width:100%; background:#141a22; border:1px solid rgba(255,255,255,0.15); color:#e2e8f0; border-radius:8px; padding:8px 10px; font-size:13px; }
.report-modal textarea { resize:vertical; }
.report-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.report-submit { background:#ef4444; color:#fff; border:0; padding:10px 16px; font-weight:600; border-radius:8px; cursor:pointer; }
.report-submit:hover { background:#dc2626; }
.report-cancel { background:rgba(255,255,255,0.08); color:#e2e8f0; border:0; padding:10px 16px; font-weight:500; border-radius:8px; cursor:pointer; }
.report-cancel:hover { background:rgba(255,255,255,0.14); }
.report-status { margin-top:10px; font-size:12px; color:#93c5fd; min-height:16px; }
body.report-open { overflow:hidden; }
.report-link { color:#f87171; }
.report-link:hover { color:#fecaca; }

/* ========================================
   MODERN FRONTPAGE REDESIGN STYLES
   ======================================== */

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #000;
    background-size: cover;
    background-position: center;
    width: calc(100% - calc(var(--edge) * 2));
    margin: var(--edge) auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 50%, rgba(16,185,129,0.08) 100%);
    z-index: 1;
}

.hero-modern-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px var(--edge);
}

.hero-modern-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero-modern-headline {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.1;
    margin: 0 0 20px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-modern-sub {
    font-size: 18px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 32px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-modern-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-modern-primary,
.btn-modern-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16,185,129,0.5);
}

.btn-modern-outline {
    background: rgba(255,255,255,0.05);
    color: #e5e9f0;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-modern-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.hero-modern-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Features Wrap */
.features-section {
    padding: clamp(2.5rem, 5vw, 4rem) var(--edge) 0;
    position: relative;
}

.features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.08), transparent 45%);
    pointer-events: none;
}

/* Ops Section */
.ops-section {
    padding: clamp(3rem, 6vw, 4.5rem) var(--edge);
}

.ops-shell {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
    box-shadow: none;
}

.ops-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2.75rem;
}

.ops-header-copy {
    flex: 2;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #f8fafc;
}

.ops-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.ops-header-copy h2 {
    font-size: clamp(2.3rem, 4vw, 3rem);
    margin: 0;
    text-transform: none;
    letter-spacing: -0.015em;
}

.ops-header-copy p {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.7;
}

.ops-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ops-assurances span {
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

.ops-scan-board {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    background: transparent;
    box-shadow: none;
}

.scan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.scan-label {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.scan-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.scan-meta {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.85);
}

.scan-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #34d399;
}

.ops-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.ops-card {
    background: transparent;
    border: none;
    border-left: 3px solid rgba(16, 185, 129, 0.5);
    border-radius: 0;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: auto;
}

.ops-card h3 {
    margin: 0;
    font-size: 1.35rem;
    text-transform: none;
}

.ops-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.65;
    flex: 1;
}

.ops-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.ops-icon-green { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.ops-icon-blue { color: #0ea5e9; background: rgba(14, 165, 233, 0.1); }
.ops-icon-purple { color: #a855f7; background: rgba(168, 85, 247, 0.12); }

.ops-footnote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: none;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    color: rgba(148, 163, 184, 0.85);
}

.ops-foot-value {
    color: #34d399;
    font-weight: 600;
}

/* Why Join Section */
.why-join-section {
    padding: clamp(3rem, 6vw, 4.5rem) var(--edge);
}


.why-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.why-shell-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    background: #020403;
    border-radius: 24px;
    position: relative;
    text-align: center;
}

.why-header {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.why-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 1.5rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.why-header .why-lead {
    font-size: 1.25rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: left;
}

.why-feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.why-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.why-feature h3 {
    color: #10b981;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.why-feature p {
    color: rgba(203, 213, 225, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.why-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.why-footer p {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.why-highlight {
    color: #34d399;
    font-weight: 700;
}

.why-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #10b981;
    color: #020403;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.why-cta-btn:hover {
    background: #34d399;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Command Feed / Live Thread Monitor */
.command-feed {
    padding: clamp(3rem, 6vw, 5rem) var(--edge);
    max-width: 1400px;
    margin: 0 auto;
}

.command-shell {
    background: #020403;
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.command-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.command-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.command-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f8fafc;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.command-subtitle {
    color: rgba(148, 163, 184, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0;
}

.command-cta {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.command-cta:hover {
    color: #34d399;
    border-color: #34d399;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.command-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.command-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.command-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.command-tag {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}

.command-time {
    color: rgba(148, 163, 184, 0.6);
}

.command-topic-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.command-topic-title a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.command-topic-title a:hover {
    color: #10b981;
}

.command-summary {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.command-summary strong {
    color: #cbd5e1;
}

.command-card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.command-meta {
    display: flex;
    gap: 0.75rem;
}

.meta-chip {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.command-link {
    font-size: 0.85rem;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

.command-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ops-header { flex-direction: column; }
    .ops-scan-board { width: 100%; }
    .ops-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    
    .why-terminal-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .ops-card-grid { grid-template-columns: 1fr; }
    .ops-shell { padding: 2rem; }
    .ops-assurances { flex-direction: column; }
    
    .why-shell {
        padding: 40px 28px;
    }
    
    .why-terminal-feed { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ops-shell { padding: 1.75rem; }
    .ops-scan-board { padding: 1.1rem; }
    .ops-card { padding: 1.25rem; }
    
    .why-shell {
        padding: 32px 20px;
    }
}

/* ========================================
   MODERN FORUM CATEGORIES REDESIGN
   ======================================== */

.forum-categories-modern {
    width: 100%;
    max-width: 1400px;
    margin: clamp(3rem, 5vw, 4rem) auto;
    padding: 0 clamp(2rem, 5vw, 4rem);
    position: relative;
}

.forum-categories-modern::before {
    content: none;
}

.forum-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    border-bottom: none;
    padding-bottom: 0;
}

.forum-scan-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
    margin: 0 0 6px;
}

.forum-categories-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.forum-categories-subtitle {
    margin: 10px 0 0;
    color: rgba(226, 232, 240, 0.75);
    max-width: 640px;
    line-height: 1.6;
}

.forum-all-link {
    padding: 0;
    border-radius: 0;
    border: none;
    text-decoration: none;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.forum-all-link:hover {
    border-color: transparent;
    color: #6ee7b7;
    transform: none;
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2vw, 1.8rem);
}

.category-card-modern {
    border-radius: 0;
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    background: transparent;
    border: none;
    border-left: 3px solid rgba(16, 185, 129, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: auto;
    box-shadow: none;
    transition: border-color 0.25s ease;
}

.category-card-modern:hover {
    transform: none;
    border-color: rgba(16, 185, 129, 0.8);
    background: transparent;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35), 0 0 50px rgba(16, 185, 129, 0.15);
}

.category-card-modern::after {
    content: none;
}

.category-card-top,
.category-live,
.live-dot,
.category-card-heading,
.category-card-icon {
    display: none;
}

.category-pill {
    display: none;
}

.category-card-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.category-card-title a {
    color: #f8fafc;
    text-decoration: none;
}

.category-card-description {
    margin: 0;
    color: rgba(203, 213, 225, 0.9);
    line-height: 1.55;
    font-size: 0.95rem;
}

.category-card-arrow,
.category-card-stats,
.category-stat,
.category-stat svg,
.stat-value {
    display: none;
}

@media (max-width: 900px) {
    .forum-categories-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-all-link {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .categories-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* Combined Auth Button Dropdown */
.auth-dropdown-wrapper {
    position: relative;
}

.btn-auth-combined {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-auth-combined:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.1));
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-auth-combined svg {
    transition: transform 0.3s ease;
}

.auth-dropdown-wrapper.open .btn-auth-combined svg:last-child {
    transform: rotate(180deg);
}

.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.auth-dropdown-wrapper.open .auth-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-dropdown-item:last-child {
    border-bottom: none;
}

.auth-dropdown-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.auth-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.auth-dropdown-item:hover svg {
    opacity: 1;
}

.auth-dropdown-signup {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.1));
    color: #10b981;
    font-weight: 600;
}

.auth-dropdown-signup:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(20, 184, 166, 0.15));
    color: #34d399;
}

@media (max-width: 768px) {
    .btn-auth-combined {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-auth-combined span {
        display: none;
    }
    
    .btn-auth-combined svg:last-child {
        margin-left: 0 !important;
    }
}


/* Subforum cards inside single forum categories */
.forum-item-clean {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) auto minmax(220px, 1fr);
    gap: 1.15rem;
    align-items: center;
    border: 1px solid rgba(123, 245, 138, 0.18);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(150deg, rgba(6, 9, 14, 0.96), rgba(2, 4, 6, 0.92));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.forum-item-clean:hover {
    border-color: rgba(160, 255, 182, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(123, 245, 138, 0.18);
}

.forum-icon-clean {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, rgba(123, 245, 138, 0.35), rgba(7, 20, 11, 0.95));
    display: grid;
    place-items: center;
    color: #7bf58a;
    box-shadow: inset 0 0 0 1px rgba(123, 245, 138, 0.2);
}

.forum-main-clean {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.forum-title-clean {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.forum-title-clean a {
    color: #e9ecef;
    text-decoration: none;
}

.forum-title-clean a:hover {
    color: #a0ffb6;
}

.forum-desc-clean {
    margin: 0;
    color: rgba(214, 220, 229, 0.75);
}

.forum-subforum-list {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(148, 196, 160, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-stats-clean {
    display: flex;
    gap: 1rem;
}

.stat-item-clean {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 60px;
}

.stat-item-clean .stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5fff7;
}

.stat-item-clean .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(160, 255, 182, 0.75);
}

.forum-activity-clean {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.activity-topic {
    color: #e9ecef;
    font-weight: 600;
}

.activity-meta {
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.8);
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.activity-author {
    color: #7bf58a;
}

.activity-time {
    color: rgba(148, 163, 184, 0.85);
}

.activity-empty {
    color: rgba(148, 163, 184, 0.7);
    font-style: italic;
}

@media (max-width: 1100px) {
    .forum-item-clean {
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-areas:
            "icon main"
            "stats stats"
            "activity activity";
        gap: 0.75rem 1rem;
    }

    .forum-icon-clean { grid-area: icon; }
    .forum-main-clean { grid-area: main; }
    .forum-stats-clean { grid-area: stats; border-top: 1px solid rgba(148, 163, 184, 0.12); padding-top: 0.75rem; margin-top: 0.5rem; }
    .forum-activity-clean { grid-area: activity; border-left: 0; padding-left: 0; border-top: 1px solid rgba(148, 163, 184, 0.12); margin-top: 0.35rem; padding-top: 0.75rem; }
}

@media (max-width: 640px) {
    .forums-main {
        padding: 0 0.5rem;
    }

    .forums-header-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }

    .forums-header-actions .section-title {
        font-size: 1.5rem;
    }

    .btn-new-topic {
        width: 100%;
        justify-content: center;
    }

    .forum-item-clean {
        padding: 1rem;
        border-radius: 14px;
    }

    .forum-stats-clean {
        flex-wrap: wrap;
        row-gap: 0.65rem;
    }

    .stat-item-clean .stat-number {
        font-size: 1rem;
    }

    .stat-item-clean .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
    }
}


/* Legacy styles - keeping for compatibility */
.forum-list-modern {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 var(--edge);
}

.forum-card-modern-item {
    background: rgba(17, 24, 39, 0.6);
}

.forum-card-icon-mod {
    color: #10b981;
    flex-shrink: 0;
}

.forum-card-arrow-mod {
    color: #64748b;
    transition: all 0.3s ease;
}

.forum-card-modern-item:hover .forum-card-arrow-mod {
    color: #10b981;
    transform: translateX(4px);
}

.forum-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.forum-empty-state svg {
    color: #64748b;
    margin-bottom: 24px;
}

.forum-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #e5e9f0;
    margin: 0 0 12px;
}

.forum-empty-state p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

/* ========================================
   MODERN TOPICS LISTING REDESIGN
   ======================================== */

.topics-list-modern {
    margin-top: 32px;
}

.topics-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.topic-card-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.topic-card-modern:hover {
    border-color: rgba(16,185,129,0.4);
    box-shadow: 0 4px 20px rgba(16,185,129,0.1);
    transform: translateY(-2px);
}

.topic-card-main {
    margin-bottom: 16px;
}

.topic-card-header-mod {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sticky-badge {
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    color: #fbbf24;
}

.closed-badge {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.topic-card-title-mod {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.topic-card-title-mod a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-card-title-mod a:hover {
    color: #34d399;
}

.topic-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.topic-author-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(16,185,129,0.3);
}

.topic-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topic-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #e5e9f0;
}

.topic-author-name a {
    color: #e5e9f0;
    text-decoration: none;
}

.topic-author-name a:hover {
    color: #10b981;
}

.topic-post-date {
    font-size: 12px;
    color: #64748b;
}

.topic-tags-mod {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.topic-tags-mod svg {
    color: #10b981;
    flex-shrink: 0;
}

.topic-tags-mod a {
    color: #64748b;
    text-decoration: none;
}

.topic-tags-mod a:hover {
    color: #10b981;
}

.topic-card-stats-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.topic-stat-item-mod {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-stat-item-mod svg {
    color: #10b981;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #e5e9f0;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-last-activity-mod {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
}

.topic-last-activity-mod svg {
    color: #10b981;
    flex-shrink: 0;
}

.topics-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-top: 32px;
}

.topics-empty-state svg {
    color: #64748b;
    margin-bottom: 24px;
}

.topics-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #e5e9f0;
    margin: 0 0 12px;
}

.topics-empty-state p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.pagination-modern {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination-modern .page-numbers {
    padding: 10px 16px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-modern .page-numbers:hover,
.pagination-modern .page-numbers.current {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.5);
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bbp-replies-list .post-body img{
        max-width:100%;
    }
    .forum-list-title {
        font-size: 32px;
    }
    
    .forum-list-subtitle {
        font-size: 16px;
    }
    
    .forum-card-modern-item {
        grid-template-columns: 50px 1fr auto;
        gap: 16px;
        padding: 20px;
    }
    
    .forum-card-icon-mod {
        width: 50px;
        height: 50px;
    }
    
    .forum-card-icon-mod svg {
        width: 24px;
        height: 24px;
    }
    
    .forum-card-title-mod {
        font-size: 18px;
    }
    
    .forum-card-desc-mod {
        font-size: 14px;
    }
    
    .forum-card-stats-row {
        gap: 16px;
    }
    
    .topic-card-title-mod {
        font-size: 18px;
    }
    
    .topic-card-meta-row {
        gap: 12px;
    }
}

/* ========================================
   HEADER ICON BUTTONS (SEARCH & ACCOUNT)
   ======================================== */

/* Pill Container for Search & Account Icons */
.header-icons-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(4, 8, 12, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 3000;
    flex-wrap: nowrap;
    margin-left: auto;
}

.header-icons-pill .header-search-wrapper {
    padding-right: 0.4rem;
    margin-right: 0.35rem;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.header-icons-pill .auth-buttons {
    gap: 0.4rem;
    order: 0;
}

.header-icons-pill .user-menu-toggle {
    border: none;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    justify-content: center;
}

.header-icons-pill .user-menu-toggle .user-name {
    display: none;
}

.header-icons-pill .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: #10b981;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-icon-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
}

.header-search-wrapper,
.auth-dropdown-wrapper {
    position: relative;
}

.header-search-wrapper.open .header-icon-btn,
.auth-dropdown-wrapper.open .header-icon-btn {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
}

.header-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 12px;
}

.header-search-wrapper.open .header-search-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-search-dropdown form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-search-dropdown input[type="text"],
.header-search-dropdown input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #0b1220;
    color: #e5e7eb;
    outline: none;
    font-size: 14px;
}

.header-search-dropdown input:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-search-go {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-search-go:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

@media (max-width: 768px) {
    .header-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-search-dropdown {
        min-width: 260px;
    }
}

/* ========================================
   CLEAN TOPICS LIST (SINGLE FORUM)
   ======================================== */

.topics-list-clean {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 24px 0;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-item-clean {
    background: rgba(17, 24, 39, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    gap: 20px;
    align-items: center;
    transition: all 0.2s ease;
}

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

.topic-item-clean:hover {
    background: rgba(17, 24, 39, 0.9);
    border-left: 3px solid #10b981;
    padding-left: 21px;
}

.topic-avatar-clean {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    flex-shrink: 0;
}

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

.topic-main-clean {
    min-width: 0;
}

.topic-title-clean {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topic-title-clean a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topic-title-clean a:hover {
    color: #10b981;
}

.topic-badge-sticky,
.topic-badge-closed {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-badge-sticky {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.topic-badge-closed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.topic-meta-clean {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.topic-author {
    color: #9ca3af;
}

.topic-date {
    color: #6b7280;
}

.topic-author::before {
    content: '';
}

.topic-date::before {
    content: '•';
    margin-right: 12px;
    color: #4b5563;
}

.topic-stats-clean {
    min-width: 80px;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-activity-clean {
    min-width: 180px;
    max-width: 180px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.topic-activity-clean .activity-time {
    color: #10b981;
    font-weight: 500;
    margin-bottom: 4px;
}

.topic-activity-clean .activity-author {
    color: #9ca3af;
    font-size: 12px;
}

.topic-activity-clean .activity-empty {
    color: #6b7280;
    font-style: italic;
}

@media (max-width: 1200px) {
    .topic-item-clean {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }
    
    .topic-stats-clean,
    .topic-activity-clean {
        grid-column: 2;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px 0 0 0;
        margin-top: 8px;
    }
    
    .topic-activity-clean {
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .topic-item-clean {
        padding: 16px 18px;
    }
    
    .topic-avatar-clean {
        width: 40px;
        height: 40px;
    }
    
    .topic-title-clean {
        font-size: 15px;
    }
    
    .topic-meta-clean {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .topic-date::before {
        content: '';
        margin-right: 0;
    }
}

/* Empty state for topics */
.topic-empty-state {
    padding: 60px 24px;
    text-align: center;
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
}

.topic-empty-state p {
    color: #9ca3af;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .forum-list-header {
        margin-bottom: 32px;
    }
    
    .forum-list-title {
        font-size: 26px;
    }
    
    .forum-list-subtitle {
        font-size: 15px;
    }
    
    .forum-card-modern-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .forum-card-icon-wrapper {
        justify-content: flex-start;
    }
    
    .forum-card-arrow-mod {
        display: none;
    }
    
    .forum-card-modern-item:hover {
        transform: translateY(-4px);
    }
    
    .topic-card-modern {
        padding: 16px;
    }
    
    .topic-card-title-mod {
        font-size: 16px;
    }
    
    .topic-card-stats-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================
   MOBILE APP LAYOUT ENHANCEMENTS
   ======================================== */
@media (max-width: 640px) {
    :root {
        --edge: clamp(1rem, 6vw, 1.4rem);
        --radius: 22px;
    }

    body {
        background: radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.16), transparent 55%),
            radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.08), transparent 45%),
            #01050e;
        padding-bottom: 3rem;
    }

    .container,
    .container-fluid {
        padding-left: var(--edge);
        padding-right: var(--edge);
    }

    #page,
    .site-main {
        background: transparent;
    }

    .site-header {
        margin: 0.75rem var(--edge) 0;
        border-radius: 28px;
        border: 1px solid rgba(16, 185, 129, 0.18);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    }

    .header-shell {
        position: relative;
        padding: 1rem 1.1rem;
        gap: 0.35rem;
    }

    .header-primary-row {
        width: 100%;
        margin: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .header-secondary-row {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: auto;
        padding: 0;
        border-top: none;
    }

    .nav-cluster {
        width: auto;
    }

    .brand-cluster {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        min-width: 0;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .site-branding .custom-logo,
    .site-branding img {
        max-height: 72px;
        width: auto;
    }

    .mobile-menu-toggle {
        margin-left: auto !important;
    }

    .mobile-menu-toggle .hamburger-line {
        background: #22c55e !important;
    }

    .brand-meta,
    .header-actions,
    .header-quick-links,
    .header-notification-wrapper,
    .header-icons-pill {
        display: none !important;
    }

    .header-search-dropdown {
        inset: auto var(--edge) 1rem var(--edge);
        min-width: unset;
        width: auto;
    }

    .hero-shell {
        margin-top: 1.15rem;
        padding: 1.5rem 1.25rem 1.65rem;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(0, 4, 9, 0.92));
        gap: 1.25rem;
    }

    .forum-categories-modern,
    .forum-categories-mobile-first {
        margin-top: 1rem;
    }

    .hero-meta-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-meta-pill {
        justify-content: space-between;
        font-size: 0.65rem;
    }

    .hero-directives {
        grid-template-columns: 1fr;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .hero-telemetry-card {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .telemetry-grid {
        grid-template-columns: 1fr;
    }

    .hero-activity-bar,
    .hero-briefing {
        flex-direction: column;
    }

    .command-feed {
        padding: 2rem var(--edge) 2.5rem;
    }

    .command-shell {
        border-radius: 26px;
        padding: 1.5rem;
    }

    .command-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }

    .command-card {
        padding: 1.25rem;
    }

    .command-card-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .command-meta {
        width: 100%;
    }

    .forums-list-clean {
        margin-top: 1.25rem;
        gap: 1.1rem;
        padding: 0 1rem;
    }

    .forum-item-clean {
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-areas:
            "icon main"
            "stats stats"
            "activity activity";
        gap: 0.75rem 1rem;
        padding: 1.25rem;
    }

    .forum-icon-clean {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        grid-area: icon;
    }

    .forum-main-clean {
        grid-area: main;
    }

    .forum-title-clean {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .forum-desc-clean {
        font-size: 0.85rem;
        line-height: 1.4;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .forum-stats-clean {
        grid-area: stats;
        flex-wrap: wrap;
        row-gap: 0.5rem;
        gap: 1.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }

    .forum-activity-clean {
        grid-area: activity;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
        margin-top: 0;
        padding-top: 0.75rem;
    }

    .topic-sidebar .sidebar-card {
        border-radius: 18px;
        margin-bottom: 1rem;
    }
}
