/* ============================================================
   GAME QKD 0026 — CYBERPUNK 2077 THEME
   Layout preserved · Visuals fully cyberpunk
   ============================================================ */

/* -------- Variables (names preserved for sub-page compat) -------- */
:root {
    /* Cyberpunk Palette */
    --cb-bg: #000005;
    --cb-bg-alt: #050510;
    --cb-surface: #0a0a18;
    --cb-surface-hover: #101028;
    --cb-border: #1a1a38;
    --cb-border-glow: #2e1058;

    /* Neon Accents – pure cyberpunk */
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff006e;
    --neon-purple: #7b2fff;
    --neon-green: #39ff14;
    --neon-yellow: #ffdd00;
    --neon-orange: #ff6b00;
    --neon-red: #ff0033;
    --neon-blue: #0066ff;

    /* Text */
    --cb-text: #e8ecf4;
    --cb-text-dim: #8890a8;
    --cb-text-muted: #585e78;

    /* Tokens */
    --cb-radius: 0px;
    --cb-radius-lg: 0px;
    --cb-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    --cb-max-width: 1320px;

    /* Cyberpunk Glows – intense */
    --glow-cyan: 0 0 24px rgba(0,240,255,0.45), 0 0 48px rgba(0,240,255,0.15);
    --glow-magenta: 0 0 24px rgba(255,0,110,0.45), 0 0 48px rgba(255,0,110,0.15);
    --glow-purple: 0 0 24px rgba(123,47,255,0.45), 0 0 48px rgba(123,47,255,0.15);

    /* Alias */
    --accent: #00f0ff;

    /* Sidebar link colors (matching template-29) */
    --primary: #6c5ce7;
    --secondary: #00cec9;

    /* Nav height (desktop = 60px content + 2px border; JS updates on mobile) */
    --cb-nav-height: 62px;
}


/* ==============================
   ANIMATIONS
   ============================== */
@keyframes cyber-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.4; }
}
@keyframes border-rotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes slide-diagonal {
    to { background-position: 60px 60px; }
}
@keyframes glitch-shift {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(10% 0 30% 0); }
    40% { clip-path: inset(40% 0 5% 0); }
    60% { clip-path: inset(5% 0 50% 0); }
    80% { clip-path: inset(25% 0 15% 0); }
}
@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    5% { transform: skew(-2deg); }
    10% { transform: skew(0deg); }
    12% { transform: skew(1.5deg); }
    14% { transform: skew(0deg); }
}


/* ==============================
   RESET & BASE
   ============================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cb-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cb-text);
    background: var(--cb-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Full-page diagonal scanlines */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
    );
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

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

input {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--cb-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

#site-content {
    min-height: 100vh;
}


/* ==============================
   CYBERPUNK NAV
   ============================== */
.cyber-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0,0,5,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--neon-magenta);
    box-shadow: 0 2px 30px rgba(255,0,110,0.2), inset 0 -1px 0 rgba(255,0,110,0.1);
}

.cyber-nav .container {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 32px;
}

.cyber-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(0,240,255,0.6), 0 0 30px rgba(0,240,255,0.3);
}

.cyber-nav-logo svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(0,240,255,0.8));
}

.cyber-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.cyber-nav-links a {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cb-text-dim);
    transition: var(--cb-transition);
    white-space: nowrap;
    position: relative;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.cyber-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.cyber-nav-links a:hover,
.cyber-nav-links .cyber-active {
    color: var(--neon-cyan);
    background: rgba(0,240,255,0.08);
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
}

.cyber-nav-links a:hover::after,
.cyber-nav-links .cyber-active::after {
    transform: scaleX(1);
}

.cyber-nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-magenta);
    padding: 8px 14px;
    flex: 0 1 280px;
    transition: var(--cb-transition);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.cyber-nav-search:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.cyber-nav-search svg {
    width: 18px;
    height: 18px;
    color: var(--neon-magenta);
    flex-shrink: 0;
}

.cyber-nav-search input {
    background: transparent;
    color: var(--cb-text);
    font-size: 0.85rem;
    width: 100%;
    letter-spacing: 0.5px;
}

