/* ==========================================================================
   Moonjump — Dark cinematic Ghost theme
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-roman.woff2') format('woff2');
}

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

html {
    font-size: 62.5%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #fff;
    background: #0a0a0a;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ---------- Layout ---------- */
.mj-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mj-content {
    flex: 1 0 auto;
}

.mj-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

/* ---------- Navigation ---------- */
.mj-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 2.4rem;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.mj-nav.is-scrolled,
.mj-nav.is-solid {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mj-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.mj-nav__logo {
    flex-shrink: 0;
    overflow: visible;
}

.mj-nav__logo img {
    max-height: 3.2rem;
    width: auto;
}

.mj-nav__logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.mj-nav__links {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    list-style: none;
}

.mj-nav__links a {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.mj-nav__links a:hover {
    color: #fff;
}

/* Parallelogram featured nav button */
.mj-nav__featured {
    margin-left: 0.4rem;
}

.mj-nav__featured-link {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 18px !important;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.mj-nav__featured-link:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff !important;
}

.mj-nav__actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.mj-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mj-nav__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mj-nav__btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.mj-nav__btn--primary {
    background: #fff;
    color: #0a0a0a;
}

.mj-nav__btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.mj-nav__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.2s;
}

.mj-nav__search:hover {
    color: #fff;
}

/* === User Account Dropdown === */
.mj-user-menu {
    position: relative;
}

.mj-user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.15s;
    background: none;
    font-family: inherit;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.mj-user-menu__trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mj-user-menu__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #8b5cf6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.mj-user-menu__avatar::first-letter {
    text-indent: 0;
}

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

.mj-user-menu__arrow {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mj-user-menu.is-open .mj-user-menu__arrow {
    transform: rotate(180deg);
}

.mj-user-menu__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    overflow: hidden;
}

.mj-user-menu.is-open .mj-user-menu__dropdown {
    display: block;
}

.mj-user-menu__profile {
    padding: 16px;
}

.mj-user-menu__profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.mj-user-menu__avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.mj-user-menu__avatar-lg::first-letter {
    text-indent: 0;
}

.mj-user-menu__display-name {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0;
}

.mj-user-menu__email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.mj-user-menu__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.mj-user-menu__badge--pro {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.mj-user-menu__badge--free {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mj-user-menu__sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.mj-user-menu__links {
    padding: 6px 0;
}

.mj-user-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.1s, color 0.1s;
    text-decoration: none;
}

.mj-user-menu__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
}

.mj-user-menu__link svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.mj-user-menu__link--danger {
    color: rgba(255, 100, 100, 0.7);
}

.mj-user-menu__link--danger:hover {
    color: #f87171;
    background: rgba(255, 100, 100, 0.05);
}

/* Mobile user section */
/* Burger */
.mj-nav__burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.mj-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    z-index: 1001;
    background: #111;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.mj-mobile-menu.is-open {
    display: flex;
    transform: translateX(0);
}

.mj-mobile-menu__close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1002;
}
.mj-mobile-menu__close:hover {
    color: #fff;
}

/* Mobile menu header area */
.mj-mobile-menu::before {
    content: '';
    display: block;
    height: 6rem;
    flex-shrink: 0;
}

.mj-mobile-menu > a {
    display: flex;
    align-items: center;
    padding: 1.3rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.15s;
}

.mj-mobile-menu > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

/* Accordion groups */
.mj-mobile-menu__group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mj-mobile-menu__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.3rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.mj-mobile-menu__trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.mj-mobile-menu__chevron {
    transition: transform 0.25s ease;
    opacity: 0.4;
    flex-shrink: 0;
}

.mj-mobile-menu__group.is-open .mj-mobile-menu__chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

