﻿:root {
    --mj-black: #000000;
    --mj-ink: #101010;
    --mj-muted: #6f6f6f;
    --mj-gold: #d8b46a;
    --mj-gold-dark: #bd9749;
    --mj-soft: #f4f2ed;
    --mj-border: #e9e6df;
}

body.networker-body {
    background:
        radial-gradient(ellipse at 50% -10%, rgba(216, 180, 106, .10) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(216, 180, 106, .05) 0%, transparent 45%),
        #0c0c0f;
    color: var(--mj-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.site-masthead {
    background: rgba(12, 12, 15, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    position: sticky;
    top: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.site-masthead::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .45), transparent);
    pointer-events: none;
}

.masthead-card {
    width: 100%;
    min-height: 84px;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.85) 0%, rgba(14, 14, 17, 0.85) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 14px;
    padding: 16px 26px;
    border: 1px solid rgba(216, 180, 106, .18);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .55),
        0 6px 24px rgba(216, 180, 106, .1),
        inset 0 1px 0 rgba(216, 180, 106, .22);
    row-gap: 14px;
    position: relative;
    /* overflow: visible — let admin dropdown escape; gold glow ::after stays within card via mask */
    overflow: visible;
}

.masthead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .7), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Subtle gold radial glow in top-right corner */
.masthead-card::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 360px;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .16) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.masthead-card>.container-fluid {
    gap: 18px;
    position: relative;
    z-index: 2;
}

.masthead-card .navbar-collapse {
    flex-grow: 1;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #050505 0%, #1d1d22 100%);
    border-radius: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(216, 180, 106, .35);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, .4),
        inset 0 1px 0 rgba(216, 180, 106, .18);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.logo-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(216, 180, 106, .28);
    border-color: rgba(216, 180, 106, .55);
}

.logo-pill img {
    width: 130px;
    height: auto;
    display: block;
}

/* Kill the default a:hover { text-decoration: underline } from app.css inside the masthead */
.masthead-card a,
.masthead-card a:hover,
.masthead-card a:focus,
.masthead-card a:active,
.masthead-card button:hover,
.masthead-card button:focus {
    text-decoration: none;
}

/* Animated nav underlines + active state (light text on dark glass masthead) */
.masthead-card .nav-link {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    font-size: .9rem;
    padding: .55rem .8rem;
    position: relative;
    transition: color .2s ease;
    letter-spacing: .005em;
    text-decoration: none;
}

.masthead-card .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mj-gold), var(--mj-gold-dark));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .25s ease;
    box-shadow: 0 0 6px rgba(216, 180, 106, .4);
}

.masthead-card .nav-link:hover {
    color: var(--mj-gold);
}

.masthead-card .nav-link:hover::after {
    width: 22px;
}

.masthead-card .nav-link.active {
    color: var(--mj-gold);
}

.masthead-card .nav-link.active::after {
    width: 22px;
}

.masthead-card .navbar-toggler {
    border-color: rgba(216, 180, 106, .35);
    padding: .35rem .55rem;
}

.masthead-card .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d8b46a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Auth buttons on dark glass — outlined gold style */
.masthead-card .btn-outline-dark.btn-sm {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(216, 180, 106, .35);
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
    font-size: .82rem;
    padding: 7px 14px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s ease;
}

.masthead-card .btn-outline-dark.btn-sm:hover {
    background: var(--mj-gold);
    color: #050505;
    border-color: var(--mj-gold);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(216, 180, 106, .3);
}

.nav-auth-link {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
    transition: color .15s ease;
    padding: 6px 4px;
}

.nav-auth-link:hover {
    color: var(--mj-gold);
}

.masthead-card .btn-link {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 8px;
    transition: all .15s ease;
}

.masthead-card .btn-link:hover {
    color: var(--mj-gold);
    background: rgba(216, 180, 106, .1);
}

@media (max-width: 991px) {
    .masthead-card .navbar-nav {
        padding-top: 8px;
    }

    .masthead-card .navbar-nav .nav-link {
        padding: .55rem 0;
        color: rgba(255, 255, 255, .88);
    }

    .masthead-card .nav-link::after {
        display: none;
    }

    .masthead-card .nav-link.active {
        color: var(--mj-gold);
        border-left: 3px solid var(--mj-gold);
        padding-left: 12px;
    }

    .masthead-card .d-flex.flex-wrap {
        padding-top: 10px;
        border-top: 1px solid rgba(216, 180, 106, .18);
        width: 100%;
    }

    .site-masthead {
        position: static;
    }
}

@media (max-width: 991px) {
    .masthead-card .navbar-nav {
        padding-top: 8px;
    }

    .masthead-card .navbar-nav .nav-link {
        padding: .5rem 0;
    }

    .masthead-card .d-flex.flex-wrap {
        padding-top: 10px;
        border-top: 1px solid var(--mj-border);
        width: 100%;
    }
}

.btn-gold {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #000;
    font-weight: 800;
    border-radius: 9px;
}

.btn-gold:hover {
    background: var(--mj-gold-dark);
    border-color: var(--mj-gold-dark);
    color: #000;
}

.networker-footer {
    background: linear-gradient(180deg, #08080a 0%, #0c0c0f 100%);
    border-top: 1px solid #1c1c20;
    padding: 64px 0 28px;
    color: rgba(255, 255, 255, .6);
    position: relative;
}

.networker-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(60%, 900px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mj-gold), transparent);
    opacity: .5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 48px;
}

.footer-brand-block .footer-logo-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1e 0%, #2a2a30 100%);
    border: 1px solid #2c2c32;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 18px;
}

.footer-brand-block .footer-logo-pill img {
    width: 170px;
    height: auto;
    display: block;
}

.footer-brand-block p {
    color: rgba(255, 255, 255, .55);
    line-height: 1.65;
    font-size: .92rem;
    margin: 0 0 18px;
    max-width: 320px;
}

.footer-newsletter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mj-gold);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-col h4 {
    color: var(--mj-gold);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    margin: 0 0 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: color .15s ease;
}

.footer-col a:hover {
    color: var(--mj-gold);
}

.footer-col p {
    color: rgba(255, 255, 255, .6);
    font-size: .92rem;
    margin: 0 0 8px;
}

.footer-contact-mail {
    color: rgba(255, 255, 255, .85);
    font-weight: 700;
}

.footer-contact-mail:hover {
    color: var(--mj-gold);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #2a2a2e;
    border-radius: 50%;
    color: rgba(255, 255, 255, .7);
    transition: all .15s ease;
}

.footer-social a:hover {
    border-color: var(--mj-gold);
    color: var(--mj-gold);
    background: rgba(216, 180, 106, .08);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid #1c1c20;
    color: rgba(255, 255, 255, .45);
    font-size: .84rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--mj-gold);
}

