:root {
    --primary: #c50000;
    --primary-dark: #8b0000;
    --primary-glow: rgba(197, 0, 0, 0.4);
    --bg-deep: #070709;
    --bg-surface: #0d0d12;
    --bg-card: #111118;
    --bg-elevated: #161622;
    --text-primary: #f0f0f5;
    --text-secondary: #9090a8;
    --text-muted: #55556a;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-red: rgba(197, 0, 0, 0.25);
    --font-heading-name: 'Inter';
    --font-body-name: 'Inter';
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --letter-spacing-heading: -0.02em;
    --letter-spacing-body: 0px;
    --space-base: 1rem;
    --radius-small: 8px;
    --radius-large: 16px;
    --border-width: 1px;
    --shadow-color: 0 0 0;
    --shadow-offset-x: 0px;
    --shadow-offset-y: 4px;
    --shadow-blur: 24px;
    --shadow-spread: 0px;
    --shadow-opacity: 0.6;
    --shadow-custom: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-custom-hover: 0 8px 40px rgba(197, 0, 0, 0.25)
}

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

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: #070709
}

::-webkit-scrollbar-thumb {
    background: #c50000;
    border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1a1a
}


/* SIMPLE LOADER STYLES */
.simple-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    z-index: 5;
}

/* Welcome stage modifications */
.welcome-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #c50000 0%, #070709 80%);
    z-index: 10;
    opacity: 1;
}

.welcome-content {
    text-align: center;
    animation: welcomeZoom 0.5s ease-out;
}

.welcome-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(197,0,0,0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: flarePulse 1.5s ease-out;
}

@keyframes flarePulse {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.welcome-title {
    font-size: clamp(60px, 15vw, 120px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px #c50000, 0 0 60px #c50000;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.welcome-title span {
    display: inline-block;
    animation: letterPop 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.welcome-title span:nth-child(1) { animation-delay: 0.0s; }
.welcome-title span:nth-child(2) { animation-delay: 0.05s; }
.welcome-title span:nth-child(3) { animation-delay: 0.1s; }
.welcome-title span:nth-child(4) { animation-delay: 0.15s; }
.welcome-title span:nth-child(5) { animation-delay: 0.2s; }
.welcome-title span:nth-child(6) { animation-delay: 0.25s; }
.welcome-title span:nth-child(7) { animation-delay: 0.3s; }

@keyframes letterPop {
    0% { opacity: 0; transform: translateY(50px) rotate(10deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.welcome-sub {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
    opacity: 0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(197,0,0,0.5);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes welcomeZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stage-fade-out {
    animation: stageFadeOut 0.5s ease-out forwards !important;
}

@keyframes stageFadeOut {
    to { 
        opacity: 0;
        transform: scale(1.2);
        filter: blur(10px);
    }
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .6s ease, transform .6s ease
}

#loader .loader-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(197, 0, 0, 0.12) 0%, transparent 70%)
}

.loader-mace {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 20px rgba(197, 0, 0, 0.6));
    animation: macePulse 2s ease-in-out infinite
}

.loader-mace .mace-icon {
    font-size: 72px;
    color: #c50000
}

.loader-mace .mace-icon.flip {
    transform: scaleX(-1)
}

@keyframes macePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(197, 0, 0, 0.6))
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(197, 0, 0, 1))
    }
}

.loader-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: .25em;
    background: linear-gradient(135deg, #ff4444 0%, #c50000 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px
}

.loader-sub {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 40px
}

.loader-bar-wrap {
    width: 280px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden
}

.loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #8b0000, #c50000, #ff4444);
    border-radius: 2px;
    transition: width 2.2s cubic-bezier(.25, .46, .45, .94)
}

/* MIND-BLOWING LOADER STYLES */
.loader-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(197, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* WELCOME STAGE */
.welcome-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #c50000 0%, #070709 80%);
    z-index: 10;
}

.welcome-content {
    text-align: center;
    animation: welcomeZoom 0.3s ease-out;
}

.welcome-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(197,0,0,0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: flarePulse 0.3s ease-out;
}

