* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f7f9f8;
    background-image: url('../JSS_bg.png');
    background-attachment: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    color: #1a1a2e;
    font-family: 'Inter', 'Arial', sans-serif;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
    width: 100%;
    background: rgba(247, 249, 248, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(26, 42, 74, 0.1);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon {
    height: 56px;
    width: auto;
    display: block;
}

.header-wordmark {
    height: 60px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.header-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a2a4a;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 5px;
    border: 1px solid rgba(26, 42, 74, 0.18);
    transition: background 0.15s ease, color 0.15s ease;
}

.header-nav a:hover {
    background: #1a5aa5;
    color: #fff;
    border-color: #1a5aa5;
}

/* ── Main layout ──────────────────────────────────────── */

.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* ── Intro ────────────────────────────────────────────── */

.intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
    color: #4a5568;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 20px 28px;
}

/* ── Section titles ───────────────────────────────────── */

.plugin-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2a4a;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(26, 42, 74, 0.15);
    padding-bottom: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px 8px 0 0;
    padding: 12px 16px 14px;
}

.section-subtitle {
    color: #5a6a8a;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #1a5aa5;
    color: #fff;
    border-radius: 4px;
    padding: 3px 9px;
    vertical-align: middle;
}

.badge--orange {
    background: #e07b20;
}

/* ── Release notes ────────────────────────────────────── */

.release-notes {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(26, 42, 74, 0.1);
    border-left: 3px solid #1a5aa5;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 24px;
}

.release-notes-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a5aa5;
    white-space: nowrap;
    padding-top: 2px;
}

.release-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.release-notes-list li {
    font-size: 0.82rem;
    color: #2a3a5a;
    line-height: 1.4;
}

.release-version {
    display: inline-block;
    font-weight: 600;
    font-size: 0.75rem;
    color: #1a5aa5;
    background: rgba(26, 90, 165, 0.08);
    border-radius: 3px;
    padding: 1px 5px;
    margin-right: 6px;
    font-family: monospace;
}

/* ── Install guides ───────────────────────────────────── */

.install-guides {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
}