.footer-legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .networker-footer {
        padding: 48px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.network-section {
    padding: 68px 0;
    background: radial-gradient(circle at left top, rgba(216, 180, 106, .14), transparent 32%), transparent;
}

.editorial-panel,
.content-grid-panel,
.category-strip,
.archive-layout {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.compact-panel {
    padding: 38px 32px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}

.section-kicker {
    display: block;
    color: var(--mj-gold-dark);
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .78rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.section-heading-row h1,
.content-grid-panel h2 {
    font-weight: 900;
    letter-spacing: -.02em;
}

.section-heading-row p {
    color: var(--mj-muted);
    margin: 5px 0 0;
}

.network-search {
    display: flex;
    gap: 8px;
    min-width: min(100%, 420px);
}

.network-search input {
    height: 42px;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    padding: 0 13px;
    flex: 1;
}

.network-search button {
    height: 42px;
    border: 0;
    background: var(--mj-gold);
    border-radius: 8px;
    padding: 0 22px;
    font-weight: 900;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.hero-story-card {
    display: grid;
    grid-template-columns: 52% 1fr;
    overflow: hidden;
    background: #f6f6f6;
    border-radius: 24px;
}

.hero-story-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.hero-story-content {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-story-content span {
    color: var(--mj-gold-dark);
    font-weight: 900;
}

.hero-story-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.03;
    font-weight: 950;
    margin: 10px 0 18px;
}

.hero-story-content h2 a {
    color: #111;
    text-decoration: none;
}

.hero-story-content p {
    color: var(--mj-muted);
    font-size: 1.02rem;
}

.post-author {
    color: #777;
    font-size: .86rem;
    font-weight: 700;
}

.top-read-card {
    border: 1px solid var(--mj-border);
    border-radius: 24px;
    padding: 22px;
}

.mini-post {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--mj-border);
    color: #111;
    text-decoration: none;
}

.mini-post:last-child {
    border-bottom: 0;
}

.mini-post img {
    width: 82px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    grid-row: span 2;
}

.mini-post span {
    color: var(--mj-gold-dark);
    font-weight: 800;
    font-size: .74rem;
    text-transform: uppercase;
}

.mini-post strong {
    line-height: 1.18;
}

.network-post-card {
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.network-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 22px;
}

.post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--mj-gold-dark);
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
}

.post-card-body h3 {
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.16;
}

.post-card-body h3 a {
    color: #111;
    text-decoration: none;
}

.post-card-body p {
    color: var(--mj-muted);
    margin: 11px 0 18px;
}

.panel-link {
    color: #111;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid var(--mj-gold);
}

.category-strip {
    display: flex;
    gap: 28px;
    align-items: center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-list a {
    color: #111;
    background: #f7f7f7;
    border: 1px solid var(--mj-border);
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 800;
}

.category-list em {
    color: var(--mj-muted);
    font-style: normal;
    margin-left: 4px;
}

.archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.archive-sidebar {
    border-right: 1px solid var(--mj-border);
    padding-right: 26px;
}

.archive-categories a {
    display: flex;
    justify-content: space-between;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    padding: 13px 0;
    border-bottom: 1px solid var(--mj-border);
}

.archive-categories em {
    font-style: normal;
    color: var(--mj-muted);
}

.empty-state {
    background: #f6f6f6;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    color: var(--mj-muted);
}

/* Panels used by customer/admin/auth */
.panel-shell {
    max-width: 1200px;
    margin: 34px auto;
    padding: 0 16px;
}

.sidebar-panel {
    border-radius: 18px;
    border: 1px solid var(--mj-border);
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}

.dark-panel {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid rgba(216, 180, 106, .18);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(216, 180, 106, .18);
    /* NOTE: do NOT set position: relative here — it conflicts with .sticky-lg-top
       (position: sticky) on the same element and breaks sticky behavior. */
}

.dark-list .list-group-item {
    background: transparent;
    color: rgba(255, 255, 255, .72);
    border-color: #242424;
}

.dark-list .list-group-item.active,
.admin-nav .list-group-item.active {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #050505;
    font-weight: 900;
}

.soft-card,
.metric-card,
.table-card {
    border: 1px solid var(--mj-border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.metric-card strong {
    font-size: 2rem;
}

.table-card {
    overflow: hidden;
    background: #fff;
}

.badge-draft {
    background: #fff3cd;
    color: #856404;
}

.badge-scheduled {
    background: linear-gradient(135deg, #fff1d0, #f6d97a);
    color: #6b4a08;
    border: 1px solid rgba(216, 180, 106, .55);
}

.badge-published {
    background: #d1e7dd;
    color: #0f5132;
}

.schedule-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: #b88718;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.schedule-hint svg {
    flex-shrink: 0;
}

/* Profile cover hero (customer panel /profile) — premium dark-gold card */
.profile-cover {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(216, 180, 106, .22) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(216, 180, 106, .08) 0%, transparent 45%),
        linear-gradient(135deg, #1c1812 0%, #0d0c0a 55%, #1f1a13 100%);
    border-bottom: 1px solid rgba(216, 180, 106, .22);
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mj-gold), transparent);
    pointer-events: none;
    z-index: 1;
}

.profile-cover::after {
    content: '';
    position: absolute;
    top: -35%;
    right: -8%;
    width: 360px;
    height: 240px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.profile-cover>* {
    position: relative;
    z-index: 2;
}

.profile-cover .profile-cover-avatar {
    border: 3px solid rgba(216, 180, 106, .5);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, .45),
        0 0 0 4px rgba(216, 180, 106, .08);
}

.profile-cover .gold-label {
    background: rgba(216, 180, 106, .12);
    border: 1px solid rgba(216, 180, 106, .3);
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-block;
    font-size: .72rem;
}

.profile-cover h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.profile-cover .btn-gold {
    box-shadow:
        0 10px 22px rgba(216, 180, 106, .35),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.profile-cover .btn-gold:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(216, 180, 106, .45),
        inset 0 1px 0 rgba(255, 255, 255, .3);
}

.profile-cover .btn-outline-light {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .95);
    font-weight: 600;
}

.profile-cover .btn-outline-light:hover {
    background: rgba(216, 180, 106, .15);
    border-color: var(--mj-gold);
    color: var(--mj-gold);
}

.auth-black {
    background: radial-gradient(circle at top, #2b210c 0, #050505 46%, #000 100%);
    min-height: 100vh;
}

.auth-body main {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 480px);
    background: rgba(16, 16, 16, .96);
    border: 1px solid #282828 !important;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.auth-card-wide {
    width: min(100%, 900px);
}

.auth-logo {
    width: 230px;
    height: auto;
}

.auth-divider {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .42);
    gap: 12px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-divider:before,
.auth-divider:after {
    content: '';
    height: 1px;
    flex: 1;
    background: #333;
}

.auth-brand {
    text-align: center;
    padding-top: 28px;
}

.link-gold {
    color: var(--mj-gold);
    text-decoration: none;
    font-weight: 800;
}

.gold-label {
    color: var(--mj-gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 900;
}

.login-split {
    width: min(100%, 980px);
    overflow: hidden;
}

.auth-side-panel {
    background: linear-gradient(160deg, #050505, #1f1a0d);
    border-right: 1px solid #2b2b2b;
    min-height: 560px;
}

.auth-points div {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.auth-card .form-control,
.auth-card .form-select {
    background: #f7f4ee;
    border-color: #3a3527;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 .25rem rgba(216, 180, 106, .18);
}

.ql-editor {
    min-height: 240px;
}

@media (max-width: 991px) {
    .masthead-card {
        padding: 20px;
        min-height: auto;
    }

    .featured-layout,
    .hero-story-card,
    .archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--mj-border);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .section-heading-row,
    .category-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-story-card img {
        min-height: 260px;
    }

    .auth-side-panel {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid #2b2b2b;
    }
}

@media (max-width: 575px) {

    .editorial-panel,
    .content-grid-panel,
    .category-strip,
    .archive-layout {
        padding: 20px;
    }

    .hero-story-content {
        padding: 26px;
    }

    .network-search {
        flex-direction: column;
    }
}

.story-detail-panel {
    background: #fff;
    border-radius: 12px;
    padding: clamp(24px, 5vw, 58px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.story-detail-header {
    max-width: 880px;
    margin: 0 auto 32px;
    text-align: center;
}

.story-detail-header h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -.04em;
}

.story-byline {
    color: var(--mj-muted);
    font-weight: 700;
}

.story-detail-cover {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 26px;
    margin-bottom: 36px;
}

.story-detail-body {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.09rem;
    line-height: 1.85;
    color: #222;
}

.story-detail-body h1,
.story-detail-body h2,
.story-detail-body h3 {
    font-weight: 900;
    margin-top: 1.8em;
}

.story-actions-bar {
    max-width: 820px;
    margin: 34px auto;
    padding: 18px 0;
    border-top: 1px solid var(--mj-border);
    border-bottom: 1px solid var(--mj-border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.comments-block {
    max-width: 820px;
    margin: 0 auto;
}

.comments-block h2 {
    font-weight: 900;
    margin-bottom: 18px;
}

.comment-row {
    border-bottom: 1px solid var(--mj-border);
    padding: 18px 0;
}

.comment-row span {
    color: var(--mj-muted);
    font-size: .85rem;
    margin-left: 8px;
}

.comment-row p {
    margin: 8px 0 0;
    color: #333;
}

.public-profile-panel {
    background: #fff;
    border-radius: 12px;
    padding: clamp(24px, 5vw, 52px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    overflow: visible;
}

.public-profile-panel>.row {
    overflow: visible;
}

/* Sticky contact info card on public profile — works even when main column is short */
@media (min-width: 992px) {
    .public-profile-panel>.row>.col-lg-8 {
        min-height: calc(100vh - 280px);
    }

    .public-profile-panel .profile-info-card.sticky-lg-top {
        position: -webkit-sticky;
        position: sticky;
        top: 24px;
        z-index: 1;
        align-self: flex-start;
    }
}

.public-profile-hero {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: center;
    border-bottom: 1px solid var(--mj-border);
    padding-bottom: 30px;
}

.public-profile-hero img {
    width: 190px;
    height: 190px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.public-profile-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 950;
    letter-spacing: -.04em;
    margin: 0;
}

.public-profile-hero p {
    color: var(--mj-muted);
    font-size: 1.1rem;
    margin: 8px 0 12px;
}

.profile-username {
    display: inline-flex;
    background: #111;
    color: var(--mj-gold);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
}

.profile-info-card {
    border: 1px solid var(--mj-border);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
    background: #fff;
}

.profile-info-card h2 {
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.profile-info-card h3 {
    font-weight: 900;
    font-size: 1.05rem;
}

.profile-contact-list {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 10px 14px;
}

.profile-contact-list dt {
    color: var(--mj-muted);
    font-size: .84rem;
}

.profile-contact-list dd {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.profile-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-social-list a {
    color: #111;
    background: #f7f7f7;
    border: 1px solid var(--mj-border);
    border-radius: 999px;
    padding: 9px 12px;
    text-decoration: none;
    font-weight: 800;
}

.profile-social-list a:hover {
    border-color: var(--mj-gold);
}

.post-author a,
.story-byline a {
    color: inherit;
    font-weight: 900;
}

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

    .public-profile-hero img {
        width: 150px;
        height: 150px;
    }
}

.admin-workspace .section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-workspace .section-title-row h2 {
    font-weight: 900;
    margin: 0;
    color: #fff;
}

.user-detail-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px 12px;
    margin: 0;
}

.user-detail-list dt {
    color: #777;
    font-size: .85rem;
}

.user-detail-list dd {
    margin: 0;
    font-weight: 700;
}

.admin-workspace .table th {
    white-space: nowrap;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777;
}

.admin-workspace .table td {
    vertical-align: middle;
}

/* =====================================================================
   Dashboard / Admin shared enhancements
   ===================================================================== */

/* Dark sidebar nav with icons */
.dark-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.dark-list .list-group-item svg {
    flex-shrink: 0;
    opacity: .55;
    transition: opacity .15s ease;
}

.dark-list .list-group-item:hover {
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.dark-list .list-group-item:hover svg {
    opacity: .85;
}

.dark-list .list-group-item.active {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #050505;
}

.dark-list .list-group-item.active svg {
    opacity: 1;
}

/* Gold badges (replace blue Bootstrap badges) */
.badge-gold {
    background: var(--mj-gold);
    color: #000;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge-gold-soft {
    background: rgba(216, 180, 106, .16);
    color: var(--mj-gold-dark);
    border: 1px solid rgba(216, 180, 106, .35);
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.4;
}

.role-badge--admin {
    background: var(--mj-gold);
    color: #050505;
}

.role-badge--customer {
    background: #f4f1ea;
    color: #555;
    border: 1px solid #e3ddd0;
}

/* Enhanced metric cards with icon */
.metric-card {
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
}

.metric-card .card-body {
    padding: 22px 24px;
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    margin-bottom: 14px;
}

.metric-card strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
    color: #111;
    letter-spacing: -.02em;
}

.metric-card .text-muted {
    font-size: .82rem;
    margin-top: 6px;
    font-weight: 600;
}

/* =====================================================================
   Dashboard / Admin dark glass cards (premium look for stats panels)
   ===================================================================== */
.dashboard-panel .soft-card,
.dashboard-panel .metric-card,
.admin-workspace .soft-card,
.admin-workspace .metric-card {
    background:
        radial-gradient(circle at top right, rgba(216, 180, 106, .12) 0%, transparent 45%),
        linear-gradient(180deg, rgba(34, 29, 22, 0.92) 0%, rgba(20, 18, 16, 0.92) 100%);
    border: 1px solid rgba(216, 180, 106, .24);
    border-radius: 18px;
    box-shadow:
        0 22px 50px rgba(0, 0, 0, .45),
        0 6px 20px rgba(216, 180, 106, .12),
        inset 0 1px 0 rgba(216, 180, 106, .28);
    color: rgba(255, 255, 255, .88);
    position: relative;
    overflow: hidden;
}

/* Subtle gold corner glow inside dark cards */
.dashboard-panel .soft-card::after,
.dashboard-panel .metric-card::after,
.admin-workspace .soft-card::after,
.admin-workspace .metric-card::after {
    content: '';
    position: absolute;
    top: -55%;
    right: -10%;
    width: 240px;
    height: 170px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .10) 0%, transparent 60%);
    pointer-events: none;
}

/* Card content text colors on dark glass */
.dashboard-panel .soft-card h1,
.dashboard-panel .soft-card h2,
.dashboard-panel .soft-card h3,
.admin-workspace .soft-card h1,
.admin-workspace .soft-card h2,
.admin-workspace .soft-card h3 {
    color: #fff;
    position: relative;
    z-index: 1;
}

.dashboard-panel .soft-card .text-muted,
.admin-workspace .soft-card .text-muted {
    color: rgba(255, 255, 255, .6) !important;
}

.dashboard-panel .soft-card p,
.admin-workspace .soft-card p {
    position: relative;
    z-index: 1;
}

/* Card-body / card-header position context */
.dashboard-panel .soft-card .card-body,
.dashboard-panel .soft-card .card-header,
.admin-workspace .soft-card .card-body,
.admin-workspace .soft-card .card-header {
    position: relative;
    z-index: 1;
}

/* Card header on dark */
.dashboard-panel .soft-card .card-header.bg-white,
.admin-workspace .soft-card .card-header.bg-white {
    background: rgba(255, 255, 255, .03) !important;
    border-bottom: 1px solid rgba(216, 180, 106, .18);
}

.dashboard-panel .soft-card .card-header h2,
.admin-workspace .soft-card .card-header h2 {
    color: #fff;
}

/* Metric cards on dark */
.dashboard-panel .metric-card strong,
.admin-workspace .metric-card strong {
    color: #fff;
    position: relative;
    z-index: 1;
}

.dashboard-panel .metric-card .text-muted,
.admin-workspace .metric-card .text-muted {
    color: rgba(255, 255, 255, .55) !important;
    position: relative;
    z-index: 1;
}

.dashboard-panel .metric-card .metric-icon,
.admin-workspace .metric-card .metric-icon {
    background: rgba(216, 180, 106, .18);
    border: 1px solid rgba(216, 180, 106, .32);
    color: var(--mj-gold);
    box-shadow: 0 4px 12px rgba(216, 180, 106, .15);
    position: relative;
    z-index: 1;
}

.dashboard-panel .metric-card:hover .metric-icon,
.admin-workspace .metric-card:hover .metric-icon {
    background: rgba(216, 180, 106, .28);
    border-color: rgba(216, 180, 106, .55);
}

.dashboard-panel .metric-card:hover,
.admin-workspace .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .55), 0 6px 22px rgba(216, 180, 106, .18), inset 0 1px 0 rgba(216, 180, 106, .25);
    border-color: rgba(216, 180, 106, .32);
}

/* Tables inside dark cards — kill Bootstrap's white default (box-shadow inset trick) */
.dashboard-panel .soft-card .table,
.admin-workspace .soft-card .table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-color: rgba(255, 255, 255, .88);
    --bs-table-striped-bg: rgba(255, 255, 255, .02);
    --bs-table-hover-bg: rgba(216, 180, 106, .08);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    background-color: transparent !important;
}

.dashboard-panel .soft-card .table> :not(caption)>*>*,
.admin-workspace .soft-card .table> :not(caption)>*>* {
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit;
}

.dashboard-panel .soft-card .table thead th,
.admin-workspace .soft-card .table thead th {
    background: rgba(255, 255, 255, .03) !important;
    color: rgba(255, 255, 255, .5) !important;
    border-bottom: 1px solid rgba(216, 180, 106, .18) !important;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 16px;
    box-shadow: none !important;
}

.dashboard-panel .soft-card .table tbody td,
.admin-workspace .soft-card .table tbody td {
    color: rgba(255, 255, 255, .88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
    padding: 14px 16px;
}

.dashboard-panel .soft-card .table tbody tr:last-child td,
.admin-workspace .soft-card .table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.dashboard-panel .soft-card .table-hover tbody tr:hover td,
.admin-workspace .soft-card .table-hover tbody tr:hover td {
    background: rgba(216, 180, 106, .08) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.dashboard-panel .soft-card .table .text-muted,
.admin-workspace .soft-card .table .text-muted {
    color: rgba(255, 255, 255, .5) !important;
}

.dashboard-panel .soft-card .table-responsive,
.admin-workspace .soft-card .table-responsive {
    background: transparent !important;
}

/* Card footer in dark */
.dashboard-panel .soft-card .card-footer.bg-white,
.admin-workspace .soft-card .card-footer.bg-white {
    background: rgba(255, 255, 255, .02) !important;
    border-top: 1px solid rgba(216, 180, 106, .12);
}

/* Form labels and inputs in dark cards */
.dashboard-panel .soft-card .form-label,
.admin-workspace .soft-card .form-label {
    color: rgba(255, 255, 255, .88);
}

.dashboard-panel .soft-card .form-control,
.dashboard-panel .soft-card .form-select,
.admin-workspace .soft-card .form-control,
.admin-workspace .soft-card .form-select {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(216, 180, 106, .2);
    color: #fff;
}

.dashboard-panel .soft-card .form-control::placeholder,
.admin-workspace .soft-card .form-control::placeholder {
    color: rgba(255, 255, 255, .35);
}

.dashboard-panel .soft-card .form-control:focus,
.dashboard-panel .soft-card .form-select:focus,
.admin-workspace .soft-card .form-control:focus,
.admin-workspace .soft-card .form-select:focus {
    background: rgba(255, 255, 255, .08);
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 .22rem rgba(216, 180, 106, .18);
    color: #fff;
}

/* Section kickers on dark stay gold */
.dashboard-panel .section-kicker,
.admin-workspace .section-kicker {
    color: var(--mj-gold);
}

/* Border-top / border-bottom utilities in dark cards */
.dashboard-panel .soft-card .border-top,
.dashboard-panel .soft-card .border-bottom,
.admin-workspace .soft-card .border-top,
.admin-workspace .soft-card .border-bottom {
    border-color: rgba(216, 180, 106, .15) !important;
}

/* =====================================================================
   Welcome card — cream-gold LIGHT (hero, contrasts with dark data cards)
   ===================================================================== */
.dashboard-welcome-card {
    background: linear-gradient(135deg, #fefaf1 0%, #f5ecd2 55%, #efe3bf 100%) !important;
    border: 1px solid rgba(216, 180, 106, .45) !important;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, .4),
        0 6px 22px rgba(216, 180, 106, .25),
        inset 0 1px 0 rgba(255, 255, 255, .7) !important;
    color: #1a1a1d !important;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .8), transparent);
    pointer-events: none;
}

.dashboard-welcome-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 320px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .25) 0%, transparent 60%) !important;
    pointer-events: none;
}

.dashboard-welcome-card .card-body {
    position: relative;
    z-index: 1;
}

.dashboard-welcome-card h1,
.dashboard-welcome-card h2,
.dashboard-welcome-card h3 {
    color: #1a1a1d !important;
}

.dashboard-panel .soft-card.dashboard-welcome-card .text-muted,
.dashboard-panel .soft-card.dashboard-welcome-card p,
.dashboard-welcome-card .text-muted,
.dashboard-welcome-card p {
    color: #3a2a14 !important;
    font-weight: 500;
    opacity: 1 !important;
}

.dashboard-welcome-card .section-kicker {
    color: var(--mj-gold-dark) !important;
}

.dashboard-welcome-card .btn-gold {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18), 0 2px 8px rgba(216, 180, 106, .25);
}