.mj-mobile-menu__group.is-open .mj-mobile-menu__trigger {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.mj-mobile-menu__group .mj-mobile-menu__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.mj-mobile-menu__group.is-open .mj-mobile-menu__sub {
    max-height: 400px;
    padding: 0.4rem 0 0.8rem;
}

.mj-mobile-menu__view-all {
    color: rgba(139, 92, 246, 0.7) !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    margin-top: 0.2rem;
    padding-top: 0.6rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mj-mobile-menu__view-all:hover {
    color: #a78bfa !important;
}

.mj-mobile-menu > .mj-mobile-menu__sub {
    padding: 0 0 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mj-mobile-menu__featured {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.8rem 2rem;
    padding: 10px 22px 10px 18px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    transition: background 0.15s;
}

.mj-mobile-menu__featured:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.mj-mobile-menu .mj-nav__btn {
    font-size: 1.2rem;
    padding: 0.9rem 2rem;
}

.mj-mobile-menu__actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    justify-content: stretch;
}
.mj-mobile-menu__actions .mj-nav__btn {
    flex: 1;
    text-align: center;
    margin: 0;
}

/* Mobile menu backdrop */
.mj-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
}
.mj-mobile-backdrop.is-open {
    display: block;
}

/* ---------- Hero Section ---------- */
.mj-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12rem 2.4rem 6rem;
    overflow: hidden;
}

.mj-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mj-hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-hero__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.mj-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, 0.15) 40%,
        rgba(10, 10, 10, 0.7) 75%,
        rgba(10, 10, 10, 1) 100%
    );
}

.mj-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Featured Cards Grid */
.mj-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mj-featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.4rem;
    background: #111;
    transition: transform 0.3s ease;
}

.mj-featured-card:hover {
    transform: translateY(-2px);
}

.mj-featured-card--lead {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.mj-featured-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mj-featured-card__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
}

.mj-featured-card__content {
    position: relative;
    z-index: 2;
}

.mj-featured-card__date {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.mj-featured-card__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.mj-featured-card--lead .mj-featured-card__title {
    font-size: 2.8rem;
}

/* ---------- Section Headers ---------- */
.mj-section-header {
    padding: 6rem 0 3rem;
}

.mj-section-header__title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Post Card Grid ---------- */
.mj-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem;
}

.mj-post-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.2s ease;
}

.mj-post-card:hover {
    transform: translateY(-2px);
}

.mj-post-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    margin-bottom: 1.6rem;
}

.mj-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mj-post-card:hover .mj-post-card__image {
    transform: scale(1.03);
}

.mj-post-card__badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}

.mj-post-card__badge svg {
    width: 12px;
    height: 12px;
}

.mj-post-card__date {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.mj-post-card__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

/* ---------- Game Dev Mechanics: Three.js Demo Cards ---------- */
.mj-post-card__demo-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    background: #0a0a0a;
}

.mj-post-card__demo-frame.is-loaded {
    opacity: 1;
}

.mj-post-card--demo:hover .mj-post-card__demo-frame.is-loaded {
    opacity: 1;
}

.mj-post-card__demo-badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    z-index: 3;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mj-post-card--demo .mj-post-card__demo-frame.is-loaded ~ .mj-post-card__demo-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Shader Promo Section ---------- */
.mj-shader-promo {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mj-shader-promo__inner {
    position: relative;
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    min-height: 340px;
}

.mj-shader-promo__canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mj-shader-promo__canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.mj-shader-promo__canvas-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.15) 0%,
        rgba(10, 10, 10, 0.6) 35%,
        rgba(10, 10, 10, 0.92) 60%,
        rgba(10, 10, 10, 1) 100%
    );
    z-index: 1;
}

.mj-shader-promo__content {
    position: relative;
    z-index: 2;
    margin-left: auto;
    width: 55%;
    padding: 5.6rem 4.8rem 5.6rem 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mj-shader-promo__label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a78bfa;
    margin-bottom: 1.2rem;
}

.mj-shader-promo__title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1.2rem;
}

.mj-shader-promo__desc {
    font-size: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 2.4rem;
    max-width: 440px;
}

.mj-shader-promo__cards {
    display: flex;
    gap: 1.2rem;
}

.mj-shader-promo__card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    flex: 1;
}

