@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,301,400,401,500,501,700,701,900,901,1,2&f[]=jet-brains-mono@101,200,201,300,301,400,401,500,501,600,601,700,701,800,801,1,2&display=swap');

:root {
    color-scheme: dark;
    --font-sans: 'Satoshi', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    --bg: #050505;
    --surface: rgba(14, 14, 16, 0.84);
    --surface-soft: rgba(255, 255, 255, 0.035);
    --surface-dark: rgba(8, 8, 9, 0.94);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #f1f1f4;
    --muted: #9b9ba3;
    --teal: #cfcfd6;
    --cyan: #b8b8c0;
    --pink: #a7a7af;
    --violet: #8f8f97;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--font-sans);
    background: #000;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 9% 16%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
        radial-gradient(circle at 22% 9%, rgba(255, 255, 255, 0.92) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 38% 21%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 54% 13%, rgba(255, 255, 255, 0.98) 0 1.8px, transparent 2.8px),
        radial-gradient(circle at 73% 18%, rgba(255, 255, 255, 0.92) 0 1px, transparent 2px),
        radial-gradient(circle at 87% 30%, rgba(255, 255, 255, 0.9) 0 1.4px, transparent 2.4px),
        radial-gradient(circle at 14% 46%, rgba(255, 255, 255, 0.88) 0 1.4px, transparent 2.4px),
        radial-gradient(circle at 31% 58%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
        radial-gradient(circle at 49% 39%, rgba(255, 255, 255, 0.88) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 52%, rgba(255, 255, 255, 0.92) 0 1.2px, transparent 2.2px),
        radial-gradient(circle at 84% 63%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 93% 14%, rgba(255, 255, 255, 0.95) 0 1.7px, transparent 2.7px);
    opacity: 0.9;
}

body::after {
    background: none;
}

.fx-canvas,
.backdrop-grid,
.aurora {
    display: none;
}

.fx-canvas {
    display: block;
}

.home-sky {
    display: none;
}

body[data-page="home"] .home-sky {
    display: block;
}

a,
button,
input,
select {
    font: inherit;
}

/* Custom cursor removed */

.fx-canvas,
.backdrop-grid,
.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.fx-canvas {
    z-index: 0;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.sparkle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.backdrop-grid {
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.aurora {
    z-index: 0;
    inset: auto;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.7;
    animation: floatAurora 14s ease-in-out infinite alternate;
}

.aurora-a {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(8, 25, 55, 0.7), transparent 70%);
    display: block !important;
    animation: floatAurora 16s ease-in-out infinite alternate;
}

.aurora-b {
    width: 560px;
    height: 560px;
    top: 80px;
    right: -160px;
    background: radial-gradient(circle, rgba(8, 25, 55, 0.6), transparent 70%);
    display: block !important;
    animation-delay: -5s;
}

.aurora-c {
    width: 480px;
    height: 480px;
    bottom: -80px;
    left: 28%;
    background: radial-gradient(circle, rgba(8, 25, 55, 0.55), transparent 70%);
    display: block !important;
    animation-delay: -10s;
}

.home-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.starfield {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.58);
    animation: twinkle 5.2s ease-in-out infinite;
}

.star-1 {
    top: 12%;
    left: 10%;
    width: 2px;
    height: 2px;
}

.star-2 {
    top: 18%;
    left: 22%;
    width: 3px;
    height: 3px;
    animation-delay: -1.4s;
}

.star-3 {
    top: 10%;
    left: 39%;
    width: 2px;
    height: 2px;
    animation-delay: -3.2s;
}

.star-4 {
    top: 24%;
    left: 58%;
    width: 4px;
    height: 4px;
    animation-delay: -0.8s;
}

.star-5 {
    top: 14%;
    left: 76%;
    width: 2px;
    height: 2px;
    animation-delay: -2.6s;
}

.star-6 {
    top: 28%;
    left: 88%;
    width: 3px;
    height: 3px;
    animation-delay: -4.1s;
}

.star-7 {
    top: 34%;
    left: 16%;
    width: 3px;
    height: 3px;
    animation-delay: -2.1s;
}

.star-8 {
    top: 40%;
    left: 30%;
    width: 2px;
    height: 2px;
    animation-delay: -3.8s;
}

.star-9 {
    top: 38%;
    left: 69%;
    width: 2px;
    height: 2px;
    animation-delay: -1.1s;
}

.star-10 {
    top: 52%;
    left: 82%;
    width: 3px;
    height: 3px;
    animation-delay: -5s;
}

.star-11 {
    top: 60%;
    left: 12%;
    width: 2px;
    height: 2px;
    animation-delay: -2.9s;
}

.star-12 {
    top: 66%;
    left: 48%;
    width: 4px;
    height: 4px;
    animation-delay: -4.7s;
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(1260px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.glass,
.glass-dark,
.glass-lite {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.glass {
    background: var(--surface);
}

.glass-dark {
    background: var(--surface-dark);
    border-color: var(--border-strong);
}

.glass-lite {
    background: var(--surface-soft);
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 16px;
    border-radius: 999px;
    background: rgba(18, 18, 20, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(28px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                filter 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.site-header.is-hidden {
    transform: translateY(-60px) scale(0.92);
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
}

.header-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-download-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.header-download-btn svg {
    opacity: 0.75;
    flex-shrink: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 800;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.main-nav a,
.header-status,
.eyebrow,
.counter-card span,
.feature-chip,
.stack-chip,
.console-label,
.inline-status,
.seeded-creds,
.user-meta,
.site-footer,
.download-card small,
.timeline-date,
.counter-card strong,
.metric-card span {
    font-family: var(--font-mono);
}

.main-nav a {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease;
}

.main-nav a.is-active,
.main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.header-status {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--teal);
    font-size: 0.74rem;
}

.page {
    padding-top: 22px;
}

[data-reveal] {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px);
    transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1),
                filter 2.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

[data-stagger] {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px);
    transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1),
                filter 2.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-stagger].revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

[data-stagger]:nth-child(1) { transition-delay: 0ms; }
[data-stagger]:nth-child(2) { transition-delay: 250ms; }
[data-stagger]:nth-child(3) { transition-delay: 500ms; }
[data-stagger]:nth-child(4) { transition-delay: 750ms; }
[data-stagger]:nth-child(5) { transition-delay: 1000ms; }
[data-stagger]:nth-child(6) { transition-delay: 1250ms; }
[data-stagger]:nth-child(7) { transition-delay: 1500ms; }
[data-stagger]:nth-child(8) { transition-delay: 1750ms; }

/* Word-by-word reveal */
.word-reveal {
    display: inline-block;
    opacity: 0;
    filter: blur(16px);
    transform: translateY(24px);
    transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 2.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--wi) * 160ms);
}

.word-reveal.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.hero-home,
.page-hero,
.timeline-panel,
.feature-column,
.stack-column,
.callout-panel,
.auth-panel,
.admin-panel,
.spotlight-card,
.info-card,
.community-card {
    border-radius: var(--radius);
}

.hero-home {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
    padding: 28px;
    min-height: 560px;
}

.moon-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: calc(100vh - 180px);
    padding: 40px 24px 64px;
    background: none;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.page-hero {
    padding: 28px;
}

.hero-copy,
.page-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy-centered {
    position: relative;
    z-index: 1;
    align-items: center;
    width: min(100%, 920px);
}

.hero-eyebrow-marquee {
    width: min(100%, 540px);
    margin: 0 0 16px;
    padding: 6px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.hero-eyebrow-marquee-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    will-change: transform;
    animation: heroMarquee 18s linear infinite;
}

.hero-eyebrow-copy {
    flex: 0 0 auto;
    padding-right: 3rem;
    white-space: nowrap;
}

.hero-eyebrow-marquee,
.hero-eyebrow-copy,
.hero-home-subtitle,
.hero-runtime h2,
.hero-runtime .console-label {
    font-family: var(--font-sans);
}

.hero-eyebrow-marquee {
    letter-spacing: 0.24em;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-home-subtitle {
    max-width: 760px;
    font-weight: 500;
    margin-top: 0;
}

/* ── Hero app screenshot ─────────────────────────────────────────────────── */
.hero-app-frame {
    position: relative;
    width: min(1100px, 100%);
    margin: 16px auto 0;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.hero-app-frame::after {
    display: none;
}

.hero-app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
}

.eyebrow,
.feature-chip,
.stack-chip,
.console-label,
.team-group-title {
    margin: 0 0 16px;
    letter-spacing: 0.26em;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.team-group-title {
    display: block;
    text-align: center;
    margin: 48px 0 24px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.role-owner { color: #a370f7 !important; text-shadow: 0 0 25px rgba(163, 112, 247, 0.4); }
.role-team { color: #3e82f7 !important; text-shadow: 0 0 25px rgba(62, 130, 247, 0.4); }
.role-mod { color: #f1c40f !important; text-shadow: 0 0 25px rgba(241, 196, 15, 0.4); }
.role-helper { color: #2ecc71 !important; text-shadow: 0 0 25px rgba(46, 204, 113, 0.4); }
.role-contributor { color: #ff85ff !important; text-shadow: 0 0 25px rgba(255, 133, 255, 0.4); }

.hero-eyebrow-marquee {
    margin: 0 0 4px;
}

.eyebrow,
.feature-chip,
.stack-chip,
.console-label {
    color: var(--teal);
}

.hero-copy h1,
.page-hero h1,
.section-copy h2,
.section-copy h3,
.console-main h2,
.callout-panel h2,
.spotlight-card h3,
.download-card h3,
.info-card h3,
.community-card h3,
.user-head h4 {
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

.hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 7vw, 5.6rem);
}

.hero-copy-centered h1 {
    max-width: none;
    letter-spacing: -0.02em;
    font-size: clamp(3rem, 7vw, 5.6rem);
}

.page-hero h1,
.section-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.section-copy h3,
.callout-panel h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hero-text,
.spotlight-card p,
.feature-card p,
.stack-item p,
.timeline-item p,
.download-card p,
.info-card p,
.community-card p,
.callout-panel p,
.console-main p,
.site-footer,
.auth-form span,
.inline-status,
.seeded-creds,
.user-card small,
.download-card small {
    color: var(--muted);
}

.hero-text,
.spotlight-card p,
.feature-card p,
.stack-item p,
.timeline-item p,
.download-card p,
.info-card p,
.community-card p,
.callout-panel p,
.console-main p {
    margin: 22px 0 0;
    line-height: 1.78;
    font-size: 1rem;
}

.hero-actions,
.counter-row,
.button-row,
.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-text {
    margin-top: 2rem !important;
    font-size: 1.1rem !important;
    color: var(--muted) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    font-family: var(--font-sans) !important;
    letter-spacing: -0.01em !important;
}

#stable-downloads {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-sans);
    color: var(--text);
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
    display: inline-block;
    vertical-align: middle;
}

.stats-text::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15));
}

.stats-text::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.15));
}

.counter-value {
    display: inline-block;
    min-width: 1.5ch;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.counter-value.counting {
    transform: scale(1.1);
}

.hero-actions,
.counter-row {
    margin-top: 28px;
}


.hero-actions-centered,
.counter-row-centered {
    justify-content: center;
}

.hero-actions-download {
    align-items: center;
}

.download-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.platform-availability {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 1;
}

.platform-availability svg {
    opacity: 0.75;
    flex-shrink: 0;
}

.stats-text {
    margin: -2px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.stats-text span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.contribute-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.button-primary {
    border-color: transparent;
    color: #0d0d0f;
    background: linear-gradient(135deg, #f2f2f4, #cfcfd5);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
}

.button-download-windows {
    min-width: 246px;
    padding: 16px 26px;
    border-radius: 16px;
    color: #101114;
    background: #f4f2ef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.button-download-windows:hover {
    border-color: transparent;
    background: #ffffff;
}

.button-contribute-hero {
    min-width: 246px;
    padding: 16px 26px;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.button-contribute-hero:hover {
    background: rgba(255, 255, 255, 0.12);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 28px;
}

.modal-shell[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
        rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
}

.modal-shell:not([hidden]) .modal-backdrop {
    animation: modalFadeIn 220ms ease forwards;
}

.contribute-modal {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100vw - 32px));
    max-height: min(92vh, 920px);
    overflow: auto;
    padding: 24px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(14, 14, 16, 0.98), rgba(8, 8, 10, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.46);
}

.modal-shell:not([hidden]) .contribute-modal {
    animation: modalPopIn 280ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.contribute-modal-glow {
    position: absolute;
    inset: 0 auto auto 50%;
    width: min(540px, 86vw);
    height: 220px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
    filter: blur(26px);
    pointer-events: none;
}

.contribute-modal-head,
.contribute-modal-status,
.contribute-modal-grid {
    position: relative;
    z-index: 1;
}

.contribute-modal-head {
    max-width: 640px;
    margin-bottom: 10px;
}

.contribute-modal-head h2 {
    margin: 8px 0 6px;
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 0.95;
}

.contribute-modal-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contribute-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contribute-copy-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.modal-shell:not([hidden]) .contribute-copy-card {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: modalCardIn 320ms ease forwards;
}

.modal-shell:not([hidden]) .contribute-copy-card:nth-child(2) {
    animation-delay: 35ms;
}

.modal-shell:not([hidden]) .contribute-copy-card:nth-child(3) {
    animation-delay: 70ms;
}

.modal-shell:not([hidden]) .contribute-copy-card:nth-child(4) {
    animation-delay: 105ms;
}

.modal-shell:not([hidden]) .contribute-copy-card:nth-child(5) {
    animation-delay: 140ms;
}

.modal-shell:not([hidden]) .contribute-copy-card:nth-child(6) {
    animation-delay: 175ms;
}

.contribute-copy-card::before {
    content: '';
    position: absolute;
    inset: -35% auto auto 50%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.contribute-copy-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.contribute-copy-card:hover::before,
.contribute-copy-card.is-copied::before {
    opacity: 1;
}

.contribute-copy-card h3 {
    margin: 10px 0 4px;
    font-size: 1.05rem;
}

.contribute-copy-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.contribute-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.contribute-copy-row code {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contribute-copy-button {
    min-width: 102px;
    border-radius: 14px;
    padding-inline: 16px;
}

.contribute-copy-card.is-copied .contribute-copy-button {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.modal-close {
    position: sticky;
    top: 0;
    display: inline-flex;
    margin-left: auto;
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.09);
}

body.modal-open {
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contribute-logo {
    position: relative;
    width: 18px;
    height: 18px;
    transform: rotate(-45deg);
}

.contribute-heart,
.contribute-heart::before,
.contribute-heart::after {
    position: absolute;
    display: block;
    background: currentColor;
}

.contribute-heart {
    width: 12px;
    height: 12px;
    left: 3px;
    top: 6px;
    border-radius: 2px;
}

.contribute-heart::before,
.contribute-heart::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.contribute-heart::before {
    left: 0;
    top: -6px;
}

.contribute-heart::after {
    left: 6px;
    top: 0;
}

.windows-logo {
    display: grid;
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 2px;
}

.windows-logo span {
    display: block;
    width: 8px;
    height: 8px;
    background: #101114;
}

.download-availability {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.counter-row {
    align-items: stretch;
}

.counter-card {
    min-width: 190px;
    padding: 16px;
    border-radius: 22px;
}

.counter-card.alt {
    background: rgba(255, 255, 255, 0.06);
}

.counter-card strong,
.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.8rem;
    color: var(--text);
}

.moon-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 720px);
    min-height: 520px;
}

.moon-halo {
    position: absolute;
    width: min(96vw, 630px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(240, 242, 247, 0.12) 28%, rgba(255, 255, 255, 0.03) 56%, transparent 76%);
    filter: blur(46px);
    animation: pulseMoon 8s ease-in-out infinite;
}

.moon-disc {
    position: relative;
    z-index: 1;
    width: min(78vw, 420px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.12)) drop-shadow(0 0 88px rgba(240, 243, 250, 0.16));
    transition: transform 220ms ease, filter 220ms ease;
    user-select: none;
    -webkit-user-select: none;
}

.moon-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

body[data-page="home"] .moon-disc:hover {
    filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.16)) drop-shadow(0 0 110px rgba(245, 247, 252, 0.2));
}

.hero-runtime {
    width: min(100%, 520px);
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 24px;
}

.hero-runtime h2 {
    font-family: var(--font-sans);
    margin: 6px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.hero-runtime p {
    margin: 10px 0 0;
}

.hero-metric-grid {
    width: min(100%, 920px);
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 34px auto 0;
}

.hero-console {
    padding: 16px;
}

.console-top {
    display: flex;
    gap: 8px;
}

.console-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.console-main {
    padding: 18px 4px 6px;
}

.console-main h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.metric-grid,
.feature-grid,
.stack-list,
.download-grid,
.plugin-grid,
.info-grid,
.community-grid,
.user-list,
.timeline-panel {
    display: grid;
    gap: 16px;
}

.metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.metric-card,
.feature-card,
.stack-item,
.download-card,
.plugin-card,
.timeline-item,
.info-card,
.community-card,
.seeded-creds,
.inline-status,
.user-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 22px;
}

.metric-card,
.feature-card,
.stack-item,
.download-card,
.plugin-card,
.timeline-item,
.info-card,
.community-card,
.seeded-creds,
.inline-status,
.user-card {
    padding: 18px;
}

.spotlight-row,
.feature-layout,
.download-grid,
.info-grid,
.community-grid,
.discord-live-grid,
.admin-layout,
.preview-toolbar,
.preview-shell {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.spotlight-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.feature-layout,
.admin-layout {
    grid-template-columns: 1.1fr 0.9fr;
}

.discord-live-shell {
    margin-top: 18px;
    padding: 22px;
}

.team-shell {
    margin-top: 18px;
    padding: 22px;
}

.team-head {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.team-group {
    margin-top: 18px;
}

.team-group-title {
    margin: 0 0 14px;
    color: #d7b1ff;
    font-size: 1.3rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}

.team-grid-owner {
    grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
    justify-content: center;
}

.team-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.85);
    transition: border-color 180ms ease, transform 180ms ease;
}

.team-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.team-card::before {
    display: none;
}

.team-card > * {
    position: relative;
    z-index: 1;
}

.team-avatar-wrap {
    position: relative;
    width: 64px;
    margin: 0 auto 10px;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
}

.team-avatar-image,
.team-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.team-avatar-image {
    object-fit: cover;
}

.team-avatar-decoration {
    position: absolute;
    inset: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.team-avatar-fallback {
    font-family: var(--font-sans);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.92);
}

.team-avatar-wrap .discord-status-dot {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 14px;
    height: 14px;
    border: 3px solid rgba(18, 18, 20, 0.95);
}

.team-card h4 {
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.team-handle,
.team-role,
.team-card p {
    text-align: center;
}

.team-handle {
    display: none;
}

.team-github-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.team-github-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
}

.team-role {
    display: block;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
}

.team-card p {
    margin: 8px auto 0;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.4;
}

.discord-live-head {
    max-width: 760px;
}

.discord-live-grid {
    grid-template-columns: 1.05fr 0.95fr 0.95fr;
    align-items: start;
}

.discord-live-card {
    padding: 20px;
    border-radius: 24px;
}

.discord-live-summary {
    gap: 18px;
}

.discord-live-server {
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-live-server h3 {
    margin: 8px 0 8px;
    font-size: 1.4rem;
}

.discord-live-server p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.discord-live-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-sans);
    font-size: 2rem;
}

.discord-live-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-live-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.discord-live-metric {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-live-metric span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.discord-live-metric strong {
    font-size: 1.9rem;
}

.discord-hierarchy-list,
.discord-member-list {
    display: grid;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.discord-hierarchy-item,
.discord-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-hierarchy-item {
    justify-content: flex-start;
}

.discord-hierarchy-category {
    margin-top: 10px;
    padding: 4px 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.discord-hierarchy-category:first-child {
    margin-top: 0;
}

.discord-hierarchy-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.discord-hierarchy-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 168, 95, 0.88);
    box-shadow: 0 0 12px rgba(255, 138, 41, 0.18);
}

.discord-hierarchy-name {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.discord-member-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.discord-member-copy {
    min-width: 0;
}

.discord-member-meta strong,
.discord-member-meta span {
    display: block;
}

.discord-member-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-member-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.discord-member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.discord-member-avatar-fallback {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}


.discord-status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.discord-status-online {
    background: #57f287 !important;
}

.discord-status-idle {
    background: #faa61a !important;
}

.discord-status-dnd {
    background: #ed4245 !important;
}

.discord-status-streaming {
    background: #9b59b6 !important;
}

.discord-status-offline {
    background: #6b7280 !important;
}

.discord-empty-state {
    padding: 16px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.6;
}

.page-project {
    display: grid;
    gap: 22px;
}

/* ── Projects hub (equicord-style) ──────────────────────────────────────── */
.proj-hub {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.proj-hub-header {
    margin-bottom: 40px;
}

.proj-hub-title {
    margin: 8px 0 6px;
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.proj-hub-count {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.06em;
}

.proj-search-wrap {
    position: relative;
    margin-bottom: 28px;
}

.proj-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.proj-search {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px 11px 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

.proj-search::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.proj-search:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.proj-search::-webkit-search-cancel-button {
    filter: invert(1) opacity(0.4);
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.proj-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.proj-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.proj-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proj-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.proj-card-avatar-sc {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff5500, #ff8800);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.proj-card-names {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.proj-card-org {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.proj-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.proj-card-desc {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    flex: 1;
}

.proj-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.proj-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
}

.proj-card-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
}

.proj-lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}


    position: relative;
    overflow: hidden;
    padding: 18px;
    min-height: calc(100vh - 138px);
    display: grid;
    place-items: center;
    background: none;
}

.project-stage-glow,
.project-stage-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.project-stage-glow {
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 139, 44, 0.18), transparent 20%),
        radial-gradient(circle at 50% 48%, rgba(255, 139, 44, 0.08), transparent 34%);
    filter: blur(18px);
}

.project-stage-grid {
    opacity: 0.42;
    background:
        linear-gradient(90deg, rgba(255, 132, 34, 0.025), transparent 18%, transparent 82%, rgba(255, 132, 34, 0.025)),
        radial-gradient(circle at 50% 18%, rgba(255, 153, 73, 0.04), transparent 26%),
        radial-gradient(circle at 50% 76%, rgba(255, 153, 73, 0.025), transparent 30%);
    filter: blur(16px);
    mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.project-collection-head,
.project-rail,
.project-screen-card {
    position: relative;
    z-index: 1;
}

.project-collection-head {
    width: min(100%, 1180px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.project-collection-head h1 {
    max-width: 720px;
    margin: 10px 0 0;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.95;
}

.project-collection-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.project-index-pill,
.project-next-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-index-pill {
    color: rgba(255, 182, 122, 0.92);
    background: rgba(255, 141, 43, 0.08);
}

.project-next-pill {
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.04);
}

.project-screen-card {
    position: relative;
    width: min(100%, 980px);
    min-height: 680px;
    border-radius: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 124, 26, 0.16), transparent 16%),
        linear-gradient(180deg, rgba(13, 10, 8, 0.98), rgba(4, 4, 4, 1));
    box-shadow: 0 40px 140px rgba(0, 0, 0, 0.52);
}

.project-screen-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 52%, rgba(255, 128, 28, 0.08), transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22) 76%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.project-screen-fade {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.project-screen-fade-top,
.project-screen-fade-bottom {
    left: 0;
    right: 0;
    height: 120px;
}

.project-screen-fade-top {
    top: 0;
    background: linear-gradient(180deg, rgba(3, 3, 3, 1), rgba(3, 3, 3, 0));
}

.project-screen-fade-bottom {
    bottom: 0;
    background: linear-gradient(0deg, rgba(3, 3, 3, 1), rgba(3, 3, 3, 0));
}

.project-screen-fade-left,
.project-screen-fade-right {
    top: 0;
    bottom: 0;
    width: 120px;
}

.project-screen-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(3, 3, 3, 1), rgba(3, 3, 3, 0));
}

