:root {
    --bg-base: #070709;
    --bg-card: rgba(16, 16, 20, 0.65);
    --bg-card-hover: rgba(22, 22, 28, 0.8);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 106, 0, 0.35);

    --brand-primary: #ff6a00;
    --brand-primary-hover: #ff7b1a;
    --brand-primary-glow: rgba(255, 106, 0, 0.35);
    --brand-secondary: #ff9d00;
    --brand-deep: #e64a00;

    --text-white: #ffffff;
    --text-primary: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    --color-online: #22c55e;

    --font-heading: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 106, 0, 0.4) #0b0b0e;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #09090c;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    border: 2px solid #09090c;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

::-webkit-scrollbar-thumb:active {
    background: var(--brand-primary-hover);
}

::-webkit-scrollbar-corner {
    background: #09090c;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--bg-base);
    min-height: 100vh;
    overflow-x: clip;
    max-width: 100vw;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-orange {
    color: var(--brand-secondary);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-align: center;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7b1a 0%, #ff6a00 50%, #e64a00 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8b33 0%, #ff7b1a 50%, #f0520a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 106, 0, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-copy-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 106, 0, 0.3);
    color: var(--brand-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-copy-inline:hover {
    background: rgba(255, 106, 0, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 106, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-md);
    padding: 12px 20px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: #4ade80;
    flex-shrink: 0;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-white);
}

.toast-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--brand-secondary);
}

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    pointer-events: auto;
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-wrapper.scrolled {
    background: rgba(8, 8, 10, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.brand-logo-wrap {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: #141418;
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff7b1a 0%, #ff6a00 50%, #e64a00 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(255, 106, 0, 0.3);
    transition: all 0.2s ease;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #ff8b33 0%, #ff7b1a 50%, #f0520a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.45);
    color: #ffffff;
}

.nav-cta:active {
    transform: translateY(0);
}

.nav-cta-shop {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: #f4f4f5;
}

.nav-cta-shop:hover {
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.2);
    color: #ffffff;
}

.nav-cta .btn-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    user-select: none;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 106, 0, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 106, 0, 0.2);
}

.nav-toggle:active {
    transform: scale(0.97);
}

.nav-toggle-text {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f3f4f6;
    line-height: 1;
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5px;
    width: 16px;
    height: 14px;
}