@keyframes flarePulse {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

.welcome-title {
    font-size: clamp(60px, 15vw, 120px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px #c50000, 0 0 60px #c50000;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.welcome-title span {
    display: inline-block;
    animation: letterPop 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.welcome-title span:nth-child(1) { animation-delay: 0.0s; }
.welcome-title span:nth-child(2) { animation-delay: 0.03s; }
.welcome-title span:nth-child(3) { animation-delay: 0.06s; }
.welcome-title span:nth-child(4) { animation-delay: 0.09s; }
.welcome-title span:nth-child(5) { animation-delay: 0.12s; }
.welcome-title span:nth-child(6) { animation-delay: 0.15s; }
.welcome-title span:nth-child(7) { animation-delay: 0.18s; }

@keyframes letterPop {
    0% { opacity: 0; transform: translateY(50px) rotate(10deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.welcome-sub {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: fadeIn 0.5s ease-out 0.2s forwards;
    opacity: 0;
}

/* HEAVEN STAGE */
.heaven-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #c50000 0%, #4a0000 50%, #070709 100%);
    z-index: 9;
    opacity: 0;
    pointer-events: none;
}

.portal {
    position: relative;
    width: 300px;
    height: 300px;
    animation: portalRotate 2s linear infinite;
}

.portal-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(197, 0, 0, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 50px #c50000;
    animation: ringPulse 2s ease-in-out infinite;
}

.portal-ring.inner {
    inset: 30px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.8);
    animation-direction: reverse;
}

.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ff4444, #c50000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 100px #ff0000;
}

.portal-mace {
    font-size: 60px;
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
    animation: maceSpin 3s linear infinite;
}

@keyframes portalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { 
        box-shadow: 0 0 50px #c50000;
        border-color: rgba(197, 0, 0, 0.6);
    }
    50% { 
        box-shadow: 0 0 100px #ff4444;
        border-color: rgba(255, 68, 68, 0.8);
    }
}

@keyframes maceSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent, #c50000, transparent, #c50000, transparent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: raysRotate 8s linear infinite;
}

@keyframes raysRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* DOCS STAGE */
.docs-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    z-index: 8;
    opacity: 0;
    pointer-events: none;
}

.loader-stages {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    background: rgba(0,0,0,0.3);
    padding: 20px 40px;
    border-radius: 60px;
    border: 1px solid rgba(197,0,0,0.2);
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
}

.stage-item i:first-child {
    font-size: 18px;
}

.stage-item .fa-check {
    color: #22c55e;
    margin-left: 5px;
}

.stage-item .fa-check.hidden {
    display: none;
}

.stage-item.completed {
    color: #ff6b6b;
}

.stage-item.active {
    color: #c50000;
    text-shadow: 0 0 10px rgba(197,0,0,0.5);
}

.loader-tip {
    margin-top: 40px;
    padding: 12px 24px;
    background: rgba(197,0,0,0.1);
    border: 1px solid rgba(197,0,0,0.2);
    border-radius: 40px;
    color: var(--text-secondary);
    font-size: 13px;
    animation: tipPulse 2s ease-in-out infinite;
}

@keyframes tipPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Transitions */
.stage-fade-out {
    animation: stageFadeOut 0.5s ease-out forwards !important;
}

.stage-fade-in {
    animation: stageFadeIn 0.8s ease-out forwards !important;
}

@keyframes stageFadeOut {
    to { 
        opacity: 0;
        transform: scale(1.2);
        filter: blur(10px);
    }
}

@keyframes stageFadeIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    to { 
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .loader-stages {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 30px;
    }
    
    .portal {
        width: 200px;
        height: 200px;
    }
    
    .portal-core {
        width: 60px;
        height: 60px;
    }
    
    .portal-mace {
        font-size: 40px;
    }
}

#main-content {
    opacity: 1;
    transition: opacity .8s ease
}

.credit-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(197, 0, 0, 0.3);
    overflow: hidden;
}

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

/* Placeholder notes */
.ph-note {
    margin-top: 40px;
    padding: 20px;
    background: rgba(197, 0, 0, 0.05);
    border: 1px solid rgba(197, 0, 0, 0.15);
    border-radius: 12px;
}

.ph-note p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-note p:last-child {
    margin-bottom: 0;
}