.cyber-nav-search input::placeholder {
    color: var(--cb-text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px rgba(0,240,255,0.6);
    transition: var(--cb-transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}





/* ==============================
   CYBERPUNK HERO
   ============================== */
.cyber-hero {
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,240,255,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 100%, rgba(255,0,110,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(123,47,255,0.05) 0%, transparent 50%),
        var(--cb-bg);
}

/* Hex grid overlay */
.cyber-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
    pointer-events: none;
}

/* Diagonal animated lines */
.cyber-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 30px,
        rgba(255,0,110,0.02) 30px,
        rgba(255,0,110,0.02) 31px
    );
    animation: slide-diagonal 20s linear infinite;
}

.cyber-hero-badge {
    display: inline-block;
    padding: 8px 24px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    background: linear-gradient(90deg, rgba(255,0,110,0.2), rgba(123,47,255,0.2));
    border: 1px solid var(--neon-magenta);
    box-shadow: 0 0 15px rgba(255,0,110,0.2);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-magenta);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: cyber-pulse 3s ease-in-out infinite;
}

.cyber-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: var(--cb-text);
    text-transform: uppercase;
}

.cyber-hero-gradient {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-magenta) 40%, var(--neon-purple) 70%, var(--neon-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: border-rotate 4s linear infinite;
    position: relative;
    display: inline-block;
}

.cyber-hero-gradient::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple), var(--neon-cyan));
    background-size: 200% auto;
    animation: border-rotate 4s linear infinite;
    filter: blur(2px);
}

.cyber-hero p {
    font-size: 1.05rem;
    color: var(--cb-text-dim);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
    text-shadow: 0 0 10px rgba(0,240,255,0.1);
}

.cyber-hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 44px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--neon-cyan);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    overflow: hidden;
    transition: var(--cb-transition);
}

.cyber-hero-search:focus-within {
    border-color: var(--neon-magenta);
    box-shadow: var(--glow-magenta), var(--glow-cyan);
}

.cyber-hero-search svg {
    width: 20px;
    height: 20px;
    color: var(--neon-cyan);
    margin: 16px 0 16px 18px;
    flex-shrink: 0;
}

.cyber-hero-search input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    color: var(--cb-text);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.cyber-hero-search input::placeholder {
    color: var(--cb-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.cyber-hero-search button {
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--neon-magenta), var(--neon-purple));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
    transition: filter 0.2s;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.cyber-hero-search button:hover {
    filter: brightness(1.2);
}

.cyber-hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
}

.cyber-hero-stat {
    text-align: center;
    position: relative;
}

.cyber-hero-stat::after {
    content: '';
    position: absolute;
    right: -28px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--neon-purple), transparent);
    opacity: 0.5;
}

.cyber-hero-stat:last-child::after {
    display: none;
}

.cyber-hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(0,240,255,0.5);
    font-variant-numeric: tabular-nums;
}

.cyber-hero-stat span {
    font-size: 0.72rem;
    color: var(--cb-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ==============================
   SECTION HEADER
   ============================== */
.section {
    padding: 64px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,240,255,0.15);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255,0,110,0.6);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cb-text);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0,240,255,0.8), 0 0 20px rgba(0,240,255,0.4);
    flex-shrink: 0;
    animation: cyber-pulse 2s ease-in-out infinite;
}

.see-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    transition: var(--cb-transition);
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0,240,255,0.3);
}

.see-all svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.see-all:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255,0,110,0.5);
}

.see-all:hover svg {
    transform: translateX(4px);
}


/* ==============================
   HOME SLIDER
   ============================== */
.home-slider {
    background: var(--cb-bg-alt);
    border-top: 1px solid rgba(0,240,255,0.12);
    border-bottom: 1px solid rgba(255,0,110,0.12);
    padding: 44px 0 56px;
    overflow: hidden;
    position: relative;
}

.home-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,240,255,0.02) 0%, transparent 50%, rgba(255,0,110,0.02) 100%);
}

.home-slider section {
    position: relative;
    overflow: hidden;
}

.home-slider .slides {
    display: flex;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-slider .slides li {
    flex: 0 0 100%;
    opacity: 0.45;
    transition: opacity 0.5s;
}

.home-slider .slides li.slide-active {
    opacity: 1;
}

.home-slider .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.slide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideFadeIn 0.5s ease;
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.slide-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--cb-text);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.text-line1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cyber-tag {
    display: inline-block;
    padding: 3px 12px;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    background: rgba(0,240,255,0.1);
    border: 1px solid rgba(0,240,255,0.3);
    color: var(--neon-cyan);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0,240,255,0.4);
}