/* Sticky sidebar offset — stops just below the sticky header with a 2px gap */
.sidebar-panel.sticky-lg-top {
    top: 110px;
    z-index: 1;
}

/* Keep sidebar aligned at top of column (so it sits at the same level as the welcome card initially) */
.dashboard-panel~aside,
.row>aside.col-lg-3:has(.sidebar-panel.sticky-lg-top),
.row>.col-lg-3:has(.sidebar-panel.sticky-lg-top) {
    align-self: flex-start;
}

/* Section title row used in dashboard/admin */
.section-title-row .section-kicker {
    color: var(--mj-gold-dark);
}

.section-title-row h2 {
    color: #111;
    font-weight: 900;
    margin: 4px 0 0;
    letter-spacing: -.01em;
}

/* =====================================================================
   About page
   ===================================================================== */
.about-hero {
    background: radial-gradient(ellipse at 50% 0%, rgba(216, 180, 106, .16), transparent 50%);
    padding: 80px 0 64px;
    text-align: center;
    color: #fff;
    position: relative;
}

.about-hero::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .3), transparent);
}

.about-hero .section-kicker {
    color: var(--mj-gold);
    margin-bottom: 14px;
}

.about-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 950;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.08;
}

.about-hero p {
    color: rgba(255, 255, 255, .7);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.06rem;
    line-height: 1.6;
}

.about-intro {
    padding: 80px 0 64px;
    color: #fff;
}

.about-intro-media {
    position: relative;
}

.about-intro-media img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    display: block;
}

.about-intro-media::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(216, 180, 106, .25), transparent 60%);
    border-radius: 28px;
    z-index: -1;
}

.about-intro .section-kicker {
    color: var(--mj-gold);
    display: inline-block;
    margin-bottom: 12px;
}

.about-section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.18;
}

.about-section-lead {
    color: rgba(255, 255, 255, .72);
    font-size: 1.04rem;
    line-height: 1.65;
    margin: 0 0 14px;
}

.about-section-body {
    color: rgba(255, 255, 255, .6);
    font-size: .98rem;
    line-height: 1.7;
    margin: 0;
}

.about-features {
    padding: 64px 0 80px;
    position: relative;
}

.about-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(50%, 700px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .2), transparent);
}

.about-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 8px;
}

.about-section-head .section-kicker {
    color: var(--mj-gold);
    display: inline-block;
    margin-bottom: 12px;
}

.about-section-head .about-section-title,
.about-section-head .about-section-lead {
    color: #fff;
}

.about-section-head .about-section-lead {
    color: rgba(255, 255, 255, .65);
}

.about-feature-card {
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 18px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .18);
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.about-feature-card h3 {
    font-size: 1.08rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 8px;
    letter-spacing: -.01em;
}

.about-feature-card p {
    color: var(--mj-muted);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

.about-cta {
    padding: 24px 0 96px;
}

.about-cta-card {
    background: linear-gradient(135deg, #fff 0%, #fdf9ef 100%);
    border: 1px solid #ece5d3;
    border-radius: 26px;
    padding: 56px 40px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .22);
    position: relative;
    overflow: hidden;
}

.about-cta-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    right: -10%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 100%, rgba(216, 180, 106, .14), transparent 50%);
    pointer-events: none;
}

.about-cta-card>* {
    position: relative;
}

.about-cta-card .section-kicker {
    color: var(--mj-gold-dark);
    display: inline-block;
    margin-bottom: 12px;
}

.about-cta-card .about-section-title,
.about-cta-card .about-section-lead {
    color: #111;
}

.about-cta-card .about-section-lead {
    color: #555;
    margin-bottom: 28px;
}

.about-cta-actions {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-cta-actions .btn {
    padding: 13px 28px;
    font-weight: 800;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .about-hero {
        padding: 56px 0 44px;
    }

    .about-intro {
        padding: 56px 0 48px;
    }

    .about-features {
        padding: 48px 0 64px;
    }

    .about-cta {
        padding: 12px 0 64px;
    }

    .about-cta-card {
        padding: 40px 26px;
        border-radius: 20px;
    }

    .about-intro-media::before {
        inset: -6px;
    }
}

/* =====================================================================
   Pagination (custom Laravel view — gold/black theme)
   ===================================================================== */
.custom-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.custom-pagination-info {
    color: rgba(255, 255, 255, .55);
    font-size: .88rem;
}

.custom-pagination-info strong {
    color: var(--mj-gold);
    font-weight: 800;
    padding: 0 2px;
}

.pagination,
nav[role="navigation"]>ul,
nav[aria-label="Pagination"] ul,
.pagination-wrap nav>div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.pagination .page-item .page-link,
.pagination a,
.pagination span,
nav[role="navigation"] a,
nav[role="navigation"] span {
    color: #fff;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 8px 13px;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    transition: all .15s ease;
}

.pagination .page-item.active .page-link,
.pagination .active span,
nav[role="navigation"] .active span,
nav[aria-current="page"] span {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #000 !important;
}

.pagination .page-item .page-link:hover,
.pagination a:hover,
nav[role="navigation"] a:hover {
    background: rgba(216, 180, 106, .16);
    border-color: rgba(216, 180, 106, .4);
    color: var(--mj-gold);
}

.pagination .page-item.disabled .page-link,
.pagination .disabled span {
    color: rgba(255, 255, 255, .3);
    background: transparent;
    border-color: rgba(255, 255, 255, .06);
    cursor: not-allowed;
}

/* Pagination inside light-background containers (white cards, table-cards) */
.table-card .custom-pagination,
.soft-card .custom-pagination,
.card-footer .custom-pagination,
.card-body .custom-pagination {
    margin-top: 16px;
    gap: 12px;
}

.table-card .pagination .page-link,
.soft-card .pagination .page-link,
.card-footer .pagination .page-link {
    color: #111;
    background: #fff;
    border-color: var(--mj-border);
}

.table-card .pagination .page-link:hover,
.soft-card .pagination .page-link:hover,
.card-footer .pagination .page-link:hover {
    background: rgba(216, 180, 106, .1);
    border-color: rgba(216, 180, 106, .4);
    color: var(--mj-gold-dark);
}

.table-card .pagination .page-item.active .page-link,
.soft-card .pagination .page-item.active .page-link,
.card-footer .pagination .page-item.active .page-link {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #050505 !important;
}

.table-card .pagination .page-item.disabled .page-link,
.soft-card .pagination .page-item.disabled .page-link,
.card-footer .pagination .page-item.disabled .page-link {
    color: #c4c4c4;
    background: #fafafa;
    border-color: #eee;
}

.table-card .custom-pagination-info,
.soft-card .custom-pagination-info,
.card-footer .custom-pagination-info {
    color: var(--mj-muted);
}

.table-card .custom-pagination-info strong,
.soft-card .custom-pagination-info strong,
.card-footer .custom-pagination-info strong {
    color: var(--mj-gold-dark);
}

/* Empty state icon for table cards / panels */
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(216, 180, 106, .12);
    color: var(--mj-gold-dark);
    margin: 0 auto;
}

