:root {
            --bg-grad-1: #f6f7f4;
            --bg-grad-2: #f1f4ee;
            --bg-grad-3: #e9eee4;
            --surface: #ffffff;
            --surface-2: #eef2ea;
            --glow-1: rgba(47, 125, 87, 0.12);
            --glow-2: rgba(143, 191, 90, 0.12);
            --card: rgba(255, 255, 255, 0.94);
            --card-strong: #ffffff;
            --accent: #2f7d57;
            --accent2: #8fbf5a;
            --primary: #2f7d57;
            --primary-hover: #256347;
            --danger: #c25454;
            --text: #182119;
            --muted: #5f6b61;
            --border-color: #d8e0d2;
            --soft-bg: #eef2ea;
            --shadow: 0 10px 30px rgba(20, 28, 22, 0.08);
            --overview-bg: #eef2ea;
            --overview-card-bg: #ffffff;
            --overview-card-border: #d8e0d2;
            --overview-card-shadow: 0 10px 24px rgba(20, 28, 22, 0.07);
            --overview-strong: #182119;
            --overview-soft: #5f6b61;
            --featured-bg: #ffffff;
            --featured-border: #d8e0d2;
            --featured-shadow: 0 12px 28px rgba(20, 28, 22, 0.08);
            --featured-title-color: #182119;
            --featured-text-color: #5f6b61;
            --surface-card-bg: #ffffff;
            --surface-border-soft: rgba(47, 125, 87, 0.12);
            --button-primary: var(--primary);
            --button-primary-hover: var(--primary-hover);
        }

        [data-theme="dark"] {
            --bg-grad-1: #0f1115;
            --bg-grad-2: #1e1b4b;
            --bg-grad-3: #171033;
            --glow-1: rgba(91, 124, 250, 0.15);
            --glow-2: rgba(139, 92, 246, 0.15);
            --card: rgba(28, 31, 38, 0.9);
            --card-strong: rgba(32, 36, 46, 0.96);
            --accent: #5b7cfa;
            --accent2: #8b5cf6;
            --text: #f8fafc;
            --muted: #94a3b8;
            --border-color: rgba(255,255,255,0.06);
            --soft-bg: rgba(255,255,255,0.03);
            --shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
            --overview-bg: rgba(12, 18, 30, 0.96);
            --overview-card-bg: rgba(17, 24, 39, 0.78);
            --overview-card-border: rgba(255,255,255,0.08);
            --overview-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
            --overview-strong: #f8fafc;
            --overview-soft: #cbd5e1;
            --featured-bg: rgba(15, 23, 42, 0.84);
            --featured-border: rgba(255,255,255,0.08);
            --featured-shadow: 0 22px 45px rgba(0, 0, 0, 0.30);
            --featured-title-color: #f8fafc;
            --featured-text-color: #cbd5e1;
            --surface: rgba(17, 24, 39, 0.9);
            --surface-2: rgba(30, 41, 59, 0.84);
            --surface-card-bg: rgba(255,255,255,0.06);
            --surface-border-soft: rgba(255,255,255,0.10);
            --button-primary: #4f46e5;
            --button-primary-hover: #4338ca;
        }

        [data-theme="teal"] {
            --bg-grad-1: #042f2e;
            --bg-grad-2: #115e59;
            --bg-grad-3: #0f172a;
            --glow-1: rgba(20, 184, 166, 0.15);
            --glow-2: rgba(45, 212, 191, 0.15);
            --card: rgba(15, 23, 42, 0.85);
            --card-strong: rgba(15, 23, 42, 0.94);
            --accent: #14b8a6;
            --accent2: #0ea5e9;
            --text: #f8fafc;
            --muted: #94a3b8;
            --border-color: rgba(255,255,255,0.1);
            --soft-bg: rgba(255,255,255,0.04);
            --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
            --overview-bg: rgba(6, 24, 30, 0.96);
            --overview-card-bg: rgba(15, 23, 42, 0.72);
            --overview-card-border: rgba(255,255,255,0.10);
            --overview-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
            --overview-strong: #f8fafc;
            --overview-soft: #d2dae8;
            --featured-bg: rgba(15, 23, 42, 0.84);
            --featured-border: rgba(255,255,255,0.10);
            --featured-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
            --featured-title-color: #f8fafc;
            --featured-text-color: #d7e1f1;
            --surface: rgba(15, 23, 42, 0.92);
            --surface-2: rgba(15, 23, 42, 0.80);
            --surface-card-bg: rgba(255,255,255,0.06);
            --surface-border-soft: rgba(255,255,255,0.10);
            --button-primary: #0f766e;
            --button-primary-hover: #115e59;
        }

        * { box-sizing: border-box; }

        html, body {
            max-width: 100vw;
            overflow-x: hidden;
        }

        body {
            margin: 0;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--text);
            background-color: var(--bg-grad-1);
            background-image:
                radial-gradient(at 0% 0%, var(--glow-1) 0px, transparent 50%),
                radial-gradient(at 100% 0%, var(--glow-2) 0px, transparent 50%),
                radial-gradient(at 100% 100%, var(--glow-1) 0px, transparent 50%),
                radial-gradient(at 0% 100%, var(--glow-2) 0px, transparent 50%),
                linear-gradient(-45deg, var(--bg-grad-1), var(--bg-grad-2), var(--bg-grad-3));
            background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
            min-height: 100vh;
            transition: background-color 0.25s ease, color 0.25s ease, background-image 0.25s ease;
        }

        [data-theme="light"] body {
            background-color: #f6f7f4;
            background-image:
                radial-gradient(at 0% 0%, rgba(143, 191, 90, 0.10) 0px, transparent 42%),
                radial-gradient(at 100% 0%, rgba(47, 125, 87, 0.08) 0px, transparent 38%),
                radial-gradient(at 100% 100%, rgba(143, 191, 90, 0.08) 0px, transparent 36%),
                radial-gradient(at 0% 100%, rgba(47, 125, 87, 0.06) 0px, transparent 44%),
                linear-gradient(180deg, #f6f7f4 0%, #eef2ea 100%);
            animation: none;
        }

        [data-theme="light"] header {
            background:
                linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.03)),
                linear-gradient(135deg, #2f7d57 0%, #4f8456 56%, #8fbf5a 100%);
            box-shadow: 0 16px 40px rgba(20, 28, 22, 0.14);
        }

        [data-theme="light"] .contact-toggle,
        [data-theme="light"] .theme-toggle {
            background: rgba(255,255,255,0.18);
            border-color: rgba(255,255,255,0.22);
            box-shadow: 0 8px 18px rgba(20, 28, 22, 0.08);
        }

        @keyframes gradientBG {
            0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 50%; }
            50% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 100% 50%; }
            100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 50%; }
        }

        @keyframes fadeDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .anim-fade-down { animation: fadeDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
        .anim-fade-up { opacity: 0; animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }

        header {
            padding: 76px 20px 34px;
            text-align: center;
            position: relative;
            isolation: isolate;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
                linear-gradient(135deg, var(--accent), var(--accent2));
            color: #fff;
            box-shadow: 0 10px 35px rgba(0,0,0,0.12);
        }

        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        header::before,
        header::after {
            content: "";
            position: absolute;
            border-radius: 999px;
            filter: none;
            opacity: 0.82;
            z-index: -1;
        }

        header::before {
            width: 300px;
            height: 300px;
            background: rgba(255,255,255,0.12);
            top: -80px;
            left: -60px;
        }

        header::after {
            width: 280px;
            height: 280px;
            background: rgba(255,255,255,0.08);
            bottom: -120px;
            right: -60px;
        }

        .contact-toggle {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.18);
            color: white;
            border: 1px solid rgba(255,255,255,0.16);
            padding: 10px 18px;
            border-radius: 999px;
            cursor: pointer;
            font-weight: 700;
            transition: background 0.2s, transform 0.2s;
            z-index: 10;
        }

        .contact-toggle:hover,
        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.28);
            transform: translateY(-1px);
        }

        .theme-wrapper {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 20;
        }

        .theme-toggle {
            background: rgba(255, 255, 255, 0.18);
            color: white;
            border: 1px solid rgba(255,255,255,0.16);
            padding: 10px 18px;
            border-radius: 999px;
            cursor: pointer;
            font-weight: 700;
            transition: background 0.2s, transform 0.2s;
        }

        .theme-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 10px;
            background: var(--card-strong);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            transition: opacity 0.2s, transform 0.2s;
            min-width: 150px;
        }

        .theme-dropdown-menu.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .theme-option {
            background: transparent;
            border: none;
            padding: 12px 18px;
            color: var(--text);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            text-align: left;
            white-space: nowrap;
            transition: background 0.2s;
        }

        .theme-option:hover { background: var(--soft-bg); }

        .hero-kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 14px;
            padding: 8px 14px;
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        header h1 {
            margin: 0;
            font-size: clamp(40px, 7vw, 58px);
            font-weight: 900;
            letter-spacing: -1.8px;
            line-height: 1;
        }

        .hero-subtitle {
            max-width: 780px;
            margin: 14px auto 0;
            font-size: clamp(16px, 2vw, 20px);
            line-height: 1.6;
            color: rgba(255,255,255,0.92);
        }

        .hero-actions {
            margin-top: 28px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 14px;
        }

        .hero-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 170px;
            padding: 13px 22px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.16);
            font-weight: 800;
            text-decoration: none;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
        }

        .hero-btn.primary {
            background: #fff;
            color: #0f172a;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .hero-btn.secondary {
            background: rgba(255,255,255,0.14);
            color: #fff;
        }

        .hero-btn:hover {
            transform: translateY(-2px);
        }

        .hero-pills {
            margin-top: 24px;
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .hero-pill {
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.14);
            font-size: 13px;
            font-weight: 700;
            color: rgba(255,255,255,0.92);
        }

        .featured-strip {
            max-width: 1200px;
            margin: 30px auto 0;
            padding: 0;
            position: relative;
            z-index: 3;
        }

        .featured-card {
            background: var(--featured-bg);
            border: 1px solid var(--featured-border);
            border-radius: 24px;
            padding: 20px 24px;
            box-shadow: var(--featured-shadow);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            flex-wrap: wrap;
            text-align: left;
            color: var(--featured-title-color);
        }

        .featured-copy {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }

        .tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 12px;
            border-radius: 999px;
            background: rgba(20, 184, 166, 0.14);
            color: var(--accent);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.2px;
            border: 1px solid rgba(20, 184, 166, 0.2);
            white-space: nowrap;
        }

        [data-theme="light"] .tag {
            background: rgba(143, 191, 90, 0.12);
            border-color: rgba(47, 125, 87, 0.16);
            color: var(--primary);
        }

        .featured-title {
            font-weight: 800;
            font-size: 16px;
            color: var(--featured-title-color);
        }

        .featured-text {
            color: var(--featured-text-color);
            font-size: 14px;
            line-height: 1.6;
        }

        .featured-action {
            border: none;
            border-radius: 999px;
            padding: 12px 18px;
            background: var(--button-primary);
            color: white;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }

        .featured-action:hover { transform: translateY(-1px); background: var(--button-primary-hover); }

        .overview-band {
            padding: 26px 20px 6px;
            background: var(--overview-bg);
            position: relative;
            z-index: 2;
        }

        .overview-inner {
            max-width: 1200px;
            margin: 0 auto;
        }

        .stats-grid {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 16px;
        }

        .quick-jump-row {
            max-width: 1200px;
            margin: 16px auto 0;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .quick-jump-btn {
            border: 1px solid var(--overview-card-border);
            background: var(--overview-card-bg);
            color: var(--overview-strong);
            border-radius: 18px;
            padding: 16px 18px;
            cursor: pointer;
            text-align: left;
            transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
            box-shadow: var(--overview-card-shadow);
        }

        .quick-jump-btn:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
        }

        .quick-jump-label {
            display: block;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 6px;
        }

        .quick-jump-title {
            display: block;
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 4px;
            color: var(--overview-strong);
        }

        .quick-jump-text {
            display: block;
            font-size: 13px;
            line-height: 1.55;
            color: var(--overview-soft);
        }

        .stat-card {
            background: var(--overview-card-bg);
            border: 1px solid var(--overview-card-border);
            border-radius: 18px;
            padding: 18px;
            box-shadow: var(--overview-card-shadow);
            text-align: left;
        }

        .stat-card strong {
            display: block;
            font-size: 26px;
            line-height: 1;
            margin-bottom: 8px;
            color: var(--overview-strong);
        }

        .stat-card span {
            color: var(--overview-soft);
            font-size: 14px;
            line-height: 1.5;
        }

        [data-theme="light"] .overview-band {
            background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(238,242,234,0.88));
            border-top: 1px solid rgba(47, 125, 87, 0.10);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
        }


        .hero-overview {
            padding: 26px 0 6px;
            background: transparent;
        }

        .hero-overview .overview-inner {
            max-width: 1200px;
        }

