/* === GLITCH CSS - ПОЛНЫЕ СТИЛИ GLITCH LAND === */

:root {
    --primary: #8b00ff;
    --primary-light: #b347ff;
    --primary-dark: #5a00a8;
    --bg-dark: #0a0512;
    --bg-card: #100820;
    --bg-card-alt: #0d0a18;
    --text: #e0d8f0;
    --text-dim: #706878;
    --text-muted: #504860;
    --border: #2a1040;
    --border-light: #3a2050;
    --glow-primary: rgba(139, 0, 255, 0.5);
    --glow-green: rgba(0, 255, 136, 0.5);
    --green: #00ff88;
    --red: #ff4444;
    --orange: #ffaa00;
    --discord: #5865F2;
    --vk: #0077FF;
    --telegram: #26A5E4;
    --youtube: #FF0000;
    --twitch: #9146FF;
    --tiktok: #FE2C55;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.glitch-heavy {
    position: relative;
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.glitch-layer-1 {
    position: relative;
    color: #fff;
    text-shadow: 
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 80px var(--primary-light);
}

.glitch-layer-2 {
    color: #ff00c8;
    animation: glitch1 0.3s infinite, glitchClip1 0.4s infinite;
    opacity: 0.8;
}

.glitch-layer-3 {
    color: #00ffff;
    animation: glitch2 0.4s infinite, glitchClip2 0.3s infinite;
    opacity: 0.6;
}

.preloader-bar {
    width: 320px;
    max-width: 80vw;
    height: 4px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
    position: relative;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.05) 20%, 
        transparent 40%);
    animation: barShine 1.5s ease-in-out infinite;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow-primary);
}

.preloader-percent {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.preloader-info {
    color: var(--primary-light);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
    min-height: 1.5em;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.preloader-matrix {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0.12;
    pointer-events: none;
}

.matrix-line {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--green);
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    letter-spacing: 0.15em;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 5, 18, 0.95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.nav-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(1.1);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--glow-primary);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(139, 0, 255, 0.1);
    text-shadow: 0 0 10px var(--primary);
}

.nav-link.active {
    color: #fff;
    border-color: var(--primary);
    background: rgba(139, 0, 255, 0.15);
}

.nav-link-accent {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--glow-primary);
}

.nav-link-accent:hover {
    background: var(--primary-light) !important;
    box-shadow: 0 0 25px var(--glow-primary) !important;
    transform: translateY(-1px);
}

.nav-online {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    transition: all 0.5s ease;
}

.pulse-green {
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0%, 100% { 
        box-shadow: 0 0 5px var(--green);
    }
    50% { 
        box-shadow: 0 0 20px var(--green), 0 0 40px rgba(0, 255, 136, 0.4);
    }
}

.online-text {
    letter-spacing: 0.03em;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== PARTICLES CANVAS ===== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== SCANLINES ===== */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 60px;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(139, 0, 255, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.hero-container {
    text-align: center;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 0, 255, 0.12);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    margin-bottom: 20px;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1;
}

.glitch-block {
    position: relative;
    display: inline-block;
}

.glitch-block-layer {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 
        0 0 40px var(--glow-primary),
        0 0 80px rgba(139, 0, 255, 0.3);
    animation: neonFlicker 3s infinite;
}

.glitch-block .glitch-block-layer:nth-child(2),
.glitch-block .glitch-block-layer:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.glitch-block .glitch-block-layer:nth-child(2) {
    color: #ff00c8;
    animation: glitch1 0.3s infinite, glitchClip1 0.4s infinite, neonFlicker 2.5s infinite;
    opacity: 0.8;
}

.glitch-block .glitch-block-layer:nth-child(3) {
    color: #00ffff;
    animation: glitch2 0.4s infinite, glitchClip2 0.3s infinite, neonFlicker 3.5s infinite;
    opacity: 0.6;
}

.hero-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--primary-light);
    min-height: 2em;
    font-family: var(--font-mono);
}

.typing-cursor {
    color: var(--primary);
    font-weight: 700;
    animation: blink 0.8s infinite;
}

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

.hero-description {
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    font-family: var(--font-mono);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: var(--font-mono);
    border: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 30px var(--glow-primary);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow-primary);
    background: rgba(139, 0, 255, 0.05);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn i {
    font-size: 0.9em;
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--glow-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.8rem;
    animation: float 2s ease-in-out infinite;
    font-family: var(--font-mono);
}

.scroll-indicator i {
    font-size: 1.2rem;
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    box-shadow: 0 0 25px var(--glow-primary);
    transform: translateY(-3px);
}

/* ===== SECTION TITLES ===== */
.section-title {
    position: relative;
    margin-bottom: 48px;
    text-align: center;
}

.section-title-glitch {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px var(--glow-primary);
}

.section-title-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 16px auto 0;
    border-radius: 3px;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: -24px auto 48px;
    color: var(--text-dim);
    font-size: 1rem;
    font-family: var(--font-mono);
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 0, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    position: relative;
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: inline-block;
}

.feature-icon-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: var(--glow-primary);
    filter: blur(25px);
    opacity: 0.3;
    z-index: -1;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    font-family: var(--font-mono);
}

/* ===== MODES ===== */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.mode-card-bottom-left {
    grid-column: 2 / 3;
}

.mode-card-bottom-right {
    grid-column: 3 / 4;
}

.mode-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.mode-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mode-card-active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 40px var(--glow-primary);
}