.mj-shader-promo__card:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    text-decoration: none;
}

.mj-shader-promo__card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    flex-shrink: 0;
}

.mj-shader-promo__card-icon svg {
    width: 20px;
    height: 20px;
}

.mj-shader-promo__card--sandbox .mj-shader-promo__card-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.mj-shader-promo__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.mj-shader-promo__card-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.15rem;
}

.mj-shader-promo__card-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.2);
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.mj-shader-promo__card:hover .mj-shader-promo__card-arrow {
    color: #a78bfa;
    transform: translateX(2px);
}

.mj-shader-promo__card--sandbox:hover .mj-shader-promo__card-arrow {
    color: #34d399;
}

@media (max-width: 1024px) {
    .mj-shader-promo__content {
        width: 60%;
    }
    .mj-shader-promo__title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .mj-shader-promo__inner {
        min-height: 280px;
    }
    .mj-shader-promo__canvas-fade {
        background: linear-gradient(
            180deg,
            rgba(10, 10, 10, 0.2) 0%,
            rgba(10, 10, 10, 0.7) 40%,
            rgba(10, 10, 10, 0.95) 100%
        );
    }
    .mj-shader-promo__content {
        width: 100%;
        padding: 10rem 2.4rem 3.2rem;
    }
    .mj-shader-promo__title {
        font-size: 2.2rem;
    }
    .mj-shader-promo__desc {
        font-size: 1.35rem;
    }
    .mj-shader-promo__cards {
        flex-direction: column;
    }
}

/* ---------- Pagination ---------- */
.mj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 6rem 0 8rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
}

.mj-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.mj-pagination a:hover {
    color: #fff;
}

/* ---------- Article ---------- */
.mj-article-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.mj-article-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-article-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 1) 0%,
        rgba(10, 10, 10, 0.6) 40%,
        rgba(10, 10, 10, 0.2) 100%
    );
}

.mj-article-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 8rem 2.4rem 4rem;
    width: 100%;
}

.mj-article-hero--no-image {
    min-height: auto;
    padding-top: 12rem;
    background: #0a0a0a;
}

.mj-article-hero--no-image .mj-article-hero__content {
    padding-top: 4rem;
}

.mj-article__tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.6rem;
}

