/* ══════════════════════════════════════════════════════════════
   MORENTY v3.0 — RED MATRIX THEME
   Redesign layer. Loaded AFTER main.css/admin.css — wins cascade.
   Palette taken from the mascot art: blood crimson on near-black,
   bone highlights, dark-teal hoodie shadows.
   ══════════════════════════════════════════════════════════════ */

:root {
    /* Core palette override */
    --bg-primary: #050507;
    --bg-secondary: #0a070b;
    --bg-card: rgba(230, 25, 60, 0.03);
    --bg-card-hover: rgba(230, 25, 60, 0.07);
    --bg-glass: rgba(14, 8, 12, 0.72);
    --accent: #e6193c;
    --accent-glow: #ff2450;
    --accent-soft: rgba(230, 25, 60, 0.12);
    --bone: #e8d5b0;
    --teal-dark: #10302c;
    --green: #00ff88;
    --text-primary: #f2eef1;
    --text-secondary: #a99aa5;
    --text-muted: #635a63;
    --border: rgba(230, 25, 60, 0.14);
    --border-hover: rgba(230, 25, 60, 0.45);

    /* Typography override */
    --font-heading: 'Unbounded', 'Arial Black', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Angular hacker geometry */
    --radius: 4px;
    --radius-sm: 2px;
    --radius-lg: 6px;

    /* Signature clip: cut corners TL + BR */
    --clip-card: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    --clip-btn: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ── BODY / BACKGROUND ── */
body {
    background:
        radial-gradient(ellipse 60% 40% at 85% -5%, rgba(230, 25, 60, 0.10), transparent 60%),
        radial-gradient(ellipse 50% 35% at 10% 105%, rgba(230, 25, 60, 0.07), transparent 60%),
        linear-gradient(180deg, #070508 0%, #050507 100%);
    background-attachment: fixed;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08060a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #58101f, var(--accent));
    border: 2px solid #08060a;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-glow); }

/* Mascot art as ghost texture */
.bg-art {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('/assets/mor-bg-web.jpg');
    background-size: cover;
    background-position: center 20%;
    opacity: 0.045;
    filter: saturate(1.4) contrast(1.15);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 75%);
}

/* Matrix canvas above bg-art */
#matrix-canvas { z-index: 0; opacity: 0.14; }

/* Scanlines: finer + subtle RGB shift */
.scanlines {
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.12) 3px,
        rgba(0, 0, 0, 0.12) 4px
    );
    mix-blend-mode: multiply;
}

/* Film grain noise (pure CSS, animated) */
.noise-overlay {
    position: fixed;
    inset: -100px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noiseShift 0.6s steps(4) infinite;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-30px, 20px); }
    50% { transform: translate(20px, -25px); }
    75% { transform: translate(-15px, -10px); }
    100% { transform: translate(0, 0); }
}

/* Vignette + faint CRT flicker */
.vignette-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 110% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    animation: crtFlicker 8s infinite;
}

@keyframes crtFlicker {
    0%, 94%, 100% { opacity: 1; }
    95% { opacity: 0.92; }
    96% { opacity: 1; }
    97.5% { opacity: 0.95; }
}

/* ══════════════════════════════════════════
   BOOT SCREEN
   ══════════════════════════════════════════ */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #040305;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

#boot-screen.boot-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#boot-screen.boot-hidden { display: none; }

.boot-inner {
    width: min(720px, 92vw);
    font-family: var(--font-mono);
}

.boot-ascii {
    color: var(--accent);
    font-size: clamp(5px, 1.55vw, 11px);
    line-height: 1.25;
    text-shadow: 0 0 12px rgba(230, 25, 60, 0.7);
    margin-bottom: 28px;
    animation: bootGlow 2s ease-in-out infinite alternate;
    user-select: none;
}

@keyframes bootGlow {
    from { text-shadow: 0 0 8px rgba(230, 25, 60, 0.5); }
    to { text-shadow: 0 0 22px rgba(255, 36, 80, 0.9); }
}

.boot-log {
    min-height: 150px;
    font-size: 0.78rem;
    color: #c9adb5;
    line-height: 1.7;
}

.boot-log .ok { color: var(--green); }
.boot-log .accent { color: var(--accent-glow); font-weight: 700; }

