/* Native Smooth Scrollbar with standard light/dark styling */
html {
    scrollbar-color: #94a3b8 transparent;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* USD Halo Marquee Animation */
@keyframes haloMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.halo-marquee-track {
    display: flex;
    width: max-content;
    animation: haloMarquee 25s linear infinite;
    will-change: transform;
}

.halo-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes backersMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.backers-track {
    display: flex;
    width: max-content;
    animation: backersMarquee 30s linear infinite;
    will-change: transform;
}

.backers-track:hover {
    animation-play-state: paused;
}

/* Global Mobile Overflow Lock (Using overflow-x: clip so backdrop-filter is never broken) */
html {
    overflow-x: clip;
    box-sizing: border-box;
}

body {
    overflow-x: clip;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

section, main, header, footer {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Glass card styling */
.glass-card {
    background: rgba(12, 12, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.03);
}

/* Featured card special glow */
.featured-card {
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.9) 0%, rgba(10, 10, 14, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.06), 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.featured-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.12), 0 30px 60px -15px rgba(0, 0, 0, 0.95);
}

/* Node diagram connecting lines & pulses */
.diagram-node {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagram-node:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Animated flow lines for diagram */
@keyframes flowIn {
    0% {
        stroke-dashoffset: 32;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes flowOut {
    0% {
        stroke-dashoffset: 32;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.flow-line-in {
    stroke-dasharray: 8 8;
    animation: flowIn 1.2s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
}

.flow-line-out {
    stroke-dasharray: 8 8;
    animation: flowOut 1.2s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
}

/* Hero Headline Clipping Fix for Italic Descenders */
.hero-headline-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 60%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.35em;
    padding-right: 0.35em;
    padding-top: 0.1em;
    margin-bottom: -0.35em;
    overflow: visible;
}

/* Subtle typography enhancements */
h1, h2, h3, h4 {
    letter-spacing: -0.03em;
}

/* Input glow effect on focus */
.input-glow:focus {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Bottom eye atmosphere banner */
.eye-banner {
    background: radial-gradient(ellipse at 50% 100%, rgba(45, 45, 55, 0.5) 0%, rgba(10, 10, 12, 0.9) 60%, #000000 100%);
}

/* Smooth Accordion */
.faq-content {
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

/* 3D Spiky Orb Animation */
@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-14px) rotate(4deg) scale(1.04);
    }
}

.animate-orb {
    animation: orbFloat 9s ease-in-out infinite;
}

/* Hero Hand Corner Positioning & Right-side Edge Fade */
.hand-corner-fade {
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%);
}

/* Prevent image downloading, dragging and saving */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* AOS Smooth easing enhancement */
[data-aos] {
    pointer-events: auto;
}

/* Hero Text Dynamic Gradient Animation */
@keyframes heroGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-text-shimmer {
    background: linear-gradient(135deg, #0b1329 0%, #172554 45%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: none !important;
    display: inline-block;
    padding-top: 0.05em;
    padding-bottom: 0.1em;
    padding-right: 0.05em;
    padding-left: 0.02em;
    line-height: 1.15;
    overflow: visible;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

body.light-theme .hero-text-shimmer,
.light-theme .hero-text-shimmer {
    background: linear-gradient(135deg, #0b1329 0%, #172554 45%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: none !important;
}

/* Hero Ambient Aura Animation - Matching Deep Midnight Blue Glow */
@keyframes heroAuraPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.35;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.6;
    }
}

.hero-ambient-spotlight {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, 90vw);
    height: min(250px, 60vw);
    max-width: 100vw;
    background: radial-gradient(ellipse, rgba(30, 64, 175, 0.25) 0%, rgba(59, 130, 246, 0.08) 45%, rgba(0, 0, 0, 0) 75%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: heroAuraPulse 6s ease-in-out infinite;
}

body.light-theme .hero-ambient-spotlight,
.light-theme .hero-ambient-spotlight {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, rgba(147, 197, 253, 0.06) 45%, rgba(255, 255, 255, 0) 75%);
}


/* Button Gloss Sweep Effect */
.btn-shine-effect {
    position: relative;
    overflow: hidden;
}

.btn-shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.65s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.btn-shine-effect:hover::after {
    left: 125%;
}

/* Animated Liquid Silk / Wave Blue Button (Electric Sapphire & Cyan Silk) */
@keyframes liquidWaveFlow {
    0% {
        background-position: 0% 50%, 0% 0%;
    }
    50% {
        background-position: 100% 50%, 100% 100%;
    }
    100% {
        background-position: 0% 50%, 0% 0%;
    }
}

@keyframes silkWaves {
    0% {
        transform: translate3d(-15%, -15%, 0) rotate(12deg) scale(1.1);
    }
    50% {
        transform: translate3d(12%, 12%, 0) rotate(22deg) scale(1.28);
    }
    100% {
        transform: translate3d(-15%, -15%, 0) rotate(12deg) scale(1.1);
    }
}

.btn-liquid-blue,
.btn-liquid-purple {
    position: relative;
    background: linear-gradient(135deg, #0a1324 0%, #11234c 35%, #1e40af 65%, #0c172f 100%);
    background-size: 220% 220%;
    animation: liquidWaveFlow 6s ease-in-out infinite;
    overflow: hidden;
    color: #ffffff !important;
    box-shadow: 0 8px 30px -4px rgba(10, 25, 60, 0.8), 0 0 20px -2px rgba(30, 64, 175, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    isolation: isolate;
}

.btn-liquid-blue::before,
.btn-liquid-purple::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.4) 0%, rgba(17, 35, 76, 0.2) 45%, transparent 70%),
                repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 14px, transparent 14px, transparent 32px);
    filter: blur(8px);
    animation: silkWaves 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.btn-liquid-blue::after,
.btn-liquid-purple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.btn-liquid-blue > *,
.btn-liquid-purple > * {
    position: relative;
    z-index: 2;
}

.btn-liquid-blue:hover,
.btn-liquid-purple:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px -2px rgba(10, 25, 60, 0.95), 0 0 25px -1px rgba(59, 130, 246, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-liquid-blue:active,
.btn-liquid-purple:active {
    transform: translateY(0px) scale(0.98);
}

/* Smart Hide/Show Floating Navbar */
header {
    transition: top 0.75s cubic-bezier(0.22, 1, 0.36, 1), 
                padding 0.75s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.5s ease !important;
    will-change: top, padding, transform, opacity;
}

header.nav-hidden {
    transform: translateY(-150%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Floating Capsule Navbar Dimensions - matches the 72rem (1152px) content container exactly */
header {
    /* Padding is inherited from Tailwind px-4 sm:px-6 matching main container */
}

header.clay-nav,
header #mobile-menu,
#mobile-menu {
    max-width: 72rem !important; /* 1152px - přesně lícuje se začátkem a koncem sekce pod ním */
}

#mobile-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1) !important;
}

body.dark #mobile-menu,
body.dark-theme #mobile-menu {
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
}

header.clay-nav {
    border-radius: 20px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

@media (min-width: 640px) {
    header.clay-nav {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Footer Dimensions - matches the navbar start and end alignment exactly */
footer .max-w-6xl {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* Liquid Horizontal Color Wave Keyframe (No Rotation) */
@keyframes liquidTextFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animated Liquid Blue Brand Text ("traduj") — Crisp, No Glow */
.brand-text-blue {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 25%, #3b82f6 50%, #1d4ed8 75%, #60a5fa 90%, #ffffff 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: liquidTextFlow 4s ease-in-out infinite;
    filter: none !important;
    display: inline;
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* Polished Blue Logo — Crisp, No Glow */
.logo-blue-glow {
    filter: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .logo-blue-glow,
.logo-blue-glow:hover {
    filter: none !important;
    transform: scale(1.05);
}

/* ============================================================
   CLEAN MODERN LIGHT THEME STYLES (NON-CLAY)
   ============================================================ */

/* Modern Card (Clean White with Subtle Shadow & Crisp Border) */
.clay-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clay-card:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Clean 2D Modern Black Gradient Navbar */
header.clay-nav,
.clay-nav,
header .clay-nav {
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    outline: none !important;
}

/* Primary Solid Button (Midnight Navy) */
.clay-btn-blue {
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
}

.clay-btn-blue:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.clay-btn-blue:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Secondary White Button with Black Text (Rounded-xl shape) */
.clay-btn-white {
    background: #ffffff;
    color: #0f172a !important;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
}

.clay-btn-white:hover {
    background: #f8fafc;
    color: #000000 !important;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.clay-btn-white:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Modern Badge / Pill */
.clay-pill {
    background: #f1f5f9;
    color: #334155;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Featured Card with Subtle Blue Accent */
.clay-featured {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 30px -4px rgba(37, 99, 235, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clay-featured:hover {
    transform: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 30px -4px rgba(37, 99, 235, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Modern Inset / Data Box */
.clay-inset {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}

.clay-inset:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Icon Bubble */
.clay-icon-bubble {
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Filter Tabs (Rounded-lg shape) */
.filter-tab {
    background: #f8fafc;
    color: #475569;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.45rem 1.15rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filter-tab.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
    font-weight: 700;
}

/* ============================================================
   NEWS SECONDARY SUBNAV MENU (SMART DOCK UNDER MARKET CARDS)
   ============================================================ */
.news-subnav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.news-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.news-cat-tab:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.news-cat-tab.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: none !important;
}

.news-cat-tab.active i,
.news-cat-tab.active svg {
    color: #38bdf8 !important;
}

.news-cat-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6.5px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.07);
    color: #475569;
    transition: all 0.18s;
}

.news-cat-tab.active .news-cat-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ============================================================
   NAVBAR SUBCATEGORY DROPDOWNS (BULLETPROOF SEAMLESS HOVER)
   ============================================================ */
.group-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 2px;
    margin: -6px 0;
}

/* Nav Link Pill Styling & Hover State */
.group-nav-item > a {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem !important;
    border-radius: 0.75rem !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent !important;
    pointer-events: auto !important;
}

.group-nav-item:hover > a,
.group-nav-item:focus-within > a,
.group-nav-item.is-open > a,
.group-nav-item > a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* ============================================================
   STRIPE-STYLE UNIFIED SLIDING / MORPHING DROPDOWN
   ============================================================ */
.nav-unified-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    pointer-events: none;
    z-index: 60;
    padding-top: 22px; /* Distinct floating separation below navbar capsule */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97);
    transform-origin: top center;
    transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.16s ease;
}

.nav-unified-dropdown.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
}

/* Floating sliding/morphing card */
.nav-unified-card {
    position: relative;
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 40px -10px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 0.4rem;
    overflow: hidden;
    width: 235px;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    transform-origin: top center;
}

/* Invisible bridge so mouse never loses hover between navbar and card */
.nav-unified-card::before {
    content: '';
    position: absolute;
    top: -26px;
    left: -12px;
    right: -12px;
    height: 30px;
    background: transparent;
    z-index: 10;
}

/* Viewport containing all panes */
.nav-unified-viewport {
    position: relative;
    width: 100%;
}

.nav-unified-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.16s ease;
    width: 100%;
}

.nav-unified-pane.is-active {
    display: block;
    opacity: 1;
}

/* Legacy & Shared Compact Popover Card Fallback */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px) scale(0.97);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.16s ease;
    z-index: 60;
    padding-top: 24px; /* Distinct floating separation below the navbar capsule */
}

/* Invisible bridge so mouse never loses hover across the gap between trigger and dropdown */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -16px;
    right: -16px;
    height: 40px; /* Covers the entire gap safely */
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.group-nav-item:hover .nav-dropdown-menu,
.group-nav-item:focus-within .nav-dropdown-menu,
.group-nav-item.is-open .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0px) scale(1) !important;
}

.group-nav-item:hover .nav-dropdown-menu::before,
.group-nav-item.is-open .nav-dropdown-menu::before,
.nav-dropdown-menu:hover::before {
    pointer-events: auto !important;
}

/* Midnight Blue Compact Popover Card */
.nav-dropdown-card {
    background: linear-gradient(160deg, rgba(7, 12, 30, 0.98) 0%, rgba(13, 25, 58, 0.98) 55%, rgba(19, 37, 82, 0.98) 100%);
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 40px -10px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.35rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.8rem;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-dropdown-arrow {
    width: 0.75rem;
    height: 0.75rem;
    stroke-width: 2.25;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
    color: #93c5fd;
    flex-shrink: 0;
}

.nav-dropdown-item:hover .nav-dropdown-arrow {
    opacity: 1;
    transform: translateX(0);
}

.nav-dropdown-item:hover .nav-dropdown-desc {
    color: #cbd5e1;
}



/* ============================================================
   INTERACTIVE SHOWCASE CARDS (MIDNIGHT BLUE GRADIENT EFFECT)
   ============================================================ */
.showcase-card {
    background: linear-gradient(145deg, #070c1e 0%, #0d193a 35%, #132552 70%, #18336c 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.18),
        0 10px 25px -5px rgba(7, 12, 30, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Content stays cleanly above */
.showcase-card > * {
    position: relative;
    z-index: 2;
}

.showcase-card .showcase-title {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.showcase-card .showcase-desc {
    color: #cbd5e1 !important;
    transition: color 0.3s ease;
}

.showcase-card .showcase-btn {
    background: #ffffff !important;
    color: #070c1e !important;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
}

.showcase-card .showcase-btn i {
    color: #070c1e !important;
    transition: transform 0.25s ease;
}

/* Hover & Active Elevation */
.showcase-card:hover,
.showcase-card.is-active {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.32) !important;
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.3),
        0 20px 40px -8px rgba(7, 12, 30, 0.55),
        0 0 25px rgba(24, 51, 108, 0.28) !important;
}

.showcase-card:hover .showcase-btn,
.showcase-card.is-active .showcase-btn {
    background: #f8fafc !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   HERO TECH MODULE (DEEP BLUE/BLACK GRADIENT & GLASS FEATURE CARDS)
   ============================================================ */
.hero-tech-card {
    position: relative;
    background: #edf0f5 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.06), 0 4px 16px -2px rgba(15, 23, 42, 0.02) !important;
    border-radius: 32px !important;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hero-tech-card {
        border-radius: 24px !important;
    }
}

/* ============================================================
   HERO CLEAN & UNIQUE CATEGORY TILES (2D MINIMALIST STYLE - WHITE BG)
   ============================================================ */
.hero-cat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border-radius: 1.25rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    min-height: 104px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.hero-cat-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    transform: translateY(-3px) !important;
}

.hero-cat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cat-edukace:hover .hero-cat-icon {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.15);
}

.hero-cat-trhy:hover .hero-cat-icon {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
    box-shadow: 0 0 14px rgba(5, 150, 105, 0.15);
}

.hero-cat-aktuality:hover .hero-cat-icon {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.15);
}

.hero-cat-komunita:hover .hero-cat-icon {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
    box-shadow: 0 0 14px rgba(79, 70, 229, 0.15);
}

/* ============================================================
   TRADUJ CLUB VIP TERMINAL CARDS (MIDNIGHT BLUE GRADIENT ARCHITECTURE)
   ============================================================ */
.vip-club-card {
    background: linear-gradient(145deg, #070c1e 0%, #0d193a 35%, #132552 70%, #18336c 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.18),
        0 16px 36px -8px rgba(7, 12, 30, 0.45);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.vip-club-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.28),
        0 24px 48px -10px rgba(7, 12, 30, 0.65),
        0 0 35px rgba(24, 51, 108, 0.35) !important;
}

.vip-club-card.crypto-aura::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.vip-club-card.stocks-aura::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   TRADUJ CLUB FLOATING ORB ANIMATION
   ============================================================ */
@keyframes orbFloatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.5deg);
    }
}

.orb-float {
    animation: orbFloatSlow 6s ease-in-out infinite;
    will-change: transform;
}

/* ============================================================
   NOVINKY PAGE REDESIGN — IMPROVED UX v143
   ============================================================ */

/* Premium Market Price Ticker Cards */
.price-ticker-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.price-ticker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
}

/* Hero Split Card — horizontal layout */
.news-hero-split {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 6px 28px -4px rgba(37, 99, 235, 0.06), 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.news-hero-split:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 14px 36px -6px rgba(37, 99, 235, 0.11);
}

/* Compact News Article Card */
.news-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.news-article-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.09), 0 2px 8px rgba(0, 0, 0, 0.02);
}