.controls-band {
            padding: 26px 20px 6px;
            background: var(--overview-bg);
            position: relative;
            z-index: 2;
            isolation: isolate;
        }

        .content-controls {
            margin: 0 auto;
            max-width: 1200px;
            padding: 0;
            gap: 16px;
        }

        .content-controls .search-shell {
            max-width: 980px;
        }

        [data-theme="light"] .hero-overview {
            background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(246,247,244,0));
            border-top: none;
            box-shadow: none;
        }

        [data-theme="light"] .controls-band {
            background: linear-gradient(180deg, rgba(238,242,234,0.82), rgba(246,247,244,0.95));
        }

        [data-theme="light"] .controls,
        [data-theme="light"] main,
        [data-theme="light"] footer {
            background: transparent;
        }

        
.controls {
    margin: 26px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 980px;
}

.hero-controls {
    margin-top: 28px;
    max-width: 980px;
    gap: 18px;
}

.hero-controls .filters button {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255,255,255,0.10);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.hero-controls .filters button.active {
    background: rgba(255,255,255,0.96);
    color: #182235;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.hero-controls .search-shell {
    max-width: 980px;
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}

.hero-controls .search-label {
    color: rgba(255,255,255,0.82);
}

.hero-controls .search-mini {
    color: rgba(255,255,255,0.76);
}