.ph-note i {
    color: #c50000;
    font-size: 16px;
    width: 20px;
}

.ph-code-example {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(197, 0, 0, 0.1);
    color: #ffa07a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 9, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(197, 0, 0, 0.15)
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0
}

.logo-maces {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #c50000;
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(197, 0, 0, 0.5));
    transition: filter .3s
}

.logo:hover .logo-maces {
    filter: drop-shadow(0 0 16px rgba(197, 0, 0, 0.8))
}

.logo-text {
    font-weight: 900;
    font-size: 17px;
    letter-spacing: .12em;
    background: linear-gradient(135deg, #ff4444, #c50000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

nav {
    display: flex;
    align-items: center;
    gap: 4px
}

.nav-link {
    position: relative;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s;
    white-space: nowrap
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: #c50000;
    transform: scaleX(0);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    transform-origin: left
}

.nav-link:hover {
    color: #fff
}

.nav-link:hover::after {
    transform: scaleX(1)
}

.search-wrap {
    position: relative;
    flex-shrink: 0
}

.search-wrap input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 16px 8px 38px;
    font-size: 13px;
    color: #fff;
    width: 200px;
    transition: all .3s;
    outline: none;
    font-family: 'Inter', sans-serif
}

.search-wrap input:focus {
    border-color: rgba(197, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(197, 0, 0, 0.1);
    width: 240px
}

.search-wrap input::placeholder {
    color: var(--text-muted)
}

.search-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 7, 9, 0.95)
}

.mobile-nav a {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s
}

.mobile-nav a:hover {
    color: #fff;
    background: rgba(197, 0, 0, 0.1)
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 32px 80px
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(197, 0, 0, 0.08) 0%, transparent 65%), radial-gradient(ellipse 40% 40% at 20% 80%, rgba(197, 0, 0, 0.04) 0%, transparent 60%)
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(197, 0, 0, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(197, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%)
}

.particles-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(197, 0, 0, 0.2);
    animation: floatUp linear infinite
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0
    }

    10% {
        opacity: .6
    }

    90% {
        opacity: .2
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 0, 0, 0.1);
    border: 1px solid rgba(197, 0, 0, 0.3);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #ff6b6b;
    letter-spacing: .08em;
    margin-bottom: 32px
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .4)
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0)
    }
}

.hero-maces {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    animation: heroFloat 4s ease-in-out infinite
}

.hero-maces .mace {
    font-size: clamp(60px, 10vw, 100px);
    color: #c50000;
    filter: drop-shadow(0 0 30px rgba(197, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(197, 0, 0, 0.3));
    transition: filter .3s
}

.hero-maces .mace.flip {
    transform: scaleX(-1)
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

.hero-title {
    font-size: clamp(40px, 8vw, 88px);
    font-weight: 900;
    letter-spacing: .15em;
    line-height: 1;
    background: linear-gradient(135deg, #ff6b6b 0%, #c50000 40%, #ff4444 70%, #ff8080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px
}

.hero-sub {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #c50000, #8b0000);
    border: 1px solid rgba(197, 0, 0, 0.5);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 20px rgba(197, 0, 0, 0.3)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(197, 0, 0, 0.5);
    background: linear-gradient(135deg, #e00000, #a00000)
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .25s cubic-bezier(.4, 0, .2, 1)
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 0, 0, 0.4);
    color: #fff;
    background: rgba(197, 0, 0, 0.08)
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap
}

.hero-stat {
    text-align: center
}

.hero-stat-num {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff4444, #c50000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: .08em;
    margin-top: 4px;
    text-transform: uppercase
}

/* SECTION COMMON */
.section {
    padding: 100px 32px
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #c50000;
    margin-bottom: 16px
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: #c50000
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* GLASS CARD */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1)
}

.glass-card:hover {
    border-color: rgba(197, 0, 0, 0.3);
    box-shadow: 0 8px 40px rgba(197, 0, 0, 0.15);
    transform: translateY(-3px)
}

/* FEATURES SECTION */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 64px
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity .3s
}

.feature-card:hover {
    border-color: rgba(197, 0, 0, 0.3);
    box-shadow: 0 8px 40px rgba(197, 0, 0, 0.12);
    transform: translateY(-4px)
}

.feature-card:hover::before {
    opacity: 1
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 0, 0, 0.1);
    border: 1px solid rgba(197, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #c50000;
    margin-bottom: 20px
}

.feature-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7
}