/* =====================================================================
   Theme-wide form focus (gold ring instead of Bootstrap blue)
   ===================================================================== */
body.networker-body .soft-card .form-control:focus,
body.networker-body .soft-card .form-select:focus,
body.networker-body .table-card .form-control:focus,
body.networker-body .table-card .form-select:focus {
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 .22rem rgba(216, 180, 106, .18);
    outline: none;
}

body.networker-body .soft-card .form-control,
body.networker-body .soft-card .form-select {
    border-color: var(--mj-border);
    border-radius: 10px;
}

/* =====================================================================
   Blog editor card (Quill integration)
   ===================================================================== */
.blog-editor-card .gold-label {
    color: var(--mj-gold-dark);
}

.blog-editor-card h1 {
    color: #111;
    letter-spacing: -.02em;
    font-weight: 900;
}

.blog-editor-card .form-label {
    color: #1d1d1f;
    font-size: .9rem;
    margin-bottom: 6px;
}

.blog-editor-card .form-text {
    color: var(--mj-muted);
    font-size: .8rem;
    margin-top: 6px;
}

.blog-editor-card .form-control-lg {
    padding: 13px 16px;
    font-size: 1.08rem;
    font-weight: 600;
}

.blog-editor-card #editor {
    min-height: 280px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    font-family: inherit;
    font-size: 1.02rem;
}

.blog-editor-card .ql-toolbar.ql-snow {
    background: #fafaf6;
    border-color: var(--mj-border) !important;
    border-radius: 10px 10px 0 0;
    padding: 10px 12px;
}

.blog-editor-card .ql-container.ql-snow {
    border-color: var(--mj-border) !important;
    border-radius: 0 0 10px 10px;
}

.blog-editor-card .ql-snow .ql-stroke {
    stroke: #555;
}

.blog-editor-card .ql-snow .ql-fill {
    fill: #555;
}

.blog-editor-card .ql-snow .ql-picker {
    color: #555;
}

.blog-editor-card .ql-snow.ql-toolbar button:hover .ql-stroke,
.blog-editor-card .ql-snow.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--mj-gold-dark);
}

.blog-editor-card .ql-snow.ql-toolbar button:hover .ql-fill,
.blog-editor-card .ql-snow.ql-toolbar button.ql-active .ql-fill {
    fill: var(--mj-gold-dark);
}

.blog-editor-card .ql-snow .ql-editor.ql-blank::before {
    color: #b8b3a8;
    font-style: normal;
}

.blog-editor-card .cover-preview {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.blog-editor-card .form-check {
    margin-top: 8px;
}

/* =====================================================================
   Profile pages (show + edit)
   ===================================================================== */

/* Profile cover hero avatar */
.profile-cover-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(216, 180, 106, .45);
    background: #1a1a1e;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.profile-cover-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(216, 180, 106, .5);
}

/* Profile show grid (definition list) */
.profile-show-section {
    margin-bottom: 32px;
}

.profile-show-section:last-child {
    margin-bottom: 0;
}

.profile-show-section .section-kicker {
    color: var(--mj-gold-dark);
}

.profile-show-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px 28px;
    margin: 0;
}

.profile-show-grid dt {
    color: var(--mj-muted);
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--mj-border);
}

.profile-show-grid dd {
    margin: 0;
    color: #1d1d1f;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--mj-border);
    word-break: break-word;
}

.profile-show-grid dt:last-of-type,
.profile-show-grid dd:last-of-type {
    border-bottom: 0;
}

.profile-show-grid .field-empty {
    color: var(--mj-muted);
    font-style: italic;
    font-weight: 400;
}

.profile-show-grid dd a {
    color: inherit;
}

.profile-show-grid dd .link-gold {
    color: var(--mj-gold-dark);
    font-weight: 600;
}

.profile-show-grid dd .link-gold:hover {
    color: var(--mj-gold);
}

/* Profile edit — form section headers */
.profile-form-section {
    padding-bottom: 2px;
}

.profile-form-section .section-kicker {
    color: var(--mj-gold-dark);
}

/* Current profile image preview in edit form */
.profile-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fafaf6;
    border: 1px solid var(--mj-border);
    border-radius: 10px;
}

.profile-image-preview img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .profile-show-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-show-grid dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .profile-show-grid dd {
        padding-top: 4px;
    }

    .profile-cover-avatar {
        width: 96px;
        height: 96px;
    }
}

/* =====================================================================
   Chat pages (index + show) — themed overrides
   ===================================================================== */
.chat-header {
    margin-bottom: 26px;
}

.chat-header .section-kicker {
    color: var(--mj-gold);
    margin-bottom: 10px;
}

.chat-header h1 {
    color: #fff;
    font-weight: 950;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.chat-header p {
    color: rgba(255, 255, 255, .6);
    margin: 0;
}

.chat-conversations {
    display: grid;
    gap: 10px;
}

.chat-conversation-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.chat-conversation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
    border-color: rgba(216, 180, 106, .45);
    color: inherit;
    text-decoration: none;
}

.chat-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #fdf6e2 0%, #f4eccd 100%);
    border: 1px solid var(--mj-border);
    flex-shrink: 0;
    display: inline-flex;
}

.chat-avatar--initial {
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--mj-gold-dark);
    text-transform: uppercase;
}

.chat-avatar--header {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-color: rgba(255, 255, 255, .18);
}

.chat-conv-text {
    min-width: 0;
}

.chat-conv-name {
    color: #111;
    font-weight: 800;
    line-height: 1.3;
    font-size: .98rem;
}

.chat-conv-preview {
    color: var(--mj-muted);
    font-size: .88rem;
    margin-top: 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.chat-conv-time {
    color: var(--mj-muted);
    font-size: .78rem;
    white-space: nowrap;
    align-self: flex-start;
    padding-top: 6px;
}

.chat-empty {
    padding: 56px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.chat-empty h3 {
    font-weight: 900;
    color: #111;
    margin: 18px 0 8px;
}

.chat-empty p {
    color: var(--mj-muted);
    margin: 0 0 18px;
}

.chat-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.chat-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all .15s ease;
    white-space: nowrap;
    align-self: center;
}

.chat-back-link:hover {
    color: var(--mj-gold);
    background: rgba(216, 180, 106, .12);
    border-color: rgba(216, 180, 106, .3);
    text-decoration: none;
}

.chat-page-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.chat-page-header-info>div {
    min-width: 0;
}

.chat-page-header-info h1 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.25;
}

.chat-header-sub {
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
    margin-top: 2px;
}

/* Override messages-panel from app.css with theme styling */
.chat-wrap .messages-panel {
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
    max-height: 60vh;
    overflow-y: auto;
}

.chat-wrap .messages-panel::-webkit-scrollbar {
    width: 8px;
}

.chat-wrap .messages-panel::-webkit-scrollbar-track {
    background: transparent;
}

.chat-wrap .messages-panel::-webkit-scrollbar-thumb {
    background: rgba(216, 180, 106, .25);
    border-radius: 4px;
}

/* Override messages bubbles with theme colors */
.chat-wrap .message {
    max-width: 72%;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #f6f6f4;
    border: 1px solid var(--mj-border);
    border-radius: 14px 14px 14px 4px;
}

.chat-wrap .message.mine {
    margin-left: auto;
    background: linear-gradient(135deg, #fdf3d6 0%, #f4e7be 100%);
    border-color: #ece5d3;
    border-radius: 14px 14px 4px 14px;
}

.chat-wrap .message strong {
    color: #1d1d1f;
    font-size: .82rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.chat-wrap .message.mine strong {
    color: var(--mj-gold-dark);
}

.chat-wrap .message p {
    color: #333;
    line-height: 1.5;
    margin: 4px 0 6px;
}

.chat-wrap .message span {
    color: var(--mj-muted);
    font-size: .72rem;
}

/* Message form theme styling */
.chat-wrap .message-form {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.chat-wrap .message-form textarea {
    width: 100%;
    border: 1px solid var(--mj-border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .95rem;
    font-family: inherit;
    min-height: 90px;
    background: #fff;
    color: #111;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.chat-wrap .message-form textarea:focus {
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 .22rem rgba(216, 180, 106, .18);
    outline: none;
}

.chat-wrap .message-form .btn-gold {
    padding: 11px 26px;
    font-weight: 800;
    border-radius: 10px;
}

@media (max-width: 575px) {
    .chat-conversation-item {
        padding: 14px 16px;
        grid-template-columns: 46px 1fr auto;
        gap: 12px;
    }

    .chat-avatar {
        width: 46px;
        height: 46px;
    }

    .chat-wrap .messages-panel {
        padding: 18px;
        max-height: 55vh;
    }

    .chat-wrap .message {
        max-width: 84%;
    }
}

/* =====================================================================
   Contact page
   ===================================================================== */
.contact-hero {
    background: radial-gradient(ellipse at 30% 0%, rgba(216, 180, 106, .14), transparent 50%);
    padding: 64px 0 56px;
    text-align: center;
    color: #fff;
    position: relative;
}

.contact-hero::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .25), transparent);
}

.contact-hero .section-kicker {
    color: var(--mj-gold);
    margin-bottom: 12px;
}

.contact-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 14px;
}

.contact-hero p {
    color: rgba(255, 255, 255, .65);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.55;
}

.contact-section {
    padding: 56px 0 80px;
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.contact-info-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 22px;
    letter-spacing: -.01em;
}

.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--mj-border);
}

.contact-row:first-of-type {
    padding-top: 4px;
}

.contact-row+.contact-row:last-of-type {
    border-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mj-muted);
    font-weight: 800;
    margin-bottom: 4px;
}

.contact-value {
    color: #111;
    font-weight: 700;
    font-size: .96rem;
    text-decoration: none;
    word-break: break-word;
}

a.contact-value:hover {
    color: var(--mj-gold-dark);
}

.contact-aside {
    margin: 24px -8px -8px;
    background: linear-gradient(135deg, #faf8f3 0%, #f4f0e6 100%);
    border: 1px solid #ece5d3;
    border-radius: 14px;
    padding: 22px 24px;
}

.contact-aside-tag {
    display: block;
    color: var(--mj-gold-dark);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.contact-aside p {
    color: #444;
    font-size: .9rem;
    margin: 0 0 14px;
    line-height: 1.5;
}

.contact-form-card .form-label {
    color: #111;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 6px;
    display: block;
}

.contact-form-card .form-control {
    width: 100%;
    border: 1px solid var(--mj-border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .94rem;
    background: #fff;
    color: #111;
    transition: border-color .15s ease, box-shadow .15s ease;
    margin-top: 0;
}

.contact-form-card .form-control:focus {
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 4px rgba(216, 180, 106, .15);
    outline: none;
}

.contact-form-card textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.contact-form-card .field-hint {
    color: var(--mj-muted);
    font-size: .78rem;
    margin-top: 6px;
}

.contact-form-card .field-error {
    color: #d70015;
    font-size: .82rem;
    margin-top: 4px;
}

.contact-form-card .btn-gold {
    padding: 12px 28px;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.contact-form-card .btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(216, 180, 106, .32);
}

@media (max-width: 575px) {
    .contact-hero {
        padding: 44px 0 36px;
    }

    .contact-section {
        padding: 36px 0 56px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
}

/* =====================================================================
   Membership / pricing page
   ===================================================================== */
.membership-hero {
    background: radial-gradient(ellipse at 50% 0%, rgba(216, 180, 106, .16), transparent 45%);
    padding: 64px 0 56px;
    text-align: center;
    color: #fff;
    position: relative;
}

.membership-hero::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .25), transparent);
}

.membership-hero .section-kicker {
    color: var(--mj-gold);
    margin-bottom: 12px;
}

.membership-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 14px;
}

.membership-hero p {
    color: rgba(255, 255, 255, .65);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.02rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 56px;
    align-items: stretch;
    padding-top: 16px;
}