.mj-article__title {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.mj-article__meta {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

.mj-article__author {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.mj-article__meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* Article Content */
.mj-article__content {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2.4rem 6rem;
}

.mj-article__content > * + * {
    margin-top: 2.4rem;
}

.mj-article__content p {
    font-size: 1.8rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.mj-article__content h2 {
    font-size: 2.8rem;
    margin-top: 4.8rem;
    margin-bottom: 1.6rem;
}

.mj-article__content h3 {
    font-size: 2.2rem;
    margin-top: 3.6rem;
    margin-bottom: 1.2rem;
}

.mj-article__content h4 {
    font-size: 1.8rem;
    margin-top: 3.2rem;
    margin-bottom: 1.2rem;
}

.mj-article__content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: text-decoration-color 0.2s;
}

.mj-article__content a:hover {
    text-decoration-color: #fff;
}

.mj-article__content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.mj-article__content ul,
.mj-article__content ol {
    padding-left: 2.4rem;
    color: rgba(255, 255, 255, 0.85);
}

.mj-article__content li + li {
    margin-top: 0.8rem;
}

.mj-article__content pre {
    background: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.35rem;
    line-height: 1.7;
    margin: 2.4rem 0;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.mj-article__content pre > code {
    display: block;
    padding: 1.6rem 2rem;
}

.mj-article__content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.88em;
}

.mj-article__content p code,
.mj-article__content li code,
.mj-article__content td code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: #e06c75;
}

/* ── Prism.js overrides (dark theme) ── */
.mj-article__content pre[class*="language-"] {
    background: #0d1117 !important;
    margin: 2.4rem 0;
}

.mj-article__content code[class*="language-"],
.mj-article__content pre[class*="language-"] {
    text-shadow: none !important;
    color: #e6edf3 !important;
}

/* Line numbers — let Prism position natively, just override colors */
.mj-article__content pre.line-numbers {
    padding: 1.6rem 2rem 1.6rem 3.8em !important;
    position: relative;
}

.mj-article__content pre.line-numbers > code {
    padding: 0 !important;
}

.mj-article__content .line-numbers-rows {
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.mj-article__content .line-numbers-rows > span::before {
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Prism toolbar (copy button, language label) */
.mj-article__content div.code-toolbar > .toolbar {
    opacity: 0;
    transition: opacity 0.2s ease;
    right: 0.8rem !important;
    top: 0.6rem !important;
}

.mj-article__content div.code-toolbar:hover > .toolbar {
    opacity: 1;
}

.mj-article__content div.code-toolbar > .toolbar .toolbar-item > button,
.mj-article__content div.code-toolbar > .toolbar .toolbar-item > span {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 4px !important;
    padding: 0.3rem 0.8rem !important;
    font-size: 1.1rem !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: inherit;
}

.mj-article__content div.code-toolbar > .toolbar .toolbar-item > button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* ── KaTeX overrides ── */
.mj-article__content .katex-display {
    margin: 2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
}

.mj-article__content .katex {
    color: #e6edf3;
    font-size: 1.1em;
}

.mj-article__content img {
    border-radius: 6px;
}

.mj-article__content figure {
    margin: 3.2rem 0;
}

.mj-article__content figcaption {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.mj-article__content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4rem 0;
}

.mj-article__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.6rem;
}

.mj-article__content th,
.mj-article__content td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.mj-article__content th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Ghost cards (bookmark, gallery, etc.) */
.mj-article__content .kg-card {
    margin: 3.2rem 0;
}

.mj-article__content .kg-width-wide {
    max-width: 1000px;
    margin-left: calc(50% - 500px);
    margin-right: calc(50% - 500px);
}

.mj-article__content .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mj-article__content .kg-bookmark-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.mj-article__content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.mj-article__content .kg-bookmark-content {
    flex: 1;
    padding: 2rem;
}

.mj-article__content .kg-bookmark-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.mj-article__content .kg-bookmark-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.8rem;
}

.mj-article__content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
}

.mj-article__content .kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.mj-article__content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-article__content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mj-article__content .kg-gallery-row {
    display: flex;
    gap: 0.8rem;
}

.mj-article__content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive video embeds */
.mj-article__content .kg-video-card,
.mj-article__content .kg-embed-card {
    position: relative;
}

.mj-article__content iframe {
    width: 100%;
    border: none;
    border-radius: 6px;
}

/* ---------- Content CTA (Paywall) ---------- */
.mj-content-cta {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2.4rem 6rem;
}

.mj-content-cta__card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4.8rem 3.2rem;
    text-align: center;
}

.mj-content-cta__lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.mj-content-cta__lock svg {
    width: 24px;
    height: 24px;
}

.mj-content-cta__title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.mj-content-cta__text {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.8rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mj-content-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.2rem 3.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: #fff;
    color: #0a0a0a;
    transition: opacity 0.2s;
}

.mj-content-cta__btn:hover {
    opacity: 0.9;
}

/* ---------- Comments ---------- */
.mj-comments {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2.4rem 6rem;
}

.mj-comments__header {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Support CTA ---------- */
.mj-support-cta {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2.4rem 6rem;
    text-align: center;
}

.mj-support-cta__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.mj-support-cta__text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
}

.mj-support-cta__tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .mj-support-cta__tiers {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ---------- Related Posts ---------- */
.mj-related {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6rem 0 8rem;
}

.mj-related__header {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3.2rem;
}

/* ---------- Footer ---------- */
.mj-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6rem 0;
    background: #0a0a0a;
}

.mj-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.mj-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.mj-footer__brand {
    flex-shrink: 0;
}

.mj-footer__brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.mj-footer__brand-desc {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 300px;
}

.mj-footer__newsletter {
    max-width: 420px;
    width: 100%;
}

.mj-footer__newsletter-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
}