.install-guide {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(26, 42, 74, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.install-guide[open] {
    border-color: rgba(26, 90, 165, 0.2);
}

.install-guide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2a3a5a;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.install-guide-title::-webkit-details-marker { display: none; }

.install-guide-title::after {
    content: '›';
    margin-left: auto;
    font-size: 1rem;
    color: #8a9ab8;
    transition: transform 0.2s ease;
}

.install-guide[open] .install-guide-title::after {
    transform: rotate(90deg);
}

.install-guide-title svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.install-guide-title:hover {
    background: rgba(26, 90, 165, 0.04);
}

.install-steps {
    margin: 0;
    padding: 4px 16px 14px 36px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(26, 42, 74, 0.07);
}

.install-steps li {
    font-size: 0.82rem;
    color: #2a3a5a;
    line-height: 1.55;
}

.install-steps code {
    background: rgba(26, 42, 74, 0.07);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 0.79rem;
    color: #1a2a4a;
}

.install-note {
    font-size: 0.76rem;
    color: #7a8aaa;
}

/* ── Module preview thumbnail ─────────────────────────── */

.module-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.module-preview-thumb {
    display: block;
    max-width: 100%;
    width: 560px;
    border-radius: 8px;
    border: 1px solid rgba(26, 42, 74, 0.12);
    box-shadow: 0 4px 20px rgba(26, 42, 74, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.module-preview-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 42, 74, 0.14);
}

.module-preview-hint {
    display: block;
    font-size: 0.75rem;
    color: #5a6a8a;
    margin-top: 6px;
    letter-spacing: 0.03em;
}

/* ── Lightbox ─────────────────────────────────────────── */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ── Download bar ─────────────────────────────────────── */

.download-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.download-btn--windows {
    background: #1a5aa5;
    color: #fff;
    border: 1px solid #1a5aa5;
}

.download-btn--windows:hover {
    background: #144d8e;
    box-shadow: 0 4px 14px rgba(26, 90, 165, 0.25);
    transform: translateY(-1px);
}

.download-btn--linux {
    background: #f7f9f8;
    color: #1a2a4a;
    border: 1px solid rgba(26, 42, 74, 0.2);
}

.download-btn--linux:hover {
    background: #e8ecf4;
    box-shadow: 0 4px 14px rgba(26, 42, 74, 0.1);
    transform: translateY(-1px);
}

.download-btn--nts3 {
    background: #e07b20;
    color: #fff;
    border: 1px solid #e07b20;
}

.download-btn--nts3:hover {
    background: #c46a18;
    box-shadow: 0 4px 14px rgba(224, 123, 32, 0.25);
    transform: translateY(-1px);
}

/* ── Module grid ──────────────────────────────────────── */

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* ── Module cards ─────────────────────────────────────── */

.module-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(228, 233, 244, 0.9);
    border-radius: 10px;
    padding: 22px 24px;
    backdrop-filter: blur(4px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.module-card:hover {
    box-shadow: 0 6px 28px rgba(26, 90, 165, 0.12);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.92);
}

.module-card--minor {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(238, 238, 238, 0.8);
    opacity: 0.85;
}

.module-card--soon {
    background: rgba(255, 255, 255, 0.45);
    border: 1px dashed rgba(26, 42, 74, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.module-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a4a;
    line-height: 1.3;
}

.tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #e8ecf4;
    color: #1a5aa5;
    border-radius: 3px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.port-label {
    font-size: 0.65rem;
    font-weight: 600;
    background: #fef3e2;
    color: #c06010;
    border-radius: 3px;
    padding: 2px 6px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.module-card p {
    font-size: 0.88rem;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.65;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e4e9f4;
    padding-top: 10px;
}

.feature-list li {
    font-size: 0.8rem;
    color: #5a6a8a;
    padding: 3px 0 3px 14px;
    position: relative;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #1a5aa5;
    font-size: 0.75rem;
}

/* ── Badges extra colours ─────────────────────────────── */

.badge--green {
    background: #f7f9f8;
    color: #1a2a4a;
    border: 1px solid rgba(26, 42, 74, 0.15);
}

/* ── Donations ────────────────────────────────────────── */

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.crypto-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(228, 233, 244, 0.9);
    border-radius: 10px;
    padding: 22px 24px;
    backdrop-filter: blur(4px);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.crypto-icon {
    font-size: 1.4rem;
    color: #1a5aa5;
    line-height: 1;
}

.crypto-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2a4a;
}

.crypto-ticker {
    font-size: 0.7rem;
    font-weight: 600;
    background: #e8ecf4;
    color: #1a5aa5;
    border-radius: 3px;
    padding: 2px 7px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.05em;
}

.crypto-address {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    color: #3a4a6a;
    word-break: break-all;
    background: rgba(232, 236, 244, 0.6);
    border-radius: 5px;
    padding: 10px 12px;
    line-height: 1.5;
    user-select: all;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
    background: rgba(247, 249, 248, 0.9);
    border-top: 1px solid rgba(228, 233, 244, 0.8);
    text-align: center;
    padding: 32px 24px;
    color: #5a6a8a;
    font-size: 0.85rem;
    line-height: 1.8;
}

.site-footer strong {
    color: #1a2a4a;
}

.site-footer code {
    background: #e8ecf4;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.82rem;
    color: #1a5aa5;
}

.footer-feedback {
    font-size: 0.82rem;
    color: #5a6a8a;
    text-decoration: none;
    border-bottom: 1px dashed rgba(90, 106, 138, 0.4);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-feedback:hover {
    color: #1a2a4a;
    border-bottom-color: #1a2a4a;
}

.footer-feedback-sub {
    font-size: 0.8rem;
    color: #7a8aaa;
}

.footer-copy {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8a9ab8;
}

/* ── Responsive ───────────────────────────────────────── */

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

    .main-content {
        padding: 32px 16px 48px;
    }

    .section-title {
        font-size: 1.15rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .module-header {
        flex-direction: column;
        gap: 6px;
    }
}