/* MODIFIERS */
.mod-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px
}

.mod-filter-btn {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s
}

.mod-filter-btn:hover,
.mod-filter-btn.active {
    background: rgba(197, 0, 0, 0.15);
    border-color: rgba(197, 0, 0, 0.4);
    color: #fff
}

.mod-filter-btn.active {
    background: rgba(197, 0, 0, 0.2);
    border-color: #c50000;
    color: #ff6b6b
}

.modifiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px
}

.mod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden
}

.mod-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px
}

.mod-card.map::after {
    background: #4a9eff
}

.mod-card.effect::after {
    background: #a855f7
}

.mod-card.mace::after {
    background: #c50000
}

.mod-card:hover {
    border-color: rgba(197, 0, 0, 0.25);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px)
}

.mod-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px
}

.mod-tag.map {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.2)
}

.mod-tag.effect {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2)
}

.mod-tag.mace {
    background: rgba(197, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(197, 0, 0, 0.25)
}

.mod-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px
}

.mod-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65
}

/* PLACEHOLDERS */
.ph-intro {
    background: linear-gradient(135deg, rgba(197, 0, 0, 0.06) 0%, rgba(197, 0, 0, 0.02) 100%);
    border: 1px solid rgba(197, 0, 0, 0.15);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px
}

.ph-intro p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic
}

.ph-intro p span {
    color: #ff6b6b;
    font-style: normal;
    font-weight: 700
}

.ph-group {
    margin-bottom: 40px
}

.ph-group-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #c50000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px
}

.ph-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(197, 0, 0, 0.15)
}

.ph-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all .2s;
    margin-bottom: 4px
}

.ph-row:hover {
    background: rgba(197, 0, 0, 0.05);
    border-color: rgba(197, 0, 0, 0.15)
}

.ph-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #ff8080;
    background: rgba(197, 0, 0, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0
}

.ph-dash {
    color: var(--text-muted);
    flex-shrink: 0
}

.ph-desc {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1
}

/* CONFIGURATIONS */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px
}

.config-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    transition: all .25s;
    cursor: pointer
}

.config-card:hover {
    border-color: rgba(197, 0, 0, 0.3);
    box-shadow: 0 6px 30px rgba(197, 0, 0, 0.1);
    transform: translateY(-2px)
}

.config-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.config-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #ff8080
}

.config-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(197, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(197, 0, 0, 0.2)
}

.config-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6
}

.config-expand {
    margin-top: 48px
}

.config-file-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px
}

.config-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.config-file-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #ff8080;
    display: flex;
    align-items: center;
    gap: 8px
}

.config-file-name i {
    color: rgba(197, 0, 0, 0.5)
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif
}

.copy-btn:hover {
    background: rgba(197, 0, 0, 0.1);
    border-color: rgba(197, 0, 0, 0.3);
    color: #fff
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e
}

pre {
    padding: 24px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: #080810
}

pre .key {
    color: #ff8080
}

pre .val {
    color: #a0a0c0
}

pre .comment {
    color: #3d3d5c
}

pre .bool {
    color: #ff6b6b
}

pre .num {
    color: #ffa07a
}

/* ===== CONFIG GUIDE STYLES ===== */
.config-guide {
    padding: 24px;
    max-height: 600px;
    overflow-y: auto;
    background: #080810;
}

.guide-section {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(197, 0, 0, 0.15);
    padding-bottom: 24px;
}

.guide-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guide-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.guide-section-header i {
    color: #c50000;
    font-size: 18px;
}

.guide-section-header h3 {
    color: #ff8080;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.guide-section-desc {
    color: #b0b0c0;
    font-size: 14px;
    margin-bottom: 20px;
    padding-left: 28px;
    line-height: 1.6;
}