.mj-footer__newsletter-form {
    display: flex;
    gap: 0.8rem;
}

.mj-footer__newsletter-input {
    flex: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem 1.4rem;
    font-size: 1.4rem;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.mj-footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.mj-footer__newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.mj-footer__newsletter-btn {
    background: #fff;
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mj-footer__newsletter-btn:hover {
    opacity: 0.9;
}

.mj-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 3.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mj-footer__nav {
    display: flex;
    gap: 2.4rem;
    list-style: none;
}

.mj-footer__nav a {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.mj-footer__nav a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.mj-footer__copy {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .mj-footer {
        padding: 4rem 0;
    }

    .mj-footer__inner {
        padding: 0 1.6rem;
    }

    .mj-footer__top {
        flex-direction: column;
        gap: 2.4rem;
    }

    .mj-footer__newsletter {
        max-width: 100%;
    }

    .mj-footer__newsletter-form {
        flex-direction: column;
    }

    .mj-footer__newsletter-btn {
        width: 100%;
    }

    .mj-footer__bottom {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
    }

    .mj-footer__nav {
        flex-wrap: wrap;
        gap: 1.2rem 2rem;
    }
}

/* ---------- Archive Header (tag, author) ---------- */
.mj-archive-header {
    padding: 14rem 0 4rem;
    text-align: center;
}

.mj-archive-header__label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
}

.mj-archive-header__title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.mj-archive-header__description {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.mj-archive-header__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    object-fit: cover;
}

/* ---------- Page ---------- */
.mj-page {
    padding-top: 14rem;
}

.mj-page__header {
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 0 2.4rem;
}

.mj-page__title {
    font-size: 4.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .mj-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.4rem;
    }

    .mj-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mj-featured-card--lead {
        grid-column: span 2;
    }

    .mj-article__title {
        font-size: 3.6rem;
    }

    .mj-article__content .kg-width-wide {
        max-width: calc(100vw - 4.8rem);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .mj-nav__links,
    .mj-nav__search {
        display: none;
    }

    .mj-nav__actions .mj-nav__btn--primary {
        display: none;
    }

    .mj-nav__actions .mj-nav__btn--ghost {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        letter-spacing: 0.03em;
    }

    .mj-nav__burger {
        display: inline-flex;
    }

    .mj-user-menu__name-label,
    .mj-user-menu__arrow {
        display: none;
    }

    .mj-user-menu__trigger {
        padding: 4px;
        gap: 0;
    }

    .mj-user-menu {
        position: static;
    }

    .mj-nav__actions {
        position: relative;
    }

    .mj-user-menu__dropdown {
        width: 280px;
        right: 0;
        top: calc(100% + 12px);
    }

    .mj-card-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .mj-post-card:hover {
        transform: none;
    }

    .mj-post-card > a {
        display: flex;
        flex-direction: row;
        gap: 1.2rem;
        align-items: center;
    }

    .mj-post-card__text {
        flex: 1;
        min-width: 0;
    }

    .mj-post-card__image-wrap {
        width: 170px;
        min-width: 170px;
        height: 106px;
        aspect-ratio: auto;
        margin-bottom: 0;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .mj-post-card__date {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .mj-post-card__title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .mj-post-card__demo-badge {
        display: none;
    }

    .mj-featured-grid {
        grid-template-columns: 1fr;
    }

    .mj-featured-card--lead {
        grid-column: span 1;
    }

    .mj-hero {
        min-height: 70vh;
        padding: 10rem 2.4rem 4rem;
    }

    .mj-featured-card__title {
        font-size: 1.8rem;
    }

    .mj-featured-card--lead .mj-featured-card__title {
        font-size: 2.2rem;
    }

    .mj-article-hero {
        min-height: auto;
    }

    .mj-article-hero__content {
        padding: 3rem 1.6rem 2rem;
    }

    .mj-article-hero--no-image {
        padding-top: 6rem;
    }

    .mj-article-hero--no-image .mj-article-hero__content {
        padding-top: 2rem;
    }

    .mj-article__title {
        font-size: 2.8rem;
    }

    .mj-article__content p {
        font-size: 1.7rem;
    }

    .mj-archive-header {
        padding-top: 10rem;
    }

    .mj-archive-header__title {
        font-size: 3rem;
    }

    .mj-page {
        padding-top: 10rem;
    }

    .mj-page__title {
        font-size: 3rem;
    }

    .mj-footer__top {
        flex-direction: column;
    }

    .mj-footer__bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .mj-footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mj-content-cta__card {
        padding: 3.2rem 2rem;
    }

    .mj-article__content .kg-width-wide,
    .mj-article__content .kg-width-full {
        max-width: calc(100vw - 4.8rem);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .mj-featured-card {
        aspect-ratio: 16 / 12;
    }

    .mj-article__title {
        font-size: 2.4rem;
    }
}

/* ---------- Membership Page ---------- */
/* Membership hero */
.mj-membership__hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.2rem;
}

.mj-membership__hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.6rem;
}

.mj-membership__hero-sub {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Social proof strip */
.mj-membership__proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.2rem;
    margin-bottom: 4rem;
    padding: 1.6rem 2.4rem;
    flex-wrap: wrap;
}

.mj-membership__proof-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.mj-membership__proof-icon {
    font-size: 1.6rem;
}

.mj-membership__subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.2rem;
}

.mj-membership__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 4.8rem;
    background: #111;
    border-radius: 8px;
    padding: 0.4rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mj-membership__toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.mj-membership__toggle-btn.is-active {
    background: #1a1a1a;
    color: #fff;
}

.mj-membership__save {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    font-size: 1.1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.4rem;
}

.mj-membership__tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.mj-tier-card {
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 3.2rem 2.4rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.mj-tier-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.mj-tier-card--featured {
    border-color: rgba(255, 255, 255, 0.2);
    background: #141414;
}

.mj-tier-card__badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: #fff;
    color: #0a0a0a;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 1.4rem;
    border-radius: 20px;
}

.mj-tier-card__header {
    margin-bottom: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mj-tier-card__name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.mj-tier-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
}

.mj-tier-card__amount {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mj-tier-card__period {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
}

.mj-tier-card__desc {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.mj-tier-card__benefits {
    list-style: none;
    flex: 1;
    margin-bottom: 2.4rem;
}

.mj-tier-card__benefits li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.mj-tier-card__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.mj-tier-card__action {
    margin-top: auto;
}

.mj-tier-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.2rem 2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: #fff;
    color: #0a0a0a;
    transition: opacity 0.2s;
}

.mj-tier-card__btn:hover {
    opacity: 0.9;
}

.mj-tier-card__btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mj-tier-card__btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.mj-tier-card__current {
    display: block;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1.2rem 0;
}

/* Membership section titles */
.mj-membership__section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 3.2rem;
}

/* Features grid */
.mj-membership__features {
    max-width: 900px;
    margin: 8rem auto 0;
    padding: 0 2.4rem;
}

.mj-membership__features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
}

.mj-membership__feature {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2.8rem 2.4rem;
}

.mj-membership__feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.mj-membership__feature h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.mj-membership__feature p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* FAQ */
.mj-membership__faq {
    max-width: 700px;
    margin: 8rem auto 0;
    padding: 0 2.4rem;
}

.mj-membership__faq-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mj-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.mj-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 2rem;
    background: #111;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.mj-faq-item__question:hover {
    background: #161616;
}