.slide-desc {
    font-size: 0.92rem;
    color: var(--cb-text-dim);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-stars {
    font-size: 0.9rem;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    background: linear-gradient(90deg, var(--neon-magenta) 0%, var(--neon-purple) 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    transition: filter 0.2s, box-shadow 0.2s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.cyber-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 30px rgba(255,0,110,0.5), 0 0 60px rgba(123,47,255,0.3);
}

.slide-img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--cb-surface);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    border: 2px solid rgba(0,240,255,0.2);
    transition: border-color 0.3s;
}

.slide-img-link:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.slide-img-link:hover .slide-image {
    transform: scale(1.04);
}

/* ---- Slider Navigation ---- */
.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 10;
}

.slider-arrow {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(0,240,255,0.25);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.slider-arrow:hover {
    background: rgba(0,240,255,0.15);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.slider-arrow svg {
    width: 18px;
    height: 18px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(0,240,255,0.25);
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
}

.slider-dot:hover {
    background: rgba(0,240,255,0.3);
    border-color: var(--neon-cyan);
}

.slider-dot--active {
    width: 28px;
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0,240,255,0.6);
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0,240,255,0.6);
    transition: width 0.1s linear;
    z-index: 10;
}


/* ==============================
   MODULE 1 — NODE GRID ( Featured + Rank )
   ============================== */
.node-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.node-grid > * {
    min-width: 0;
}

/* Main featured card */
.node-main {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--cb-surface);
    border: 1px solid rgba(255,0,110,0.2);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: var(--cb-transition);
}

.node-main:hover {
    border-color: var(--neon-magenta);
    box-shadow: var(--glow-magenta), 0 10px 40px rgba(0,0,0,0.6);
    transform: translateY(-2px);
}

.node-main-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s;
}

.node-main:hover .node-main-img {
    transform: scale(1.03);
}

.node-main-glow {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255,0,110,0.8));
    animation: cyber-pulse 2s ease-in-out infinite;
}

.node-main-body {
    padding: 20px 24px 24px;
    position: relative;
}

.node-main-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,0,110,0.4), transparent);
}

.node-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.node-badge {
    padding: 2px 10px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.node-badge--hot {
    background: rgba(255,0,51,0.18);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    text-shadow: 0 0 6px rgba(255,0,51,0.5);
    animation: cyber-pulse 1.5s ease-in-out infinite;
}

.node-badge--featured {
    background: rgba(0,240,255,0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0,240,255,0.5);
}

.node-main-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--cb-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.node-main-body p {
    font-size: 0.85rem;
    color: var(--cb-text-dim);
    line-height: 1.5;
    margin-bottom: 18px;
}

.node-btn {
    display: inline-block;
    padding: 10px 28px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    background: linear-gradient(90deg, var(--neon-magenta), var(--neon-orange));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: filter 0.2s, box-shadow 0.2s;
}

.node-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(255,0,110,0.5);
}

/* Rank cards */
.node-grid-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.node-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--cb-surface);
    border: 1px solid rgba(123,47,255,0.12);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    transition: var(--cb-transition);
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.node-card:hover {
    background: var(--cb-surface-hover);
    border-color: var(--neon-purple);
    box-shadow: 0 0 16px rgba(123,47,255,0.2);
    transform: translateX(4px);
}

.node-card-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.node-card-rank {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.node-card-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.node-card-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.node-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.node-stars { font-size: 0.75rem; }

.node-stars-count {
    font-size: 0.7rem;
    color: var(--cb-text-muted);
}

.node-cat-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
    background: rgba(123,47,255,0.12);
    border: 1px solid rgba(123,47,255,0.3);
    color: var(--neon-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==============================
   MODULE 2 — DATASLATE GRID
   ============================== */
.dataslate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.dataslate-card {
    display: block;
    background: var(--cb-surface);
    border: 1px solid rgba(123,47,255,0.15);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    overflow: hidden;
    transition: var(--cb-transition);
}

.dataslate-card:hover {
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple), 0 8px 30px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}

.dataslate-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cb-bg);
}

.dataslate-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.4s;
}

.dataslate-card:hover .dataslate-thumb {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.dataslate-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    z-index: 2;
}

.dataslate-badge--trend {
    background: var(--neon-orange);
    color: #000;
    box-shadow: 0 0 12px rgba(255,107,0,0.5);
    animation: cyber-pulse 2s ease-in-out infinite;
}

.dataslate-badge--top {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 12px rgba(57,255,20,0.5);
}

