/* ==========================================================================
   Massforge design system
   Dark steel base · molten amber accent · Archivo display / Inter body
   Loaded after style.css; the legacy palette in style.css is mapped onto
   these tokens, so changing a token here re-skins the whole site.
   ========================================================================== */

:root {
    --mf-bg: #F6F7F9;
    --mf-surface: #FFFFFF;
    --mf-surface-2: #F0F2F5;
    --mf-surface-3: #E5E8ED;
    --mf-line: #D4D9E1;
    --mf-line-soft: #E3E6EB;
    --mf-text: #1F2937;
    --mf-text-2: #4B5563;
    --mf-muted: #6B7280;
    --mf-accent: #FFB21E;
    --mf-accent-2: #FF6A13;
    --mf-accent-ink: #FFFFFF;
    --mf-accent-soft: rgba(255, 178, 30, 0.12);
    --mf-success: #3DDC97;
    --mf-grad: linear-gradient(135deg, #FFC94A 0%, #FFB21E 40%, #FF6A13 100%);
    --mf-display: 'Archivo', 'Inter', system-ui, sans-serif;
    --mf-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mf-mono: 'JetBrains Mono', ui-monospace, monospace;
    --mf-radius: 14px;
    --mf-radius-sm: 10px;
    --mf-radius-lg: 22px;
    --mf-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 20px 40px -24px rgba(31, 41, 55, 0.22);
    --mf-wrap: 1440px;
    --mf-header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body.xda-theme-nth {
    background: var(--mf-bg) !important;
    color: var(--mf-text) !important;
    font-family: var(--mf-body) !important;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
}

body.xda-theme-nth::after { content: none !important; display: none !important; }

body.xda-theme-nth #page,
body.xda-theme-nth .site,
body.xda-theme-nth .site-main,
body.xda-theme-nth #primary {
    background: var(--mf-bg) !important;
    color: var(--mf-text);
}

body.xda-theme-nth ::selection { background: var(--mf-accent); color: var(--mf-accent-ink); }

body.xda-theme-nth h1,
body.xda-theme-nth h2,
body.xda-theme-nth h3,
body.xda-theme-nth h4 {
    font-family: var(--mf-display);
    font-style: normal;
    letter-spacing: -0.01em;
    color: var(--mf-text);
}

body.xda-theme-nth em { font-style: normal; }

body.xda-theme-nth a { transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease; }

body.xda-theme-nth :focus-visible {
    outline: 2px solid var(--mf-accent);
    outline-offset: 2px;
}

body.xda-theme-nth input[type="text"],
body.xda-theme-nth input[type="email"],
body.xda-theme-nth input[type="password"],
body.xda-theme-nth input[type="search"],
body.xda-theme-nth input[type="url"],
body.xda-theme-nth select,
body.xda-theme-nth textarea {
    background: var(--mf-surface-2) !important;
    border: 1px solid var(--mf-line) !important;
    color: var(--mf-text) !important;
    border-radius: var(--mf-radius-sm) !important;
    font-family: var(--mf-body) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.xda-theme-nth input:focus,
body.xda-theme-nth select:focus,
body.xda-theme-nth textarea:focus {
    border-color: var(--mf-accent) !important;
    box-shadow: 0 0 0 3px var(--mf-accent-soft) !important;
    outline: none !important;
}

body.xda-theme-nth ::placeholder { color: var(--mf-muted) !important; opacity: 1; }

.mf-wrap {
    width: 100%;
    max-width: var(--mf-wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.mf-btn,
body.xda-theme-nth .nth-btn-join,
body.xda-theme-nth .nth-cta-primary,
body.xda-theme-nth .cta-primary,
body.xda-theme-nth .nth-utility-button,
body.xda-theme-nth #bbpress-forums .button.submit,
body.xda-theme-nth #bbpress-forums button[type="submit"],
body.xda-theme-nth .nth-utility-form button[type="submit"],
body.xda-theme-nth .nth-utility-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px !important;
    font-family: var(--mf-body) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    cursor: pointer;
    white-space: nowrap;
}

.mf-btn-primary,
body.xda-theme-nth .nth-btn-join,
body.xda-theme-nth .nth-cta-primary,
body.xda-theme-nth .cta-primary,
body.xda-theme-nth .nth-utility-button,
body.xda-theme-nth #bbpress-forums .button.submit,
body.xda-theme-nth #bbpress-forums button[type="submit"],
body.xda-theme-nth .nth-utility-form button[type="submit"],
body.xda-theme-nth .nth-utility-form input[type="submit"] {
    background: var(--mf-accent) !important;
    color: var(--mf-accent-ink) !important;
    box-shadow: 0 10px 30px -12px rgba(255, 150, 20, 0.7);
}

.mf-btn-primary:hover,
body.xda-theme-nth .nth-btn-join:hover,
body.xda-theme-nth .nth-cta-primary:hover,
body.xda-theme-nth .cta-primary:hover,
body.xda-theme-nth .nth-utility-button:hover,
body.xda-theme-nth #bbpress-forums .button.submit:hover,
body.xda-theme-nth #bbpress-forums button[type="submit"]:hover {
    background: #FFC24A !important;
    color: var(--mf-accent-ink) !important;
    transform: translateY(-1px);
}

.mf-btn-ghost,
body.xda-theme-nth .nth-cta-secondary,
body.xda-theme-nth .nth-utility-button-ghost {
    background: transparent !important;
    color: var(--mf-text) !important;
    border: 1px solid var(--mf-line) !important;
    box-shadow: none !important;
}

.mf-btn-ghost:hover,
body.xda-theme-nth .nth-cta-secondary:hover,
body.xda-theme-nth .nth-utility-button-ghost:hover {
    border-color: var(--mf-text-2) !important;
    background: var(--mf-surface-2) !important;
    color: var(--mf-text) !important;
}

.mf-btn-dark { background: var(--mf-bg); color: var(--mf-text) !important; }
.mf-btn-dark:hover { background: #000; color: var(--mf-accent) !important; }

.mf-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px !important; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
body.xda-theme-nth .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--mf-line-soft);
    box-shadow: none !important;
}

body.admin-bar.xda-theme-nth .site-header { top: 32px; margin-top: 0 !important; }
@media screen and (max-width: 782px) { body.admin-bar.xda-theme-nth .site-header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar.xda-theme-nth .site-header { top: 0; } }

.mf-header-inner {
    max-width: var(--mf-wrap);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--mf-header-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

.mf-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--mf-text) !important;
    flex-shrink: 0;
}

.mf-logo-mark { display: block; flex-shrink: 0; }

.mf-logo-img {
    display: block;
    /* Keep the 1100x372 wordmark at its native 2.96:1 ratio. */
    width: 100px;
    height: 34px;
    max-width: none;
    aspect-ratio: 1100 / 372;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
}

.mf-footer-brand .mf-logo-img { width: 89px; height: 30px; }