.boot-progress {
    margin-top: 20px;
    height: 6px;
    border: 1px solid rgba(230, 25, 60, 0.4);
    background: rgba(230, 25, 60, 0.06);
}

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6b0f1f, var(--accent), var(--accent-glow));
    box-shadow: 0 0 14px rgba(230, 25, 60, 0.8);
    transition: width 0.25s ease;
}

.boot-skip {
    margin-top: 18px;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 1px;
    animation: blink 1.6s infinite;
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.nav {
    background: rgba(5, 4, 7, 0.82);
    backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid rgba(230, 25, 60, 0.18);
}

.nav::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-glow) 50%, var(--accent) 70%, transparent);
    opacity: 0.5;
    animation: navPulseLine 4s ease-in-out infinite;
}

@keyframes navPulseLine {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.7; }
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: 0 0 18px rgba(230, 25, 60, 0.5);
}

.logo-prompt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0;
    opacity: 0.85;
}

.logo-caret {
    width: 8px;
    height: 1.05rem;
    background: var(--accent-glow);
    align-self: center;
    animation: blink 1.1s steps(1) infinite;
    box-shadow: 0 0 8px rgba(255, 36, 80, 0.8);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    border-radius: 0;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--accent-glow);
    background: rgba(230, 25, 60, 0.06);
    border-color: rgba(230, 25, 60, 0.25);
}

.nav-link.active {
    color: var(--accent-glow);
    background: rgba(230, 25, 60, 0.09);
    border-color: rgba(230, 25, 60, 0.35);
}

.nav-link.active::after {
    width: 100%;
    height: 1px;
    box-shadow: 0 0 8px var(--accent);
}

.nav-link-icon { font-size: 0.85rem; opacity: 0.9; }

/* Lang switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
    padding: 3px 6px;
    background: rgba(230, 25, 60, 0.04);
}

.lang-opt {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 6px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.lang-opt:hover { color: var(--text-primary); }

.lang-opt.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(230, 25, 60, 0.6);
    text-shadow: none;
}

.lang-sep { color: var(--text-muted); font-size: 0.7rem; }

.mobile-menu-lang {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Buttons in nav */
.news-btn, .support-btn { border-radius: 0; }

/* ══════════════════════════════════════════
   BUTTONS — angular terminal style
   ══════════════════════════════════════════ */
.btn {
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    border-radius: 0;
    clip-path: var(--clip-btn);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.45s var(--ease);
    pointer-events: none;
}

.btn:hover::after { left: 160%; }

.btn-primary {
    background: linear-gradient(135deg, #b0122e, var(--accent));
    box-shadow: 0 0 22px rgba(230, 25, 60, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    box-shadow: 0 0 34px rgba(255, 36, 80, 0.55);
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--accent);
    box-shadow: inset 0 0 0 0 rgba(230, 25, 60, 0);
}

.btn-ghost:hover {
    box-shadow: inset 0 -3em 0 0 rgba(230, 25, 60, 0.15), 0 0 18px rgba(230, 25, 60, 0.25);
    color: var(--accent-glow);
}

.btn-lg { padding: 16px 34px; font-size: 0.88rem; }

/* ══════════════════════════════════════════
   CARDS — terminal windows & bracket frames
   ══════════════════════════════════════════ */
.glass-card, .content-card, .content-banner {
    border-radius: 0;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(20, 10, 14, 0.75), rgba(8, 6, 10, 0.85));
    position: relative;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.glass-card:hover, .content-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 28px rgba(230, 25, 60, 0.14), inset 0 0 40px rgba(230, 25, 60, 0.03);
    transform: translateY(-4px);
}

/* Corner brackets on cards */
.glass-card::before, .content-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.7;
    transition: all 0.3s var(--ease);
    z-index: 1;
    pointer-events: none;
}

.glass-card::after, .content-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.7;
    transition: all 0.3s var(--ease);
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover::before, .content-card:hover::before,
.glass-card:hover::after, .content-card:hover::after {
    width: 26px; height: 26px;
    opacity: 1;
    box-shadow: 0 0 10px rgba(230, 25, 60, 0.4);
}

/* Scan-effect cards keep their line above brackets */
.scan-effect::before { z-index: 2; }

/* ══════════════════════════════════════════
   TERMINAL WINDOW component
   ══════════════════════════════════════════ */