.news-article-card .article-thumb {
    width: 170px;
    min-width: 170px;
    align-self: stretch;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    position: relative;
}

.news-article-card .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-article-card:hover .article-thumb img {
    transform: scale(1.06);
}

@media (max-width: 640px) {
    .news-article-card .article-thumb {
        width: 100%;
        min-width: unset;
        height: 180px;
    }
}

/* Natural sticky sidebar without inner scroll trap */
.news-sidebar-sticky {
    position: sticky;
    top: 5.5rem;
}

/* Category color pills for news */
.cat-pill { display: inline-flex; align-items: center; border-radius: 8px; font-size: 10px; font-weight: 700; padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.cat-pill-macro { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.cat-pill-crypto { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.cat-pill-forex  { color: #0e7490; background: #ecfeff; border: 1px solid #a5f3fc; }
.cat-pill-commodities { color: #78350f; background: #fef3c7; border: 1px solid #fcd34d; }
.cat-pill-signals { color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; }
.cat-pill-onchain { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.cat-pill-generic { color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0; }

/* Feed section label */
.feed-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 1.125rem;
}

/* Bleskové zprávy timeline */
.bleskovky-list { position: relative; }

.bleskovky-item {
    position: relative;
    padding-left: 1.625rem;
    padding-bottom: 1rem;
}

.bleskovky-item::after {
    content: '';
    position: absolute;
    left: 0.32rem;
    top: 1rem;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, #e2e8f0, transparent);
}

.bleskovky-item:last-child::after { display: none; }
.bleskovky-item:last-child { padding-bottom: 0; }

.bleskovky-dot {
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1.5px currentColor;
    z-index: 1;
}

/* News filter bar improved */
.news-filter-bar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #e8edf5;
    border-radius: 16px;
    box-shadow: 0 3px 14px -3px rgba(15, 23, 42, 0.05);
}

/* Macro Calendar */
.macro-cal-event {
    padding: 0.5rem 0.625rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    margin-bottom: 0.5rem;
    transition: background 0.18s;
}

.macro-cal-event:last-child { margin-bottom: 0; }
.macro-cal-event:hover { background: #f1f5f9; }

/* Most-read numbered list */
.most-read-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.18s;
}

.most-read-item:last-child { border-bottom: none; padding-bottom: 0; }
.most-read-item:hover .most-read-title { color: #2563eb; }

/* Slanted Pill Button (SVG Vector Shape for ultra-smooth continuous curves) */
.halo-slant-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 34px 0 24px;
    color: #0c1117 !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: none;
    background: transparent !important;
    cursor: pointer;
    box-sizing: border-box;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.halo-slant-btn:hover {
    transform: none !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12)) !important;
    opacity: 1 !important;
}

.halo-slant-btn svg.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: all 0.2s ease;
}

.halo-slant-btn:hover svg.btn-bg path {
    fill: #f8fafc;
}

.halo-slant-btn > span,
.halo-slant-btn > svg:not(.btn-bg),
.halo-slant-btn > i {
    position: relative;
    z-index: 2;
    color: #0c1117 !important;
}

.halo-slant-btn svg.icon,
.halo-slant-btn i,
.halo-slant-btn [data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: #0c1117 !important;
}

.halo-slant-btn:hover svg.icon,
.halo-slant-btn:hover i,
.halo-slant-btn:hover [data-lucide] {
    transform: translateX(3px);
}

.halo-slant-btn-sm {
    height: 42px;
    padding: 0 28px 0 20px;
    font-size: 14px;
}

/* Dark Pill Search Bar (Exact Reference Match) */
.nav-search-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 18px 0 16px;
    width: 210px;
    background: #2b2e35;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: text;
}

.nav-search-pill:hover {
    background: #343841;
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-search-pill:focus-within {
    width: 260px;
    background: #1e2025;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.nav-search-pill .search-icon {
    width: 18px;
    height: 18px;
    color: #9aa1ad;
    flex-shrink: 0;
    stroke-width: 1.8;
}

.nav-search-pill input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    width: 100%;
    font-family: inherit;
    letter-spacing: -0.01em;
    line-height: 1;
}

.nav-search-pill input::placeholder {
    color: #9aa1ad;
    font-weight: 400;
}

/* Hero Category Carousel */
.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(232, 228, 222, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel-dot:hover {
    background: rgba(232, 228, 222, 0.6);
}

.hero-carousel-dot.active {
    width: 24px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.hero-slide-fade {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide-fade.out {
    opacity: 0;
    transform: translateY(6px);
}

/* 21st.dev Black Gradient (Bloom Field Mesh) */
.hero-mesh-gradient {
    background-color: #111111;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)' opacity='0.075'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.024) 100%),
        radial-gradient(circle at 72.39% 58.91%, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.844) 19.38%, rgba(17, 17, 17, 0.5) 38.75%, rgba(17, 17, 17, 0.156) 58.13%, rgba(17, 17, 17, 0) 77.5%),
        radial-gradient(circle at 37.53% 79.97%, rgba(92, 92, 92, 1) 0%, rgba(92, 92, 92, 0.844) 13.25%, rgba(92, 92, 92, 0.5) 26.5%, rgba(92, 92, 92, 0.156) 39.75%, rgba(92, 92, 92, 0) 53%),
        radial-gradient(circle at 41.45% 25.53%, rgba(167, 167, 167, 1) 0%, rgba(167, 167, 167, 0.844) 17.1%, rgba(167, 167, 167, 0.5) 34.2%, rgba(167, 167, 167, 0.156) 51.3%, rgba(167, 167, 167, 0) 68.4%),
        radial-gradient(circle at 72.25% 83.19%, rgba(242, 242, 242, 1) 0%, rgba(242, 242, 242, 0.844) 10.63%, rgba(242, 242, 242, 0.5) 21.25%, rgba(242, 242, 242, 0.156) 31.88%, rgba(242, 242, 242, 0) 42.5%);
    background-size: 120px 120px, auto, auto, auto, auto, auto;
    background-blend-mode: overlay, normal, normal, normal, normal, normal;
}

/* Light Theme Enhancements */
body.light-theme .nav-search-pill,
.light-theme .nav-search-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

body.light-theme .nav-search-pill:hover,
.light-theme .nav-search-pill:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

body.light-theme .nav-search-pill:focus-within,
.light-theme .nav-search-pill:focus-within {
    background: #ffffff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

body.light-theme .nav-search-pill .search-icon,
.light-theme .nav-search-pill .search-icon {
    color: #64748b;
}

body.light-theme .nav-search-pill input,
.light-theme .nav-search-pill input {
    color: #0f172a;
}

body.light-theme .nav-search-pill input::placeholder,
.light-theme .nav-search-pill input::placeholder {
    color: #94a3b8;
}

body.light-theme .halo-slant-btn,
.light-theme .halo-slant-btn {
    color: #ffffff !important;
}

body.light-theme .halo-slant-btn > span,
.light-theme .halo-slant-btn > span,
body.light-theme .halo-slant-btn > svg:not(.btn-bg),
.light-theme .halo-slant-btn > svg:not(.btn-bg),
body.light-theme .halo-slant-btn > i,
.light-theme .halo-slant-btn > i,
body.light-theme .halo-slant-btn [data-lucide],
.light-theme .halo-slant-btn [data-lucide] {
    color: #ffffff !important;
}

body.light-theme .halo-slant-btn svg.btn-bg path,
.light-theme .halo-slant-btn svg.btn-bg path {
    fill: #0c1117 !important;
}

body.light-theme .halo-slant-btn:hover,
.light-theme .halo-slant-btn:hover {
    opacity: 1 !important;
}

body.light-theme .halo-slant-btn:hover svg.btn-bg path,
.light-theme .halo-slant-btn:hover svg.btn-bg path {
    fill: #0c1117 !important;
}

body.light-theme #hero-dots,
.light-theme #hero-dots {
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid #e2e8f0;
}

body.light-theme .hero-carousel-dot,
.light-theme .hero-carousel-dot {
    background: rgba(100, 116, 139, 0.35);
}

body.light-theme .hero-carousel-dot:hover,
.light-theme .hero-carousel-dot:hover {
    background: rgba(100, 116, 139, 0.7);
}

body.light-theme .hero-carousel-dot.active,
.light-theme .hero-carousel-dot.active {
    background: #0f172a;
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.25);
}

/* Hero Category Cards - 3D Visuals & Tactile Typography */
.hero-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 205px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.5rem;
    padding: 1.6rem 1.25rem 1.5rem;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.24s ease,
                border-color 0.24s ease;
}

.hero-categories-open .hero-cat-card {
    opacity: 1;
    transform: translateY(0);
}

.hero-categories-open .hero-cat-card:nth-child(1) { transition-delay: 0.02s; }
.hero-categories-open .hero-cat-card:nth-child(2) { transition-delay: 0.06s; }
.hero-categories-open .hero-cat-card:nth-child(3) { transition-delay: 0.10s; }
.hero-categories-open .hero-cat-card:nth-child(4) { transition-delay: 0.14s; }

.hero-cat-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 32px -10px rgba(15, 23, 42, 0.09), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
}