.hero-controls #search {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
    color: #ffffff;
}

.hero-controls #search::placeholder {
    color: rgba(255,255,255,0.58);
}

.hero-controls .clear-btn {
    color: rgba(255,255,255,0.72);
}

[data-theme="light"] .hero-controls .filters button {
    background: var(--surface);
    border-color: var(--border-color);
    color: var(--text);
}

[data-theme="light"] .hero-controls .filters button.active {
    background: var(--button-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(47, 125, 87, 0.18);
}

[data-theme="light"] .hero-controls .search-shell {
    background: var(--surface);
    border-color: var(--border-color);
}

[data-theme="light"] .hero-controls .search-label {
    color: var(--accent);
}

[data-theme="light"] .hero-controls .search-mini {
    color: var(--muted);
}

[data-theme="light"] .hero-controls #search {
    background: var(--surface);
    border-color: var(--border-color);
    color: var(--text);
}

[data-theme="light"] .filters button.active {
    background: var(--button-primary);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(47, 125, 87, 0.18);
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filters button {
    border: 1px solid var(--border-color);
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: var(--card);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    color: var(--text);
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.filters button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.filters button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px var(--glow-1);
}

[data-theme="dark"] .filters button {
    background: rgba(37, 44, 79, 0.88);
    border-color: rgba(129, 140, 248, 0.22);
    color: #e5edff;
    box-shadow: 0 10px 22px rgba(5, 8, 20, 0.22);
}

[data-theme="teal"] .filters button {
    background: rgba(7, 51, 63, 0.88);
    border-color: rgba(45, 212, 191, 0.22);
    color: #dcfdf7;
    box-shadow: 0 10px 22px rgba(2, 20, 26, 0.22);
}

[data-theme="dark"] .secondary-link,
[data-theme="dark"] .status-action-btn {
    background: rgba(70, 85, 160, 0.16);
    border-color: rgba(129, 140, 248, 0.28);
    color: #dbeafe;
}

[data-theme="teal"] .secondary-link,
[data-theme="teal"] .status-action-btn {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(45, 212, 191, 0.24);
    color: #ccfbf1;
}

[data-theme="dark"] .contact-toggle,
[data-theme="dark"] .theme-toggle {
    background: rgba(99, 102, 241, 0.20);
    border-color: rgba(165, 180, 252, 0.20);
}

[data-theme="teal"] .contact-toggle,
[data-theme="teal"] .theme-toggle {
    background: rgba(13, 148, 136, 0.22);
    border-color: rgba(94, 234, 212, 0.18);
}

.search-shell {
    width: 100%;
    max-width: 720px;
    border-radius: 24px;
    padding: 14px 16px 16px;
    background: var(--card);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.search-mini {
    font-size: 12px;
    color: var(--muted);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: none;
}

#search {
    width: 100%;
    padding: 16px 48px 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    outline: none;
    background: var(--card-strong);
    color: var(--text);
    transition: box-shadow 0.2s, border-color 0.2s;
}

#search:focus {
    box-shadow: 0 8px 24px var(--glow-1);
    border-color: rgba(20,184,166,0.4);
}

[data-theme="light"] #search:focus {
    border-color: rgba(47, 125, 87, 0.34);
    box-shadow: 0 0 0 4px rgba(143, 191, 90, 0.18);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.clear-btn.show-clear {
    opacity: 1;
    pointer-events: auto;
}

.clear-btn:hover {
    color: var(--text);
    background: var(--soft-bg);
}

.search-hint {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: -6px;
}

main {
    margin: auto;
    padding: 20px 16px 20px;
    max-width: 1240px;
    min-height: 50vh;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeUp 0.4s ease-out forwards;
}