.project-screen-fade-right {
    right: 0;
    background: linear-gradient(270deg, rgba(3, 3, 3, 1), rgba(3, 3, 3, 0));
}

.project-screen-inner {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;
    padding: 72px 48px;
    text-align: center;
}

.project-version-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 138, 41, 0.22);
    color: rgba(255, 171, 98, 0.88);
    background: rgba(255, 135, 34, 0.06);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-logo-wordmark {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(4rem, 11vw, 8.6rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
}

.project-logo-light {
    color: #f7f3ee;
}

.project-logo-accent {
    color: #ff8a21;
}

.project-screen-copy {
    width: min(100%, 470px);
    margin: 0;
    color: rgba(255, 255, 255, 0.40);
    font-family: var(--font-mono);
    font-size: 0.98rem;
    line-height: 1.8;
}

.project-screen-actions {
    display: grid;
    place-items: center;
    gap: 10px;
}

.project-screen-button {
    min-width: 256px;
    padding: 18px 28px;
    border-radius: 16px;
    font-weight: 700;
}

.project-screen-button-primary {
    color: #fff7f0;
    border-color: rgba(255, 149, 54, 0.28);
    background: linear-gradient(135deg, #ff9d3f, #ff7a18);
    box-shadow: 0 18px 40px rgba(255, 122, 24, 0.24);
}

.project-screen-button-primary:hover {
    border-color: rgba(255, 184, 124, 0.34);
    background: linear-gradient(135deg, #ffad59, #ff841f);
}

.project-screen-ghost {
    color: rgba(255, 176, 113, 0.62);
    font-size: 0.92rem;
}

.project-screen-downloads {
    color: rgba(255, 160, 82, 0.76);
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.project-rail {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.project-rail-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 120px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.project-rail-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.project-rail-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.project-rail-card-active {
    background: linear-gradient(180deg, rgba(255, 140, 46, 0.09), rgba(255, 255, 255, 0.035));
    border-color: rgba(255, 149, 54, 0.16);
}

.project-rail-index {
    flex: 0 0 auto;
    min-width: 34px;
    color: rgba(255, 163, 87, 0.82);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.feature-layout-home {
    width: min(100%, 1120px);
    margin: 18px auto 0;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: center;
}

.feature-column-home {
    width: 100%;
    min-height: 460px;
    display: flex;
    justify-content: flex-end;
}

.feature-grid-home {
    position: relative;
    width: min(100%, 700px);
    min-height: 460px;
    margin-left: auto;
}

.home-plugin-callout {
    min-height: 260px;
    padding: 28px 30px;
    border-radius: 24px;
    background: rgba(20, 20, 22, 0.94);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.home-plugin-callout h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.05;
}

.home-plugin-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.home-plugin-callout .button {
    min-width: 210px;
}

.feature-plugin-card {
    position: absolute;
    width: min(100%, 430px);
    min-height: 118px;
    padding: 20px 22px;
    background: rgba(20, 20, 22, 0.94);
    border-color: transparent;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.feature-plugin-card[data-enabled="true"] {
    border-color: transparent;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.feature-plugin-card:nth-child(1) {
    top: 98px;
    right: 286px;
    z-index: 2;
}

.feature-plugin-card:nth-child(2) {
    top: 28px;
    right: 12px;
    z-index: 3;
}

.feature-plugin-card:nth-child(3) {
    top: 282px;
    right: 56px;
    z-index: 1;
}

.feature-plugin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.feature-plugin-head h3 {
    font-size: 1.05rem;
    line-height: 1.15;
}

.feature-plugin-card p {
    margin-top: 0;
    font-size: 0.98rem;
    line-height: 1.45;
}

.plugin-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease;
}

.plugin-switch span {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f4f6ff;
    transition: transform 180ms ease;
}

.plugin-switch.is-on {
    background: linear-gradient(135deg, #57f287, #23a559);
    box-shadow: inset 0 0 0 1px rgba(23, 70, 40, 0.14), 0 0 18px rgba(87, 242, 135, 0.18);
}

.plugin-switch.is-on span {
    transform: translateX(20px);
}

.preview-toolbar {
    grid-template-columns: 280px 1fr;
    align-items: center;
}

.preview-shell {
    grid-template-columns: 84px 260px 1fr 280px;
    align-items: stretch;
    padding: 18px;
    min-height: 760px;
}

.section-copy {
    padding: 42px 6px 16px;
}

.section-copy.compact {
    padding: 0 0 16px;
}

.home-release-copy {
    width: min(100%, 980px);
    margin: 56px auto 0;
    padding: 28px 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-grid,
.download-grid,
.info-grid,
.community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plugin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 24px;
}

.plugin-search {
    display: grid;
    gap: 10px;
}

.plugin-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    outline: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.plugin-search input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.plugin-search input:focus {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.plugin-toolbar-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.plugin-toolbar-meta strong {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--text);
}

.feature-chip,
.stack-chip {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.plugin-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.plugin-card::before,
.download-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0.48;
}

.download-card {
    position: relative;
    overflow: hidden;
}

.download-card h3,
.plugin-card h3,
.timeline-item h3,
.info-card h3,
.community-card h3,
.spotlight-card h3 {
    font-size: 1.5rem;
}

.plugin-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.plugin-card {
    padding: 18px;
    border-radius: 20px;
}

.plugin-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plugin-card-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 auto;
}

.lucide-icon {
    display: block;
}

.plugin-card h3 {
    margin: 16px 0 0;
    font-size: 1.15rem;
    line-height: 1.1;
}

.plugin-card p {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
    flex-grow: 1;
}

.plugin-card .feature-chip {
    padding: 5px 9px;
}

.plugin-card .plugin-meta {
    display: block;
    margin-top: 14px;
}

.plugin-card-empty {
    grid-column: 1 / -1;
    max-width: 420px;
}

@keyframes pluginCardIn {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.plugin-card-clickable {
    cursor: pointer;
    animation: pluginCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.plugin-card-clickable:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.plugin-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    flex-shrink: 0;
    border: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.plugin-video-badge[data-has-video="true"] {
    opacity: 1;
    pointer-events: auto;
    background: rgba(207, 207, 214, 0.1);
    border-color: rgba(207, 207, 214, 0.22);
    color: var(--teal);
}

.plugin-video-badge[data-has-video="false"] {
    opacity: 0;
    pointer-events: none;
}

.plugin-detail-modal {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 32px));
    max-height: min(90vh, 860px);
    overflow: auto;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(14, 14, 16, 0.98), rgba(8, 8, 10, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.46);
}

.modal-shell:not([hidden]) .plugin-detail-modal {
    animation: modalPopIn 280ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.plugin-detail-modal-glow {
    position: absolute;
    inset: 0 auto auto 50%;
    width: min(440px, 80vw);
    height: 180px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 68%);
    filter: blur(26px);
    pointer-events: none;
}

.plugin-detail-content {
    position: relative;
    z-index: 1;
}

.plugin-detail-head {
    margin-bottom: 22px;
}

.plugin-detail-head h2 {
    margin: 12px 0 10px;
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.05;
}

.plugin-detail-head .hero-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-mono);
}

.plugin-detail-video-wrap {
    margin-top: 6px;
}

.plugin-device-frame {
    border-radius: 20px;
    overflow: hidden;
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.plugin-device-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #131315;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plugin-device-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.plugin-device-dot--red    { background: #ff5f57; }
.plugin-device-dot--yellow { background: #febc2e; }
.plugin-device-dot--green  { background: #28c840; }

.plugin-device-screen {
    line-height: 0;
}

.plugin-device-screen video {
    display: block;
    width: 100%;
    cursor: pointer;
}

.plugin-detail-no-video {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

.download-grid {
    margin-top: 18px;
}

.download-card .button {
    margin-top: 32px;
}

.download-card {
    display: flex;
    flex-direction: column;
}

.download-card-spacer {
    flex: 1;
    min-height: 16px;
}

.plugin-card .plugin-meta,
.timeline-date,
.seeded-creds,
.inline-status,
.user-meta,
.user-card small,
.auth-form span {
    font-size: 0.82rem;
}

.timeline-panel {
    position: relative;
    width: min(100%, 980px);
    margin: 28px auto 0;
    gap: 16px;
    padding: 20px 24px 20px 64px;
}

.timeline-panel::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 40px;
    bottom: 40px;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
}

body[data-page="home"] .timeline-panel {
    margin-top: 22px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
    padding: 18px 22px;
    background: rgba(20, 20, 22, 0.94);
    border-color: transparent;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #000;
    z-index: 2;
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
    background: rgba(22, 22, 24, 0.94);
}

.timeline-item:hover::before {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(1.1);
}

.timeline-item > div:first-child {
    display: grid;
    align-content: start;
    gap: 8px;
}

.timeline-item > div:last-child {
    display: grid;
    gap: 8px;
}

.timeline-item h3 {
    line-height: 1.1;
    font-size: 1.15rem;
    margin: 0;
}

.timeline-item p {
    margin: 0;
    max-width: 58ch;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.timeline-item .feature-chip {
    padding-inline: 10px;
    font-size: 0.72rem;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.mode-switch,
.channel-tabs,
.server-stack,
.channel-list,
.preview-badges,
.composer-actions {
    display: flex;
    gap: 10px;
}

.mode-switch,
.channel-tabs {
    padding: 12px 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(24, 25, 28, 0.92);
}

.mode-switch,
.channel-tabs,
.channel-list {
    flex-wrap: wrap;
}

.server-stack,
.channel-list,
.member-list,
.plugin-layer {
    display: grid;
    gap: 10px;
}

.mode-pill,
.channel-tab,
.server-pill,
.channel-row,
.composer-pill,
.preview-badge,
.server-action {
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(54, 57, 63, 0.9);
    color: #dbdee1;
}

.mode-pill,
.channel-tab,
.server-pill,
.channel-row,
.server-action {
    cursor: pointer;
}

.mode-pill,
.channel-tab,
.composer-pill,
.preview-badge {
    border-radius: 999px;
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.mode-pill.is-active,
.channel-tab.is-active,
.server-pill.is-active,
.channel-row.is-active {
    background: #5865f2;
    border-color: rgba(88, 101, 242, 0.8);
    color: #ffffff;
}

.preview-shell {
    background: #313338;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.preview-servers,
.preview-sidebar,
.preview-chat,
.preview-members {
    border-radius: 24px;
    padding: 14px;
}

.preview-servers {
    background: #1e1f22;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.server-stack {
    align-items: center;
}

.server-pill,
.server-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #313338;
    border-color: transparent;
    transition: border-radius 180ms ease, background 180ms ease, transform 180ms ease;
}

.server-pill.is-active,
.server-pill:hover,
.server-action:hover {
    border-radius: 16px;
    transform: translateY(-1px);
}

.preview-sidebar,
.preview-members {
    background: #2b2d31;
    display: grid;
    align-content: start;
    gap: 14px;
}

.sidebar-head p,
.members-head p,
.member-card p,
.plugin-layer-item p,
.message-enhance,
.message-head span,
.message-head small,
.sidebar-user p {
    color: var(--muted);
    font-family: var(--font-mono);
}

.channel-row {
    width: 100%;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: transparent;
    border-color: transparent;
    color: #b5bac1;
}

.channel-row:hover {
    background: rgba(78, 80, 88, 0.45);
    color: #f2f3f5;
}

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    padding: 14px;
    background: #232428;
}

.presence-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #23a55a;
    box-shadow: 0 0 0 4px #232428;
}

.preview-chat {
    background: #313338;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
}

.chat-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-head,
.members-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.message-list {
    display: grid;
    gap: 12px;
    align-content: start;
    overflow: auto;
    padding-right: 4px;
}

.message-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    animation: reveal 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.message-avatar,
.member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    background: #5865f2;
}

.member-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
}

.member-teal { background: #23a55a; }
.member-pink { background: #f23f43; }
.member-cyan { background: #3ba55d; }
.member-violet { background: #5865f2; }

.message-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.message-head strong {
    color: #f2f3f5;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.role-lead { background: #5865f2; }
.role-design { background: #eb459e; }
.role-ops { background: #3ba55d; }
.role-visual { background: #faa81a; }
.role-build { background: #ed4245; }

.message-body p {
    margin: 6px 0 0;
    color: #dbdee1;
    line-height: 1.65;
}

.message-enhance {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(88, 101, 242, 0.14);
}

.composer {
    background: #383a40;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.plugin-panel {
    background: #232428;
    border-radius: 20px;
    padding: 14px;
}

.plugin-layer {
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.plugin-layer-item {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #2b2d31;
}

.plugin-layer-item-catalog {
    display: grid;
    gap: 8px;
}

.plugin-layer-category {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.14);
    border: 1px solid rgba(88, 101, 242, 0.22);
    color: #b8c0ff;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plugin-layer-item-catalog strong {
    color: #f2f3f5;
}

.plugin-layer-item-catalog p {
    margin: 0;
    color: #b5bac1;
    line-height: 1.5;
}

.preview-shell.is-nightmagic {
    border-color: rgba(127, 140, 255, 0.24);
    box-shadow: 0 30px 90px rgba(23, 24, 34, 0.52);
}

.preview-shell.is-nightmagic .preview-chat {
    background: linear-gradient(180deg, rgba(41, 44, 58, 0.98), rgba(29, 31, 43, 0.98));
}

.preview-shell.is-nightmagic .composer-pill,
.preview-shell.is-nightmagic .preview-badge {
    background: rgba(127, 140, 255, 0.14);
    border-color: rgba(127, 140, 255, 0.22);
}

.auth-form + .auth-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-form label,
.field-grid label,
.user-fields label {
    display: grid;
    gap: 8px;
}

.auth-form input,
.auth-form select,
.user-fields input,
.user-fields select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.field-grid,
.user-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 28px;
}

.checkbox-row input {
    width: auto;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 6px 0;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.32;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.16);
    }
}

@keyframes pulseMoon {
    from {
        transform: scale(0.96);
        opacity: 0.8;
    }

    to {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes floatAurora {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(0, 34px, 0) scale(1.08);
    }
}

/* ── Themes page ─────────────────────────────────────────────────────────── */
.page-themes {
    display: flex;
    flex-direction: column;
}

.themes-hub {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.themes-hub-header {
    margin-bottom: 32px;
}

.themes-hub-title {
    margin: 8px 0 10px;
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.themes-hub-sub {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.44);
    max-width: 540px;
}

.themes-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.themes-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.themes-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.32);
    pointer-events: none;
}

.themes-search {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 10px 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

.themes-search::placeholder { color: rgba(255, 255, 255, 0.26); }
.themes-search:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}
.themes-search::-webkit-search-cancel-button { filter: invert(1) opacity(0.4); }

.themes-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
}

.themes-tab {
    padding: 7px 16px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--font-sans);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.themes-tab:hover { color: rgba(255, 255, 255, 0.72); }

.themes-tab-active {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}

.themes-count {
    margin: 0 0 20px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.36);
    letter-spacing: 0.06em;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.themes-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.88rem;
}

.themes-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.themes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.theme-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.theme-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
}

.theme-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.theme-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.theme-card:hover .theme-card-thumb img {
    transform: scale(1.04);
}

.theme-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.6), rgba(10, 10, 30, 0.8));
}

.theme-card-type {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-card-type-theme {
    background: rgba(100, 120, 255, 0.2);
    border: 1px solid rgba(100, 120, 255, 0.3);
    color: rgba(160, 180, 255, 0.9);
}

.theme-card-type-snippet {
    background: rgba(255, 180, 80, 0.15);
    border: 1px solid rgba(255, 180, 80, 0.25);
    color: rgba(255, 200, 120, 0.9);
}

.theme-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 10px;
    flex: 1;
}

.theme-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 20px;
}

.theme-card-tag {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

.theme-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-card-desc {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.theme-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(255, 100, 130, 0.7);
}

.theme-card-author {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.32);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ── Theme modal ────────────────────────────────────────── */
.theme-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    animation: modalOverlayIn 0.18s ease;
}
.theme-modal-overlay[hidden] { display: none; }

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.theme-modal {
    position: relative;
    width: 100%;
    max-width: 960px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 22, 0.97);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    animation: modalCardIn 0.24s cubic-bezier(0.34, 1.4, 0.64, 1);
    overflow: hidden;
}

@keyframes modalCardIn {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.theme-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.theme-modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* In the modal left header, type badge flows inline (not absolute) */
.theme-modal-left-header .theme-card-type {
    position: static;
    align-self: flex-start;
}

/* Two-column layout */
.theme-modal-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 0;
}

/* ── Left column ── */
.theme-modal-left {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.theme-modal-left-header {
    padding: 2rem 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.theme-modal-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #5b9cf6;
    margin: 0;
    line-height: 1.2;
}

.theme-modal-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    margin: 0;
}

.theme-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Preview image */
.theme-modal-preview-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.theme-modal-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.theme-modal-preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
}

/* Source code */
.theme-modal-code-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.theme-modal-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.theme-modal-copy-code-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    transition: background 0.15s, color 0.15s;
}
.theme-modal-copy-code-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }
.theme-modal-copy-code-btn.copied {
    background: rgba(80,200,120,0.15);
    border-color: rgba(80,200,120,0.3);
    color: rgb(100,220,140);
}

.theme-modal-code {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-height: 360px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre;
    background: rgba(0,0,0,0.25);
    border-bottom-left-radius: 0;
}
.theme-modal-code::-webkit-scrollbar { width: 6px; height: 6px; }
.theme-modal-code::-webkit-scrollbar-track { background: transparent; }
.theme-modal-code::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Right sidebar ── */
.theme-modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4.5rem 1.25rem 1.5rem;
    overflow-y: auto;
}

.theme-modal-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #5b9cf6;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 0.6rem;
}
.theme-modal-download-btn:hover { background: #4a8ae8; transform: translateY(-1px); }
.theme-modal-download-btn:active { transform: translateY(0); }

.theme-modal-github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 1.5rem;
}
.theme-modal-github-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.theme-modal-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 0.75rem;
}