.hamburger-bar {
    width: 16px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-toggle.active {
    background: rgba(255, 106, 0, 0.16);
    border-color: rgba(255, 106, 0, 0.55);
}

.nav-toggle.active .nav-toggle-text {
    color: #ff8533;
}

.nav-toggle.active .hamburger-bar {
    background-color: #ff8533;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 18px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 11, 15, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    animation: mobileMenuFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu.open {
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-link:hover, .mobile-link.active {
    color: #ffffff;
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.3);
    font-weight: 600;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-section {
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 90px;
    position: relative;
    overflow: hidden;
    background-color: #08080a;
}

.hero-bg-layer {
    position: absolute;
    inset: -36px;
    z-index: 1;
    pointer-events: none;
    background-color: #08080a;
    background-image:
        linear-gradient(to right, #08080a 0%, rgba(8, 8, 10, 0.95) 32%, rgba(8, 8, 10, 0.65) 62%, rgba(8, 8, 10, 0.2) 90%, rgba(8, 8, 10, 0.45) 100%),
        linear-gradient(to bottom, rgba(8, 8, 10, 0.5) 0%, transparent 20%, transparent 75%, #08080a 100%),
        url('../images/hero-bg.webp');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate3d(0, 0, 0) scale(1.05);
    will-change: transform;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-layout {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}



.hero-title-main {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.8vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-subtitle-main {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.6;
    color: #d4d4d8;
    max-width: 600px;
    margin-bottom: 34px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-ip-badge,
.hero-sub-badge {
    display: inline-flex;
    align-items: center;
}

.hero-ip-badge .btn-copy-chip,
.hero-sub-badge .btn-sub-chip {
    padding: 8px 16px;
    font-size: 0.8125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: #a1a1aa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-ip-badge .btn-copy-chip strong {
    color: #f4f4f5;
    letter-spacing: 0.02em;
}

.hero-ip-badge .btn-copy-chip:hover,
.hero-sub-badge .btn-sub-chip:hover {
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.35);
    color: #ffffff;
}

.hero-ip-badge .btn-copy-chip:hover strong {
    color: var(--brand-secondary);
}

.btn-copy-ip .copy-state-default,
.btn-copy-chip .copy-state-default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-ip .copy-state-success,
.btn-copy-chip .copy-state-success {
    display: none;
    align-items: center;
    gap: 8px;
    color: #4ade80;
}

.btn-copy-ip.copied .copy-state-default,
.btn-copy-chip.copied .copy-state-default {
    display: none;
}

.btn-copy-ip.copied .copy-state-success,
.btn-copy-chip.copied .copy-state-success {
    display: inline-flex;
}

.btn-copy-ip.copied,
.btn-copy-chip.copied {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.12);
}

.section {
    padding: 85px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
}

.editorial-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.editorial-lead {
    font-size: 1.125rem;
    color: #a1a1aa;
    line-height: 1.65;
    max-width: 720px;
    margin-bottom: 28px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    margin-top: 28px;
}

.about-text-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-text-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #f4f4f5;
    font-weight: 500;
}

.about-text-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #a1a1aa;
}

.about-media-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-card {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f1014;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-image-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 106, 0, 0.35);
}

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

.mods-container {
    margin-top: 10px;
}

.mods-header {
    margin-bottom: 20px;
}

.mods-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}

.mods-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mod-card {
    background: #0f1014;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.mod-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
    transform: translateY(-2px);
}

.mod-card-body {
    margin-bottom: 20px;
}

.mod-meta {
    margin-bottom: 10px;
}

.mod-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.mod-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.mod-card-highlight {
    border-color: rgba(255, 106, 0, 0.3);
}

.mod-action {
    margin-top: auto;
}

.mod-btn {
    width: 100%;
}

.start-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.step-card {
    background: #0f1014;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.step-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
    transform: translateY(-2px);
}

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

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 106, 0, 0.14);
    border: 1px solid rgba(255, 106, 0, 0.3);
    color: var(--brand-secondary);
    font-weight: 800;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

.step-action {
    margin-top: auto;
}

.step-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-chip-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-chip-copy:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.4);
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 24px;
}