.term-window {
    border: 1px solid var(--border);
    background: rgba(7, 5, 9, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(230, 25, 60, 0.07);
    font-family: var(--font-mono);
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.term-window:hover {
    border-color: var(--border-hover);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(230, 25, 60, 0.14);
}

.term-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(230, 25, 60, 0.05);
    user-select: none;
}

.term-dots { display: flex; gap: 6px; }

.term-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #3a2028;
    border: 1px solid rgba(230, 25, 60, 0.3);
}

.term-dot.red { background: var(--accent); box-shadow: 0 0 6px rgba(230, 25, 60, 0.8); }

.term-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.term-body {
    padding: 18px 20px;
    font-size: 0.82rem;
    line-height: 1.75;
    color: #d8c9cf;
}

.term-body .prompt { color: var(--accent-glow); font-weight: 700; }
.term-body .t-ok { color: var(--green); }
.term-body .t-dim { color: var(--text-muted); }
.term-body .t-accent { color: var(--accent-glow); }
.term-body .t-bone { color: var(--bone); }

/* Interactive terminal */
.term-output { max-height: 260px; overflow-y: auto; }

.term-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px dashed rgba(230, 25, 60, 0.2);
    padding-top: 12px;
}

.term-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    caret-color: var(--accent-glow);
}