.dataslate-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0,0,0,0.75);
    color: var(--neon-cyan);
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,240,255,0.3);
    text-shadow: 0 0 6px rgba(0,240,255,0.5);
    z-index: 2;
}

.dataslate-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.dataslate-card:hover .dataslate-play {
    opacity: 1;
}

.dataslate-play svg {
    width: 52px;
    height: 52px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 16px rgba(0,240,255,0.7));
}

.dataslate-info {
    padding: 16px 18px 18px;
    position: relative;
}

.dataslate-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,0,110,0.3), transparent);
}

.dataslate-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dataslate-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dataslate-rating { font-size: 0.75rem; }

.dataslate-cat {
    font-size: 0.68rem;
    padding: 2px 8px;
    clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
    background: rgba(255,0,110,0.12);
    border: 1px solid rgba(255,0,110,0.3);
    color: var(--neon-magenta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dataslate-desc {
    font-size: 0.78rem;
    color: var(--cb-text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==============================
   FILTER TRAY
   ============================== */
.filter-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-chip {
    padding: 8px 22px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cb-text-dim);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,240,255,0.2);
    cursor: pointer;
    transition: var(--cb-transition);
}

.filter-chip:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0,240,255,0.5);
}

.filter-chip--active {
    background: linear-gradient(90deg, rgba(255,0,110,0.25), rgba(123,47,255,0.25));
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(255,0,110,0.5);
    box-shadow: 0 0 16px rgba(255,0,110,0.2);
    animation: cyber-pulse 3s ease-in-out infinite;
}


/* ==============================
   MODULE 3+ — GLITCH GRID
   ============================== */
.glitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.glitch-card {
    display: block;
    background: var(--cb-surface);
    border: 1px solid rgba(0,240,255,0.12);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    overflow: hidden;
    transition: var(--cb-transition);
    position: relative;
}

.glitch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,0,110,0.03) 0%, transparent 50%, rgba(0,240,255,0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glitch-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan), 0 8px 30px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}

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

.glitch-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cb-bg);
}

.glitch-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.4s;
}

.glitch-card:hover .glitch-thumb {
    transform: scale(1.06);
    filter: brightness(1.15) saturate(1.3);
}

.glitch-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    z-index: 2;
}

.glitch-badge--hot {
    background: var(--neon-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255,0,51,0.5);
    animation: cyber-pulse 1.2s ease-in-out infinite;
}

.glitch-badge--new {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px rgba(57,255,20,0.5);
}

.glitch-badge--trend {
    background: var(--neon-orange);
    color: #000;
    box-shadow: 0 0 10px rgba(255,107,0,0.5);
}

.glitch-badge--top {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 10px rgba(123,47,255,0.5);
}

.glitch-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: var(--neon-cyan);
    font-size: 0.62rem;
    font-weight: 900;
    padding: 3px 10px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    border: 1px solid rgba(0,240,255,0.25);
    text-shadow: 0 0 6px rgba(0,240,255,0.5);
    z-index: 2;
}

.glitch-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.glitch-card:hover .glitch-play {
    opacity: 1;
}

.glitch-play svg {
    width: 48px;
    height: 48px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 14px rgba(0,240,255,0.7));
}

.glitch-info {
    padding: 14px 16px 16px;
    position: relative;
}

.glitch-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,240,255,0.3), transparent);
}

.glitch-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glitch-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.glitch-rating {
    font-size: 0.75rem;
    color: var(--cb-text-dim);
}

.glitch-rating span {
    color: var(--cb-text-muted);
}

.glitch-cat {
    font-size: 0.68rem;
    padding: 2px 8px;
    clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%);
    background: rgba(0,102,255,0.12);
    border: 1px solid rgba(0,102,255,0.3);
    color: var(--neon-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glitch-desc {
    font-size: 0.76rem;
    color: var(--cb-text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==============================
   CYBERPUNK FOOTER
   ============================== */
.cyber-footer {
    background: var(--cb-bg-alt);
    border-top: 2px solid var(--neon-magenta);
    box-shadow: 0 -2px 30px rgba(255,0,110,0.15);
    padding: 52px 0 28px;
    margin-top: 20px;
    position: relative;
}

.cyber-footer::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,240,255,0.6);
}

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

.cyber-footer-brand .cyber-nav-logo {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.cyber-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cyber-footer-col a {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cb-text-dim);
    transition: color 0.2s, text-shadow 0.2s;
    position: relative;
    width: fit-content;
}

.cyber-footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-cyan);
    transition: width 0.25s;
}