.mj-faq-item__chevron {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

.mj-faq-item.is-open .mj-faq-item__chevron {
    transform: rotate(180deg);
}

.mj-faq-item__answer {
    display: none;
    padding: 0 2rem 1.8rem;
    background: #111;
}

.mj-faq-item.is-open .mj-faq-item__answer {
    display: block;
}

.mj-faq-item__answer p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* Bottom CTA */
.mj-membership__bottom-cta {
    text-align: center;
    max-width: 600px;
    margin: 8rem auto 0;
    padding: 4.8rem 2.4rem;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.mj-membership__bottom-cta h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.mj-membership__bottom-cta p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.4rem;
    line-height: 1.5;
}

/* Bottom CTA with swirl arrow */
.mj-membership__bottom-cta {
    position: relative;
}

.mj-membership__bottom-cta-content {
    position: relative;
    z-index: 1;
}

.mj-membership__swirl-arrow {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 160px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.mj-membership__swirl-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 0;
}

.mj-membership__swirl-head {
    opacity: 1;
    transition: opacity 0.1s;
}

.mj-membership__bottom-cta.is-launching .mj-membership__swirl-arrow {
    opacity: 1;
}

.mj-membership__bottom-cta.is-launching .mj-membership__swirl-path {
    animation: swirl-draw 0.8s ease-in-out;
}

.mj-membership__bottom-cta.is-launching .mj-membership__swirl-head {
    animation: head-appear 0.8s ease-in-out;
}

@keyframes swirl-draw {
    0% { stroke-dashoffset: 300; }
    100% { stroke-dashoffset: 0; }
}

@keyframes head-appear {
    0%, 70% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.mj-membership__letsgo-btn {
    display: inline-block;
    width: auto;
    padding: 1.4rem 4rem;
    font-size: 1.6rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, opacity 0.2s;
}

.mj-membership__letsgo-btn:hover {
    transform: scale(1.03);
}

.mj-membership__bottom-cta.is-launching .mj-membership__letsgo-btn {
    animation: btn-bounce 0.4s ease-out;
}

@keyframes btn-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Membership responsive */
@media (max-width: 768px) {
    .mj-membership__hero-title { font-size: 3rem; }
    .mj-membership__proof { gap: 1.6rem; flex-direction: column; }
    .mj-membership__features-grid { grid-template-columns: 1fr; }
    .mj-membership__bottom-cta { margin: 5rem auto 0; padding: 3.2rem 2rem; overflow: hidden; }
    .mj-membership__swirl-arrow { right: -10px; width: 60px; height: 120px; opacity: 0.4; }
    .mj-membership__bottom-cta h2 { font-size: 2.2rem; }
    .mj-membership__section-title { font-size: 2.2rem; }
}

/* ---------- Store Page ---------- */
.mj-store__test-banner {
    max-width: 640px;
    margin: 0 auto 3.2rem;
    padding: 1.2rem 2rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f59e0b;
}

.mj-store__test-banner code {
    background: rgba(245, 158, 11, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.mj-store__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    padding-bottom: 6rem;
}

.mj-store__empty {
    text-align: center;
    padding: 8rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.6rem;
    grid-column: 1 / -1;
}

/* ---------- Responsive: Membership & Store ---------- */
@media (max-width: 1024px) {
    .mj-membership__tiers {
        grid-template-columns: repeat(2, 1fr);
    }

    .mj-membership__tiers .mj-tier-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .mj-store__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mj-membership__tiers {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .mj-membership__tiers .mj-tier-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .mj-store__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 1.6rem;
    }

    .mj-tier-card__amount {
        font-size: 3rem;
    }
}

/* ---------- Utility ---------- */
.mj-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ghost portal button dark mode override */
.gh-portal-triggerbtn-iframe {
    color-scheme: dark;
}

/* ── Dropdown (desktop) ── */
.mj-nav__dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.mj-nav__dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.mj-nav__dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.mj-nav__dropdown:hover .mj-nav__dropdown-arrow,
.mj-nav__dropdown.is-open .mj-nav__dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── Mega menu (Stripe-style) ── */
.mj-nav__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 320px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    margin-top: 0.8rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Invisible bridge to prevent hover gap */
.mj-nav__mega::before {
    content: '';
    position: absolute;
    top: -0.8rem;
    left: 0;
    right: 0;
    height: 0.8rem;
}

.mj-nav__dropdown:hover .mj-nav__mega,
.mj-nav__dropdown.is-open .mj-nav__mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mj-nav__mega-col {
    padding: 0.8rem;
}

.mj-nav__mega-heading {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1rem 0.6rem;
}

.mj-nav__mega-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #f0f0f0;
    transition: background 0.15s ease;
}

.mj-nav__mega-item:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.mj-nav__mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.4rem;
}

.mj-nav__mega-icon--sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 800;
}