.feature-card {
    background: #0f1014;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
    border-color: rgba(255, 106, 0, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-card-media {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.feature-card:hover .feature-card-media img {
    transform: scale(1.04);
}

.feature-card-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-secondary);
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.feature-link:hover {
    color: #ffffff;
    gap: 9px;
}

@media (max-width: 820px) {
    .mods-grid,
    .features-grid,
    .start-steps-grid {
        grid-template-columns: 1fr;
    }
}

.page-stats-main {
    padding-top: 100px;
    padding-bottom: 70px;
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.stats-ref-container {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

.server-status-card {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    width: 100%;
}

.stats-card-top {
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.stats-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.stats-card-title {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stats-ip-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #14171d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 16px;
    color: #cbd5e1;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stats-ip-btn:hover {
    background: #1c212a;
    color: #ffffff;
    border-color: rgba(255, 106, 0, 0.4);
}

.card-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot-ref {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.card-status-indicator.is-offline .status-dot-ref {
    background: #ef4444;
}

.card-status-text {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8b949e;
    text-transform: uppercase;
}

.stats-online-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.stats-online-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-online-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b949e;
    background: #14171d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.card-refresh-btn:hover {
    color: #ffffff;
    background: #1c212a;
    border-color: rgba(255, 106, 0, 0.4);
}

.card-refresh-btn.rotating svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-number-val {
    font-family: var(--font-heading);
    font-size: clamp(3.4rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.03em;
}

@media (max-width: 640px) {
    .page-stats-main {
        padding-top: 80px;
    }

    .stats-card-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px;
        gap: 20px;
    }

    .stats-online-col {
        align-items: flex-start;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

.footer {
    border-top: 1px solid var(--border-subtle);
    background: #050507;
    padding: 60px 0 35px 0;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 20px;
}

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

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.4);
    color: #ffffff;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-secondary);
}

.footer-server-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8125rem;
}

.footer-info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.footer-info-label {
    color: var(--text-dim);
}

.footer-info-value {
    color: var(--text-white);
    font-weight: 600;
}

.footer-info-badge {
    color: #4ade80;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy p {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.6875rem !important;
    max-width: 780px;
    line-height: 1.5;
}

.back-to-top {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.back-to-top:hover {
    background: rgba(255, 106, 0, 0.2);
    border-color: rgba(255, 106, 0, 0.4);
    color: #ffffff;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .specs-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .start-steps-grid,
    .mods-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-wrapper {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
        height: 60px;
        padding: 0 16px;
    }

    .nav-container {
        width: 100%;
        padding: 0;
    }

    .nav-menu, .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        padding-top: 104px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero-bg-layer {
        inset: 0;
        transform: none !important;
        background-image:
            linear-gradient(to bottom, rgba(8, 8, 10, 0.84) 0%, rgba(8, 8, 10, 0.94) 60%, #08080a 100%),
            url('../images/hero-bg.webp');
        background-position: center top;
    }

    .hero-title-main {
        font-size: clamp(2.2rem, 9.5vw, 3.4rem);
        line-height: 1.05;
        letter-spacing: -0.03em;
        margin-bottom: 18px;
    }

    .hero-subtitle-main {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 28px;
    }

    .hero-action-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-action-row .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 0.9375rem;
    }

    .section {
        padding: 60px 0;
    }

    .editorial-heading {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
        margin-bottom: 14px;
    }

    .editorial-lead {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .step-card {
        padding: 20px 18px;
    }

    .step-desc {
        margin-bottom: 18px;
    }

    .mod-card {
        padding: 20px 18px;
    }

    .footer {
        padding: 40px 0 28px 0;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .page-stats-main {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .card-main-content {
        padding: 24px 20px 20px 20px;
    }

    .card-footer-info {
        padding: 14px 20px;
    }

    .card-number-val {
        font-size: clamp(3rem, 14vw, 4rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .nav-wrapper {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-logo-wrap {
        width: 30px;
        height: 30px;
    }

    .hero-title-main {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .step-badge {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .card-main-content {
        padding: 20px 16px 16px 16px;
    }

    .card-footer-info {
        padding: 12px 16px;
    }

    .card-number-val {
        font-size: clamp(2.8rem, 16vw, 3.8rem);
    }
}



.wiki-page-main {
    padding-top: 110px;
    padding-bottom: 80px;
    min-height: 90vh;
}

.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 40px;
    align-items: flex-start;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

.wiki-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 14px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.wiki-sidebar::-webkit-scrollbar {
    width: 4px;
}

.wiki-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.wiki-search-box {
    position: relative;
    width: 100%;
}

.wiki-search-input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wiki-search-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 106, 0, 0.5);
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.2);
}

.wiki-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #71717a;
    pointer-events: none;
}

.wiki-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wiki-group-title {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #71717a;
    padding: 6px 12px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wiki-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wiki-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #a1a1aa;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.wiki-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.wiki-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.18) 0%, rgba(255, 107, 0, 0.04) 100%) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
    border-left: 3px solid #ff6700 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.1);
}

.wiki-children-list {
    list-style: none;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
    margin-bottom: 4px;
}

.wiki-child-link {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #71717a;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.wiki-child-link:hover {
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.wiki-child-link.active {
    color: #ff8533 !important;
    background: rgba(255, 107, 0, 0.12) !important;
    border-color: rgba(255, 107, 0, 0.25) !important;
    font-weight: 600 !important;
}

.wiki-article {
    min-width: 0;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.wiki-article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-category-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-secondary);
}

.wiki-article h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 2.7rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.wiki-article h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-article h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f4f4f5;
    margin-top: 28px;
    margin-bottom: 12px;
}

.wiki-article p {
    font-size: 1.05rem;
    color: #d4d4d8;
    line-height: 1.7;
    margin-bottom: 18px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.wiki-article ul, .wiki-article ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #d4d4d8;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-break: break-word;
}

.wiki-article li {
    margin-bottom: 8px;
}

.wiki-article a {
    color: #ff9d00;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

.wiki-article a:hover {
    color: #ffb84d;
}

.wiki-article code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    color: #ff9d42;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 24px 0;
    background: rgba(255, 106, 0, 0.06);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-left: 4px solid var(--brand-primary);
}

.wiki-callout.warning {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
}

.wiki-callout-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.wiki-callout.warning .wiki-callout-icon {
    color: #ef4444;
}

.wiki-callout-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #e4e4e7;
}

.wiki-figure {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #141418;
    position: relative;
    cursor: zoom-in;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wiki-figure:hover {
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.wiki-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 11px;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.wiki-figure:hover img {
    transform: scale(1.008);
}

.wiki-blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #e4e4e7;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.wiki-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.wiki-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.wiki-table td {
    padding: 12px 16px;
    color: #d4d4d8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wiki-table tr:last-child td {
    border-bottom: none;
}

.wiki-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.wiki-article hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0;
}

.wiki-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-toc-title {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a1a1aa;
    margin-bottom: 14px;
    padding-left: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wiki-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiki-toc-link {
    font-size: 0.8125rem;
    color: #8e8e93;
    text-decoration: none;
    line-height: 1.45;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    border: 1px solid transparent;
}

.wiki-toc-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.wiki-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    margin: 18px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.wiki-file-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wiki-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.wiki-file-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.wiki-file-icon svg {
    width: 20px;
    height: 20px;
}

.wiki-file-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.wiki-file-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f4f4f5;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.wiki-file-type {
    font-size: 0.75rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.wiki-file-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wiki-file-download-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.wiki-file-download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.wiki-file-download-btn:hover svg {
    transform: translateY(2px);
}

@media (max-width: 640px) {
    .wiki-file-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .wiki-file-info {
        width: 100%;
    }

    .wiki-file-meta {
        width: 100%;
    }

    .wiki-file-download-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

.wiki-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.wiki-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.wiki-embed-card {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wiki-embed-link {
    color: #ff9d00;
    text-decoration: underline;
    font-size: 0.9375rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.wiki-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 32px 0;
}

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

@media (max-width: 580px) {
    .wiki-card-grid {
        grid-template-columns: 1fr;
    }
}

.wiki-item-card {
    background: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 0 240px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.wiki-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wiki-item-card-cover {
    width: 100%;
    height: 140px;
    background: #232328;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    position: relative;
    cursor: zoom-in;
}

.wiki-item-card-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: transform 0.25s ease;
}

.wiki-item-card:hover .wiki-item-card-cover img {
    transform: scale(1.08);
}

.wiki-item-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #18181c;
    flex: 1;
}

.wiki-item-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wiki-item-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wiki-item-card-value {
    font-size: 0.875rem;
    color: #d4d4d8;
    line-height: 1.4;
    word-break: break-word;
}

.wiki-item-card-value.name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9375rem;
}

.wiki-mobile-drawer-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

@media (max-width: 1100px) {
    .wiki-layout {
        grid-template-columns: 260px 1fr;
    }
    .wiki-toc {
        display: none;
    }
}

@media (max-width: 820px) {
    .wiki-layout {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 0;
    }

    .wiki-mobile-drawer-toggle {
        display: flex;
    }

    .wiki-sidebar {
        display: none;
        position: static;
        max-height: none;
        margin-bottom: 24px;
        padding-right: 0;
        background: #0d0e12;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 20px;
    }

    .wiki-sidebar.mobile-open {
        display: flex;
    }

    .wiki-article {
        padding: 26px 20px;
    }
}

.wiki-img-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wiki-img-modal.active {
    display: flex;
}

.wiki-img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wiki-img-modal-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95vw;
    height: 92vh;
    max-width: 1400px;
}

.wiki-img-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    margin-bottom: 12px;
}

.wiki-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: #e4e4e7;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 0.8125rem;
    font-weight: 600;
}

.wiki-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.wiki-modal-btn#wikiZoomReset {
    width: auto;
    border-radius: 18px;
    padding: 0 12px;
    font-family: inherit;
    color: var(--primary);
}

.wiki-modal-btn.wiki-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.wiki-img-modal-viewport {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.wiki-modal-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    transition: transform 0.08s ease-out;
    transform-origin: center center;
    pointer-events: none;
}