.mode-card-active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--green), var(--primary));
    z-index: -1;
    opacity: 0.4;
    animation: modeGlow 3s ease-in-out infinite;
}

@keyframes modeGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

.mode-card-soon {
    opacity: 0.65;
    border-style: dashed !important;
    filter: grayscale(15%);
}

.mode-card-soon:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.mode-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.mode-card:hover .mode-card-bg {
    opacity: 0.5;
}

.mode-card-content {
    position: relative;
    padding: 28px 24px;
    z-index: 2;
    background: linear-gradient(transparent, rgba(10, 5, 18, 0.97));
    width: 100%;
}

.mode-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.mode-badge-active {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.mode-badge-dev {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--orange);
    color: var(--orange);
}

.mode-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.mode-description {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.6;
    font-family: var(--font-mono);
}

.mode-coming {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--orange);
    font-style: italic;
    font-family: var(--font-mono);
}

/* ===== GALLERY ===== */
.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    min-width: 100%;
    background: var(--bg-card);
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 5, 18, 0.85);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.gallery-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow-primary);
}

.gallery-btn-prev { left: 16px; }
.gallery-btn-next { right: 16px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--glow-primary);
    width: 28px;
    border-radius: 5px;
}

/* ===== SOCIAL ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    display: block;
}

.social-card:hover {
    border-color: var(--card-color, var(--primary));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.social-card i {
    font-size: 3rem;
    color: var(--card-color, var(--primary));
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.social-card:hover i {
    text-shadow: 0 0 30px var(--card-color, var(--primary));
    transform: scale(1.1);
}

.social-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.social-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.social-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--card-color, var(--primary));
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: gap 0.3s ease;
}

.social-card:hover .social-join {
    gap: 12px;
}

.social-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--card-color, var(--primary)) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-card:hover .social-card-glow {
    opacity: 0.06;
}

/* ===== PLAY SECTION ===== */
.ip-block {
    max-width: 550px;
    margin: 0 auto 40px;
    text-align: center;
}

.ip-label {
    color: var(--text-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.ip-copy-group {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.ip-copy-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow-primary);
}

.ip-input {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    outline: none;
    font-family: var(--font-mono);
    min-width: 0;
}

.ip-input::selection {
    background: var(--primary);
    color: #fff;
}

.ip-copy-btn {
    border-radius: 0;
    padding: 16px 28px;
    white-space: nowrap;
    margin: -1px;
}

.ip-version {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.ip-version strong {
    color: var(--primary-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(139, 0, 255, 0.12);
    line-height: 1;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    z-index: 2;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: none;
    box-shadow: none;
}

.footer-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    line-height: 1.6;
}

.footer-nav h4,
.footer-social h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

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

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 18px var(--glow-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-ip strong {
    color: var(--primary-light);
}

/* ===== PAGE HERO (rules, media) ===== */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 40px 0 100px;
    position: relative;
    z-index: 2;
}

/* ===== RULES PAGE ===== */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
}

.rule-section {
    margin-bottom: 48px;
}

.rule-section-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 24px;
    font-family: var(--font-display);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.rule-subsection-title {
    font-size: 1.15rem;
    color: #fff;
    margin: 20px 0 12px;
    font-family: var(--font-display);
}

.rule-item-full {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(42, 16, 64, 0.3);
    align-items: flex-start;
}

.rule-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 40px;
    text-shadow: 0 0 10px var(--glow-primary);
    padding-top: 1px;
}

.rule-item-full p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    font-family: var(--font-mono);
}

.rule-penalty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0 16px;
}

.rule-penalty p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.rule-penalty strong {
    color: var(--orange);
}

.rule-note {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 8px 0 16px;
    font-family: var(--font-mono);
    line-height: 1.6;
}

.rule-note strong {
    color: var(--text);
}

/* ===== MEDIA PAGE ===== */
.media-content {
    max-width: 750px;
    margin: 0 auto;
}

.media-content h2 {
    font-size: 1.4rem;
    color: #fff;
    margin: 36px 0 16px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-content h2 i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.media-content h2:first-child {
    margin-top: 0;
}

.media-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.media-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.media-content ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.92rem;
    color: var(--text);
    font-family: var(--font-mono);
    line-height: 1.6;
}

.media-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.8rem;
    top: 10px;
}

.media-rates {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.media-rate {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text);
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.media-rate:hover {
    border-color: var(--primary);
    background: rgba(139, 0, 255, 0.05);
}

.media-apply {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 32px;
    margin-top: 36px;
    text-align: center;
}

.media-apply h2 {
    margin-top: 0;
    justify-content: center;
}

.media-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.media-links .btn {
    min-width: 140px;
    justify-content: center;
}

/* ===== ANIMATIONS CLASSES ===== */
.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 2px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 5, 18, 0.98);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        gap: 8px;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-burger {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .nav-online {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .ip-copy-group {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .ip-input {
        text-align: center;
        padding: 14px;
    }
    
    .ip-copy-btn {
        border-radius: 0 0 16px 16px;
        justify-content: center;
    }
    
    .gallery-btn {
        width: 36px;
        height: 36px;
    }
    
    .gallery-btn-prev { left: 8px; }
    .gallery-btn-next { right: 8px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-card-bottom-left,
    .mode-card-bottom-right {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .media-links {
        flex-direction: column;
        align-items: center;
    }
    
    .media-links .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .rule-item-full {
        flex-direction: column;
        gap: 4px;
    }
    
    .rule-num {
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: #fff;
}

::-moz-selection {
    background: var(--primary);
    color: #fff;
}