.section-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-heading {
    padding: 18px 22px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.section-heading--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.section-heading-copy {
    flex: 1;
    min-width: 0;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    max-width: 760px;
}

.section-heading-cta {
    margin-top: 16px;
    width: fit-content;
}

.section-heading--split .section-heading-cta {
    margin-top: 0;
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
    flex: 0 0 auto;
    width: clamp(190px, 22vw, 280px);
    min-width: 190px;
    padding-inline: 24px;
}

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
            justify-content: center;
            gap: 25px;
        }

        .card {
            background: var(--card-strong);
            padding: 24px;
            border-radius: 22px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-color);
            transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: "";
            position: absolute;
            inset: 0 auto auto 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--accent2));
            opacity: 0.85;
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.12);
            border-color: rgba(20,184,166,0.3);
        }

        [data-theme="light"] .card:hover,
        [data-theme="light"] .quick-jump-btn:hover,
        [data-theme="light"] .stat-card:hover {
            box-shadow: 0 18px 34px rgba(20, 28, 22, 0.10);
            border-color: rgba(47, 125, 87, 0.22);
        }

        .card-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        .card-title {
            margin: 0 0 10px 0;
            font-size: 23px;
            font-weight: 800;
            color: var(--text);
            line-height: 1.25;
            word-break: break-word;
            letter-spacing: -0.4px;
        }

        .card p {
            font-size: 15px;
            color: var(--text);
            margin: 0 0 15px 0;
            line-height: 1.7;
            flex-grow: 0;
        }

        .card code {
            background: rgba(127,127,127,0.12);
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 0.92em;
        }

        .mod-list {
            margin: 0 0 20px 0;
            padding-left: 20px;
            font-size: 14px;
            color: var(--muted);
            line-height: 1.65;
        }

        .mini-note {
            color: var(--muted);
            font-size: 13px;
            margin-bottom: 0;
        }

        .author-note {
            color: var(--muted);
            font-size: 13px;
            margin: 0 0 14px 0;
        }

        .card-footer {
            display: flex;
            gap: 10px;
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
            flex-wrap: wrap;
        }

        .download-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: none;
            padding: 11px 18px;
            border-radius: 999px;
            font-weight: 800;
            font-size: 14px;
            cursor: pointer;
            background: var(--button-primary);
            box-shadow: 0 8px 18px rgba(0,0,0,0.12);
            color: #fff;
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
            flex: 1;
            text-align: center;
        }

        .download-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px var(--glow-1);
            filter: brightness(1.04);
        }

        [data-theme="light"] .download-link:not(.secondary-link):hover {
            background: var(--button-primary-hover);
            box-shadow: 0 14px 28px rgba(37, 99, 71, 0.20);
            filter: none;
        }

        .secondary-link {
            background: transparent;
            color: var(--accent);
            border: 2px solid var(--accent);
            box-shadow: none;
        }

        .secondary-link:hover {
            background: var(--accent);
            color: #fff;
            filter: none;
        }

        .contact-info {
            font-size: 16px;
            line-height: 1.8;
            background: var(--soft-bg);
            padding: 22px;
            border-radius: 16px;
            margin-top: 10px;
            border: 1px solid var(--border-color);
        }

        .contact-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }

        .inline-link {
            color: var(--accent);
            text-decoration: none;
            font-weight: 700;
        }

        .inline-link:hover { text-decoration: underline; }

        footer {
            margin-top: 50px;
            padding: 0 20px 34px;
        }

        .footer-shell {
            max-width: 1200px;
            margin: 0 auto;
            padding: 24px;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 18px;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            color: var(--muted);
        }

        .footer-brand {
            font-size: 14px;
            line-height: 1.7;
        }

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

        .footer-links button,
        .footer-links a {
            border: 1px solid var(--border-color);
            background: var(--soft-bg);
            color: var(--text);
            border-radius: 999px;
            padding: 10px 14px;
            text-decoration: none;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s;
        }

        .footer-links button:hover,
        .footer-links a:hover {
            transform: translateY(-1px);
            background: var(--card);
        }

        [data-theme="light"] .footer-shell {
            background: rgba(255,255,255,0.82);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            box-shadow: 0 12px 28px rgba(20, 28, 22, 0.06);
        }


        .card-meta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin: -2px 0 14px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .card-meta .meta-dot {
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: var(--accent);
            opacity: 0.75;
        }

        .quick-install {
            margin: 14px 0 16px;
            padding: 18px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(91, 124, 250, 0.08), rgba(139, 92, 246, 0.06));
            border: 1px solid rgba(91, 124, 250, 0.14);
        }

        [data-theme="light"] .quick-install {
            background: linear-gradient(180deg, rgba(143, 191, 90, 0.12), rgba(255,255,255,0.92));
            border-color: rgba(47, 125, 87, 0.16);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
        }

        [data-theme="dark"] .quick-install {
            background: linear-gradient(180deg, rgba(91, 124, 250, 0.12), rgba(139, 92, 246, 0.09));
            border-color: rgba(148, 163, 184, 0.16);
        }

        .quick-install-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .quick-install-header strong {
            color: var(--text);
            font-size: 15px;
            letter-spacing: 0.1px;
        }

        .quick-install-sub {
            color: var(--muted);
            font-size: 13px;
            margin-bottom: 14px;
        }

        .install-steps {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .install-step {
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(91, 124, 250, 0.12);
            border-radius: 16px;
            padding: 14px;
            min-height: 110px;
        }

        [data-theme="light"] .install-step {
            background: var(--surface);
            border-color: var(--border-color);
            box-shadow: 0 8px 20px rgba(20, 28, 22, 0.04);
        }

        [data-theme="dark"] .install-step,
        [data-theme="teal"] .install-step {
            background: rgba(255,255,255,0.05);
            border-color: rgba(148, 163, 184, 0.12);
        }

        .install-step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent), var(--accent2));
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            margin-bottom: 10px;
            box-shadow: 0 8px 18px var(--glow-1);
        }

        .install-step strong {
            display: block;
            margin-bottom: 6px;
            color: var(--text);
            font-size: 14px;
        }

        .install-step p {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.55;
        }



.modpack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.modpack-grid > .card {
    height: 100%;
}

.server-access-card {
    display: flex;
    flex-direction: column;
}

.server-access-card .server-status-panel {
    flex: 1;
}

.modpack-summary {
    margin-bottom: 16px;
}

.modpack-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.modpack-highlight {
    border-radius: 16px;
    padding: 14px;
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
}

.modpack-highlight span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 800;
}

.modpack-highlight strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.feature-list-compact {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--text);
    display: grid;
    gap: 8px;
}

.feature-list-compact li {
    line-height: 1.55;
}