.mj-nav__mega-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mj-nav__mega-text strong {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.mj-nav__mega-text span {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.3;
}

.mj-nav__mega-item--compact {
    gap: 0.9rem;
    padding: 0.7rem 1rem;
}

.mj-nav__mega-item--compact strong {
    font-size: 1.3rem;
}

.mj-nav__mega-footer {
    padding: 0.8rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.mj-nav__mega-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.mj-nav__mega-footer a:hover {
    color: #8b5cf6;
    text-decoration: none;
}

/* Wider store dropdown */
.mj-nav__mega--store {
    min-width: 340px;
}

/* Games dropdown — compact list */
.mj-nav__mega--games {
    min-width: 240px;
}

/* ── Mobile sub-items ── */
.mj-mobile-menu__sub {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mj-mobile-menu__sub a {
    padding: 0.8rem 2rem 0.8rem 2.8rem;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.15s;
    text-decoration: none;
}

.mj-mobile-menu__sub a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
}

/* Hide desktop dropdown on mobile */
@media (max-width: 767px) {
    .mj-nav__mega {
        display: none !important;
    }
}

/* ==========================================================================
   Site Search
   ========================================================================== */
.mj-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.mj-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.mj-search-modal {
    width: 100%;
    max-width: 640px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}
.mj-search-overlay.is-open .mj-search-modal {
    transform: translateY(0) scale(1);
}

/* Header / Input */
.mj-search-header {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mj-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem 2rem;
}
.mj-search-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
}
.mj-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #f0f0f0;
    font-size: 1.8rem;
    font-family: inherit;
    font-weight: 500;
}
.mj-search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.mj-search-shortcut {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Results */
.mj-search-results {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.mj-search-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
}
.mj-search-empty mark,
.mj-search-results mark {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
    border-radius: 2px;
    padding: 0 2px;
}
.mj-search-section {
    padding: 0.8rem 0;
}
.mj-search-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    padding: 0.6rem 2rem;
}
.mj-search-result {
    position: relative;
}
.mj-search-result-link {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #f0f0f0;
    transition: background 0.1s;
}
.mj-search-result:hover .mj-search-result-link,
.mj-search-result.is-active .mj-search-result-link {
    background: rgba(139, 92, 246, 0.08);
}