/* CSS URL copy section in sidebar */
.theme-modal-cssurl-section {
    margin-bottom: 1.5rem;
}
.theme-modal-cssurl-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}
.theme-modal-cssurl-code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.theme-modal-copy-url-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.theme-modal-copy-url-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.theme-modal-copy-url-btn.copied {
    background: rgba(80,200,120,0.15);
    border-color: rgba(80,200,120,0.3);
    color: rgb(100,220,140);
}

/* Statistics grid */
.theme-modal-stats-section {
    margin-bottom: 1.5rem;
}
.theme-modal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.theme-modal-stat-cell {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}
.theme-modal-stat-cell svg { color: rgba(255,255,255,0.3); }
.theme-modal-stat-cell strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.theme-modal-stat-cell span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-mono);
}

/* Contributors */
.theme-modal-contrib-section {}
.theme-modal-contrib-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.theme-modal-contrib-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.theme-modal-contrib-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}
.theme-modal-contrib-id {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-mono);
}
.theme-modal-contrib-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.theme-modal-contrib-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.theme-modal-contrib-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Responsive */
@media (max-width: 700px) {
    .theme-modal-layout { grid-template-columns: 1fr; }
    .theme-modal-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .theme-modal-sidebar { padding: 1.25rem; }
    .theme-modal-name { font-size: 1.35rem; }
}