.guide-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-setting {
    display: grid;
    grid-template-columns: 30% 20% 1fr;
    gap: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.guide-setting:hover {
    background: rgba(197, 0, 0, 0.05);
    border-color: rgba(197, 0, 0, 0.15);
}

.guide-setting-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #ff8080;
    font-weight: 600;
    word-break: break-word;
}

.guide-setting-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a0a0c0;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-setting-desc {
    font-size: 13px;
    color: #b0b0c0;
    line-height: 1.5;
}

.config-guide-error {
    padding: 40px;
    text-align: center;
    color: #ff8080;
    font-size: 14px;
    background: rgba(197, 0, 0, 0.05);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-setting {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .guide-setting-value {
        white-space: normal;
        word-break: break-all;
    }
}

/* ===== COMMANDS SECTION IMPROVED ===== */
.cmd-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 0, 0, 0.2);
}

.cmd-category-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cmd-category-btn:hover {
    background: rgba(197, 0, 0, 0.1);
    border-color: rgba(197, 0, 0, 0.3);
    color: #fff;
}

.cmd-category-btn.active {
    background: rgba(197, 0, 0, 0.2);
    border-color: #c50000;
    color: #ff6b6b;
}

.cmd-group {
    margin-bottom: 40px;
    display: block;
}

.cmd-group[data-category]:not([data-category="all"]) {
    display: none;
}

.cmd-group.active {
    display: block;
}

.cmd-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 0, 0, 0.15);
}

.cmd-group-header i {
    color: #c50000;
    font-size: 20px;
}

.cmd-group-header h3 {
    color: #ff8080;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.cmd-group-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(197, 0, 0, 0.1);
    border: 1px solid rgba(197, 0, 0, 0.2);
    border-radius: 30px;
    color: #ff8080;
}

.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.cmd-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s;
}