.mf-logo-word {
    font-family: var(--mf-display);
    font-weight: 900;
    font-stretch: 112%;
    font-size: 21px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.mf-logo-word span { color: var(--mf-accent); }

.mf-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mf-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--mf-text-2) !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
}

.mf-nav a:hover { color: var(--mf-text) !important; background: var(--mf-surface-2); }
.mf-nav a.is-active { color: var(--mf-text) !important; background: var(--mf-surface-2); }
.mf-nav-mobile-auth { display: none; }

.mf-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mf-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.mf-search svg {
    position: absolute;
    left: 14px;
    color: var(--mf-muted);
    pointer-events: none;
}

body.xda-theme-nth .mf-search input[type="search"] {
    width: 230px;
    height: 40px;
    padding: 0 14px 0 38px !important;
    border-radius: 999px !important;
    background: var(--mf-surface) !important;
    font-size: 14px !important;
    transition: width .2s ease, border-color .15s ease;
}

body.xda-theme-nth .mf-search input[type="search"]:focus { width: 280px; }

.mf-header-login {
    color: var(--mf-text) !important;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none !important;
    padding: 8px 10px;
}

.mf-header-login:hover { color: var(--mf-accent) !important; }

.mf-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--mf-line);
    color: var(--mf-text) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.mf-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mf-user:hover { border-color: var(--mf-text-2); }

.mf-burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--mf-line);
    background: var(--mf-surface);
    padding: 0;
    position: relative;
    cursor: pointer;
}

.mf-burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--mf-text);
    transition: transform .2s ease, top .2s ease;
}

.mf-burger span:first-child { top: 16px; }
.mf-burger span:last-child { top: 24px; }
.mf-burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.mf-burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
    html body.xda-theme-nth .site-header {
        margin: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--mf-line-soft) !important;
        box-shadow: none !important;
    }
}

/* Header ad band (renders right under the header) */
body.xda-theme-nth .site-top-adband,
body.xda-theme-nth .site-top-adband .top-ad-inner,
body.xda-theme-nth .site-top-adband .top-ad-media {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.xda-theme-nth .site-top-adband { padding: 20px 24px 0 !important; position: relative; z-index: 3; }
body.xda-theme-nth .site-top-adband .top-ad-inner { max-width: var(--mf-wrap); margin: 0 auto; padding: 0 !important; }
body.xda-theme-nth .site-top-adband img { border-radius: var(--mf-radius); display: block; }

body.xda-theme-nth .top-ad-badge {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--mf-text-2) !important;
    border-radius: 999px !important;
    font-family: var(--mf-body) !important;
    letter-spacing: 0.04em !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
body.xda-theme-nth .site-footer {
    background: var(--mf-bg) !important;
    border-top: 1px solid var(--mf-line-soft) !important;
    margin-top: 80px;
    padding: 0 !important;
}

.mf-footer {
    max-width: var(--mf-wrap);
    margin: 0 auto;
    padding: 56px 24px 28px;
}

.mf-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--mf-line-soft);
}

.mf-footer-brand { max-width: 380px; }
.mf-footer-brand p { margin: 16px 0 0; color: var(--mf-muted); font-size: 14px; line-height: 1.65; }

.mf-footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.mf-footer-cols h4 {
    margin: 0 0 14px;
    font-family: var(--mf-body) !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-muted) !important;
}

.mf-footer-cols a {
    display: block;
    margin-bottom: 10px;
    color: var(--mf-text-2) !important;
    font-size: 14.5px;
    text-decoration: none !important;
}

.mf-footer-cols a:hover { color: var(--mf-accent) !important; }

.mf-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    color: var(--mf-muted);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */
.mf-hero {
    position: relative;
    overflow: visible;
    /* Let the photo run up behind the top ad band while still clipping the sides. */
    clip-path: inset(-260px 0 0 0);
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--mf-line-soft);
    background:
        linear-gradient(var(--mf-bg), transparent 30%, transparent 70%, var(--mf-bg)),
        repeating-linear-gradient(90deg, rgba(31,41,55,0.035) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(0deg, rgba(31,41,55,0.035) 0 1px, transparent 1px 88px),
        var(--mf-bg);
}

.mf-hero::before {
    content: "";
    position: absolute;
    inset: -260px 0 0 0;
    z-index: 0;
    background-image:
        linear-gradient(100deg, var(--mf-bg) 0%, var(--mf-bg) 36%, rgba(246, 247, 249, 0.82) 50%, rgba(246, 247, 249, 0.2) 72%, rgba(246, 247, 249, 0.05) 100%),
        linear-gradient(0deg, var(--mf-bg) 0%, rgba(246, 247, 249, 0) 24%, rgba(246, 247, 249, 0) 80%, rgba(246, 247, 249, 0.6) 100%),
        url("../images/hero-team.jpg");
    background-repeat: no-repeat;
    background-size: cover, cover, cover;
    background-position: center, center, center 30%;
    opacity: 1;
    pointer-events: none;
}

.mf-hero-glow {
    position: absolute;
    z-index: 1;
    width: 820px;
    height: 820px;
    right: -220px;
    top: -320px;
    background: radial-gradient(closest-side, rgba(255, 140, 20, 0.14), rgba(255, 106, 19, 0.04) 55%, transparent 75%);
    pointer-events: none;
}

.mf-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.mf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--mf-line);
    border-radius: 999px;
    background: var(--mf-surface);
    color: var(--mf-text-2);
    box-shadow: 0 6px 16px -10px rgba(31, 41, 55, 0.25);
    font-size: 13px;
    font-weight: 600;
}

.mf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mf-accent);
    box-shadow: 0 0 0 4px var(--mf-accent-soft);
    flex-shrink: 0;
}

.mf-hero-title {
    margin: 24px 0 22px !important;
    font-family: var(--mf-display) !important;
    font-weight: 900 !important;
    font-stretch: 110%;
    font-size: clamp(44px, 6.4vw, 88px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.035em !important;
    text-transform: none;
    color: var(--mf-text) !important;
}

.mf-hero-title span {
    background: var(--mf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mf-hero-desc {
    max-width: 560px;
    margin: 0 0 32px;
    color: var(--mf-text-2);
    font-size: 18px;
    line-height: 1.6;
}

.mf-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.mf-hero-cta .mf-btn { min-height: 52px; padding: 0 26px; font-size: 16px !important; }

.mf-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    color: var(--mf-muted);
    font-size: 14px;
}

.mf-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.mf-hero-points li::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mf-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB21E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.mf-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius-lg);
    padding: 22px;
    box-shadow: 0 30px 60px -30px rgba(31, 41, 55, 0.35);
}

.mf-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-muted);
}

.mf-live { display: inline-flex; align-items: center; gap: 8px; color: var(--mf-success); }
.mf-live .mf-dot { background: var(--mf-success); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.15); animation: mf-pulse 2s ease-in-out infinite; }

@keyframes mf-pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }

.mf-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mf-panel-stats > div {
    padding: 16px;
    border-radius: var(--mf-radius);
    background: var(--mf-surface-2);
    border: 1px solid var(--mf-line-soft);
}