.cyber-footer-col a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
}

.cyber-footer-col a:hover::after {
    width: 100%;
}

.cyber-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(0,240,255,0.12);
    text-align: center;
    font-size: 0.75rem;
    color: var(--cb-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ==============================
   OVERLAY
   ============================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,5,0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}


/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .cyber-hero {
        padding: 60px 0 50px;
    }

    .home-slider .container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slider-arrows {
        padding: 0 4px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
    }

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

    .cyber-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cyber-nav .container {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 14px;
        gap: 12px;
    }
    .menu-toggle {
        display: flex;
        order: 0;
        margin-right: auto;
    }
    .cyber-nav-logo {
        order: 1;
        font-size: 1rem;
    }
    .cyber-nav-search {
        order: 3;
        flex: 1 1 100%;
        display: none;
    }
    /* ===== Mobile Nav Dropdown Panel (matches template-19) ===== */
    .cyber-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--cb-surface);
        border-bottom: 1px solid var(--cb-border);
        padding: 0.5rem 1.25rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        z-index: 1001;
        order: initial;
    }

    .cyber-nav-links.active {
        display: flex;
    }

    .cyber-nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--cb-text-dim);
        clip-path: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(42,42,58,0.4);
        transition: color 0.2s, text-shadow 0.2s;
    }

    .cyber-nav-links a:last-child {
        border-bottom: none;
    }

    .cyber-nav-links a:hover {
        color: var(--neon-cyan);
        text-shadow: var(--glow-cyan);
    }

    .cyber-nav-links a.cyber-active {
        color: var(--neon-cyan);
        text-shadow: var(--glow-cyan);
        font-weight: 700;
    }

    /* Mobile auth: keep visible in nav bar */
    .nav-auth {
        order: 2;
        margin-left: auto;
        gap: 6px;
    }
    .nav-auth-btn {
        padding: 5px 12px;
        font-size: 0.62rem;
        letter-spacing: 1px;
        clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    }
    .nav-user-name {
        display: none;
    }
    .nav-user-arrow {
        display: none;
    }
    .nav-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .cyber-hero {
        padding: 48px 0 40px;
    }

    .cyber-hero-stats {
        gap: 28px;
    }

    .cyber-hero-stat strong {
        font-size: 1.35rem;
    }

    .dataslate-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .glitch-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

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

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

    .cyber-hero h1 {
        font-size: 1.5rem;
    }

    .cyber-hero p {
        font-size: 0.88rem;
    }

    .cyber-hero-search {
        flex-direction: column;
    }

    .cyber-hero-search svg {
        display: none;
    }

    .cyber-hero-search button {
        clip-path: none;
        padding: 12px;
    }

    .cyber-hero-stats {
        gap: 20px;
    }

    .cyber-hero-stat::after {
        right: -10px;
    }

    .dataslate-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dataslate-info {
        padding: 14px 16px 16px;
    }

    .dataslate-title {
        font-size: 0.88rem;
    }

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

    /* Module 1 — node-grid mobile fixes */
    .node-grid {
        gap: 16px;
    }

    .node-grid > * {
        min-width: 0;
    }

    .node-grid-list {
        min-width: 0;
    }

    .node-main-body {
        padding: 14px 16px 18px;
    }

    .node-main-body h3 {
        font-size: 1.05rem;
    }

    .node-main-body p {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }

    .node-btn {
        padding: 8px 20px;
        font-size: 0.68rem;
    }

    .node-card {
        padding: 10px 12px;
        gap: 10px;
        min-width: 0;
        overflow: hidden;
    }

    .node-card-img {
        width: 48px;
        height: 48px;
    }

    .node-card-rank {
        font-size: 0.68rem;
        min-width: 20px;
        flex-shrink: 0;
    }

    .node-card-info {
        min-width: 0;
        overflow: hidden;
    }

    .node-card-info h4 {
        font-size: 0.75rem;
    }

    .node-card-meta {
        gap: 4px;
    }

    .node-stars {
        font-size: 0.65rem;
    }

    .node-stars-count {
        font-size: 0.6rem;
    }

    .node-cat-tag {
        font-size: 0.58rem;
        padding: 1px 5px;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .section {
        padding: 36px 0;
    }
}