.pricing-card {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(216, 180, 106, .08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(30, 26, 20, 0.95) 0%, rgba(16, 15, 14, 0.95) 100%);
    border: 1px solid rgba(216, 180, 106, .22);
    border-radius: 20px;
    padding: 30px 24px 26px;
    box-shadow:
        0 22px 50px rgba(0, 0, 0, .5),
        inset 0 1px 0 rgba(216, 180, 106, .22);
    color: rgba(255, 255, 255, .88);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .45), transparent);
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 65px rgba(0, 0, 0, .6),
        0 4px 20px rgba(216, 180, 106, .18),
        inset 0 1px 0 rgba(216, 180, 106, .3);
    border-color: rgba(216, 180, 106, .42);
}

.pricing-card.is-featured {
    background:
        radial-gradient(ellipse at top right, rgba(216, 180, 106, .28) 0%, transparent 55%),
        linear-gradient(180deg, rgba(42, 32, 18, 0.96) 0%, rgba(22, 18, 14, 0.96) 100%);
    border: 2px solid var(--mj-gold);
    box-shadow:
        0 32px 70px rgba(216, 180, 106, .35),
        0 0 0 1px rgba(216, 180, 106, .35),
        inset 0 1px 0 rgba(216, 180, 106, .42);
    transform: translateY(-4px);
}

.pricing-card.is-featured::before {
    top: -1px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--mj-gold), transparent);
    border-radius: 20px 20px 0 0;
}

.pricing-card.is-featured:hover {
    transform: translateY(-9px);
    box-shadow:
        0 42px 85px rgba(216, 180, 106, .45),
        0 0 0 1px rgba(216, 180, 106, .45),
        inset 0 1px 0 rgba(216, 180, 106, .5);
}

.pricing-card.is-current {
    background:
        radial-gradient(ellipse at top right, rgba(45, 160, 69, .16) 0%, transparent 55%),
        linear-gradient(180deg, rgba(20, 32, 22, 0.96) 0%, rgba(12, 20, 14, 0.96) 100%);
    border: 2px solid #2da045;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .5),
        0 0 0 1px rgba(45, 160, 69, .3),
        inset 0 1px 0 rgba(45, 160, 69, .35);
}

.pricing-card.is-current::before {
    background: linear-gradient(90deg, transparent, #2da045, transparent);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 22px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
    z-index: 3;
    white-space: nowrap;
}

.pricing-badge.featured {
    background: linear-gradient(135deg, var(--mj-gold) 0%, var(--mj-gold-dark) 100%);
    color: #050505;
    border: 1px solid rgba(255, 255, 255, .4);
}

.pricing-badge.current {
    background: linear-gradient(135deg, #2da045 0%, #1c6e2f 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.pricing-name {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pricing-tagline {
    color: rgba(255, 255, 255, .6);
    font-size: .86rem;
    margin: 6px 0 20px;
    min-height: 38px;
    line-height: 1.45;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed rgba(216, 180, 106, .28);
}

.pricing-price .currency {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mj-gold);
}

.pricing-price .amount {
    font-size: 2.6rem;
    font-weight: 950;
    color: #fff;
    line-height: 1;
    letter-spacing: -.03em;
}

.pricing-price .period {
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
    margin-left: 6px;
    font-weight: 600;
}

.pricing-price.is-contact .amount {
    font-size: 1.6rem;
    color: var(--mj-gold);
}

.pricing-card.is-featured .pricing-price .amount {
    color: var(--mj-gold);
}

.pricing-card.is-current .pricing-price .amount {
    color: #5ec172;
}

.pricing-card.is-current .pricing-price .currency {
    color: #5ec172;
}

.pricing-limit {
    color: rgba(255, 255, 255, .6);
    font-size: .86rem;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 11px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.45;
    font-weight: 500;
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
    padding: 12px 18px;
    font-weight: 800;
    border-radius: 11px;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card.is-featured .pricing-cta .btn-gold {
    background: linear-gradient(135deg, var(--mj-gold) 0%, var(--mj-gold-dark) 100%);
    border: none;
    color: #050505;
    box-shadow: 0 12px 28px rgba(216, 180, 106, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.pricing-card.is-featured .pricing-cta .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(216, 180, 106, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.pricing-cta .btn-outline-dark {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(216, 180, 106, .4);
    color: rgba(255, 255, 255, .92);
}

.pricing-cta .btn-outline-dark:hover {
    background: var(--mj-gold);
    color: #050505;
    border-color: var(--mj-gold);
    transform: translateY(-2px);
}

.pricing-cta .btn-success {
    background: linear-gradient(135deg, #2da045 0%, #1c6e2f 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(45, 160, 69, .35);
    cursor: not-allowed;
}

.membership-footnote {
    text-align: center;
    color: rgba(255, 255, 255, .55);
    font-size: .88rem;
    margin: 40px 0 0;
}

.membership-footnote a {
    color: var(--mj-gold);
    text-decoration: none;
    font-weight: 700;
}

.membership-footnote a:hover {
    color: var(--mj-gold-dark);
}

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

@media (max-width: 575px) {
    .membership-hero {
        padding: 44px 0 36px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pricing-card {
        padding: 24px 22px;
    }
}

/* =====================================================================
   HOME PAGE — polished sections (hero sub, trust strip, category grid,
   feature cards, final CTA band)
   ===================================================================== */

/* Hero subtext under h1 inside editorial-panel */
.hero-sub {
    color: #555;
    font-size: 1rem;
    line-height: 1.55;
    margin: 10px 0 0;
    max-width: 540px;
}

/* Search button icon spacing */
.network-search button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #050505;
    cursor: pointer;
}

/* Hero card author block with circular initial avatar */
.hero-story-content .post-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6a6a6a;
    font-size: .9rem;
}

.post-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mj-gold), var(--mj-gold-dark));
    color: #050505;
    font-weight: 900;
    font-size: .9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216, 180, 106, .25);
}

/* Soft muted text on dark page bg (between sections) */
.text-muted-soft {
    color: rgba(255, 255, 255, .6);
}

/* Panel link with chevron */
.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease;
}

.panel-link:hover {
    gap: 10px;
    color: var(--mj-gold-dark);
}

/* ----- Trust strip ----- */
.home-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #181318 0%, #221b14 100%);
    border: 1px solid rgba(216, 180, 106, .28);
    border-radius: 16px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(216, 180, 106, .12);
    position: relative;
    overflow: hidden;
}

.home-trust-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .7), transparent);
    pointer-events: none;
}

.home-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.home-trust-item+.home-trust-item {
    border-left: 1px solid rgba(255, 255, 255, .07);
    padding-left: 18px;
}

.home-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(216, 180, 106, .18), rgba(216, 180, 106, .04));
    color: var(--mj-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(216, 180, 106, .25);
    line-height: 0;
}

.home-trust-icon svg {
    display: block;
}

.home-trust-item>div {
    min-width: 0;
}

.home-trust-item strong {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -.01em;
}

.home-trust-item span {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
    margin-top: 2px;
}

/* ----- Category visual grid ----- */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.home-category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%);
    border: 1px solid rgba(216, 180, 106, .22);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}

.home-category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 180px;
    height: 140px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .14), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 180, 106, .55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(216, 180, 106, .22);
    color: #fff;
}

.home-category-card:hover::after {
    opacity: 1;
}

.home-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(216, 180, 106, .25);
}

.home-category-name {
    flex: 1;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
    min-width: 0;
}

.home-category-name+.home-category-count {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    margin-top: 3px;
    letter-spacing: 0;
    text-transform: none;
}

.home-category-card>.home-category-name {
    display: flex;
    flex-direction: column;
}

.home-category-arrow {
    color: var(--mj-gold);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.home-category-card:hover .home-category-arrow {
    transform: translateX(4px);
}

/* ----- Feature / why-us cards ----- */
.home-feature-card {
    height: 100%;
    padding: 28px 24px;
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%);
    border: 1px solid rgba(216, 180, 106, .22);
    border-radius: 16px;
    color: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.home-feature-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 220px;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .12), transparent 65%);
    pointer-events: none;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 180, 106, .45);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(216, 180, 106, .22), rgba(216, 180, 106, .06));
    color: var(--mj-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 106, .3);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.home-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    position: relative;
    z-index: 1;
}

.home-feature-card p {
    color: rgba(255, 255, 255, .62);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ----- Final CTA band ----- */
.home-cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 48px 52px;
    background: linear-gradient(135deg, #1a1410 0%, #261b10 60%, #2e2113 100%);
    border: 1px solid rgba(216, 180, 106, .35);
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(216, 180, 106, .18);
    position: relative;
    overflow: hidden;
}

.home-cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .8), transparent);
    pointer-events: none;
}

.home-cta-band::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 460px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .18), transparent 60%);
    pointer-events: none;
}

.home-cta-band-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.home-cta-band-content h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.015em;
    margin: 6px 0 12px;
    line-height: 1.15;
}