.cmd-card:hover {
    border-color: rgba(197, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(197, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

.cmd-command {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #ff8080;
    background: rgba(197, 0, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(197, 0, 0, 0.2);
}

.cmd-perm-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #9090a8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-card .cmd-desc {
    font-size: 14px;
    color: #e0e0f0;
    margin-bottom: 12px;
    line-height: 1.6;
}

.cmd-example {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
}

.cmd-example-code {
    font-family: 'JetBrains Mono', monospace;
    color: #ffa07a;
    background: rgba(197, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.cmd-note {
    font-size: 12px;
    color: #8080a0;
    background: rgba(197, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border-left: 2px solid #c50000;
}

.cmd-note.warning {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.05);
    color: #ffaa00;
}

.cmd-inline-perm {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(197, 0, 0, 0.1);
    color: #ff8080;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Quick Reference */
.cmd-quick-ref {
    margin-top: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.quick-ref-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(197, 0, 0, 0.1);
}

.quick-ref-header i {
    color: #c50000;
    font-size: 18px;
}

.quick-ref-header h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.quick-ref-toggle {
    margin-left: auto;
    font-size: 12px;
    color: #ff8080;
    cursor: pointer;
    padding: 4px 12px;
    background: rgba(197, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(197, 0, 0, 0.2);
    transition: all 0.2s;
}

.quick-ref-toggle:hover {
    background: rgba(197, 0, 0, 0.2);
}

.quick-ref-table {
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.quick-ref-table.collapsed {
    max-height: 0;
    padding: 0;
}

/* Keep existing table styles but ensure they work inside */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
}

.cmd-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-table tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cmd-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}

.cmd-table tr:hover td {
    background: rgba(197, 0, 0, 0.05);
}

.cmd-table td {
    padding: 12px 20px;
    font-size: 13px;
    vertical-align: middle;
}

.cmd-syntax {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #ff8080;
}

.cmd-perm {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== ADMIN GUI PROMO ===== */
.admin-gui-promo {
    margin: 40px 0 50px;
    background: linear-gradient(135deg, #0f0f14 0%, #161620 100%);
    border-radius: 24px;
    border: 1px solid rgba(197, 0, 0, 0.2);
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.admin-gui-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.admin-gui-text {
    flex: 1;
}

.admin-gui-badge {
    display: inline-block;
    background: rgba(197, 0, 0, 0.15);
    border: 1px solid rgba(197, 0, 0, 0.3);
    color: #ff8080;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.admin-gui-badge i {
    margin-right: 6px;
    color: #c50000;
}

.admin-gui-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.admin-gui-description {
    font-size: 15px;
    color: #b0b0c0;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 500px;
}

.admin-gui-code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(197, 0, 0, 0.15);
    color: #ff8080;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid rgba(197, 0, 0, 0.2);
}

.admin-gui-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-gui-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d0d0e0;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-gui-features i {
    color: #c50000;
    font-size: 11px;
}

.admin-gui-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 427px;
    height: 227px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(197, 0, 0, 0.3);
}

.admin-gui-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.admin-gui-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(197, 0, 0, 0.7), rgba(197, 0, 0, 0.3), transparent);
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
    animation: gradientPulse 3s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.6;
        height: 70px;
    }
    50% {
        opacity: 0.9;
        height: 90px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .admin-gui-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 25px;
    }
    
    .admin-gui-description {
        max-width: 100%;
    }
    
    .admin-gui-features {
        justify-content: center;
    }
    
    .admin-gui-image-wrapper {
        width: 100%;
        max-width: 427px;
        height: auto;
        aspect-ratio: 427/227;
    }
}

/* CONFIG VIEWER */
.config-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(197,0,0,0.2);
}

.config-tab {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.config-tab:hover {
    background: rgba(197,0,0,0.15);
    border-color: rgba(197,0,0,0.3);
    color: #fff;
}

.config-tab.active {
    background: rgba(197,0,0,0.2);
    border-color: #c50000;
    color: #ff6b6b;
}

.config-display {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.current-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #ff8080;
}

.config-actions {
    display: flex;
    gap: 10px;
}

.copy-config-btn, .toggle-explain-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}

.copy-config-btn:hover, .toggle-explain-btn:hover {
    background: rgba(197,0,0,0.1);
    border-color: rgba(197,0,0,0.3);
    color: #fff;
}

.copy-config-btn.copied {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
    color: #22c55e;
}

.config-content pre {
    margin: 0;
    padding: 24px;
    background: #080810;
    max-height: 600px;
    overflow: auto;
}

/* Explanation styles */
.config-explanation {
    padding: 24px;
    background: #080810;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
}

.explanation-line {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.explanation-line:last-child {
    border-bottom: none;
}

.line-code {
    flex: 0 0 40%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #ff8080;
    white-space: pre-wrap;
    word-break: break-word;
    padding-right: 20px;
}

.line-desc {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: #b0b0c0;
}

.line-desc strong {
    color: #ffa07a;
    font-weight: 600;
}

.line-comment {
    color: #6a9955;
    font-style: italic;
}

.line-comment .line-code {
    color: #6a9955;
}

/* COMMANDS */
.cmd-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 48px
}

.cmd-table {
    width: 100%;
    border-collapse: collapse
}

.cmd-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.cmd-table tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04)
}

.cmd-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015)
}

.cmd-table tr:hover td {
    background: rgba(197, 0, 0, 0.05)
}

.cmd-table td {
    padding: 14px 20px;
    font-size: 13.5px;
    vertical-align: middle
}

.cmd-syntax {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #ff8080
}

.cmd-perm {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted)
}

.cmd-desc {
    color: var(--text-secondary)
}

/* CREDITS */
.credit-panel-wrapper {
    --primary: #c50000;
    --primary-dark: #8b0000;
    --primary-glow: rgba(197, 0, 0, 0.5);
    --text-primary: #f0f4f8;
    --text-secondary: #9090a8
}

.credit-panel {
    background: linear-gradient(135deg, #0f0f14 0%, #161620 50%, #0f0f14 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(197, 0, 0, 0.2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8)
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px
}

.credit-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 0, 0, 0.15);
    border-radius: 20px;
    padding: 28px;
    transition: all .3s cubic-bezier(.175, .885, .32, 1.275)
}

.credit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(197, 0, 0, 0.15);
    transform: translateY(-4px)
}

.credit-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(197, 0, 0, 0.3)
}

.credit-avatar i {
    font-size: 2.2rem;
    color: #fff
}

.credit-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px
}

.credit-role {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all .2s;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(197, 0, 0, 0.2)
}