/* Thumbnail */
.mj-search-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mj-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mj-search-result-thumb--icon {
    color: rgba(255, 255, 255, 0.2);
}
.mj-search-result-thumb--store {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}
.mj-search-result-thumb--forum {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Info */
.mj-search-result-info {
    flex: 1;
    min-width: 0;
}
.mj-search-result-title {
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.mj-search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.2rem;
}
.mj-search-result-badge {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.mj-search-result-badge--free {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}
.mj-search-result-badge--members {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}
.mj-search-result-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.15s;
}
.mj-search-result:hover .mj-search-result-arrow,
.mj-search-result.is-active .mj-search-result-arrow {
    opacity: 1;
}

/* Footer */
.mj-search-footer {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
}
.mj-search-footer-hint {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.2);
}
.mj-search-footer-hint kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    margin: 0 0.2rem;
}

@media (max-width: 600px) {
    .mj-search-overlay { padding: 2rem 1rem; }
    .mj-search-modal { max-height: 85vh; border-radius: 12px; }
    .mj-search-input { font-size: 1.6rem; }
    .mj-search-input-wrap { padding: 1.2rem 1.4rem; }
    .mj-search-result-link { padding: 0.8rem 1.4rem; gap: 1rem; }
    .mj-search-result-thumb { width: 40px; height: 40px; }
    .mj-search-footer-hint { display: none; }
    .mj-search-section-title { padding: 0.6rem 1.4rem; }
}