/* card cursor pointer (now clickable div, not <a>) */
.theme-card {
    cursor: pointer;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1080px) {
    .hero-home,
    .feature-layout,
    .admin-layout,
    .preview-toolbar,
    .preview-shell,
    .plugin-toolbar,
    .spotlight-row,
    .download-grid,
    .plugin-grid,
    .info-grid,
    .community-grid,
    .metric-grid,
    .field-grid,
    .user-fields,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .feature-grid-home {
        position: static;
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-layout-home {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .feature-column-home {
        min-height: auto;
    }

    .feature-plugin-card,
    .feature-plugin-card:nth-child(1),
    .feature-plugin-card:nth-child(2),
    .feature-plugin-card:nth-child(3) {
        position: static;
        width: 100%;
    }

    .moon-hero {
        min-height: auto;
        padding-top: 28px;
    }

    .moon-stage {
        min-height: 420px;
    }

    .site-header,
    .site-footer {
        border-radius: 28px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 20px, 1260px);
    }

    .hero-home,
    .page-hero,
    .plugin-toolbar,
    .feature-column,
    .stack-column,
    .timeline-panel,
    .auth-panel,
    .admin-panel,
    .callout-panel,
    .spotlight-card,
    .info-card,
    .community-card {
        padding: 20px;
    }

    .hero-copy h1,
    .page-hero h1,
    .section-copy h2 {
        max-width: 100%;
    }

    .hero-copy-centered h1 {
        font-size: clamp(2.6rem, 12vw, 4.4rem);
    }

    .moon-stage {
        min-height: 320px;
    }

    .moon-disc {
        width: min(84vw, 330px);
    }

    .contribute-modal {
        padding: 22px;
        border-radius: 28px;
    }

    .project-stage {
        min-height: 620px;
        padding: 16px;
    }

    .project-collection-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 8px;
    }

    .project-collection-meta {
        justify-content: flex-start;
    }

    .project-screen-card,
    .project-screen-inner {
        min-height: 560px;
    }

    .project-screen-inner {
        padding: 56px 24px;
    }

    .project-screen-fade-left,
    .project-screen-fade-right {
        width: 56px;
    }

    .project-screen-fade-top,
    .project-screen-fade-bottom {
        height: 72px;
    }

    .project-rail {
        grid-template-columns: 1fr;
    }

    .discord-live-grid {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .team-grid-owner {
        grid-template-columns: 1fr;
    }

    .discord-live-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .contribute-modal-grid {
        grid-template-columns: 1fr;
    }

    .contribute-copy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contribute-copy-button {
        width: 100%;
    }

    .hero-runtime,
    .hero-metric-grid {
        width: 100%;
    }
}