.contact-item i {
    width: 20px;
    color: var(--primary);
    font-size: 14px
}

.contact-item span {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px
}

.copy-contact-btn,
.external-link-btn {
    background: rgba(197, 0, 0, 0.15);
    border: 1px solid rgba(197, 0, 0, 0.25);
    color: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 12px
}

.copy-contact-btn:hover,
.external-link-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1)
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(197, 0, 0, 0.15);
    transition: all .2s;
    padding: 12px 16px;
    margin-bottom: 10px
}

.stat-card:hover {
    border-color: var(--primary);
    background: rgba(197, 0, 0, 0.08)
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px
}

.stat-val {
    font-weight: 800;
    font-size: 14px;
    color: #fff
}

.stat-val.accent {
    color: var(--primary)
}

.credit-note {
    margin-top: 20px;
    padding: 14px;
    background: rgba(197, 0, 0, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--primary)
}

.credit-note p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6
}

.credit-note i {
    color: var(--primary);
    margin-right: 6px
}

.credit-copy {
    margin-top: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px
}

/* COPY NOTIFICATION */
.copy-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c50000, #8b0000);
    color: #fff;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(197, 0, 0, 0.4);
    z-index: 10000;
    animation: notifIn .3s ease
}

@keyframes notifIn {
    from {
        transform: translate(-50%, 20px);
        opacity: 0
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1
    }
}

/* BACK TO TOP */
#btt {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c50000, #8b0000);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 20px rgba(197, 0, 0, 0.4);
    border: none;
    z-index: 50
}

#btt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all
}

#btt:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 32px rgba(197, 0, 0, 0.6)
}

/* FOOTER */
footer {
    background: #050507;
    border-top: 1px solid rgba(197, 0, 0, 0.1);
    padding: 48px 32px;
    text-align: center
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #c50000;
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(197, 0, 0, 0.4))
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted)
}

.footer-text a {
    color: rgba(197, 0, 0, 0.7);
    text-decoration: none;
    transition: color .2s
}

.footer-text a:hover {
    color: #c50000
}

/* SEARCH HIGHLIGHT */
.search-hidden {
    opacity: .1;
    pointer-events: none;
    transition: opacity .2s ease
}

#no-results {
    display: none;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 15px
}

/* RESPONSIVE */
@media(max-width:1024px) {
    .header-inner {
        padding: 0 20px
    }

    .section {
        padding: 80px 20px
    }
}

@media(max-width:768px) {
    nav {
        display: none
    }

    .hamburger {
        display: block
    }

    .search-wrap {
        display: none
    }

    .hero {
        padding: 100px 20px 60px
    }

    .hero-stats {
        gap: 32px
    }

    .modifiers-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .cmd-table-wrap {
        overflow-x: auto
    }
}

@media(max-width:480px) {
    .hero-maces .mace {
        font-size: 56px
    }

    .hero-btns {
        flex-direction: column;
        width: 100%
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }
}