.cat-3d-visual {
    width: 100%;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.95rem;
    position: relative;
}

.cat-3d-img {
    height: 106px;
    width: 106px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.14));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.hero-cat-card:hover .cat-3d-img {
    transform: translateY(-6px) scale(1.10);
    filter: drop-shadow(0 22px 26px rgba(15, 23, 42, 0.18));
}

.cat-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.cat-3d-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(15, 23, 42, 0.12);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hero-cat-card:hover .cat-3d-title {
    color: #000000;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9), 0 3px 6px rgba(15, 23, 42, 0.18);
}

.cat-3d-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-cat-card:hover .cat-3d-arrow {
    background: #0f172a;
    color: #ffffff;
    transform: translateX(3px);
}

@media (max-width: 639px) {
    .hero-cat-card {
        min-height: 124px;
        padding: 0.85rem 0.6rem 0.75rem;
        border-radius: 1.15rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .cat-3d-visual {
        height: 60px;
        margin-bottom: 0.45rem;
    }
    .cat-3d-img {
        height: 54px;
        width: 54px;
        filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12));
    }
    .hero-cat-card:hover .cat-3d-img {
        transform: translateY(-2px) scale(1.05);
    }
    .cat-info {
        gap: 0.35rem;
    }
    .cat-3d-title {
        font-size: 0.92rem;
    }
    .cat-3d-arrow {
        width: 20px;
        height: 20px;
    }
    .cat-3d-arrow i,
    .cat-3d-arrow svg {
        width: 11px;
        height: 11px;
    }
}