/* ===== Nav Auth Buttons ===== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

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

.nav-auth-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.btn-login {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid rgba(0,240,255,0.35);
}

.btn-login:hover {
    background: rgba(0,240,255,0.1);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
}

.btn-register {
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-purple));
    color: #fff;
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,0,110,0.4);
}

/* ===== Nav User (Logged In) ===== */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid transparent;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.nav-user-info:hover {
    border-color: rgba(0,240,255,0.3);
    background: rgba(0,240,255,0.05);
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

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

.nav-user-name {
    color: var(--cb-text);
    font-size: 13px;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--neon-cyan);
    transition: transform 0.3s ease;
}

.nav-user.open .nav-user-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.nav-user-dropdown {
    display: none;
    position: fixed;
    z-index: 9999;
    min-width: 160px;
    background: var(--cb-surface);
    border: 1px solid rgba(0,240,255,0.25);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--glow-cyan);
    overflow: hidden;
}

.nav-user.open .nav-user-dropdown {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 11px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cb-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    border-left: 2px solid transparent;
    background: none;
    text-align: left;
    cursor: pointer;
}

.nav-dropdown-item:hover {
    background: rgba(0,240,255,0.08);
    border-left-color: var(--neon-cyan);
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0,240,255,0.4);
}

.nav-logout-btn {
    color: var(--neon-magenta) !important;
    border-top: 1px solid var(--cb-border);
    margin-top: 4px;
    padding-top: 12px;
}

.nav-logout-btn:hover {
    background: rgba(255,0,110,0.08) !important;
    border-left-color: var(--neon-magenta) !important;
    color: var(--neon-magenta) !important;
    text-shadow: 0 0 6px rgba(255,0,110,0.4) !important;
}

/* ===== Login Modal Styles (Cyberpunk) ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,5,0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: var(--cb-surface);
    border: 1px solid rgba(0,240,255,0.25);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--glow-cyan);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    color: var(--cb-text);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--neon-cyan);
    line-height: 1;
    transition: color 0.3s, text-shadow 0.3s;
}

.auth-modal-close:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255,0,110,0.6);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,240,255,0.4);
}

.auth-header p {
    color: var(--cb-text-dim);
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--cb-border);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--cb-text-dim);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.auth-tab:hover {
    color: var(--neon-cyan);
}

.auth-tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--cb-text);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cb-border);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--cb-bg-alt);
    color: var(--cb-text);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0,240,255,0.2);
}

.form-group input::placeholder {
    color: var(--cb-text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.form-group .error-text {
    color: var(--neon-magenta);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255,0,110,0.2);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-cyan), #00c4d6);
    color: #000;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.btn-auth:hover {
    box-shadow: var(--glow-cyan), 0 6px 20px rgba(0,240,255,0.3);
    background: linear-gradient(135deg, #0ff, #00e0f0);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.8s linear infinite;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cb-border);
}

.auth-footer p {
    color: var(--cb-text-dim);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s;
}

.auth-footer a:hover {
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
}

.alert-box {
    padding: 0.7rem 1rem;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
    font-weight: 600;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(57,255,20,0.1);
    color: var(--neon-green);
    border: 1px solid rgba(57,255,20,0.3);
}

.alert-box.error {
    background: rgba(255,0,110,0.1);
    color: var(--neon-magenta);
    border: 1px solid rgba(255,0,110,0.3);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--cb-text-muted);
    font-size: 1rem;
    user-select: none;
    transition: color 0.3s;
}

.password-toggle .toggle-icon:hover {
    color: var(--neon-cyan);
}


/* ===== Comments Section (Cyberpunk) ===== */
.comments-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 24px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,240,255,0.15);
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0,240,255,0.8);
    animation: cyber-pulse 2s ease-in-out infinite;
}