.mf-panel-stats strong {
    display: block;
    font-family: var(--mf-display);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--mf-text);
    font-variant-numeric: tabular-nums;
}

.mf-panel-stats > div:last-child strong { color: var(--mf-accent); }
.mf-panel-stats span { color: var(--mf-muted); font-size: 13px; }

.mf-panel-sub {
    margin: 20px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-muted);
}

.mf-panel-list { list-style: none; margin: 0; padding: 0; }
.mf-panel-list li + li { border-top: 1px solid var(--mf-line-soft); }

.mf-panel-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 2px;
    text-decoration: none !important;
    color: var(--mf-text) !important;
}

.mf-panel-title {
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.mf-panel-list a:hover .mf-panel-title { color: var(--mf-accent); }

.mf-panel-count {
    flex-shrink: 0;
    min-width: 34px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--mf-surface-3);
    color: var(--mf-text-2);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Marquee */
.mf-marquee {
    overflow: hidden;
    border-bottom: 1px solid var(--mf-line-soft);
    background: var(--mf-surface);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mf-marquee-track {
    display: flex;
    width: max-content;
    animation: mf-marquee 60s linear infinite;
}

.mf-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 16px 0 16px 28px;
    font-family: var(--mf-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--mf-text-2);
    white-space: nowrap;
}

.mf-marquee-track span::after {
    content: "";
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    background: var(--mf-accent);
}

@keyframes mf-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .mf-marquee-track, .mf-live .mf-dot { animation: none; }
}

/* Ads */
.mf-ad { margin-top: 40px; }
.mf-ad img { max-width: 100%; height: auto; border-radius: var(--mf-radius); display: block; margin: 0 auto; }

.mf-ad-placeholder,
body.xda-theme-nth .nth-ad-placeholder,
body.xda-theme-nth .xad-slot--placeholder {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 90px;
    padding: 18px !important;
    border: 1px dashed var(--mf-line) !important;
    border-radius: var(--mf-radius) !important;
    background: repeating-linear-gradient(135deg, var(--mf-surface) 0 12px, var(--mf-bg) 12px 24px) !important;
    color: var(--mf-muted) !important;
    font-family: var(--mf-body) !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center;
}

.mf-ad-placeholder strong { color: var(--mf-text-2); font-size: 14px; }

/* Sections */
.mf-section { padding: 88px 0 0; }
.mf-section-tight { padding-top: 72px; }

.mf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.mf-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--mf-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mf-label::before { content: ""; width: 22px; height: 2px; background: var(--mf-accent); border-radius: 2px; }

.mf-h2 {
    margin: 0 !important;
    font-family: var(--mf-display) !important;
    font-weight: 800 !important;
    font-stretch: 105%;
    font-size: clamp(30px, 3.6vw, 46px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
}

.mf-link {
    color: var(--mf-text-2) !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    white-space: nowrap;
}

.mf-link:hover { color: var(--mf-accent) !important; }

/* Forum cards */
.mf-forum-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mf-forum-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 236px;
    padding: 24px;
    border-radius: var(--mf-radius-lg);
    background: var(--mf-surface);
    border: 1px solid var(--mf-line-soft);
    color: var(--mf-text) !important;
    text-decoration: none !important;
    overflow: hidden;
}

.mf-forum-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 160px at 100% 0%, rgba(255, 150, 20, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
}

.mf-forum-card:hover { border-color: rgba(255, 178, 30, 0.45); transform: translateY(-3px); }
.mf-forum-card:hover::before { opacity: 1; }

.mf-forum-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.mf-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--mf-accent-soft);
    color: var(--mf-accent);
    border: 1px solid rgba(255, 178, 30, 0.2);
}

.mf-forum-count {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mf-surface-2);
    color: var(--mf-text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.mf-forum-card h3 {
    position: relative;
    margin: 0 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.mf-forum-card p {
    position: relative;
    margin: 0;
    color: var(--mf-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.mf-forum-go {
    position: relative;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mf-text-2);
    font-weight: 600;
    font-size: 14px;
}

.mf-forum-card:hover .mf-forum-go { color: var(--mf-accent); }
.mf-forum-go svg { transition: transform .2s ease; }
.mf-forum-card:hover .mf-forum-go svg { transform: translateX(4px); }

/* Stat band */
.mf-statband { margin-top: 88px; border-top: 1px solid var(--mf-line-soft); border-bottom: 1px solid var(--mf-line-soft); background: var(--mf-surface); }

.mf-statband-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mf-statband-grid > div { padding: 36px 24px; }
.mf-statband-grid > div + div { border-left: 1px solid var(--mf-line-soft); }

.mf-statband strong {
    display: block;
    font-family: var(--mf-display);
    font-weight: 900;
    font-stretch: 110%;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--mf-text);
    font-variant-numeric: tabular-nums;
}

.mf-statband span { display: block; margin-top: 10px; color: var(--mf-muted); font-size: 14px; }

/* Feed */
.mf-feed {
    border: 1px solid var(--mf-line-soft);
    border-radius: var(--mf-radius-lg);
    background: var(--mf-surface);
    overflow: hidden;
}

.mf-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
    color: var(--mf-text) !important;
    text-decoration: none !important;
}

.mf-feed-item + .mf-feed-item { border-top: 1px solid var(--mf-line-soft); }
.mf-feed-item:hover { background: var(--mf-surface-2); }
.mf-feed-item:hover .mf-feed-title { color: var(--mf-accent); }

.mf-avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mf-surface-3);
    color: var(--mf-text);
    font-family: var(--mf-display);
    font-weight: 800;
    font-size: 16px;
}