#hero-intro-view {
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-back-pill {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-categories-open .hero-back-pill {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.18s;
}

/* 3D Discord Icon Upright Levitation with Volumetric 3D Perspective Tilt */
@keyframes discordIconFloat {
    0%, 100% {
        transform: perspective(800px) translate3d(0, 0px, 0) rotateX(12deg) rotateY(6deg) rotateZ(0deg);
    }
    25% {
        transform: perspective(800px) translate3d(2px, -8px, 8px) rotateX(8deg) rotateY(9deg) rotateZ(0deg);
    }
    50% {
        transform: perspective(800px) translate3d(0, -16px, 16px) rotateX(4deg) rotateY(7deg) rotateZ(0deg);
    }
    75% {
        transform: perspective(800px) translate3d(-2px, -8px, 8px) rotateX(9deg) rotateY(4deg) rotateZ(0deg);
    }
}

@keyframes discordGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 16px 26px rgba(0, 102, 238, 0.30)) drop-shadow(0 6px 14px rgba(15, 23, 42, 0.08));
    }
    50% {
        filter: drop-shadow(0 28px 46px rgba(0, 102, 238, 0.46)) drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
    }
}

.discord-hero-visual {
    animation: discordIconFloat 5.6s ease-in-out infinite, discordGlowPulse 5.6s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform, filter;
}