.comments-count {
    color: var(--cb-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    padding: 14px 16px;
    background: var(--cb-bg-alt);
    border: 1px solid var(--cb-border);
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    transition: border-color 0.3s;
}

.comment-item:hover {
    border-color: rgba(0,240,255,0.25);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: var(--cb-text);
    font-size: 0.85rem;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--cb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-star {
    margin-left: auto;
    font-size: 12px;
    color: #fbbf24;
    flex-shrink: 0;
}

.comment-content {
    color: var(--cb-text-dim);
    line-height: 1.65;
    font-size: 0.88rem;
}

.comments-empty {
    text-align: center;
    padding: 40px;
    color: var(--cb-text-muted);
}

.comments-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.comments-loading {
    text-align: center;
    padding: 20px;
    color: var(--cb-text-muted);
}

.load-more-comments {
    margin-top: 15px;
    text-align: center;
}

.btn-load-more {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid rgba(0,240,255,0.3);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: rgba(0,240,255,0.08);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-load-more:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Comment Form (Cyberpunk) ===== */
.comment-form {
    margin-bottom: 20px;
    padding: 18px;
    background: var(--cb-bg-alt);
    border: 1px solid var(--cb-border);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

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

.comment-form-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-author {
    font-weight: 600;
    color: var(--cb-text);
    font-size: 0.85rem;
}

.comment-form-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.comment-form-rating label {
    font-size: 0.8rem;
    color: var(--cb-text-dim);
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-star {
    font-size: 20px;
    cursor: pointer;
    color: var(--cb-text-muted);
    transition: color 0.2s, text-shadow 0.2s;
    user-select: none;
}

.rating-star:hover,
.rating-star.active {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251,191,36,0.5);
}

.comment-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--cb-border);
    background: var(--cb-bg);
    color: var(--cb-text);
    font-size: 0.88rem;
    resize: vertical;
    min-height: 90px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-family: inherit;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    transition: border-color 0.3s;
}

.comment-form-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0,240,255,0.15);
}

.comment-form-textarea::placeholder {
    color: var(--cb-text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-submit {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--neon-cyan), #00c4d6);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.btn-comment-submit:hover {
    box-shadow: var(--glow-cyan);
    background: linear-gradient(135deg, #0ff, #00e0f0);
}

.btn-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-login-hint {
    text-align: center;
    padding: 15px;
    background: var(--cb-bg-alt);
    border: 1px solid var(--cb-border);
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    margin-bottom: 20px;
    color: var(--cb-text-dim);
    font-size: 0.85rem;
}

.comment-login-hint a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s;
}

.comment-login-hint a:hover {
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
}

/* ===== Toast Message (Cyberpunk) ===== */
.toast-message {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--cb-surface);
    color: var(--cb-text);
    border: 1px solid var(--cb-border);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
}

.toast-message.success {
    background: rgba(57,255,20,0.15);
    color: var(--neon-green);
    border-color: rgba(57,255,20,0.4);
    box-shadow: 0 0 16px rgba(57,255,20,0.2);
}

.toast-message.error {
    background: rgba(255,0,110,0.15);
    color: var(--neon-magenta);
    border-color: rgba(255,0,110,0.4);
    box-shadow: 0 0 16px rgba(255,0,110,0.2);
}

.toast-message.warning {
    background: rgba(255,221,0,0.15);
    color: var(--neon-yellow);
    border-color: rgba(255,221,0,0.4);
    box-shadow: 0 0 16px rgba(255,221,0,0.2);
}

.hero-section{
    padding-top: 20px!important;
}


/* ===== Share buttons & copy modal (cyberpunk theme) ===== */
.share-copy-modal {
	position: fixed;
	inset: 0;
	background: rgba(2, 2, 12, 0.92);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 100000;
	padding: 15px;
}
.share-copy-modal.show {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.share-copy-box {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	max-width: 460px;
	width: 100%;
	padding: 30px 24px 24px;
	position: relative;
	box-shadow: 0 0 32px rgba(0, 240, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.share-copy-box::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple));
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.share-copy-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: var(--cb-text-muted);
	cursor: pointer;
	transition: color .3s;
}
.share-copy-close:hover {
	color: var(--neon-magenta);
}
.share-copy-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: var(--cb-text);
}
.share-copy-desc {
	margin: 0 0 16px;
	color: var(--cb-text-dim);
	font-size: 14px;
}
.share-copy-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}
.share-copy-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cb-border);
	clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
	font-size: 14px;
	color: var(--cb-text);
	background: var(--cb-bg-alt);
}
.share-copy-input:focus {
	outline: none;
	border-color: var(--neon-cyan);
	box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}
.share-copy-btn {
	padding: 10px 18px;
	border: none;
	clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
	background: linear-gradient(135deg, var(--neon-cyan), #00c4d6);
	color: #000;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: all .25s ease;
}
.share-copy-btn:hover {
	background: linear-gradient(135deg, #0ff, #00e0f0);
	box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
}
.share-copy-status {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--neon-green, #39ff14);
	min-height: 18px;
}