/* Floating Bubbles */
.floating-bubbles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;  
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 24px;
    background: rgba(25, 25, 35, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(197, 0, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(197, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.bubble i {
    font-size: 16px;
    color: #c50000;
    filter: drop-shadow(0 0 6px rgba(197, 0, 0, 0.5));
}

.bubble span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #fff, #ffa0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bubble-glow {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: radial-gradient(circle at 30% 20%, rgba(197, 0, 0, 0.2), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.bubble:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(197, 0, 0, 0.6);
    box-shadow: 0 8px 25px rgba(197, 0, 0, 0.25), 0 0 15px rgba(197, 0, 0, 0.15);
}

.bubble:hover .bubble-glow {
    opacity: 1;
}

.bubble-1 { animation-delay: 0s; }
.bubble-2 { animation-delay: 0.4s; }
.bubble-3 { animation-delay: 0.8s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Responsive adjustments for bubbles */
@media (max-width: 768px) {
    .floating-bubbles {
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    .bubble {
        padding: 6px 18px;
        gap: 8px;
    }
    
    .bubble i {
        font-size: 13px;
    }
    
    .bubble span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .floating-bubbles {
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .bubble {
        padding: 5px 14px;
    }
    
    .bubble i {
        font-size: 12px;
    }
    
    .bubble span {
        font-size: 10px;
    }
}

/* ===== STATISTICS SECTION ===== */
.stats-showcase {
    background: linear-gradient(135deg, rgba(197, 0, 0, 0.03), transparent);
    padding: 60px 0;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(197, 0, 0, 0.2);
    transition: all 0.4s;
}

.stats-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(197, 0, 0, 0.2), 0 0 0 2px rgba(197, 0, 0, 0.3);
}

.stats-image img { width: 100%; height: auto; display: block; }

.stats-image-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 0, 0, 0.2), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.stats-image:hover .stats-image-glow { opacity: 1; }

.stats-content { padding: 20px; }

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 0, 0, 0.1);
    border: 1px solid rgba(197, 0, 0, 0.2);
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.stats-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.stats-highlight {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.highlight-item { text-align: center; }

.highlight-number {
    font-size: 28px;
    font-weight: 900;
    color: #c50000;
}

.highlight-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== LEADERBOARDS SECTION ===== */
.leaderboard-showcase {
    background: linear-gradient(135deg, transparent, rgba(197, 0, 0, 0.03));
    padding: 60px 0;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    direction: rtl;
}

.leaderboard-grid > * { direction: ltr; }

.leaderboard-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(197, 0, 0, 0.2);
    transition: all 0.4s;
}

.leaderboard-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(197, 0, 0, 0.2), 0 0 0 2px rgba(197, 0, 0, 0.3);
}

.leaderboard-image img { width: 100%; height: auto; display: block; }

/* ===== FEATURES SHOWCASE SECTION ===== */
.features-showcase {
    padding: 80px 32px;
    background: radial-gradient(circle at 20% 30%, rgba(197, 0, 0, 0.03), transparent);
}

.features-showcase-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 60px;
}

.showcase-title {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-sub {
    color: var(--text-secondary);
    font-size: 18px;
}

.features-cosmetics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.cosmetics-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cosmetics-image img { width: 100%; height: auto; display: block; }

.cosmetics-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cosmetic-item {
    background: var(--bg-card);
    border: 1px solid rgba(197, 0, 0, 0.15);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.cosmetic-item:hover {
    border-color: rgba(197, 0, 0, 0.4);
    transform: translateY(-4px);
}

.cosmetic-item i {
    font-size: 32px;
    color: #c50000;
    margin-bottom: 12px;
    display: block;
}

.cosmetic-item h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.cosmetic-item p { color: var(--text-muted); font-size: 12px; }

/* Feature Tags Grid */
.feature-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 60px 0;
}

.feature-tag {
    background: var(--bg-card);
    border: 1px solid rgba(197, 0, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.feature-tag:hover {
    border-color: rgba(197, 0, 0, 0.4);
    transform: translateX(4px);
}

.feature-tag i { font-size: 20px; color: #c50000; width: 30px; }
.feature-tag span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* Dual Column Features */
.dual-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
}

.feature-column {
    background: var(--bg-card);
    border: 1px solid rgba(197, 0, 0, 0.15);
    border-radius: 24px;
    padding: 32px;
}

.feature-column h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6b6b;
}

.feature-column ul { list-style: none; padding: 0; }

.feature-column li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 14px;
}

.feature-column li:last-child { border-bottom: none; }
.feature-column li i { color: #c50000; font-size: 14px; width: 20px; }

.support-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 0, 0, 0.2);
    text-align: center;
}

.support-link a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.support-link a:hover { color: #c50000; text-decoration: underline; }

/* ===== RESPONSIVE (new sections) ===== */
@media (max-width: 1024px) {
    .stats-grid,
    .leaderboard-grid,
    .features-cosmetics-grid,
    .dual-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .leaderboard-grid { direction: ltr; }
    .cosmetics-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .floating-bubbles { gap: 20px; }
    .bubble { padding: 12px 20px; }
    .bubble i { font-size: 20px; }
    .bubble span { font-size: 12px; }
    .cosmetics-list { grid-template-columns: 1fr; }
    .feature-tags-grid { grid-template-columns: 1fr; }
}