.server-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.server-card-title h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.server-summary {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
}

        .server-status-panel {
            margin: 0 0 18px;
            padding: 24px;
            border-radius: 22px;
            border: 1px solid rgba(91, 124, 250, 0.16);
            background: linear-gradient(180deg, rgba(91, 124, 250, 0.08), rgba(139, 92, 246, 0.06));
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        [data-theme="light"] .server-status-panel {
            border-color: rgba(47, 125, 87, 0.16);
            background: linear-gradient(180deg, rgba(143, 191, 90, 0.12), rgba(255,255,255,0.92));
            box-shadow: 0 14px 28px rgba(20, 28, 22, 0.06);
        }

        [data-theme="dark"] .server-status-panel,
        [data-theme="teal"] .server-status-panel {
            background: linear-gradient(180deg, rgba(91, 124, 250, 0.14), rgba(139, 92, 246, 0.10));
            border-color: rgba(148, 163, 184, 0.16);
        }

        .server-status-panel.compact {
            margin-top: 18px;
            margin-bottom: 0;
        }
        .contact-info .server-status-panel.compact {
            padding: 18px;
            gap: 12px;
            border-radius: 18px;
        }

        .contact-info .server-status-panel.compact .server-status-title strong {
            font-size: 14px;
        }

        .contact-info .server-status-panel.compact .server-status-title span {
            font-size: 12px;
        }

        .contact-info .server-status-panel.compact .server-status-pill {
            padding: 8px 12px;
            font-size: 12px;
        }

        .contact-info .server-status-panel.compact .server-status-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .contact-info .server-status-panel.compact .status-item {
            min-height: 86px;
            padding: 14px;
        }


        .server-status-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }

        .server-status-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .server-icon {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            overflow: hidden;
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(255,255,255,0.45);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
            flex-shrink: 0;
        }

        .server-icon img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .server-status-title strong {
            display: block;
            color: var(--text);
            font-size: 15px;
            margin-bottom: 4px;
        }

        .server-status-title span {
            color: var(--muted);
            font-size: 13px;
        }

        .server-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 999px;
            padding: 10px 14px;
            font-size: 13px;
            font-weight: 800;
            border: 1px solid rgba(91, 124, 250, 0.16);
            background: rgba(255,255,255,0.78);
            color: var(--text);
        }

        [data-theme="light"] .server-status-pill {
            background: rgba(255,255,255,0.92);
            border-color: rgba(47, 125, 87, 0.16);
        }

        [data-theme="dark"] .server-status-pill,
        [data-theme="teal"] .server-status-pill {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.1);
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #f59e0b;
            box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.14);
            flex-shrink: 0;
        }

        .server-status-panel.is-online .status-dot {
            background: #22c55e;
            box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
        }

        .server-status-panel.is-offline .status-dot {
            background: #ef4444;
            box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14);
        }

        .server-status-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .server-status-panel--triple-metrics .server-status-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .server-status-panel--triple-metrics .status-item--metric {
            min-height: 92px;
        }

        .server-status-panel--triple-metrics .status-item--online .player-list {
            min-height: 22px;
            align-items: flex-start;
        }

        .status-item {
            border-radius: 16px;
            padding: 16px;
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(91, 124, 250, 0.12);
            min-height: 102px;
        }

        [data-theme="light"] .status-item {
            background: var(--surface);
            border-color: rgba(47, 125, 87, 0.12);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
        }

        [data-theme="dark"] .status-item,
        [data-theme="teal"] .status-item {
            background: rgba(255,255,255,0.05);
            border-color: rgba(148, 163, 184, 0.12);
        }

        .status-label {
            display: block;
            font-size: 12px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 8px;
        }

        .status-value {
            display: block;
            color: var(--text);
            font-size: 15px;
            font-weight: 800;
            line-height: 1.35;
            word-break: break-word;
        }

        .status-value--address {
            font-size: 16px;
            line-height: 1.45;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            letter-spacing: 0.02em;
            overflow-wrap: anywhere;
        }

        .status-item.wide,
        .status-item--address {
            grid-column: 1 / -1;
        }

        .server-status-footer {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .status-note {
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
            max-width: 520px;
        }

        .server-status-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .status-action-btn {
            border: 1px solid rgba(91, 124, 250, 0.16);
            background: rgba(255,255,255,0.82);
            color: var(--text);
            border-radius: 999px;
            padding: 10px 14px;
            font-weight: 800;
            font-size: 13px;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s, border-color 0.2s;
        }

        [data-theme="light"] .status-action-btn {
            border-color: rgba(47, 125, 87, 0.16);
            background: rgba(255,255,255,0.92);
        }

        [data-theme="dark"] .status-action-btn,
        [data-theme="teal"] .status-action-btn {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.1);
            color: var(--text);
        }

        .status-action-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(91, 124, 250, 0.3);
        }

        [data-theme="light"] .status-action-btn:hover {
            background: var(--surface-2);
            border-color: rgba(47, 125, 87, 0.26);
        }

        .status-motd {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.6;
        }

        .status-motd strong {
            color: var(--text);
        }

        .section-empty {
            display: none;
            text-align: center;
            color: var(--muted);
            padding: 18px 16px 6px;
            font-size: 14px;
            font-weight: 600;
        }

        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.45);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: var(--card-strong);
            padding: 30px;
            border-radius: 18px;
            text-align: center;
            max-width: 420px;
            width: 90%;
            box-shadow: var(--shadow);
            transform: translateY(20px) scale(0.95);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0) scale(1);
        }

        .modal-close {
            margin-top: 20px;
            padding: 11px 26px;
            border: none;
            border-radius: 999px;
            background: var(--button-primary);
            color: white;
            cursor: pointer;
            font-weight: 800;
            transition: transform 0.2s, background 0.2s;
        }

        .modal-close:hover { transform: translateY(-1px); background: var(--button-primary-hover); }

        @media (max-width: 980px) {
            .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .quick-jump-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .quick-jump-row .quick-jump-btn:last-child { grid-column: 1 / -1; }
            .server-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .server-status-panel--triple-metrics .server-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .status-item.wide,
            .status-item--address { grid-column: 1 / -1; }
        }

        @media (max-width: 700px) {
            header {
                padding-top: 86px;
                padding-bottom: 28px;
            }

            .contact-toggle,
            .theme-wrapper {
                top: 16px;
            }

            .contact-toggle { left: 16px; }
            .theme-wrapper { right: 16px; }

            .featured-card {
                padding: 16px;
            }

            .modpack-grid {
                grid-template-columns: 1fr;
            }

            .modpack-highlight-grid,
            .install-steps,
            .server-status-grid {
                grid-template-columns: 1fr;
            }

            .server-status-panel--triple-metrics .server-status-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 10px;
            }

            .server-status-panel--triple-metrics .status-item {
                padding: 14px 12px;
                min-height: 86px;
            }

            .server-status-panel--triple-metrics .status-item--online {
                padding-right: 10px;
            }

            .server-status-panel--triple-metrics .status-label {
                font-size: 11px;
                margin-bottom: 6px;
            }

            .server-status-panel--triple-metrics .status-value {
                font-size: 13px;
            }

            .server-status-panel--triple-metrics .player-list {
                gap: 6px;
            }

            .server-status-panel--triple-metrics .player-chip {
                padding: 5px 8px;
                font-size: 11px;
            }

            .server-status-panel--triple-metrics .status-item.wide,
            .server-status-panel--triple-metrics .status-item--address {
                grid-column: 1 / -1;
            }

            .status-item.wide,
            .status-item--address {
                grid-column: 1 / -1;
            }

            .hero-controls {
                margin-top: 24px;
            }

            .search-shell {
                padding: 14px;
            }

            .search-copy {
                align-items: flex-start;
                flex-direction: column;
            }

            .overview-band {
                padding-top: 14px;
            }

            .quick-jump-btn {
                padding: 14px 14px;
            }

            .hero-kicker {
                margin-bottom: 10px;
                padding: 6px 12px;
                font-size: 11px;
            }

            header h1 {
                font-size: clamp(34px, 11vw, 46px);
                letter-spacing: -1.2px;
            }

            .hero-subtitle {
                font-size: 15px;
                line-height: 1.5;
            }

            .stats-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }

            .stat-card {
                padding: 14px;
            }

            .stat-card strong {
                font-size: 22px;
            }

            .stat-card span,
            .quick-jump-text {
                font-size: 12px;
            }

            .quick-jump-row {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            .quick-jump-row .quick-jump-btn:last-child {
                grid-column: 1 / -1;
            }

            .install-steps { grid-template-columns: 1fr; }

            .server-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .server-status-panel--triple-metrics .server-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

            .status-item.wide { grid-column: span 2; }
            .server-status-panel--triple-metrics .status-item.wide,
            .server-status-panel--triple-metrics .status-item--address { grid-column: 1 / -1; }

            .grid { grid-template-columns: minmax(0, 1fr); }

            .card,
            .modal-content {
                padding: 22px;
            }

            .hero-actions,
            .contact-actions,
            .footer-links {
                flex-direction: column;
                align-items: stretch;
            }

            .hero-btn,
            .featured-action,
            .footer-links button,
            .footer-links a {
                width: 100%;
                justify-content: center;
            }
        }
    

        html { scroll-behavior: smooth; }
        .skip-link {
            position: absolute;
            left: 16px;
            top: -56px;
            z-index: 1001;
            background: var(--button-primary);
            color: #fff;
            text-decoration: none;
            padding: 10px 14px;
            border-radius: 12px;
            font-weight: 800;
            box-shadow: var(--shadow);
            transition: top 0.2s ease;
        }
        .skip-link:focus { top: 14px; }
        :focus-visible {
            outline: 3px solid color-mix(in srgb, var(--button-primary) 72%, white 28%);
            outline-offset: 3px;
        }
        .controls-band {
            z-index: 35;
        }
        @media (max-width: 900px) {
            .controls-band {
                position: sticky;
                top: 0;
                background: var(--overview-bg);
                border-bottom: 1px solid var(--border-color);
                box-shadow: 0 10px 26px rgba(0,0,0,0.08);
            }
            .filters {
                overflow-x: auto;
                flex-wrap: nowrap;
                width: 100%;
                justify-content: flex-start;
                padding-bottom: 4px;
                scrollbar-width: thin;
            }
            .filters button { flex: 0 0 auto; }
            .type-filter-toolbar {
                overflow-x: auto;
                white-space: nowrap;
                justify-content: flex-start;
                padding-bottom: 4px;
                scrollbar-width: thin;
            }
        }
        .type-filter-toolbar {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        .type-filter-btn {
            border: 1px solid var(--border-color);
            background: var(--soft-bg);
            color: var(--text);
            border-radius: 999px;
            padding: 9px 14px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
        }
        .type-filter-btn:hover { transform: translateY(-1px); }
        .type-filter-btn.active {
            background: var(--button-primary);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 10px 22px rgba(0,0,0,0.10);
        }
        .project-visual {
            position: relative;
            border-radius: 18px;
            min-height: 122px;
            padding: 16px 16px 14px;
            margin: -2px 0 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: end;
            gap: 6px;
            color: #fff;
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
            background-size: cover;
        }
        .project-visual::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(15,23,42,0.05), rgba(15,23,42,0.72));
        }
        .project-visual > * {
            position: relative;
            z-index: 1;
        }
        .visual-kicker {
            display: inline-flex;
            width: fit-content;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.18);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .project-visual strong {
            font-size: 20px;
            line-height: 1.15;
            color: #fff;
        }
        .visual-mini {
            font-size: 13px;
            line-height: 1.5;
            color: rgba(255,255,255,0.92);
            max-width: 42ch;
        }
        .visual-modpack { background: radial-gradient(circle at 20% 20%, rgba(20,184,166,0.55), transparent 35%), linear-gradient(135deg, #0f172a, #0f766e 55%, #14b8a6); }
        .visual-map { background: radial-gradient(circle at 80% 15%, rgba(59,130,246,0.45), transparent 30%), linear-gradient(135deg, #1e3a8a, #2563eb 50%, #38bdf8); }
        .visual-pyramid { background: radial-gradient(circle at 15% 15%, rgba(245,158,11,0.38), transparent 30%), linear-gradient(135deg, #422006, #92400e 55%, #d97706); }
        .visual-hytale { background: radial-gradient(circle at 80% 20%, rgba(244,114,182,0.25), transparent 25%), linear-gradient(135deg, #1e293b, #334155 55%, #64748b); }
        .visual-echoes { background: radial-gradient(circle at 82% 18%, rgba(167,139,250,0.40), transparent 25%), linear-gradient(135deg, #111827, #312e81 55%, #7c3aed); }
        .visual-troll { background: radial-gradient(circle at 18% 18%, rgba(248,113,113,0.35), transparent 28%), linear-gradient(135deg, #1f2937, #7f1d1d 58%, #dc2626); }
        .visual-mindustry { background: radial-gradient(circle at 85% 20%, rgba(250,204,21,0.34), transparent 22%), linear-gradient(135deg, #111827, #374151 58%, #f59e0b); }
        .visual-flywheel { background: radial-gradient(circle at 15% 15%, rgba(244,114,182,0.28), transparent 25%), linear-gradient(135deg, #111827, #3f3f46 55%, #a855f7); }
        .visual-quiet { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.20), transparent 24%), linear-gradient(135deg, #020617, #1e293b 50%, #0f766e); }
        .visual-wrapper { background: radial-gradient(circle at 15% 20%, rgba(34,197,94,0.26), transparent 24%), linear-gradient(135deg, #0f172a, #14532d 52%, #16a34a); }
        .visual-playtime { background: radial-gradient(circle at 82% 18%, rgba(56,189,248,0.28), transparent 24%), linear-gradient(135deg, #0f172a, #0f766e 52%, #2563eb); }
        .visual-bot { background: radial-gradient(circle at 82% 18%, rgba(59,130,246,0.34), transparent 24%), linear-gradient(135deg, #0f172a, #1d4ed8 54%, #06b6d4); }
        .visual-app { background: radial-gradient(circle at 82% 18%, rgba(20,184,166,0.34), transparent 24%), linear-gradient(135deg, #111827, #0f766e 54%, #0ea5e9); }

        .grid > .card,
        .modpack-grid > .card {
            width: 100%;
            height: 100%;
        }
        .contact-paired-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 22px;
            align-items: stretch;
        }
        .contact-stack-card {
            display: flex;
            flex-direction: column;
            gap: 0;
            height: 100%;
        }
        .contact-stack-sections {
            display: flex;
            flex-direction: column;
            gap: 24px;
            height: 100%;
        }
        .contact-stack-block {
            padding-bottom: 22px;
            border-bottom: 1px solid rgba(56, 189, 248, 0.18);
        }
        .contact-stack-block:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }
        .contact-stack-card .contact-intro-head,
        .contact-stack-card .contact-primary-head,
        .contact-stack-card .server-card-title {
            margin-bottom: 16px;
        }
        .contact-stack-card .contact-intro-grid,
        .contact-stack-card .contact-channel-list,
        .contact-stack-card .contact-form-shell,
        .contact-stack-card .server-status-panel {
            margin-top: 16px;
        }
        .contact-stack-card .contact-form-shell {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .contact-stack-card .contact-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .contact-stack-card .contact-form .contact-actions {
            margin-top: 4px;
        }
        .contact-stack-card .server-access-card,
        .contact-stack-card .contact-form-card,
        .contact-stack-card .contact-primary-card,
        .contact-stack-card .contact-intro-card {
            background: transparent;
            border: 0;
            box-shadow: none;
            padding: 0;
        }
        .contact-stack-card .project-visual {
            margin-bottom: 16px;
        }
        .contact-stack-card .server-status-panel {
            border-radius: 18px;
        }
        .contact-stack-card .mini-note {
            margin-top: 12px;
        }
        .contact-equal-card {
            display: flex;
            flex-direction: column;
            gap: 18px;
            height: 100%;
        }
        .contact-card-head {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .contact-card-kicker {
            display: inline-flex;
            width: fit-content;
            padding: 6px 10px;
            border-radius: 999px;
            background: color-mix(in srgb, var(--accent) 16%, transparent);
            border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
            color: var(--accent);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .contact-card-lead {
            margin: 0;
            color: var(--muted);
            line-height: 1.7;
        }
        .contact-info-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .contact-info-panel {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-height: 120px;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            background: linear-gradient(180deg, var(--soft-bg), var(--card));
        }
        .contact-info-panel strong {
            color: var(--text);
            font-size: 16px;
            line-height: 1.35;
        }
        .contact-info-panel p {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.6;
        }
        .contact-channel-list--dense {
            gap: 12px;
        }
        .contact-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-color), transparent);
            margin: 2px 0;
        }
        .contact-form-shell--flat {
            padding: 0;
            border: 0;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
            margin-top: 0 !important;
        }
        .contact-card-footnote {
            margin-top: auto;
        }
        .contact-equal-card--server .server-status-panel {
            margin-bottom: 0;
        }
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px;
            align-items: start;
        }
        .contact-intro-card {
            display: flex;
            flex-direction: column;
            gap: 16px;
            justify-content: flex-start;
            height: auto;
        }
        .contact-intro-card p:last-of-type {
            margin-bottom: 0;
        }
        .contact-intro-head {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .contact-intro-lead {
            margin: 0;
            color: var(--muted);
            line-height: 1.68;
        }
        .contact-intro-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            flex: 1;
            align-content: start;
        }
        .contact-mini-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 14px;
            border-radius: 18px;
            border: 1px solid var(--border-color);
            background: linear-gradient(180deg, var(--soft-bg), var(--card-strong));
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.36);
            height: 100%;
        }
        .contact-mini-label {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .contact-mini-panel p {
            margin: 0;
            color: var(--text);
            font-size: 13px;
            line-height: 1.65;
        }
        .contact-mini-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .contact-mini-chip {
            display: inline-flex;
            align-items: center;
            padding: 6px 10px;
            border-radius: 999px;
            background: var(--card-strong);
            border: 1px solid var(--border-color);
            color: var(--text);
            font-size: 12px;
            font-weight: 700;
        }
        .contact-stat-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .contact-stat {
            padding: 12px;
            border-radius: 14px;
            background: var(--card-strong);
            border: 1px solid var(--border-color);
        }
        .contact-stat strong {
            display: block;
            margin-bottom: 6px;
            font-size: 20px;
            line-height: 1;
            color: var(--section-accent);
        }
        .contact-stat span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.45;
        }
        .contact-primary-card,
        .contact-form-card {
            display: flex;
            flex-direction: column;
            gap: 16px;
            height: auto;
        }
        .contact-primary-head {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .contact-primary-lead {
            margin: 0;
            color: var(--muted);
            line-height: 1.68;
        }
        .contact-primary-layout {
            display: grid;
            grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
            gap: 14px;
            align-items: start;
            flex: 1;
        }
        .contact-channel-list {
            display: grid;
            gap: 10px;
        }
        .contact-channel-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--card-strong);
        }
        .contact-channel-note {
            margin: 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.55;
        }
        .contact-form-shell {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 20px;
            border-radius: 18px;
            border: 1px solid var(--border-color);
            background: linear-gradient(180deg, var(--soft-bg), var(--card));
            height: auto;
        }
        .contact-form-shell p,
        .contact-subtitle {
            margin: 0;
        }
        .contact-actions--compact {
            margin-top: auto;
        }
        .contact-primary-card,
        .contact-server-card,
        .contact-form-card { height: auto; }
        .contact-form-card .contact-form-shell {
            padding: 0;
            border: none;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .form-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .form-field span {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .form-field input,
        .form-field select,
        .form-field textarea {
            width: 100%;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--card);
            color: var(--text);
            padding: 14px 15px;
            font: inherit;
            resize: vertical;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
            transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
        }

        [data-theme="light"] .form-field input,
        [data-theme="light"] .form-field select,
        [data-theme="light"] .form-field textarea {
            background: var(--surface);
        }

        [data-theme="light"] .form-field input:focus,
        [data-theme="light"] .form-field select:focus,
        [data-theme="light"] .form-field textarea:focus {
            border-color: rgba(47, 125, 87, 0.34);
            box-shadow: 0 0 0 4px rgba(143, 191, 90, 0.18);
            outline: none;
        }
        .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
        .player-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .player-chip {
            display: inline-flex;
            align-items: center;
            padding: 7px 10px;
            border-radius: 999px;
            background: var(--surface-card-bg);
            border: 1px solid var(--surface-border-soft);
            color: var(--text);
            font-size: 12px;
            font-weight: 700;
        }
        .player-chip.muted { color: var(--muted); }
        .privacy-note { margin-top: 6px; }
        .server-status-panel[data-loaded="true"] [data-status-text] { transition: color 0.2s ease; }
        .footer-links a, .footer-links button { min-height: 44px; }
        section.section { scroll-margin-top: 96px; }
        .contact-toggle,
        .theme-toggle,
        .theme-dropdown-menu,
        .hero-btn.secondary,
        .hero-pill,
        .featured-card,
        .quick-jump-btn,
        .stat-card,
        .search-shell,
        .card {
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
        @media (max-width: 380px) {
            .stats-grid,
            .quick-jump-row {
                grid-template-columns: 1fr;
            }

            .quick-jump-row .quick-jump-btn:last-child {
                grid-column: auto;
            }
        }
        .section-heading,
        .search-shell,
        .server-status-panel {
            contain: none;
        }
        @media (max-width: 1180px) {
            .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .contact-form-card { grid-column: 1 / -1; }
            .contact-primary-layout { grid-template-columns: 1fr; }
            .contact-server-card { grid-column: 1 / -1; }
        }
        @media (max-width: 980px) {
            .contact-paired-grid { grid-template-columns: 1fr; }
            .contact-grid { grid-template-columns: 1fr; }
            .contact-form-card,
            .contact-server-card { grid-column: auto; }
            .section-heading--split {
                flex-direction: column;
                align-items: stretch;
            }
            .section-heading--split .section-heading-cta {
                align-self: flex-start;
                margin-left: 0;
            }
        }
        @media (max-width: 700px) {
            .project-visual { min-height: 112px; padding: 14px; }
            .project-visual strong { font-size: 18px; }
            .form-grid { grid-template-columns: 1fr; }
            .contact-intro-grid { grid-template-columns: 1fr; }
            .contact-stat-grid { grid-template-columns: 1fr; }
            .contact-info-grid { grid-template-columns: 1fr; }
        }
        @media (prefers-reduced-motion: reduce), (max-width: 900px) {
            html { scroll-behavior: auto; }
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .anim-fade-down,
            .anim-fade-up,
            .section.active {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
            }
        }


        .section {
            --section-accent: var(--accent);
            --section-accent-border: rgba(20, 184, 166, 0.22);
            --section-accent-soft: rgba(20, 184, 166, 0.12);
            --section-accent-strong: var(--button-primary);
        }

        [data-theme="light"] #content-modpacks,
        [data-theme="light"] #content-maps,
        [data-theme="light"] #content-mods,
        [data-theme="light"] #content-apps,
        [data-theme="light"] #content-contact {
            --section-accent: var(--primary);
            --section-accent-border: rgba(47, 125, 87, 0.16);
            --section-accent-soft: rgba(143, 191, 90, 0.16);
            --section-accent-strong: var(--button-primary);
        }
        #content-modpacks {
            --section-accent: #10b981;
            --section-accent-border: rgba(16, 185, 129, 0.24);
            --section-accent-soft: rgba(16, 185, 129, 0.14);
            --section-accent-strong: #059669;
        }
        #content-maps {
            --section-accent: #8b5cf6;
            --section-accent-border: rgba(139, 92, 246, 0.24);
            --section-accent-soft: rgba(139, 92, 246, 0.14);
            --section-accent-strong: #7c3aed;
        }
        #content-mods {
            --section-accent: #0ea5e9;
            --section-accent-border: rgba(14, 165, 233, 0.24);
            --section-accent-soft: rgba(14, 165, 233, 0.14);
            --section-accent-strong: #0284c7;
        }
        #content-apps {
            --section-accent: #ec4899;
            --section-accent-border: rgba(236, 72, 153, 0.24);
            --section-accent-soft: rgba(236, 72, 153, 0.14);
            --section-accent-strong: #db2777;
        }
        #content-contact {
            --section-accent: #14b8a6;
            --section-accent-border: rgba(20, 184, 166, 0.26);
            --section-accent-soft: rgba(20, 184, 166, 0.16);
            --section-accent-strong: #0f766e;
        }
        #content-contact .section-heading,
        #content-contact .contact-intro-card,
        #content-contact .contact-primary-card,
        #content-contact .contact-form-card {
            background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(14, 165, 233, 0.05)), var(--card-strong);
            border-color: rgba(45, 212, 191, 0.18);
        }

        [data-theme="light"] #content-contact .section-heading,
        [data-theme="light"] #content-contact .contact-intro-card,
        [data-theme="light"] #content-contact .contact-primary-card,
        [data-theme="light"] #content-contact .contact-form-card {
            background: linear-gradient(180deg, rgba(143, 191, 90, 0.10), rgba(255,255,255,0.96)), var(--card-strong);
            border-color: rgba(47, 125, 87, 0.16);
        }
        #content-contact .contact-info {
            background: linear-gradient(180deg, rgba(20, 184, 166, 0.10), rgba(14, 165, 233, 0.07));
            border-color: rgba(45, 212, 191, 0.20);
        }

        [data-theme="light"] #content-contact .contact-info {
            background: linear-gradient(180deg, rgba(238,242,234,0.92), rgba(255,255,255,0.98));
            border-color: rgba(47, 125, 87, 0.14);
        }
        #content-contact .contact-form-shell {
            background: linear-gradient(180deg, rgba(20, 184, 166, 0.10), rgba(14, 165, 233, 0.05));
            border-color: rgba(45, 212, 191, 0.18);
        }

        [data-theme="light"] #content-contact .contact-form-shell {
            background: linear-gradient(180deg, rgba(238,242,234,0.90), rgba(255,255,255,0.98));
            border-color: rgba(47, 125, 87, 0.14);
        }
        #content-contact .server-status-panel.compact {
            background: linear-gradient(180deg, rgba(20, 184, 166, 0.14), rgba(14, 165, 233, 0.10));
            border-color: rgba(45, 212, 191, 0.22);
        }
        #content-contact .form-field input,
        #content-contact .form-field select,
        #content-contact .form-field textarea {
            background: linear-gradient(180deg, rgba(20, 184, 166, 0.05), rgba(14, 165, 233, 0.03)), var(--card);
            border-color: rgba(45, 212, 191, 0.18);
        }

        [data-theme="light"] #content-contact .form-field input,
        [data-theme="light"] #content-contact .form-field select,
        [data-theme="light"] #content-contact .form-field textarea {
            background: var(--surface);
            border-color: rgba(47, 125, 87, 0.16);
        }
        .section .section-heading h2,
        .section .card-title,
        .section .server-card-title h3 {
            color: var(--section-accent);
        }
        .section .card-badges .tag,
        .section .section-heading .tag,
        .section .contact-grid .tag {
            background: var(--section-accent-soft);
            color: var(--section-accent);
            border-color: var(--section-accent-border);
        }
        .section .download-link:not(.secondary-link),
        .section .featured-action,
        .section .contact-form-card .download-link:not(.secondary-link) {
            background: var(--section-accent-strong);
        }
        .section .secondary-link {
            color: var(--section-accent);
            border-color: var(--section-accent);
        }
        .section .secondary-link:hover,
        .section .secondary-link:focus-visible,
        .section .secondary-link:active {
            background: var(--section-accent);
            color: #fff;
            border-color: var(--section-accent);
            filter: none;
        }
        .section .status-action-btn {
            border-color: var(--section-accent-border);
        }
        .section .status-action-btn:hover,
        .section .status-action-btn:focus-visible,
        .section .status-action-btn:active {
            background: var(--section-accent-soft);
            color: var(--section-accent);
            border-color: var(--section-accent);
        }
        .section .project-visual {
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 1px var(--section-accent-border);
        }
        .project-card .tag,
        .contact-grid .tag,
        .server-card-title .tag {
            cursor: pointer;
            transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }
        .project-card .tag:hover,
        .project-card .tag:focus-visible,
        .contact-grid .tag:hover,
        .contact-grid .tag:focus-visible,
        .server-card-title .tag:hover,
        .server-card-title .tag:focus-visible {
            transform: translateY(-1px);
        }
        .search-state {
            max-width: 1200px;
            margin: 14px auto 0;
            color: var(--muted);
            font-size: 13px;
            min-height: 1.4em;
        }
        .search-state strong {
            color: var(--text);
        }
        .status-inline-note {
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.55;
        }
        .privacy-actions {
            margin-top: 12px;
            justify-content: flex-start;
        }
        .status-action-btn[disabled] {
            cursor: not-allowed;
            opacity: 0.65;
            transform: none;
        }