/* ══════════════════════════════════════════
   SECTIONS / TITLES
   ══════════════════════════════════════════ */
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.section-header {
    position: relative;
    text-align: left;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.section-header::before {
    content: attr(data-idx);
    position: absolute;
    right: 0;
    top: -14px;
    font-family: var(--font-mono);
    font-size: 3.6rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(230, 25, 60, 0.22);
    pointer-events: none;
    user-select: none;
}

.section-desc {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.hero-video-wrap {
    position: absolute;
    top: 50%;
    right: -6%;
    transform: translateY(-50%);
    width: min(52vw, 700px);
    aspect-ratio: 16/9;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
    filter: saturate(1.15) contrast(1.05);
    mask-image: radial-gradient(ellipse 70% 65% at 55% 50%, #000 30%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 55% 50%, #000 30%, transparent 72%);
    transition: transform 0.2s ease-out;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-glitch {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(5, 5, 7, 0.22) 5px, rgba(5, 5, 7, 0.22) 6px);
    mix-blend-mode: multiply;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-glow);
    border: 1px solid rgba(230, 25, 60, 0.35);
    background: rgba(230, 25, 60, 0.06);
    padding: 8px 16px;
    width: fit-content;
    margin-bottom: 28px;
    clip-path: var(--clip-btn);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title .glitch {
    color: var(--text-primary);
    text-shadow:
        0 0 30px rgba(230, 25, 60, 0.55),
        0 0 90px rgba(230, 25, 60, 0.25);
}

.hero-typing {
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 2.4vw, 1.35rem);
    color: var(--accent-glow);
    margin-bottom: 24px;
    min-height: 1.8em;
    letter-spacing: 0.5px;
}

.hero-typing .cursor {
    display: inline-block;
    width: 10px;
    height: 1.15em;
    background: var(--accent-glow);
    vertical-align: text-bottom;
    margin-left: 4px;
    animation: blink 1s steps(1) infinite;
    box-shadow: 0 0 10px rgba(255, 36, 80, 0.9);
}

.hero-subtitle {
    max-width: 520px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero quick stats chips */
.hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 46px;
}

.hero-chip {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    background: rgba(7, 5, 9, 0.6);
}

.hero-chip b { color: var(--accent-glow); font-weight: 700; }

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollDrip 1.8s ease-in-out infinite;
}

@keyframes scrollDrip {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    60% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ══════════════════════════════════════════
   MARQUEE TICKER
   ══════════════════════════════════════════ */
.marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(230, 25, 60, 0.03);
    padding: 14px 0;
    user-select: none;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 3px;
    white-space: nowrap;
    padding: 0 18px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(230, 25, 60, 0.55);
    transition: color 0.3s;
}

.marquee-item.solid { color: var(--accent); -webkit-text-stroke: 0; text-shadow: 0 0 18px rgba(230, 25, 60, 0.5); }

.marquee-sep { color: var(--accent); font-size: 1.5rem; padding: 0 6px; opacity: 0.6; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   DIRECTIONS — file cards
   ══════════════════════════════════════════ */
.dir-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.dir-card .term-body { min-height: 130px; }

.dir-icon { font-size: 2rem; margin-bottom: 12px; filter: drop-shadow(0 0 12px rgba(230, 25, 60, 0.5)); }

.dir-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.dir-desc { color: var(--text-secondary); font-size: 0.82rem; font-family: var(--font-body); line-height: 1.6; }

.dir-open {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--accent-glow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dir-open::after {
    content: '→';
    transition: transform 0.3s var(--ease);
}

.dir-card:hover .dir-open::after { transform: translateX(6px); }

/* ══════════════════════════════════════════
   STATS
   ══════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.stat-cell {
    background: rgba(7, 5, 9, 0.92);
    padding: 34px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.stat-cell:hover { background: rgba(230, 25, 60, 0.06); }

.stat-value {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--accent-glow);
    text-shadow: 0 0 24px rgba(230, 25, 60, 0.5);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════ */
.cta-band {
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 60px 48px;
    background:
        linear-gradient(100deg, rgba(5, 4, 7, 0.97) 35%, rgba(5, 4, 7, 0.55) 70%, rgba(5, 4, 7, 0.35)),
        url('/assets/mor2-poster.jpg') right center / auto 130% no-repeat;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0, 0, 0, 0.18) 4px, rgba(0, 0, 0, 0.18) 5px);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.4rem, 3.6vw, 2.2rem);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.cta-desc {
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 28px;
    position: relative;
}

/* ══════════════════════════════════════════
   FOOTER — system status bar
   ══════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    border-top: 1px solid rgba(230, 25, 60, 0.2);
    background: rgba(4, 3, 5, 0.92);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-status-row, .footer-links-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    background: rgba(230, 25, 60, 0.03);
}

.footer-chip.online { color: var(--green); border-color: rgba(0, 255, 136, 0.25); }

.footer-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.25s, text-shadow 0.25s;
}

.footer-link:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 12px rgba(230, 25, 60, 0.6);
}

.footer-copy {
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.pulse-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-red 2s infinite;
}

/* ══════════════════════════════════════════
   MODALS / TOASTS / FORMS — restyle
   ══════════════════════════════════════════ */
.modal, .news-modal, .support-modal, .block-detail-modal {
    border-radius: 0 !important;
    border: 1px solid var(--border-hover) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(230, 25, 60, 0.12) !important;
    clip-path: var(--clip-card);
}

.toast {
    border-radius: 0 !important;
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
    border-left: 3px solid var(--accent) !important;
    clip-path: var(--clip-btn);
}

.form-input, .form-textarea, .form-select {
    border-radius: 0 !important;
    font-family: var(--font-mono);
    background: rgba(7, 5, 9, 0.8) !important;
}

.form-input:focus, .form-textarea:focus {
    box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(230, 25, 60, 0.2) !important;
}

.empty-state {
    border: 1px dashed rgba(230, 25, 60, 0.3);
    padding: 48px 24px;
    background: rgba(230, 25, 60, 0.02);
    font-family: var(--font-mono);
}

.empty-state-title { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.5px; }

.loader-spinner {
    border-radius: 0 !important;
    border-color: rgba(230, 25, 60, 0.15) !important;
    border-top-color: var(--accent) !important;
}

.dropdown-menu {
    border-radius: 0;
    border: 1px solid var(--border-hover);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.tag {
    border-radius: 0 !important;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* Platform badges + their single tooltip */
.platform-badge {
    border-radius: 0;
    background: rgba(230, 25, 60, 0.04);
}

.platform-badge::after {
    border-radius: 0;
    background: #0b070c;
    border-color: var(--border-hover);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

/* ══════════════════════════════════════════
   SOCIAL RAIL (fixed, left edge)
   ══════════════════════════════════════════ */
.social-rail {
    position: fixed;
    left: 18px;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 130px;
}

.social-rail-line {
    width: 1px;
    height: 90px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.6;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.28s var(--ease);
}

.social-link svg { width: 17px; height: 17px; }

.social-link .social-name {
    position: absolute;
    left: calc(100% + 10px);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 5px 9px;
    background: #0b070c;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
    transition: all 0.25s var(--ease);
}

.social-link:hover {
    color: #fff;
    border-color: var(--border-hover);
    background: rgba(230, 25, 60, 0.1);
    transform: translateY(-3px);
}

.social-link:hover .social-name { opacity: 1; transform: translateX(0); }

/* Brand tint on hover, so each icon still reads as itself */
.social-link[data-social="twitch"]:hover   { color: #a970ff; border-color: rgba(169, 112, 255, 0.6); background: rgba(169, 112, 255, 0.12); box-shadow: 0 0 16px rgba(169, 112, 255, 0.35); }
.social-link[data-social="youtube"]:hover  { color: #ff3d3d; border-color: rgba(255, 61, 61, 0.6);  background: rgba(255, 61, 61, 0.12);  box-shadow: 0 0 16px rgba(255, 61, 61, 0.35); }
.social-link[data-social="discord"]:hover  { color: #7b8cff; border-color: rgba(123, 140, 255, 0.6); background: rgba(123, 140, 255, 0.12); box-shadow: 0 0 16px rgba(123, 140, 255, 0.35); }
.social-link[data-social="steam"]:hover    { color: #9bc8f5; border-color: rgba(155, 200, 245, 0.6); background: rgba(155, 200, 245, 0.12); box-shadow: 0 0 16px rgba(155, 200, 245, 0.35); }
.social-link[data-social="telegram"]:hover { color: #46b8f0; border-color: rgba(70, 184, 240, 0.6);  background: rgba(70, 184, 240, 0.12);  box-shadow: 0 0 16px rgba(70, 184, 240, 0.35); }

/* The rail needs free gutter space — otherwise it sits on the content */
@media (max-width: 1350px) {
    .social-rail { display: none; }
}

/* ══════════════════════════════════════════
   SOCIAL ICONS IN FOOTER
   ══════════════════════════════════════════ */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    background: rgba(230, 25, 60, 0.03);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    transition: all 0.28s var(--ease);
    clip-path: var(--clip-btn);
}

.footer-social svg { width: 15px; height: 15px; flex-shrink: 0; }

.footer-social:hover { color: #fff; transform: translateY(-2px); }

.footer-social[data-social="twitch"]:hover   { border-color: #a970ff; background: rgba(169, 112, 255, 0.15); color: #c9a6ff; }
.footer-social[data-social="youtube"]:hover  { border-color: #ff3d3d; background: rgba(255, 61, 61, 0.15);  color: #ff8a8a; }
.footer-social[data-social="discord"]:hover  { border-color: #7b8cff; background: rgba(123, 140, 255, 0.15); color: #b0baff; }
.footer-social[data-social="steam"]:hover    { border-color: #9bc8f5; background: rgba(155, 200, 245, 0.15); color: #c6e2fb; }
.footer-social[data-social="telegram"]:hover { border-color: #46b8f0; background: rgba(70, 184, 240, 0.15);  color: #9adcff; }

@media (max-width: 480px) {
    .footer-social span { display: none; }
    .footer-social { padding: 10px; }
}

/* ══════════════════════════════════════════
   ORDER WIZARD
   ══════════════════════════════════════════ */
.nav-order-btn {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    color: var(--accent-glow);
    background: rgba(230, 25, 60, 0.1);
    border: 1px solid rgba(230, 25, 60, 0.45);
    clip-path: var(--clip-btn);
    position: relative;
    overflow: hidden;
    animation: orderPulse 3.2s ease-in-out infinite;
}

.nav-order-btn:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent-glow);
    box-shadow: 0 0 22px rgba(230, 25, 60, 0.5);
    animation: none;
}

.nav-order-btn.active::after { display: none; }

@keyframes orderPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 25, 60, 0); }
    50% { box-shadow: 0 0 16px 1px rgba(230, 25, 60, 0.3); }
}

.order-modal {
    max-width: 560px;
    width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0 !important;
    position: relative;
}

.order-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s var(--ease);
}

.order-close:hover {
    color: var(--accent-glow);
    border-color: var(--border-hover);
    background: rgba(230, 25, 60, 0.08);
}

.order-head {
    padding: 26px 28px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(230, 25, 60, 0.04);
}

.order-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.order-subtitle {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.order-progress {
    margin-top: 16px;
    height: 3px;
    background: rgba(230, 25, 60, 0.12);
}

.order-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    box-shadow: 0 0 12px rgba(230, 25, 60, 0.7);
    transition: width 0.4s var(--ease);
}

.order-step-label {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.order-body { padding: 24px 28px 28px; }

.order-question {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.order-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    clip-path: var(--clip-btn);
    font-family: var(--font-body);
}

.order-option:hover {
    border-color: var(--border-hover);
    background: rgba(230, 25, 60, 0.07);
    transform: translateX(4px);
}

.order-option.selected {
    border-color: var(--accent);
    background: rgba(230, 25, 60, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
}

.order-option-icon { font-size: 1.5rem; flex-shrink: 0; }
.order-option-text { display: flex; flex-direction: column; gap: 2px; }

.order-option-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
}

.order-option-desc { font-size: 0.76rem; color: var(--text-secondary); }

.order-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(230, 25, 60, 0.22);
}

.order-summary-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.order-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    color: var(--accent-glow);
    background: rgba(230, 25, 60, 0.1);
    border: 1px solid rgba(230, 25, 60, 0.35);
}

.order-textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    font-family: var(--font-body) !important;
    font-size: 0.9rem;
    line-height: 1.6;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.order-hint, .order-counter {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.order-actions .btn-primary { flex: 1; min-width: 180px; }
.order-actions-stack { flex-direction: column; }
.order-actions-stack .btn { width: 100%; }

.order-success { text-align: center; padding: 20px 0 8px; }

.order-success-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.5));
}

.order-success-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.order-success-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Admin reply */
.reply-quote {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--border-hover);
    padding: 12px 14px;
    margin-bottom: 22px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 140px;
    overflow-y: auto;
}

.reply-answer {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: rgba(230, 25, 60, 0.06);
    border: 1px solid rgba(230, 25, 60, 0.28);
    padding: 16px 18px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Orders list in the cabinet */
.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.order-row-info { flex: 1; min-width: 200px; }

.order-row-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.order-row-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.order-row-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.order-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.order-status.new { color: var(--text-muted); }
.order-status.answered { color: var(--green); border-color: rgba(0, 255, 136, 0.35); }
.order-status.callback { color: var(--accent-glow); border-color: var(--border-hover); }
.order-status.thinking { color: var(--yellow); border-color: rgba(255, 214, 0, 0.3); }
.order-status.in_progress { color: #46b8f0; border-color: rgba(70, 184, 240, 0.35); }
.order-status.cancelled { color: var(--text-muted); border-color: var(--border); opacity: 0.7; text-decoration: line-through; }

.order-status.done {
    color: #0a0a0a;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.4);
}

@media (max-width: 768px) {
    .order-head { padding: 22px 20px 16px; }
    .order-body { padding: 20px; }
    .order-actions .btn-primary { min-width: 100%; }
}

/* ══════════════════════════════════════════
   PAGE GLITCH TRANSITION overlay
   ══════════════════════════════════════════ */
.route-glitch {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0 6px, rgba(230, 25, 60, 0.12) 6px 8px),
        rgba(5, 4, 7, 0.25);
    opacity: 0;
}

.route-glitch.flash { animation: routeFlash 0.32s steps(3) forwards; }

@keyframes routeFlash {
    0% { opacity: 1; transform: translateX(0); }
    33% { opacity: 0.7; transform: translateX(-6px); }
    66% { opacity: 0.5; transform: translateX(5px); }
    100% { opacity: 0; transform: translateX(0); }
}

/* Easter egg mascot flash */
.egg-flash {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
    background: url('/assets/mor2-poster.jpg') center / cover no-repeat;
    mix-blend-mode: screen;
    opacity: 0;
}

.egg-flash.show { animation: eggShow 0.9s steps(6) forwards; }

@keyframes eggShow {
    0% { opacity: 0.9; filter: hue-rotate(0deg) contrast(1.4); transform: scale(1.04); }
    40% { opacity: 0.55; filter: hue-rotate(-20deg) contrast(1.8); transform: scale(1) translateX(-8px); }
    70% { opacity: 0.75; filter: contrast(1.2); transform: scale(1.02) translateX(6px); }
    100% { opacity: 0; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1080px) {
    .hero-video-wrap { opacity: 0.4; width: 70vw; right: -18%; }
}

@media (max-width: 768px) {
    .hero { padding-top: 40px; }
    .hero-video-wrap {
        position: absolute;
        top: 8%;
        right: -30%;
        width: 110vw;
        transform: none;
        opacity: 0.28;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band { padding: 40px 24px; background-position: 80% center; }
    .section-header::before { font-size: 2.4rem; }
    .lang-switch#lang-switch { display: none; }
    .marquee-item { font-size: 1.1rem; }
    .footer-status-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .noise-overlay, .vignette-overlay { animation: none; }
    .marquee-track { animation-duration: 80s; }
    .glitch::before, .glitch::after { animation: none; }
}