.mf-feed-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.mf-chip {
    align-self: flex-start;
    max-width: 100%;
    padding: 2px 9px;
    border-radius: 6px;
    background: var(--mf-accent-soft);
    color: var(--mf-accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-feed-title { font-weight: 700; font-size: 16.5px; line-height: 1.35; transition: color .15s ease; }
.mf-feed-meta { color: var(--mf-muted); font-size: 13.5px; }

.mf-feed-replies {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--mf-muted);
    font-size: 12px;
}

.mf-feed-replies strong {
    font-family: var(--mf-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--mf-text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* Values */
.mf-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.mf-value {
    padding: 28px;
    border-radius: var(--mf-radius-lg);
    border: 1px solid var(--mf-line-soft);
    background: linear-gradient(180deg, var(--mf-surface), var(--mf-bg));
}

.mf-value-num {
    display: inline-block;
    font-family: var(--mf-mono);
    font-weight: 600;
    font-size: 13px;
    color: var(--mf-accent);
    margin-bottom: 18px;
}

.mf-value h3 { margin: 0 0 8px !important; font-size: 21px !important; font-weight: 800 !important; letter-spacing: -0.02em !important; }
.mf-value p { margin: 0; color: var(--mf-muted); font-size: 15px; line-height: 1.6; }

/* CTA */
.mf-cta {
    margin-top: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 52px;
    border-radius: 28px;
    background: var(--mf-grad);
    color: var(--mf-accent-ink);
    position: relative;
    overflow: hidden;
}

.mf-cta::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 50px solid rgba(11, 12, 15, 0.08);
    pointer-events: none;
}

.mf-cta h2 {
    margin: 0 0 8px !important;
    max-width: 620px;
    color: var(--mf-accent-ink) !important;
    font-weight: 900 !important;
    font-stretch: 108%;
    font-size: clamp(28px, 3.2vw, 42px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
}

.mf-cta p { margin: 0; color: rgba(11, 12, 15, 0.75); font-size: 16px; font-weight: 500; }
.mf-cta .mf-btn { position: relative; z-index: 1; min-height: 54px; padding: 0 28px; }

/* --------------------------------------------------------------------------
   Responsive (header + homepage)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .mf-search { display: none; }
}

@media (max-width: 960px) {
    .mf-header { position: relative; }
    .mf-hero { padding: 56px 0 48px; }
    .mf-hero::before {
        background-image:
            linear-gradient(180deg, rgba(246, 247, 249, 0.75) 0%, rgba(246, 247, 249, 0.88) 45%, var(--mf-bg) 100%),
            url("../images/hero-team.jpg");
        background-size: cover, cover;
        background-position: center, center 25%;
        opacity: 1;
    }
    .mf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .mf-forum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mf-values { grid-template-columns: 1fr; }
    .mf-statband-grid { grid-template-columns: repeat(2, 1fr); }
    .mf-statband-grid > div:nth-child(3) { border-left: 0; }
    .mf-statband-grid > div:nth-child(n+3) { border-top: 1px solid var(--mf-line-soft); }
    .mf-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }

    .mf-burger { display: block; }
    .mf-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--mf-header-h);
        bottom: auto;
        max-height: calc(100vh - var(--mf-header-h));
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: var(--mf-bg);
        border-top: 1px solid var(--mf-line-soft);
        overflow-y: auto;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }
    body.admin-bar .mf-nav { top: var(--mf-header-h); }
    .mf-nav.is-open {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .mf-nav a { padding: 14px 16px; border-radius: 12px; font-size: 17px; }
    .mf-nav-mobile-auth { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--mf-line-soft); }
    body.mf-nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
    .mf-wrap, .mf-header-inner { padding: 0 16px; }
    .mf-header-inner { gap: 12px; }
    .mf-logo-img { width: 92px; height: 31px; }
    .mf-hide-sm { display: none !important; }
    .mf-user span { display: none; }
    .mf-user { padding: 3px; }
    .mf-logo-word { font-size: 19px; }
    .mf-hero-desc { font-size: 16px; }
    .mf-hero-cta .mf-btn { flex: 1 1 auto; }
    .mf-section { padding-top: 64px; }
    .mf-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .mf-forum-grid { grid-template-columns: 1fr; }
    .mf-forum-card { min-height: 0; }
    .mf-panel-stats strong { font-size: 24px; }
    .mf-feed-item { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
    .mf-feed-item .mf-avatar { display: none; }
    .mf-statband-grid > div { padding: 24px 16px; }
    .mf-footer-cols { gap: 40px; }
    .site-footer { margin-top: 56px; }
}

/* ==========================================================================
   Forum pages (archive, single forum, topic) + utility/auth pages
   Overrides the legacy edge-to-edge editorial layout with contained cards.
   ========================================================================== */

/* Drop the editorial typography: tracked-out caps labels, italic accents */
html body.xda-theme-nth [class*="label"],
html body.xda-theme-nth [class*="kicker"],
html body.xda-theme-nth [class*="sidebar-title"],
html body.xda-theme-nth [class*="breadcrumb"],
html body.xda-theme-nth .topic-list-header,
html body.xda-theme-nth .recent-tag,
html body.xda-theme-nth .nthr-post-role,
html body.xda-theme-nth .nthr-post-action-btn,
html body.xda-theme-nth .nthr-post-time,
html body.xda-theme-nth .nthr-lr-time,
html body.xda-theme-nth .nthr-related-time,
html body.xda-theme-nth .stats-cell-label,
html body.xda-theme-nth .forum-stat-pill,
html body.xda-theme-nth .topic-replies-label,
html body.xda-theme-nth .stat-label {
    font-family: var(--mf-body) !important;
    letter-spacing: 0.02em !important;
}

html body.xda-theme-nth [class*="sidebar-title"],
html body.xda-theme-nth .nth-utility-kicker,
html body.xda-theme-nth .topic-list-header {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--mf-muted) !important;
}

html body.xda-theme-nth .nth-utility-kicker { color: var(--mf-accent) !important; }

html body.xda-theme-nth .nthr-post-time,
html body.xda-theme-nth .nthr-lr-time,
html body.xda-theme-nth .nthr-related-time,
html body.xda-theme-nth .recent-meta,
html body.xda-theme-nth .recent-tag,
html body.xda-theme-nth .topic-replies-label,
html body.xda-theme-nth .stats-cell-label,
html body.xda-theme-nth .nthr-post-action-btn,
html body.xda-theme-nth .forum-stat-pill {
    text-transform: none !important;
    font-size: 13px !important;
}

html body.xda-theme-nth h1 em,
html body.xda-theme-nth h2 em,
html body.xda-theme-nth .nth-utility-title em {
    font-style: normal !important;
    color: var(--mf-accent) !important;
}

html body.xda-theme-nth .page-title,
html body.xda-theme-nth .nthr-topic-title,
html body.xda-theme-nth .nth-utility-title {
    font-family: var(--mf-display) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.05 !important;
}

/* ---- Contained layout -------------------------------------------------- */
html body.bbpress.xda-theme-nth .nth-forum-archive-ad,
html body.bbpress.xda-theme-nth .nth-subforum-ad,
html body.bbpress.xda-theme-nth .nth-topic-ad,
html body.bbpress.xda-theme-nth .nth-forum-page-header,
html body.bbpress.xda-theme-nth .nth-subforum-header,
html body.bbpress.xda-theme-nth .nth-forum-main-layout,
html body.bbpress.xda-theme-nth .nth-subforum-layout,
html body.bbpress.xda-theme-nth .nth-replies-page {
    max-width: var(--mf-wrap) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.bbpress.xda-theme-nth .nth-forum-archive-ad,
html body.bbpress.xda-theme-nth .nth-subforum-ad,
html body.bbpress.xda-theme-nth .nth-topic-ad { margin-top: 20px !important; margin-bottom: 0 !important; }

html body.bbpress.xda-theme-nth .nth-forum-main-content .ad-banner,
html body.bbpress.xda-theme-nth .nth-subforum-content .ad-banner {
    padding: 0 !important;
    margin: 16px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* Ad "ADVERTISEMENT" badges */
html body.xda-theme-nth .xad-badge,
html body.xda-theme-nth .ad-badge,
html body.xda-theme-nth [class*="ad-slot-label"] {
    background: transparent !important;
    color: var(--mf-muted) !important;
    font-size: 11px !important;
}

/* ---- Page headers ------------------------------------------------------ */
html body.bbpress.xda-theme-nth .nth-subforum-header {
    display: block !important;
    padding-top: 44px !important;
    padding-bottom: 28px !important;
}

html body.bbpress.xda-theme-nth .nth-forum-page-header {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 44px !important;
    padding-bottom: 28px !important;
}

html body.xda-theme-nth .page-breadcrumb,
html body.xda-theme-nth .nthr-page-breadcrumb {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px !important;
    font-size: 13px !important;
    text-transform: none !important;
    color: var(--mf-muted) !important;
}

html body.xda-theme-nth .page-breadcrumb a,
html body.xda-theme-nth .nthr-page-breadcrumb a { color: var(--mf-text-2) !important; text-decoration: none !important; }
html body.xda-theme-nth .page-breadcrumb a:hover,
html body.xda-theme-nth .nthr-page-breadcrumb a:hover { color: var(--mf-accent) !important; }
html body.xda-theme-nth .page-breadcrumb .sep,
html body.xda-theme-nth .nthr-sep { color: var(--mf-line) !important; }

html body.bbpress.xda-theme-nth .page-title {
    font-size: clamp(32px, 4vw, 52px) !important;
    margin: 0 !important;
    color: var(--mf-text) !important;
}

html body.bbpress.xda-theme-nth .page-subtitle { margin: 12px 0 0 !important; color: var(--mf-text-2) !important; font-size: 16px !important; max-width: 720px; }

html body.bbpress.xda-theme-nth .page-header-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

html body.bbpress.xda-theme-nth .topic-count-badge {
    padding: 8px 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--mf-line) !important;
    background: var(--mf-surface) !important;
    color: var(--mf-muted) !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html body.bbpress.xda-theme-nth .topic-count-badge strong { color: var(--mf-text); }

html body.xda-theme-nth .btn-new-topic {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 20px !important;
    border-radius: 999px !important;
    background: var(--mf-accent) !important;
    color: var(--mf-accent-ink) !important;
    border: 0 !important;
    font-family: var(--mf-body) !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

html body.bbpress.xda-theme-nth .page-header-search {
    border-radius: 999px !important;
    padding: 0 16px !important;
    height: 44px;
    border: 1px solid var(--mf-line) !important;
}

html body.bbpress.xda-theme-nth .page-header-search input { font-size: 14px !important; letter-spacing: 0 !important; width: 240px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }

/* ---- Two-column layouts ----------------------------------------------- */
html body.bbpress.xda-theme-nth .nth-forum-main-layout,
html body.bbpress.xda-theme-nth .nth-subforum-layout,
html body.bbpress.xda-theme-nth .nthr-main-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 28px !important;
    min-height: 0 !important;
    align-items: start;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-main-layout { padding: 0 !important; max-width: none !important; border: 0 !important; }

html body.bbpress.xda-theme-nth .nth-forum-main-content,
html body.bbpress.xda-theme-nth .nth-subforum-content,
html body.bbpress.xda-theme-nth .nthr-main-content {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    min-width: 0;
}

/* Sidebars → stacked cards */
html body.bbpress.xda-theme-nth .nth-forum-sidebar,
html body.bbpress.xda-theme-nth .nth-subforum-sidebar,
html body.bbpress.xda-theme-nth .nthr-sidebar {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

html body.bbpress.xda-theme-nth .nth-forum-sidebar-section,
html body.bbpress.xda-theme-nth .nth-subforum-sidebar-section,
html body.bbpress.xda-theme-nth .nthr-sidebar-section {
    padding: 20px !important;
    margin: 0 !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: var(--mf-radius-lg) !important;
    background: var(--mf-surface) !important;
}

html body.bbpress.xda-theme-nth [class*="sidebar-title"] { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }

html body.bbpress.xda-theme-nth .recent-item,
html body.bbpress.xda-theme-nth .nthr-related-item,
html body.bbpress.xda-theme-nth .nthr-lr-item,
html body.bbpress.xda-theme-nth .latest-reply-item {
    display: block;
    padding: 12px 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--mf-line-soft) !important;
    text-decoration: none !important;
}

html body.bbpress.xda-theme-nth .nthr-lr-item,
html body.bbpress.xda-theme-nth .latest-reply-item { display: flex !important; align-items: center; gap: 12px; }

html body.bbpress.xda-theme-nth .recent-item:first-of-type,
html body.bbpress.xda-theme-nth .nthr-related-item:first-of-type,
html body.bbpress.xda-theme-nth .nthr-lr-item:first-of-type,
html body.bbpress.xda-theme-nth .latest-reply-item:first-of-type { border-top: 0 !important; padding-top: 0 !important; }

html body.bbpress.xda-theme-nth .recent-tag { color: var(--mf-accent) !important; font-size: 12px !important; font-weight: 600 !important; margin-bottom: 2px !important; }

html body.bbpress.xda-theme-nth .recent-title,
html body.bbpress.xda-theme-nth .nthr-related-title {
    font-family: var(--mf-body) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--mf-text) !important;
}

html body.bbpress.xda-theme-nth .recent-item:hover .recent-title,
html body.bbpress.xda-theme-nth .nthr-related-item:hover .nthr-related-title { color: var(--mf-accent) !important; }

html body.bbpress.xda-theme-nth .recent-meta,
html body.bbpress.xda-theme-nth .nthr-related-time,
html body.bbpress.xda-theme-nth .nthr-lr-time,
html body.bbpress.xda-theme-nth .lr-time { color: var(--mf-muted) !important; font-size: 12.5px !important; }

html body.bbpress.xda-theme-nth .nthr-lr-avatar,
html body.bbpress.xda-theme-nth .lr-avatar,
html body.bbpress.xda-theme-nth .topic-avatar,
html body.bbpress.xda-theme-nth .topic-avatar-letter {
    border-radius: 50% !important;
    background: var(--mf-surface-3) !important;
    color: var(--mf-text) !important;
    border: 0 !important;
    font-family: var(--mf-display) !important;
    font-weight: 800 !important;
}

/* Stats grid */
html body.bbpress.xda-theme-nth .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    border: 0 !important;
    background: transparent !important;
}

html body.bbpress.xda-theme-nth .stats-cell {
    padding: 14px !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: var(--mf-radius) !important;
    background: var(--mf-bg) !important;
    text-align: left !important;
}

html body.bbpress.xda-theme-nth .stats-cell-num {
    font-family: var(--mf-display) !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    letter-spacing: -0.02em !important;
    color: var(--mf-text) !important;
}

html body.bbpress.xda-theme-nth .online-bar { display: flex; align-items: center; gap: 10px; color: var(--mf-text-2); }
html body.bbpress.xda-theme-nth .online-dot { background: var(--mf-success) !important; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.15); }

html body.bbpress.xda-theme-nth .sidebar-ad-slot,
html body.bbpress.xda-theme-nth .nthr-sidebar-ad-slot { border-radius: var(--mf-radius) !important; overflow: hidden; }

/* ---- Forum archive cards ---------------------------------------------- */
html body.bbpress.xda-theme-nth .nth-forum-list-exact {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    border: 0 !important;
    background: transparent !important;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 200px 240px !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 22px 24px !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: var(--mf-radius-lg) !important;
    background: var(--mf-surface) !important;
    text-decoration: none !important;
    min-height: 0 !important;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-forum-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner {
    grid-column: 4;
    grid-row: 1;
    display: block;
    height: 86px;
    overflow: hidden;
    border-radius: 10px;
    background: #0d1118;
    border: 1px solid rgba(255,255,255,.08);
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner img,
html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-icon { grid-column: 1; grid-row: 1; }
html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-info { grid-column: 2; grid-row: 1; }
html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-latest { grid-column: 3; grid-row: 1; }

html body.bbpress.xda-theme-nth .nth-forum-card-exact::before,
html body.bbpress.xda-theme-nth .nth-forum-card-exact::after { display: none !important; }

html body.bbpress.xda-theme-nth .nth-forum-card-exact:hover {
    border-color: rgba(255, 178, 30, 0.45) !important;
    background: var(--mf-surface-2) !important;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-icon {
    width: 52px !important;
    height: 52px !important;
    display: grid !important;
    place-items: center;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 178, 30, 0.2) !important;
    background: var(--mf-accent-soft) !important;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-icon svg,
html body.bbpress.xda-theme-nth .forum-icon-clean svg { stroke: var(--mf-accent) !important; stroke-width: 1.8 !important; }

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-name {
    font-family: var(--mf-display) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--mf-text) !important;
    margin-bottom: 4px !important;
}

html body.bbpress.xda-theme-nth .nth-forum-card-exact:hover .forum-name { color: var(--mf-accent) !important; }

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-subforums { color: var(--mf-muted) !important; font-size: 13.5px !important; line-height: 1.5 !important; }

html body.bbpress.xda-theme-nth .forum-stats-row { display: flex; gap: 8px !important; margin-top: 12px !important; }

html body.bbpress.xda-theme-nth .forum-stat-pill {
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: var(--mf-surface-3) !important;
    color: var(--mf-muted) !important;
    font-size: 12.5px !important;
    border: 0 !important;
}

html body.bbpress.xda-theme-nth .forum-stat-pill strong { color: var(--mf-text) !important; font-family: var(--mf-body) !important; font-size: 13px !important; font-weight: 700 !important; }

html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-latest {
    padding: 0 0 0 20px !important;
    border-left: 1px solid var(--mf-line-soft) !important;
    font-size: 13px !important;
    color: var(--mf-muted) !important;
}

html body.bbpress.xda-theme-nth .forum-latest-title { color: var(--mf-text-2) !important; font-weight: 600 !important; font-family: var(--mf-body) !important; font-size: 13.5px !important; }
html body.bbpress.xda-theme-nth .forum-latest-meta,
html body.bbpress.xda-theme-nth .forum-latest-meta * { color: var(--mf-muted) !important; font-size: 12.5px !important; letter-spacing: 0 !important; text-transform: none !important; }

/* ---- Single forum: topic rows ----------------------------------------- */
html body.bbpress.xda-theme-nth .topic-list-header {
    padding: 0 24px 10px !important;
    border: 0 !important;
    background: transparent !important;
}

html body.bbpress.xda-theme-nth .nth-subforum-content .topic-item,
html body.bbpress.xda-theme-nth .nth-subforum-content .forum-item-clean,
html body.bbpress.xda-theme-nth .nth-subforum-content .topic-item-clean {
    margin-bottom: 10px !important;
    padding: 18px 24px !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: var(--mf-radius) !important;
    background: var(--mf-surface) !important;
}

html body.bbpress.xda-theme-nth .nth-subforum-content .topic-item:hover,
html body.bbpress.xda-theme-nth .nth-subforum-content .forum-item-clean:hover,
html body.bbpress.xda-theme-nth .nth-subforum-content .topic-item-clean:hover {
    border-color: rgba(255, 178, 30, 0.4) !important;
    background: var(--mf-surface-2) !important;
}

html body.bbpress.xda-theme-nth .topic-title-link,
html body.bbpress.xda-theme-nth .topic-title-clean,
html body.bbpress.xda-theme-nth .forum-title-clean,
html body.bbpress.xda-theme-nth .topic-title-clean a,
html body.bbpress.xda-theme-nth .forum-title-clean a {
    font-family: var(--mf-body) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--mf-text) !important;
    letter-spacing: -0.005em !important;
    text-decoration: none !important;
}

html body.bbpress.xda-theme-nth .topic-title-link:hover,
html body.bbpress.xda-theme-nth .topic-title-clean a:hover,
html body.bbpress.xda-theme-nth .forum-title-clean a:hover { color: var(--mf-accent) !important; }

html body.bbpress.xda-theme-nth .topic-replies-num,
html body.bbpress.xda-theme-nth .stat-number {
    font-family: var(--mf-display) !important;
    font-weight: 800 !important;
    color: var(--mf-text) !important;
}

html body.bbpress.xda-theme-nth .topic-meta,
html body.bbpress.xda-theme-nth .topic-meta *,
html body.bbpress.xda-theme-nth .topic-last-activity,
html body.bbpress.xda-theme-nth .topic-last-activity * { font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; }

html body.bbpress.xda-theme-nth .topic-author { color: var(--mf-text-2) !important; font-weight: 600 !important; }

html body.bbpress.xda-theme-nth .nth-empty-state {
    padding: 48px 24px !important;
    border: 1px dashed var(--mf-line) !important;
    border-radius: var(--mf-radius-lg) !important;
    background: var(--mf-surface) !important;
    text-align: center;
    color: var(--mf-muted) !important;
}

/* Pagination */
html body.xda-theme-nth .pagination,
html body.xda-theme-nth .nthr-pagination,
html body.xda-theme-nth .nth-pagination { display: flex; gap: 6px; flex-wrap: wrap; border: 0 !important; background: transparent !important; padding: 16px 0 !important; }

html body.xda-theme-nth .page-btn,
html body.xda-theme-nth .page-numbers {
    display: inline-grid !important;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 1px solid var(--mf-line) !important;
    background: var(--mf-surface) !important;
    color: var(--mf-text-2) !important;
    font-family: var(--mf-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

html body.xda-theme-nth .page-btn.active,
html body.xda-theme-nth .page-numbers.current {
    background: var(--mf-accent) !important;
    border-color: var(--mf-accent) !important;
    color: var(--mf-accent-ink) !important;
}

/* ---- Topic page -------------------------------------------------------- */
html body.bbpress.xda-theme-nth .nth-replies-page .nthr-topic-header {
    padding: 40px 0 28px !important;
    border: 0 !important;
    background: transparent !important;
}

html body.bbpress.xda-theme-nth .nthr-topic-title {
    font-size: clamp(30px, 3.8vw, 48px) !important;
    color: var(--mf-text) !important;
    margin: 0 0 14px !important;
}

html body.bbpress.xda-theme-nth .nthr-topic-title-meta,
html body.bbpress.xda-theme-nth .nthr-topic-title-meta * { font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--mf-muted) !important; }
html body.bbpress.xda-theme-nth .nthr-topic-title-meta strong,
html body.bbpress.xda-theme-nth .nthr-topic-title-meta a { color: var(--mf-text-2) !important; }

html body.bbpress.xda-theme-nth .nthr-topic-title-meta .nthr-topic-reply-count {
    padding: 4px 12px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--mf-accent-soft) !important;
    color: var(--mf-accent) !important;
    font-weight: 700 !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 24px !important;
    margin-bottom: 12px !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: var(--mf-radius-lg) !important;
    background: var(--mf-surface) !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op {
    background: linear-gradient(180deg, rgba(255, 178, 30, 0.07), var(--mf-surface) 60%) !important;
    border-color: rgba(255, 178, 30, 0.3) !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op::before { display: none !important; }

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: var(--mf-surface-3) !important;
    color: var(--mf-text) !important;
    font-family: var(--mf-display) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op .nthr-post-avatar {
    background: var(--mf-accent) !important;
    color: var(--mf-accent-ink) !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-role {
    margin-top: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--mf-muted) !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op .nthr-post-role { color: var(--mf-accent) !important; }

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-author,
html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op .nthr-post-author {
    font-family: var(--mf-body) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--mf-text) !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-content,
html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-content * {
    font-family: var(--mf-body) !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: var(--mf-text-2) !important;
    letter-spacing: 0 !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op .nthr-post-content,
html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post--op .nthr-post-content * { color: var(--mf-text) !important; font-size: 16.5px !important; }

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-content a { color: var(--mf-accent) !important; }

html body.bbpress.xda-theme-nth .nthr-post-content blockquote {
    margin: 12px 0 !important;
    padding: 12px 16px !important;
    border-left: 3px solid var(--mf-accent) !important;
    border-radius: 0 10px 10px 0 !important;
    background: var(--mf-surface-2) !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-actions { border-top: 1px solid var(--mf-line-soft) !important; padding-top: 12px !important; margin-top: 14px !important; gap: 6px !important; }

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-action-btn {
    padding: 6px 12px !important;
    border-radius: 999px !important;
    border: 1px solid var(--mf-line) !important;
    background: transparent !important;
    color: var(--mf-text-2) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-action-btn:hover { border-color: var(--mf-accent) !important; color: var(--mf-accent) !important; }

html body.bbpress.xda-theme-nth .nthr-main-content .ad-banner { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }

html body.bbpress.xda-theme-nth .nthr-reply-box {
    margin-top: 20px !important;
    padding: 24px !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: var(--mf-radius-lg) !important;
    background: var(--mf-surface) !important;
}

html body.bbpress.xda-theme-nth .nthr-reply-box-title {
    font-family: var(--mf-display) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    color: var(--mf-text) !important;
    margin-bottom: 14px !important;
}

html body.bbpress.xda-theme-nth .nthr-reply-submit {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 0 22px !important;
    border-radius: 999px !important;
    background: var(--mf-accent) !important;
    color: var(--mf-accent-ink) !important;
    border: 0 !important;
    font-family: var(--mf-body) !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

html body.bbpress.xda-theme-nth .nthr-reply-login-note,
html body.bbpress.xda-theme-nth .nthr-reply-login-note * { font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--mf-text-2) !important; }
html body.bbpress.xda-theme-nth .nthr-reply-login-note a { color: var(--mf-accent) !important; }

/* ---- Utility / auth pages --------------------------------------------- */
html body.xda-theme-nth .nth-utility-shell {
    max-width: 1080px !important;
    margin: 48px auto 0 !important;
    padding: 0 24px !important;
    background: transparent !important;
    border: 0 !important;
}

html body.xda-theme-nth .nth-utility-grid {
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: 26px !important;
    overflow: hidden;
    background: var(--mf-surface) !important;
    box-shadow: 0 30px 60px -30px rgba(31, 41, 55, 0.3);
}

html body.xda-theme-nth .nth-utility-hero {
    position: relative;
    background:
        radial-gradient(520px 360px at 0% 100%, rgba(255, 140, 20, 0.22), transparent 70%),
        repeating-linear-gradient(90deg, rgba(31,41,55,0.035) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(31,41,55,0.035) 0 1px, transparent 1px 56px),
        var(--mf-bg) !important;
    border: 0 !important;
    border-right: 1px solid var(--mf-line-soft) !important;
}

html body.xda-theme-nth .nth-utility-card { background: var(--mf-surface) !important; border: 0 !important; }

html body.xda-theme-nth .nth-utility-title { font-size: clamp(36px, 4.4vw, 56px) !important; color: var(--mf-text) !important; }
html body.xda-theme-nth .nth-utility-copy,
html body.xda-theme-nth .nth-utility-subtitle,
html body.xda-theme-nth .nth-utility-note { color: var(--mf-text-2) !important; font-size: 15px !important; letter-spacing: 0 !important; text-transform: none !important; }

html body.xda-theme-nth .nth-utility-form label,
html body.xda-theme-nth .nth-utility-card label {
    font-family: var(--mf-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--mf-text-2) !important;
}

html body.xda-theme-nth .nth-utility-links a,
html body.xda-theme-nth .nth-utility-footer a { color: var(--mf-accent) !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; }

html body.xda-theme-nth input[type="checkbox"] { accent-color: var(--mf-accent); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
    html body.bbpress.xda-theme-nth .nth-forum-main-layout,
    html body.bbpress.xda-theme-nth .nth-subforum-layout,
    html body.bbpress.xda-theme-nth .nthr-main-layout { grid-template-columns: minmax(0, 1fr) !important; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact { grid-template-columns: 52px minmax(0, 1fr) 200px !important; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner { grid-column: 2 / -1; grid-row: 2; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-latest { grid-column: 2; border-left: 0 !important; padding: 12px 0 0 !important; border-top: 1px solid var(--mf-line-soft) !important; }
}

@media (max-width: 640px) {
    html body.bbpress.xda-theme-nth .nth-forum-archive-ad,
    html body.bbpress.xda-theme-nth .nth-subforum-ad,
    html body.bbpress.xda-theme-nth .nth-topic-ad,
    html body.bbpress.xda-theme-nth .nth-forum-page-header,
    html body.bbpress.xda-theme-nth .nth-subforum-header,
    html body.bbpress.xda-theme-nth .nth-forum-main-layout,
    html body.bbpress.xda-theme-nth .nth-subforum-layout,
    html body.bbpress.xda-theme-nth .nth-replies-page { padding-left: 16px !important; padding-right: 16px !important; }
    html body.bbpress.xda-theme-nth .nth-forum-page-header { flex-direction: column; align-items: stretch; }
    html body.bbpress.xda-theme-nth .page-header-search input { width: 100% !important; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact { grid-template-columns: 1fr !important; padding: 18px !important; gap: 12px !important; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-info { min-width: 0; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-forum-link { display: block !important; }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        margin-top: 2px;
    }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner img,
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-card-brand-banner video {
        width: 100% !important;
        height: 72px !important;
        min-height: 72px !important;
        object-fit: cover;
    }
    html body.bbpress.xda-theme-nth .nth-forum-card-exact .forum-latest { grid-column: 1; }
    html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post { grid-template-columns: 40px minmax(0, 1fr) !important; gap: 12px !important; padding: 16px !important; }
    html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-avatar { width: 40px !important; height: 40px !important; font-size: 15px !important; }
    html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-role { font-size: 9.5px !important; letter-spacing: 0.02em !important; }
    html body.bbpress.xda-theme-nth .nth-replies-page .nthr-post-header { flex-direction: row !important; align-items: baseline !important; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px !important; }
    html body.xda-theme-nth .nth-utility-shell { margin-top: 24px !important; padding: 0 16px !important; }
}

/* ---- Legacy standalone pages (register, contact, reset) --------------- */
html body.xda-theme-nth .registration-container,
html body.xda-theme-nth .reset-container,
html body.xda-theme-nth .forgot-container {
    background: var(--mf-surface) !important;
    border: 1px solid var(--mf-line-soft) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 60px -30px rgba(31, 41, 55, 0.3) !important;
    backdrop-filter: none !important;
}

html body.xda-theme-nth .registration-container::before { display: none !important; }

html body.xda-theme-nth .registration-container h1 {
    font-family: var(--mf-display) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    background: none !important;
    -webkit-text-fill-color: var(--mf-text) !important;
    color: var(--mf-text) !important;
}

html body.xda-theme-nth .registration-form label { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: var(--mf-text-2) !important; }

html body.xda-theme-nth .registration-form button[type="submit"],
html body.xda-theme-nth button[type="submit"],
html body.xda-theme-nth input[type="submit"] {
    background: var(--mf-accent) !important;
    color: var(--mf-accent-ink) !important;
    border-radius: 999px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
}

html body.xda-theme-nth .contact-page h1,
html body.xda-theme-nth [class*="contact-page__title"] {
    font-family: var(--mf-display) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    background: none !important;
    -webkit-text-fill-color: var(--mf-text) !important;
    color: var(--mf-text) !important;
}

html body.xda-theme-nth [class*="contact-card"] { background: var(--mf-surface) !important; border-color: var(--mf-line-soft) !important; border-radius: 20px !important; box-shadow: none !important; }
html body.xda-theme-nth .contact-card__link { color: var(--mf-accent) !important; }
html body.xda-theme-nth .contact-page { background: transparent !important; padding: 72px 0 0 !important; }
html body.xda-theme-nth .contact-page__title { font-size: clamp(36px, 5vw, 56px) !important; }
html body.xda-theme-nth .contact-page__intro { color: var(--mf-text-2) !important; }

.mf-footer, .mf-footer-top, .mf-footer-bottom { text-align: left; }
.mf-404 { padding-top: 72px; }
.mf-404 .mf-hero-title { font-size: clamp(40px, 6vw, 76px) !important; }

/* ---- Empty ad slots: "Advertise on Massforge" ------------------------- */
html body.xda-theme-nth .xad-slot--placeholder,
html body.xda-theme-nth .site-top-adband .xad-slot--placeholder {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

html body.xda-theme-nth .xad-placeholder.mf-adspace,
html body.xda-theme-nth .site-top-adband .xad-placeholder.mf-adspace {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 120px;
    height: auto !important;
    padding: 22px 20px !important;
    border: 1.5px dashed rgba(255, 178, 30, 0.35) !important;
    border-radius: var(--mf-radius) !important;
    background:
        radial-gradient(420px 120px at 50% 0%, rgba(255, 178, 30, 0.08), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 10px, transparent 10px 20px),
        var(--mf-surface) !important;
    text-align: center;
    font-family: var(--mf-body) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: border-color .2s ease;
}

html body.xda-theme-nth .xad-placeholder.mf-adspace:hover { border-color: var(--mf-accent) !important; }

html body.xda-theme-nth .mf-adspace-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--mf-accent-soft);
    color: var(--mf-accent) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

html body.xda-theme-nth .mf-adspace-title {
    display: block;
    font-family: var(--mf-display) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--mf-text) !important;
    line-height: 1.2;
}

html body.xda-theme-nth .mf-adspace-meta {
    display: block;
    color: var(--mf-muted) !important;
    font-size: 13px !important;
}

html body.xda-theme-nth .mf-adspace-cta {
    margin-top: 4px;
    color: var(--mf-accent) !important;
    font-size: 13.5px !important;
    font-weight: 700;
    text-decoration: none !important;
}

html body.xda-theme-nth .mf-adspace-cta:hover { text-decoration: underline !important; }

html body.xda-theme-nth .mf-adspace-admin {
    margin-top: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(255,178,30,0.5) !important;
    border-radius: 999px;
    background: rgba(255,178,30,0.1) !important;
    color: var(--mf-accent) !important;
    font-size: 12px !important;
    font-weight: 700;
    text-decoration: none !important;
}

html body.xda-theme-nth .mf-adspace-admin:hover { background: rgba(255,178,30,0.2) !important; }

html body.xda-theme-nth .mf-adslot-adminbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0 0;
    padding: 6px 10px;
    border: 1px dashed rgba(255,178,30,0.45);
    border-radius: 8px;
    font-size: 12px;
    color: var(--mf-text-2);
}

html body.xda-theme-nth .mf-adslot-adminbar a { color: var(--mf-accent) !important; font-weight: 700; }

/* Narrow sidebar slots read as a box, not a strip */
html body.xda-theme-nth .nth-forum-sidebar .mf-adspace,
html body.xda-theme-nth .nth-subforum-sidebar .mf-adspace,
html body.xda-theme-nth .nthr-sidebar .mf-adspace { min-height: 220px; }
html body.xda-theme-nth .nthr-sidebar .mf-adspace-title,
html body.xda-theme-nth .nth-forum-sidebar .mf-adspace-title,
html body.xda-theme-nth .nth-subforum-sidebar .mf-adspace-title { font-size: 17px !important; }

/* Sidebar slot wrappers: drop their own inner frame so only our box shows */
html body.xda-theme-nth .sidebar-ad-slot,
html body.xda-theme-nth .nthr-sidebar-ad-slot { border: 0 !important; background: none !important; padding: 0 !important; min-height: 0 !important; height: auto !important; }

@media (max-width: 640px) {
    html body.xda-theme-nth .mf-adspace-title { font-size: 17px !important; }
}
html body.xda-theme-nth .site-top-adband .top-ad-inner { max-width: calc(var(--mf-wrap) - 48px) !important; }
@media (max-width: 640px) { html body.xda-theme-nth .site-top-adband { padding: 16px 16px 0 !important; } }