.home-cta-band-content p {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.home-cta-band-side {
    color: rgba(216, 180, 106, .35);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-cta-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    font-weight: 700;
    border-radius: 9px;
    padding: 10px 22px;
}

.home-cta-actions .btn-outline-light:hover {
    background: #fff;
    color: #050505;
    border-color: #fff;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .home-trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-trust-item+.home-trust-item {
        border-left: 0;
        padding-left: 0;
    }

    .home-cta-band {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }

    .home-cta-band-side {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .home-trust-strip {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .home-trust-item {
        padding: 8px 0;
    }

    .home-trust-item+.home-trust-item {
        border-top: 1px solid rgba(255, 255, 255, .07);
        padding-top: 14px;
        margin-top: 6px;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-cta-band {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .home-cta-band-content h2 {
        font-size: 1.4rem;
    }
}

/* =====================================================================
   BLOG FORM — "When to publish" radio control + scheduled datetime picker
   ===================================================================== */
.publish-control-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.publish-option {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.publish-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.publish-option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .12s ease;
}

.publish-option:hover .publish-option-card {
    border-color: rgba(216, 180, 106, .5);
    background: #fff;
    transform: translateY(-1px);
}

.publish-option input[type="radio"]:checked+.publish-option-card {
    border-color: var(--mj-gold);
    background: linear-gradient(135deg, #fffdf6, #fff5dd);
    box-shadow: 0 6px 16px rgba(216, 180, 106, .18), inset 0 0 0 1px rgba(216, 180, 106, .4);
}

.publish-option input[type="radio"]:focus-visible+.publish-option-card {
    outline: 3px solid rgba(216, 180, 106, .45);
    outline-offset: 2px;
}

.publish-option-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publish-option input[type="radio"]:checked+.publish-option-card .publish-option-icon {
    background: var(--mj-gold);
    color: #1a1a1d;
}

.publish-option-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.publish-option-title {
    font-weight: 800;
    color: #1a1a1d;
    font-size: .98rem;
    line-height: 1.2;
}

.publish-option-desc {
    color: #6a6a6a;
    font-size: .8rem;
    margin-top: 4px;
    line-height: 1.35;
}

.scheduled-date-row {
    display: none;
    margin-top: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fffdf6, #fff5dd);
    border: 1px solid rgba(216, 180, 106, .45);
    border-radius: 12px;
    animation: schedRevealFade .25s ease;
}

.scheduled-date-row.is-visible {
    display: block;
}

.scheduled-date-row input[type="datetime-local"] {
    max-width: 320px;
    font-weight: 700;
    background: #fff;
    border-color: rgba(216, 180, 106, .45);
}

.scheduled-date-row input[type="datetime-local"]:focus {
    border-color: var(--mj-gold-dark);
    box-shadow: 0 0 0 .2rem rgba(216, 180, 106, .22);
}

@keyframes schedRevealFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .publish-control-row {
        grid-template-columns: 1fr;
    }

    .scheduled-date-row input[type="datetime-local"] {
        max-width: 100%;
    }
}

/* =====================================================================
   MY BLOGS — polished listing (text-only, no thumbnails)
   ===================================================================== */
.my-blogs-table thead th {
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #6a6a6a;
    border-bottom: 1px solid #ececec;
    padding-top: 16px;
    padding-bottom: 16px;
    background: #fafafa;
}

.my-blogs-table tbody td {
    padding-top: 18px;
    padding-bottom: 18px;
    vertical-align: middle;
}

.my-blogs-table tbody tr {
    transition: background .15s ease;
}

.my-blogs-table tbody tr:hover {
    background: rgba(216, 180, 106, .05);
}

.my-blogs-table tbody tr+tr td {
    border-top: 1px solid #f1f1f1;
}

.my-blog-title-link {
    font-weight: 800 !important;
    color: #1a1a1d !important;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -.005em;
    transition: color .15s ease;
    display: inline-block;
    max-width: 520px;
}

a.my-blog-title-link:hover {
    color: var(--mj-gold-dark) !important;
}

.my-blog-category-pill {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(216, 180, 106, .12);
    color: var(--mj-gold-dark);
    border: 1px solid rgba(216, 180, 106, .4);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.my-blog-category-pill--muted {
    background: #f5f5f5;
    color: #909090;
    border-color: #e6e6e6;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    font-size: .76rem;
}

.my-blog-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-size: .82rem;
    font-weight: 600;
}

.my-blog-updated svg {
    color: #b3b3b3;
    flex-shrink: 0;
}

.my-blog-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.my-blog-action {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #e3e3e3;
    background: #fff;
    color: #5a5a5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
    padding: 0;
    line-height: 1;
}

.my-blog-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.my-blog-action--view:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.my-blog-action--edit:hover {
    background: var(--mj-gold);
    color: #050505;
    border-color: var(--mj-gold);
}

.my-blog-action--delete:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.my-blog-action:focus-visible {
    outline: 3px solid rgba(216, 180, 106, .45);
    outline-offset: 1px;
}

@media (max-width: 767.98px) {
    .my-blog-title-link {
        max-width: 240px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .my-blog-action {
        width: 32px;
        height: 32px;
    }

    .my-blogs-table thead th {
        font-size: .65rem;
    }

    .my-blogs-table tbody td {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* =====================================================================
   PUBLIC PROFILE — premium polished hero + cards + sidebar
   ===================================================================== */
.public-profile-hero-card {
    position: relative;
    padding: 40px 44px 0;
    background: linear-gradient(135deg, #1a1410 0%, #261b10 60%, #2e2113 100%);
    border: 1px solid rgba(216, 180, 106, .4);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(216, 180, 106, .18);
    overflow: hidden;
}

.public-profile-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .8), transparent);
    pointer-events: none;
}

.public-profile-hero-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .2), transparent 60%);
    pointer-events: none;
}

.public-profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    padding-bottom: 28px;
}

.public-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.public-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #161616;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .5);
    position: relative;
    z-index: 1;
    background: #1a1a1d;
}

.public-profile-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mj-gold), var(--mj-gold-dark));
    color: #050505;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
}

.public-profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--mj-gold), transparent 50%, var(--mj-gold-dark), transparent 80%, var(--mj-gold));
    z-index: 0;
    animation: avatarRingSpin 8s linear infinite;
    filter: blur(2px);
    opacity: .65;
}

@keyframes avatarRingSpin {
    to {
        transform: rotate(360deg);
    }
}

.public-profile-hero-text {
    flex: 1;
    min-width: 280px;
}

.public-profile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mj-gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    font-weight: 900;
}

.public-profile-name {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin: 12px 0 8px;
}

.public-profile-headline {
    color: rgba(255, 255, 255, .8);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 16px;
    max-width: 580px;
}

.public-profile-headline--muted {
    color: rgba(255, 255, 255, .4);
    font-style: italic;
}

.public-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.public-profile-username {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: var(--mj-gold);
    border: 1px solid rgba(216, 180, 106, .5);
    border-radius: 999px;
    padding: 7px 15px;
    font-weight: 900;
    font-size: .9rem;
    letter-spacing: .01em;
}

.public-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: .82rem;
    font-weight: 600;
}

.public-profile-chip svg {
    color: var(--mj-gold);
    flex-shrink: 0;
}

/* Stats strip inside hero */
.public-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(216, 180, 106, .18);
    margin: 0 -44px;
    padding: 0;
    background: rgba(0, 0, 0, .18);
}

.public-profile-stat {
    padding: 18px 22px;
    border-right: 1px solid rgba(216, 180, 106, .1);
}

.public-profile-stat:last-child {
    border-right: 0;
}

.public-profile-stat strong {
    display: block;
    color: #fff;
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -.015em;
}

.public-profile-stat span {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: .76rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

/* ---- Profile body cards ---- */
.profile-info-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    margin-bottom: 20px;
    transition: box-shadow .2s ease;
}

.profile-info-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.profile-side-card {
    position: sticky;
    top: 24px;
}

.profile-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1a1a1d;
    letter-spacing: -.005em;
    margin: 0 0 14px;
}

.profile-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 106, .3);
    flex-shrink: 0;
}

.profile-card-body {
    color: #444;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.profile-card-empty {
    color: #999;
    font-style: italic;
    font-size: .92rem;
    margin: 0;
}

.profile-project-title {
    color: #1a1a1d;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.profile-count-pill {
    display: inline-block;
    padding: 5px 13px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    border: 1px solid rgba(216, 180, 106, .35);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #8a8a8a;
}

.profile-empty-state svg {
    color: rgba(216, 180, 106, .5);
    margin-bottom: 8px;
}

.profile-empty-state p {
    color: #555;
    font-weight: 700;
    margin: 4px 0 2px;
}

.profile-empty-state span {
    font-size: .85rem;
    color: #999;
}

.profile-empty-state--small {
    padding: 14px 8px;
}

.profile-empty-state--small p {
    font-size: .9rem;
    font-weight: 600;
}

/* ---- Contact list (icon prefixed) ---- */
.profile-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.profile-contact-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(216, 180, 106, .12);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 106, .3);
}

.profile-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-contact-label {
    color: #8a8a8a;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1;
    margin-bottom: 3px;
}

.profile-contact-value {
    color: #1a1a1d;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.4;
}

a.profile-contact-value:hover {
    color: var(--mj-gold-dark);
    text-decoration: underline;
}

/* ---- Social icon grid ---- */
.profile-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f6f6f6;
    color: #444;
    border: 1px solid #e3e3e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.profile-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
    color: #fff;
}

.profile-social-icon--website:hover {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #050505;
}

.profile-social-icon--youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.profile-social-icon--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

.profile-social-icon--linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.profile-social-icon--github:hover {
    background: #24292e;
    border-color: #24292e;
}

.profile-social-icon--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.profile-social-icon--x:hover {
    background: #000;
    border-color: #000;
}

.profile-share-btn {
    border-color: #c9c9c9;
}

.profile-share-btn:hover {
    background: #1a1a1d;
    color: #fff;
    border-color: #1a1a1d;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .public-profile-hero-card {
        padding: 28px 22px 0;
        border-radius: 18px;
    }

    .public-profile-hero-inner {
        gap: 20px;
        padding-bottom: 22px;
    }

    .public-profile-avatar-wrap,
    .public-profile-avatar {
        width: 110px;
        height: 110px;
    }

    .public-profile-avatar--initial {
        font-size: 2.8rem;
    }

    .public-profile-name {
        font-size: 1.8rem;
    }

    .public-profile-headline {
        font-size: .95rem;
    }

    .public-profile-stats {
        margin: 0 -22px;
    }

    .public-profile-stat {
        padding: 14px 16px;
        border-right: 0;
        border-top: 1px solid rgba(216, 180, 106, .1);
    }

    .public-profile-stat:first-child {
        border-top: 0;
    }

    .profile-info-card {
        padding: 20px;
    }

    .profile-side-card {
        position: relative;
        top: 0;
    }
}

/* =====================================================================
   AUTHORS DIRECTORY PAGE (/authors) — hero, filter bar, cards grid
   ===================================================================== */

/* Hero */
.au-hero {
    position: relative;
    padding: 48px 44px;
    background: linear-gradient(135deg, #1a1410 0%, #261b10 60%, #2e2113 100%);
    border: 1px solid rgba(216, 180, 106, .4);
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(216, 180, 106, .18);
    overflow: hidden;
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
}

.au-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .85), transparent);
    pointer-events: none;
}

.au-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .2), transparent 60%);
    pointer-events: none;
}

.au-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.au-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mj-gold);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.au-h1 {
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin: 0 0 14px;
}

.au-sub {
    color: rgba(255, 255, 255, .72);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 auto 20px;
    max-width: 580px;
}

.au-hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.au-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .32);
    border: 1px solid rgba(216, 180, 106, .35);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 700;
}

.au-hero-stat svg {
    color: var(--mj-gold);
    flex-shrink: 0;
}

.au-hero-stat strong {
    color: var(--mj-gold);
    font-weight: 900;
}

/* Filter bar */
.au-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%);
    border: 1px solid rgba(216, 180, 106, .25);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 28px;
}

.au-filter-search {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(216, 180, 106, .25);
    border-radius: 10px;
    padding: 0 14px;
    height: 44px;
    min-width: 0;
    margin: 0;
}

.au-filter-search svg {
    color: var(--mj-gold);
    flex-shrink: 0;
}

.au-filter-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    padding: 0 12px;
    height: 100%;
    min-width: 0;
}

.au-filter-search input::placeholder {
    color: rgba(255, 255, 255, .4);
    font-weight: 500;
}

.au-filter-search:focus-within {
    border-color: rgba(216, 180, 106, .5);
    box-shadow: 0 0 0 .2rem rgba(216, 180, 106, .15);
}

.au-filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.au-sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, .32);
    border: 1px solid rgba(216, 180, 106, .22);
    border-radius: 999px;
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s ease;
    cursor: pointer;
}

.au-sort-pill:hover {
    border-color: rgba(216, 180, 106, .5);
    color: #fff;
}

.au-sort-pill.is-active {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #050505;
}

.au-filter-submit {
    height: 44px;
    padding: 0 22px;
    background: var(--mj-gold);
    color: #050505;
    border: 0;
    border-radius: 10px;
    font-weight: 900;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s ease;
}

.au-filter-submit:hover {
    background: var(--mj-gold-dark);
}

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

.au-card {
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%);
    border: 1px solid rgba(216, 180, 106, .25);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.au-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 240px;
    height: 180px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .14), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

.au-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 180, 106, .55);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
    color: #fff;
}

.au-card:hover::after {
    opacity: 1;
}

.au-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.au-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(216, 180, 106, .35);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mj-gold), var(--mj-gold-dark));
    color: #050505;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.au-card-head-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.au-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.au-username {
    font-size: .78rem;
    font-weight: 700;
    color: var(--mj-gold);
    margin-top: 3px;
}

.au-profession {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: rgba(216, 180, 106, .14);
    border: 1px solid rgba(216, 180, 106, .35);
    color: var(--mj-gold);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative;
    z-index: 1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.au-headline {
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 2.6em;
}

.au-headline--empty {
    color: rgba(255, 255, 255, .35);
    font-style: italic;
}

.au-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.au-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .72);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: .74rem;
    font-weight: 700;
}

.au-meta-chip svg {
    color: var(--mj-gold);
    flex-shrink: 0;
}

.au-card-cta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(216, 180, 106, .15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--mj-gold);
    font-size: .85rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.au-card-cta svg {
    transition: transform .2s ease;
}

.au-card:hover .au-card-cta svg {
    transform: translateX(4px);
}

/* Empty state + pagination */
.au-empty {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%);
    border: 1px solid rgba(216, 180, 106, .22);
    border-radius: 18px;
    color: rgba(255, 255, 255, .7);
}

.au-empty svg {
    color: rgba(216, 180, 106, .45);
    margin-bottom: 14px;
}

.au-empty h3 {
    color: #fff;
    font-weight: 800;
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.au-empty p {
    color: rgba(255, 255, 255, .55);
    margin: 0 0 16px;
}

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

@media (max-width: 767.98px) {
    .au-hero {
        padding: 32px 22px;
        border-radius: 18px;
    }

    .au-h1 {
        font-size: 1.8rem;
    }

    .au-sub {
        font-size: .95rem;
    }

    .au-filter {
        padding: 12px;
    }

    .au-filter-sort {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .au-filter-submit {
        width: 100%;
    }

    .au-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .au-card {
        padding: 20px;
    }
}

/* =====================================================================
   HOME PAGE — section titles (white on dark bg) + visual category grid
   ===================================================================== */
.home-section-title {
    color: #fff !important;
    font-weight: 900;
    letter-spacing: -.015em;
}

.home-section-sub {
    color: rgba(255, 255, 255, .65);
    font-size: 1rem;
    line-height: 1.55;
}

/* Category visual cards (used on home Explore by category section) */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.home-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%);
    border: 1px solid rgba(216, 180, 106, .22);
    border-radius: 14px;
    text-decoration: none !important;
    color: #fff !important;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.home-cat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 180px;
    height: 140px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .14), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

.home-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 180, 106, .55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(216, 180, 106, .22);
    color: #fff !important;
}

.home-cat-card:hover::after {
    opacity: 1;
}

.home-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(216, 180, 106, .25);
    line-height: 0;
}

.home-cat-icon svg {
    display: block;
}

.home-cat-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.home-cat-name {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.home-cat-count {
    font-size: .76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    margin-top: 4px;
    display: block;
}

.home-cat-arrow {
    color: var(--mj-gold);
    flex-shrink: 0;
    transition: transform .2s ease;
    display: inline-flex;
    line-height: 0;
}

.home-cat-card:hover .home-cat-arrow {
    transform: translateX(4px);
}

@media (max-width: 575.98px) {
    .home-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   HOME CATEGORY CARDS — bulletproof overrides (works for BOTH HTML
   structures: with .home-cat-body wrapper OR plain sibling layout)
   ===================================================================== */
.home-cat-section .home-cat-card,
a.home-cat-card {
    background: linear-gradient(135deg, #1a1614 0%, #221a13 100%) !important;
    border: 1px solid rgba(216, 180, 106, .28) !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 20px !important;
    min-width: 0 !important;
}

.home-cat-section .home-cat-card:hover,
a.home-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 180, 106, .55) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(216, 180, 106, .22);
    color: #fff !important;
}

/* If HTML still uses OLD sibling-style structure (no .home-cat-body wrapper),
   make name+count stack vertically using inline-flex on name + block count */
.home-cat-card>.home-cat-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff !important;
}

.home-cat-card>.home-cat-count {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55) !important;
    flex-shrink: 0;
    margin-left: auto;
    padding-right: 8px;
}

/* Force section title visibility on dark page bg */
.home-cat-section h2,
.home-cat-section .home-section-title {
    color: #fff !important;
    font-weight: 900 !important;
}

.home-cat-section .section-kicker {
    color: var(--mj-gold) !important;
}

/* Ensure section background is dark (matches page) so cards stand out */
.home-cat-section {
    background: transparent;
}

/* =====================================================================
   PUBLIC PROFILE PAGE (/u/{username}) — premium hero + cards + sidebar
   ===================================================================== */

/* Hero */
.pp-hero {
    position: relative;
    padding: 36px 40px 0;
    background: linear-gradient(135deg, #1a1410 0%, #261b10 60%, #2e2113 100%);
    border: 1px solid rgba(216, 180, 106, .42);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(216, 180, 106, .18);
    overflow: hidden;
    color: #fff;
}

.pp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .85), transparent);
    pointer-events: none;
}

.pp-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .22), transparent 60%);
    pointer-events: none;
}

.pp-hero-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    padding-bottom: 26px;
}

.pp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 130px;
    height: 130px;
}

.pp-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #161616;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .5);
    position: relative;
    z-index: 1;
    background: #1a1a1d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pp-avatar--initial {
    background: linear-gradient(135deg, var(--mj-gold), var(--mj-gold-dark));
    color: #050505;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
}

.pp-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--mj-gold), transparent 50%, var(--mj-gold-dark), transparent 80%, var(--mj-gold));
    z-index: 0;
    filter: blur(2px);
    opacity: .6;
}

.pp-text {
    flex: 1;
    min-width: 260px;
}

.pp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mj-gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .74rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.pp-name {
    color: #fff;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin: 0 0 10px;
}

.pp-headline {
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 560px;
}

.pp-headline--muted {
    color: rgba(255, 255, 255, .4);
    font-style: italic;
}

.pp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pp-username {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: var(--mj-gold);
    border: 1px solid rgba(216, 180, 106, .5);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 900;
    font-size: .88rem;
}

.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .85);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 600;
}

.pp-chip svg {
    color: var(--mj-gold);
    flex-shrink: 0;
}

/* Stats strip inside hero */
.pp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(216, 180, 106, .18);
    margin: 0 -40px;
    background: rgba(0, 0, 0, .22);
}

.pp-stat {
    padding: 18px 22px;
    border-right: 1px solid rgba(216, 180, 106, .1);
}

.pp-stat:last-child {
    border-right: 0;
}

.pp-stat strong {
    display: block;
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: -.015em;
}

.pp-stat span {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: .74rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

/* Body cards (white) */
.pp-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    margin-bottom: 20px;
}

.pp-card-side {
    position: sticky;
    top: 24px;
}

.pp-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.04rem;
    font-weight: 900;
    color: #1a1a1d;
    letter-spacing: -.005em;
    margin: 0 0 14px;
}

.pp-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 106, .3);
    flex-shrink: 0;
}

.pp-card-body {
    color: #444;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.pp-card-empty {
    color: #999;
    font-style: italic;
    font-size: .92rem;
    margin: 0;
}

.pp-project-title {
    color: #1a1a1d;
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.pp-count-pill {
    display: inline-block;
    padding: 5px 13px;
    background: rgba(216, 180, 106, .14);
    color: var(--mj-gold-dark);
    border: 1px solid rgba(216, 180, 106, .35);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Empty states */
.pp-empty {
    text-align: center;
    padding: 30px 16px;
    color: #8a8a8a;
}

.pp-empty svg {
    color: rgba(216, 180, 106, .5);
    margin-bottom: 8px;
}

.pp-empty p {
    color: #555;
    font-weight: 700;
    margin: 4px 0 2px;
}

.pp-empty span {
    font-size: .85rem;
    color: #999;
}

.pp-empty--small {
    padding: 14px 8px;
}

.pp-empty--small p {
    font-size: .9rem;
    font-weight: 600;
}

/* Contact list — icon prefix rows */
.pp-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.pp-contact-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(216, 180, 106, .12);
    color: var(--mj-gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 180, 106, .3);
}

.pp-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pp-contact-label {
    color: #8a8a8a;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1;
    margin-bottom: 3px;
}

.pp-contact-value {
    color: #1a1a1d;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.4;
}

a.pp-contact-value:hover {
    color: var(--mj-gold-dark);
    text-decoration: underline;
}

/* Social icon grid */
.pp-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pp-social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f6f6f6;
    color: #444;
    border: 1px solid #e3e3e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .15s ease;
}

.pp-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
    color: #fff;
}

.pp-social--website:hover {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #050505;
}

.pp-social--youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.pp-social--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

.pp-social--linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.pp-social--github:hover {
    background: #24292e;
    border-color: #24292e;
}

.pp-social--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.pp-social--x:hover {
    background: #000;
    border-color: #000;
}

.pp-share-btn {
    border: 1px solid #c9c9c9;
}

.pp-share-btn:hover {
    background: #1a1a1d;
    color: #fff;
    border-color: #1a1a1d;
}

@media (max-width: 767.98px) {
    .pp-hero {
        padding: 24px 20px 0;
        border-radius: 18px;
    }

    .pp-hero-inner {
        gap: 18px;
        padding-bottom: 20px;
    }

    .pp-avatar-wrap,
    .pp-avatar {
        width: 100px;
        height: 100px;
    }

    .pp-avatar--initial {
        font-size: 2.6rem;
    }

    .pp-name {
        font-size: 1.7rem;
    }

    .pp-headline {
        font-size: .94rem;
    }

    .pp-stats {
        margin: 0 -20px;
    }

    .pp-stat {
        padding: 14px 16px;
        border-right: 0;
        border-top: 1px solid rgba(216, 180, 106, .1);
    }

    .pp-stat:first-child {
        border-top: 0;
    }

    .pp-card {
        padding: 18px;
    }

    .pp-card-side {
        position: relative;
        top: 0;
    }
}

/* =====================================================================
   Admin header dropdown (gold "Admin ▼" menu) — must escape masthead-card
   overflow. The .masthead-card overflow was changed from hidden to visible
   above so the menu is not clipped.
   ===================================================================== */

/* Admin dropdown toggle button — keep solid gold above the radial glow */
.masthead-card .dropdown {
    position: relative;
    z-index: 3;
}

.masthead-card .dropdown>.dropdown-toggle.btn-gold {
    position: relative;
    z-index: 3;
    background: var(--mj-gold) !important;
    border-color: var(--mj-gold) !important;
    color: #000 !important;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(216, 180, 106, .3);
    transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}

.masthead-card .dropdown>.dropdown-toggle.btn-gold:hover,
.masthead-card .dropdown>.dropdown-toggle.btn-gold[aria-expanded="true"] {
    background: var(--mj-gold-dark) !important;
    border-color: var(--mj-gold-dark) !important;
    color: #000 !important;
    box-shadow: 0 10px 22px rgba(216, 180, 106, .4);
    transform: translateY(-1px);
}

/* Admin dropdown menu — premium card style */
.masthead-card .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin-top: 10px !important;
    min-width: 240px !important;
    z-index: 1100 !important;
    background: #ffffff;
    border: 1px solid rgba(216, 180, 106, .35);
    border-radius: 14px;
    box-shadow:
        0 24px 50px rgba(0, 0, 0, .45),
        0 4px 14px rgba(216, 180, 106, .18),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    padding: 8px;
    overflow: hidden;
    animation: mjkDropdownIn .18s ease-out;
}

@keyframes mjkDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold accent strip at top of dropdown */
.masthead-card .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mj-gold), transparent);
    border-radius: 14px 14px 0 0;
}

.masthead-card .dropdown-menu .dropdown-item {
    color: #1d1d1f !important;
    padding: 11px 14px;
    font-weight: 700;
    font-size: .92rem;
    border-radius: 8px;
    transition: background .12s ease, color .12s ease, padding-left .12s ease;
}

.masthead-card .dropdown-menu .dropdown-item svg {
    color: var(--mj-gold-dark);
    transition: color .12s ease;
}

.masthead-card .dropdown-menu .dropdown-item:hover,
.masthead-card .dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, rgba(216, 180, 106, .16) 0%, rgba(216, 180, 106, .06) 100%);
    color: #050505 !important;
    padding-left: 18px;
}

.masthead-card .dropdown-menu .dropdown-item:hover svg {
    color: var(--mj-gold-dark);
}

.masthead-card .dropdown-menu .text-danger,
.masthead-card .dropdown-menu .text-danger svg {
    color: #d70015 !important;
}

.masthead-card .dropdown-menu .text-danger:hover {
    background: rgba(215, 0, 21, .08) !important;
    color: #a8000f !important;
}

.masthead-card .dropdown-menu form {
    margin: 0;
}

.masthead-card .dropdown-menu form .dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
}

.masthead-card .dropdown-divider {
    margin: 6px 4px;
    border-top: 1px solid rgba(216, 180, 106, .2);
}

/* Constrain the gold glow ::after to not leak past visible button area */
.masthead-card::after {
    z-index: 0;
}

/* =====================================================================
   Admin workspace — table action controls (Save, status select) and
   checkbox labels. Default Bootstrap btn-outline-dark / form-check on a
   dark theme become invisible, so override here.
   ===================================================================== */
.admin-workspace .table .btn-outline-dark {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #000;
    font-weight: 700;
}

.admin-workspace .table .btn-outline-dark:hover,
.admin-workspace .table .btn-outline-dark:focus {
    background: var(--mj-gold-dark);
    border-color: var(--mj-gold-dark);
    color: #000;
}

.admin-workspace .table .form-select,
.admin-workspace .table .form-select-sm {
    min-width: 130px;
    background-color: #fff;
    color: #111;
    border-color: rgba(216, 180, 106, .4);
    font-weight: 600;
}

.admin-workspace .table .form-select:focus {
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 .2rem rgba(216, 180, 106, .2);
}

.admin-workspace .table .form-select option {
    color: #111 !important;
    background-color: #fff !important;
    font-weight: 600;
}

.admin-workspace .table .form-select option:checked,
.admin-workspace .table .form-select option:hover {
    background-color: rgba(216, 180, 106, .18) !important;
    color: #111 !important;
}

/* All form-select options inside admin-workspace (forms outside tables too) */
.admin-workspace .form-select option,
.admin-workspace .soft-card .form-select option {
    color: #111 !important;
    background-color: #fff !important;
    font-weight: 600;
}

.admin-workspace .form-select option:checked,
.admin-workspace .form-select option:hover,
.admin-workspace .soft-card .form-select option:checked,
.admin-workspace .soft-card .form-select option:hover {
    background-color: rgba(216, 180, 106, .18) !important;
    color: #111 !important;
}

/* Card header h2 on dark admin card */
.admin-workspace .card-header h2 {
    color: #fff;
}

/* Form check label + gold-themed checkbox on dark admin theme */
.admin-workspace .form-check,
.admin-workspace .form-check label,
.admin-workspace label.form-check {
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
}

.admin-workspace .form-check-input {
    background-color: rgba(255, 255, 255, .08);
    border-color: rgba(216, 180, 106, .4);
}

.admin-workspace .form-check-input:checked {
    background-color: var(--mj-gold);
    border-color: var(--mj-gold);
}

.admin-workspace .form-check-input:focus {
    border-color: var(--mj-gold);
    box-shadow: 0 0 0 .2rem rgba(216, 180, 106, .25);
}


/* =====================================================================
   PREMIUM HOMEPAGE SECTIONS — Trending, Editorial Pick, Load More
   ===================================================================== */

/* ---- Trending Stories Panel ---- */
.trending-panel {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.trending-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.trending-scroll-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--mj-gold) transparent;
}

.trending-scroll-track::-webkit-scrollbar {
    height: 4px;
}

.trending-scroll-track::-webkit-scrollbar-track {
    background: transparent;
}

.trending-scroll-track::-webkit-scrollbar-thumb {
    background: var(--mj-gold);
    border-radius: 4px;
}

.trending-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mj-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    background: #fafaf8;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    min-width: 200px;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .13);
    border-color: rgba(216, 180, 106, .5);
    color: #111;
    text-decoration: none;
}

.trending-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(6px);
    color: var(--mj-gold);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 4px 9px;
    border-radius: 999px;
    z-index: 2;
    border: 1px solid rgba(216, 180, 106, .4);
}

.trending-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.trending-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
}

.trending-card:hover .trending-card-img img {
    transform: scale(1.05);
}

.trending-card-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-cat {
    color: var(--mj-gold-dark);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.trending-card-body h3 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.22;
    margin: 0;
    flex: 1;
}

.trending-meta {
    color: var(--mj-muted);
    font-size: .78rem;
    font-weight: 600;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ---- Grid Load More Row ---- */
.grid-load-more-row {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid rgba(216, 180, 106, .6);
    color: #111;
    font-weight: 800;
    font-size: .95rem;
    padding: 13px 36px;
    border-radius: 99px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
    letter-spacing: .01em;
}

.btn-load-more:hover {
    background: var(--mj-gold);
    border-color: var(--mj-gold);
    color: #000;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(216, 180, 106, .35);
    transform: translateY(-2px);
}

.btn-load-more svg {
    transition: transform .2s ease;
}

.btn-load-more:hover svg {
    transform: translateX(4px);
}

/* ---- Editorial Pick Band ---- */
.editorial-pick-band {
    background:
        radial-gradient(ellipse at top right, rgba(216, 180, 106, .22) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(216, 180, 106, .06) 0%, transparent 50%),
        linear-gradient(135deg, #111009 0%, #0d0c0a 60%, #1a160e 100%);
    border: 1px solid rgba(216, 180, 106, .25);
    border-radius: 20px;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .5),
        0 6px 24px rgba(216, 180, 106, .1),
        inset 0 1px 0 rgba(216, 180, 106, .3);
}

.editorial-pick-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 106, .75), transparent);
    pointer-events: none;
}

.editorial-pick-band::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -6%;
    width: 420px;
    height: 280px;
    background: radial-gradient(ellipse at center, rgba(216, 180, 106, .14) 0%, transparent 60%);
    pointer-events: none;
}

.editorial-pick-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mj-gold);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 28px;
    padding: 7px 16px;
    background: rgba(216, 180, 106, .1);
    border: 1px solid rgba(216, 180, 106, .28);
    border-radius: 999px;
    position: relative;
    z-index: 2;
}

.editorial-pick-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 52px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.editorial-pick-cat {
    display: inline-block;
    color: var(--mj-gold);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
}

.editorial-pick-title {
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: #fff;
    margin-bottom: 18px;
}

.editorial-pick-title a {
    color: #fff;
    text-decoration: none;
    transition: color .15s ease;
}

.editorial-pick-title a:hover {
    color: var(--mj-gold);
}

.editorial-pick-excerpt {
    color: rgba(255, 255, 255, .6);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}

.editorial-pick-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.pick-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mj-gold);
    color: #000;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(216, 180, 106, .4);
}

.editorial-pick-author strong {
    display: block;
    color: #fff;
    font-size: .93rem;
}

.editorial-pick-author span {
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
}

.editorial-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--mj-gold);
    color: #000;
    font-weight: 900;
    font-size: .9rem;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
    box-shadow: 0 8px 22px rgba(216, 180, 106, .4);
}

.editorial-pick-btn:hover {
    background: var(--mj-gold-dark);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(216, 180, 106, .5);
    text-decoration: none;
}

.editorial-pick-btn svg {
    transition: transform .2s ease;
}

.editorial-pick-btn:hover svg {
    transform: translateX(4px);
}

.editorial-pick-img {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 28px 64px rgba(0, 0, 0, .55), 0 0 0 1px rgba(216, 180, 106, .2);
}

.editorial-pick-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.editorial-pick-band:hover .editorial-pick-img img {
    transform: scale(1.03);
}

/* ---- Enhanced Blog Card ---- */
.network-post-card {
    border-radius: 20px;
    border: 1px solid var(--mj-border);
    background: #fff;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
}

.network-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .14);
    border-color: rgba(216, 180, 106, .45);
}

.post-thumb {
    display: block;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.network-post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-body p {
    flex: 1;
}

.post-author {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--mj-border);
}

/* ---- Post Author Avatar Initials ---- */
.post-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mj-gold);
    color: #000;
    font-weight: 900;
    font-size: .75rem;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ---- Home Categories Enhancements ---- */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.home-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--mj-border);
    border-radius: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: #111;
    transition: all .18s ease;
    position: relative;
    overflow: hidden;
}

.home-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(216, 180, 106, .06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .2s ease;
}

.home-cat-card:hover {
    border-color: rgba(216, 180, 106, .55);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
    color: #111;
    text-decoration: none;
}

.home-cat-card:hover::before {
    opacity: 1;
}

.home-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(216, 180, 106, .12);
    color: var(--mj-gold-dark);
    flex-shrink: 0;
    transition: background .18s ease;
    position: relative;
    z-index: 1;
}

.home-cat-card:hover .home-cat-icon {
    background: rgba(216, 180, 106, .22);
}

.home-cat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.home-cat-name {
    font-weight: 800;
    font-size: .95rem;
}

.home-cat-count {
    color: var(--mj-muted);
    font-size: .8rem;
    font-weight: 600;
    margin-top: 2px;
}

.home-cat-arrow {
    color: var(--mj-muted);
    flex-shrink: 0;
    transition: transform .18s ease, color .18s ease;
    position: relative;
    z-index: 1;
}

.home-cat-card:hover .home-cat-arrow {
    transform: translateX(3px);
    color: var(--mj-gold-dark);
}

/* ---- Responsive fixes ---- */
@media (max-width: 991px) {
    .trending-scroll-track {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        overflow-x: auto;
        flex-wrap: nowrap;
        display: flex;
    }

    .trending-card {
        min-width: 200px;
        max-width: 200px;
    }

    .editorial-pick-content {
        grid-template-columns: 1fr;
    }

    .editorial-pick-img {
        display: none;
    }

    .editorial-pick-band {
        padding: 36px 28px;
    }

    .editorial-pick-title {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
    }

    .home-cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 575px) {
    .trending-panel {
        padding: 20px;
    }

    .trending-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .editorial-pick-band {
        padding: 28px 20px;
    }

    .home-cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .home-cat-card {
        padding: 14px 14px;
    }
}


/* =====================================================================
   FULL-WIDTH LAYOUT — remove wasted left/right space
   ===================================================================== */

/* Widen Bootstrap container on all breakpoints */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Masthead header stretches full width */
.site-masthead .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Content panels fill the full width */
.editorial-panel,
.content-grid-panel,
.category-strip,
.archive-layout,
.trending-panel,
.story-detail-panel,
.public-profile-panel {
    border-radius: 0;
    padding: 40px 36px;
    box-shadow: none;
    border-left: none;
    border-right: none;
}

/* Restore radius only for inner cards, not page-level panels */
.network-post-card,
.hero-story-card,
.top-read-card,
.home-feature-card,
.home-cta-band,
.editorial-pick-band,
.trending-card,
.home-cat-card,
.profile-info-card,
.sidebar-panel,
.dark-panel,
.soft-card,
.metric-card,
.auth-card {
    border-radius: 18px !important;
}

/* Remove rounded corners from page-level white panels */
.editorial-panel {
    border-radius: 0 !important;
}

.content-grid-panel {
    border-radius: 0 !important;
}

.trending-panel {
    border-radius: 0 !important;
}

/* The network-section background already uses the full width,
   just make sure there's no extra horizontal margin */
.network-section {
    padding-left: 0;
    padding-right: 0;
}

.network-section>.container {
    max-width: 100% !important;
}

/* Footer full width */
.networker-footer .container {
    max-width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Panel-shell (dashboard/admin pages) — also widen */
.panel-shell {
    max-width: 100%;
    padding: 0 24px;
}

/* Masthead card radius stays but fills full width */
.masthead-card {
    border-radius: 10px;
}

/* Large screen: give some breathing room with max-width cap at 1600px */
@media (min-width: 1400px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }

    .networker-footer .container {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }

    .editorial-panel,
    .content-grid-panel,
    .trending-panel {
        padding: 48px 56px;
    }
}

@media (max-width: 767px) {

    .container,
    .container-sm,
    .container-md {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .editorial-panel,
    .content-grid-panel,
    .trending-panel,
    .story-detail-panel,
    .public-profile-panel {
        padding: 24px 16px;
    }
}