@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand_semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains_mono_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains_mono_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains_mono_semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/jetbrains_mono_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #030304;
    color: #F8FAFC;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

body {
    height: 100dvh;
}

#wasm-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #030304;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(247, 147, 26, 0.08) 0%, transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px, 36px 36px;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.splash-status-text {
    margin-top: 28px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.72);
    letter-spacing: 0.02em;
    text-align: center;
    min-height: 20px;
    transition: opacity 0.3s ease;
    text-wrap: balance;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

.splash-error-card {
    margin-top: 28px;
    padding: 26px 32px 30px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(9, 13, 22, 0.98) 100%);
    border: 1px solid rgba(247, 147, 26, 0.32);
    box-shadow: 
        0 24px 56px -12px rgba(0, 0, 0, 0.85),
        0 0 28px rgba(247, 147, 26, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 440px;
    width: calc(100% - 48px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 100001;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: splash-error-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splash-error-appear {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.splash-error-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.28);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #F7931A;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.splash-error-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #F7931A;
    box-shadow: 0 0 8px #F7931A;
    animation: splash-badge-pulse 2s infinite ease-in-out;
}

@keyframes splash-badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

.splash-error-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.015em;
    line-height: 1.35;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

.splash-error-desc {
    margin: 0;
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.6;
    text-wrap: balance;
    max-width: 360px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

.splash-reload-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 156px;
    padding: 0 28px;
    background: linear-gradient(135deg, #EA580C 0%, #F7931A 100%);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(247, 147, 26, 0.7);
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 
        0 4px 18px rgba(247, 147, 26, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.18s ease,
                border-color 0.18s ease;
    touch-action: manipulation;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

.splash-reload-btn:hover {
    background: linear-gradient(135deg, #F7931A 0%, #FFD600 100%);
    border-color: rgba(255, 214, 0, 0.85);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 24px rgba(247, 147, 26, 0.55),
        0 0 16px rgba(255, 214, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.splash-reload-btn:hover .splash-reload-icon {
    transform: rotate(90deg);
}

.splash-reload-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.splash-reload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(247, 147, 26, 0.4);
}

.splash-reload-btn:focus-visible {
    outline: 2px solid #38BDF8;
    outline-offset: 3px;
}

.splash-reload-btn.is-loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.splash-reload-btn.is-loading .splash-reload-icon {
    animation: splash-reload-spin 0.8s linear infinite;
}

@keyframes splash-reload-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #wasm-loader {
        transition: none !important;
    }
    #wasm-loader.fade-out {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .splash-error-card {
        animation: none;
    }
    .splash-error-badge-dot {
        animation: none;
    }
    .splash-reload-btn {
        transition: none;
    }
    .splash-reload-icon {
        transition: none;
    }
    .splash-reload-btn.is-loading .splash-reload-icon {
        animation: none;
    }
}

#wasm-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(247, 147, 26, 0.42) 0%, rgba(255, 214, 0, 0.18) 35%, rgba(56, 189, 248, 0.12) 55%, transparent 72%);
    filter: blur(48px);
    pointer-events: none;
    animation: splash-ambient-pulse 2.6s ease-in-out infinite alternate;
}

.splash-logo-container {
    position: relative;
    width: 210px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 210px;
    height: 65px;
    display: block;
}

.splash-logo.base {
    filter: drop-shadow(0 0 16px rgba(247, 147, 26, 0.35));
    animation: splash-logo-breathe 2.6s ease-in-out infinite alternate;
}

.splash-logo.glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 0 8px #FFFFFF) drop-shadow(0 0 18px #FFD600) drop-shadow(0 0 32px #F7931A) drop-shadow(0 0 45px #38BDF8);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 50%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 50%, transparent 100%);
    -webkit-mask-size: 90px 100%;
    mask-size: 90px 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: splash-mask-sweep 2.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    pointer-events: none;
}

.splash-scanner-blade {
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 0;
    width: 0px;
    pointer-events: none;
    animation: splash-blade-sweep 2.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

.laser-core-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: #FFFFFF;
    border-radius: 999px;
    box-shadow: 
        0 0 4px #FFFFFF,
        0 0 10px #FFD600,
        0 0 22px #F7931A,
        0 0 38px rgba(247, 147, 26, 0.95),
        0 0 55px rgba(56, 189, 248, 0.7);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.laser-flare-center {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 48px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.98) 0%, rgba(255, 214, 0, 0.7) 35%, rgba(56, 189, 248, 0.4) 60%, transparent 80%);
    filter: blur(2px);
}

@keyframes splash-ambient-pulse {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.18);
    }
}

@keyframes splash-blade-sweep {
    0% {
        transform: translateX(-45px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    72% {
        transform: translateX(250px);
        opacity: 1;
    }
    78% {
        transform: translateX(265px);
        opacity: 0;
    }
    100% {
        transform: translateX(265px);
        opacity: 0;
    }
}

@keyframes splash-mask-sweep {
    0% {
        -webkit-mask-position: -90px 0;
        mask-position: -90px 0;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    72% {
        -webkit-mask-position: 205px 0;
        mask-position: 205px 0;
        opacity: 1;
    }
    78% {
        -webkit-mask-position: 220px 0;
        mask-position: 220px 0;
        opacity: 0;
    }
    100% {
        -webkit-mask-position: 220px 0;
        mask-position: 220px 0;
        opacity: 0;
    }
}

@keyframes splash-logo-breathe {
    0% {
        transform: scale(0.985);
        filter: drop-shadow(0 0 12px rgba(247, 147, 26, 0.3));
    }
    100% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 22px rgba(247, 147, 26, 0.6)) drop-shadow(0 0 35px rgba(255, 214, 0, 0.25));
    }
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #07080A;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F7931A;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

@keyframes valyrixRadarEcho {
    0% {
        transform: scale(0.2);
        opacity: 0.9;
    }
    60% {
        opacity: 0.5;
    }
    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

@keyframes valyrixOrbitRotate {
    0% {
        transform: rotate(-24deg) rotateZ(0deg);
    }
    100% {
        transform: rotate(-24deg) rotateZ(360deg);
    }
}

@keyframes valyrixLaserBar {
    0% {
        left: -40%;
    }
    50% {
        left: 95%;
    }
    100% {
        left: -40%;
    }
}

@keyframes valyrixPulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

@keyframes valyrixBlipPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.6);
        opacity: 0.4;
    }
}

.valyrix-radar-sweep {
    animation: valyrixRadarSweep 2.2s linear infinite;
    transform-origin: center center;
}

.valyrix-radar-echo {
    animation: valyrixRadarEcho 2.0s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.valyrix-orbit-ring {
    animation: valyrixOrbitRotate 12s linear infinite;
    transform-origin: center center;
}

.valyrix-laser-bar {
    animation: valyrixLaserBar 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.valyrix-pulse-dot {
    animation: valyrixPulseDot 1.4s ease-in-out infinite;
}

.valyrix-blip {
    animation: valyrixBlipPulse 1.8s ease-in-out infinite;
}

@keyframes valyrixDropdownAppear {
    0% {
        opacity: 0;
        transform: scale(0.72) translateY(-4px);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes valyrixDropdownAppearUp {
    0% {
        opacity: 0;
        transform: scale(0.72) translateY(4px);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes valyrixDropdownDisappear {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-4px);
    }
}

@keyframes valyrixDropdownDisappearUp {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(4px);
    }
}

@keyframes valyrixItemAppear {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes valyrixBackdropFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes valyrixBackdropFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.valyrix-dd-item {
    position: relative;
    overflow: hidden;
    border-radius: 9px !important;
    transition: background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.08s ease;
    animation: valyrixItemAppear 0.15s cubic-bezier(0.12, 0.96, 0.24, 1) both;
}

.valyrix-dd-item > * {
    position: relative;
    z-index: 1;
}

/* Ambient cursor spotlight / radial glow */
.valyrix-dd-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        160px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 80%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.valyrix-dd-item:hover::before {
    opacity: 1;
}

.valyrix-dd-item[data-selected="true"]::before {
    background: radial-gradient(
        160px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(56, 189, 248, 0.22) 0%,
        rgba(56, 189, 248, 0.06) 60%,
        transparent 85%
    );
}

/* Expanding ripple wave on hover */
.valyrix-dd-item::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 45%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.valyrix-dd-item:hover::after {
    animation: valyrixHoverRipple 0.55s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

.valyrix-dd-footer {
    position: relative;
    overflow: hidden;
    border-radius: 9px !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.valyrix-dd-footer:active {
    transform: scale(0.985) !important;
}

.valyrix-dd-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.valyrix-dd-item[data-selected="true"]:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.40) !important;
}

.valyrix-dd-item:active {
    transform: scale(0.985) !important;
    background: rgba(255, 255, 255, 0.10) !important;
}

.valyrix-dd-item:focus-visible,
.valyrix-dd-item.valyrix-dd-focused {
    outline: none !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3) !important;
}

@keyframes valyrixHoverRipple {
    0% {
        transform: scale(0.5);
        opacity: 0.9;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        transform: scale(25);
        opacity: 0;
    }
}

.valyrix-click-ripple {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 2;
    transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
    @keyframes valyrixDropdownAppear {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes valyrixDropdownAppearUp {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes valyrixDropdownDisappear {
        from { opacity: 1; }
        to { opacity: 0; }
    }
    @keyframes valyrixDropdownDisappearUp {
        from { opacity: 1; }
        to { opacity: 0; }
    }
    .valyrix-dd-item {
        animation: none !important;
    }
    .valyrix-dd-item::after {
        animation: none !important;
        display: none !important;
    }
}

[id^="valyrix-dd-portal"] {
    border-radius: 14px !important;
    padding: 5px !important;
}

[id^="valyrix-dd-portal"]::-webkit-scrollbar {
    width: 6px;
}
[id^="valyrix-dd-portal"]::-webkit-scrollbar-track {
    background: transparent;
}
[id^="valyrix-dd-portal"]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 4px;
}
[id^="valyrix-dd-portal"]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Globe User Analytics Overlays & 3D Markers */
.valyrix-globe-left-stack {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: 236px;
    max-width: 236px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
    pointer-events: none;
    box-sizing: border-box;
}

.valyrix-globe-overlay-card {
    position: relative;
    background: rgba(10, 13, 20, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #F8FAFC;
    pointer-events: auto;
    box-sizing: border-box;
}

.valyrix-globe-card-top-left {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.valyrix-globe-card-bottom-left {
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100% - 185px);
    overflow-y: auto;
    padding: 2px 0;
}

.valyrix-globe-card-bottom-left::-webkit-scrollbar {
    width: 3px;
}
.valyrix-globe-card-bottom-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
}

/* Analytics card internal structure */
.valyrix-card-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #F7931A 0%, #38BDF8 100%);
}

.valyrix-card-header {
    padding: 10px 14px 0 14px;
}

.valyrix-card-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.valyrix-platform-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    flex-shrink: 0;
    box-sizing: border-box;
}

.valyrix-platform-tile svg {
    display: block;
    width: 12px;
    height: 12px;
}

.valyrix-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.valyrix-card-icon svg {
    display: block;
    width: 15px;
    height: 15px;
}

.valyrix-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valyrix-card-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #64748B;
    margin-bottom: 8px;
}

.valyrix-card-status-text {
    line-height: 1.25;
}

.valyrix-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.valyrix-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 14px;
}

.valyrix-card-stats {
    padding: 5px 14px 8px 14px;
    display: flex;
    flex-direction: column;
}

.valyrix-card-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.valyrix-card-stat-label {
    font-size: 9.5px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 54px;
    flex-shrink: 0;
}

.valyrix-stat-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.valyrix-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 10px;
    color: #94A3B8;
    white-space: nowrap;
}

.valyrix-stat-chip b {
    color: #CBD5E1;
    font-weight: 700;
}

/* Brand pill */
.valyrix-globe-brand-pill {
    display: none !important;
}

/* Feed card */
.valyrix-feed-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #475569;
    font-size: 11px;
}

.valyrix-feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.14s ease;
}

.valyrix-feed-item:hover,
.valyrix-feed-item.valyrix-feed-item-active {
    background: rgba(255, 255, 255, 0.08);
}

.valyrix-feed-item.valyrix-feed-item-active {
    box-shadow: inset 2px 0 0 #F7931A;
}

.valyrix-feed-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #07090E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valyrix-feed-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.valyrix-feed-name {
    font-size: 11px;
    font-weight: 700;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valyrix-feed-action {
    font-size: 10px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.valyrix-feed-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.valyrix-feed-flag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 1;
}

.valyrix-flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.valyrix-feed-time {
    font-size: 9px;
    color: #475569;
    white-space: nowrap;
}

/* Globe markers - ring-pulse style, no noisy dot ping */
.valyrix-globe-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.valyrix-globe-marker:hover {
    transform: translate(-50%, -100%) scale(1.15);
}

.valyrix-marker-avatar-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valyrix-marker-pin-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 4px;
    position: relative;
    z-index: 2;
    animation: valyrixPinPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes valyrixPinPulse {
    0% {
        box-shadow: 0 0 0 0 var(--pin-color, rgba(56, 189, 248, 0.7));
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.valyrix-marker-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: valyrixRingPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.valyrix-marker-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid;
    background: #07090E;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.valyrix-marker-label {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(203, 213, 225, 0.9);
    background: rgba(5, 8, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 2px 8px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Smart Hybrid Pill for 3D Globe Markers */
.valyrix-marker-pill {
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4.5px;
    font-size: 9.5px;
    line-height: 1.15;
    font-weight: 700;
    color: #F8FAFC;
    background: rgba(8, 12, 20, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    border-radius: 9999px;
    padding: 2.5px 8px;
    white-space: nowrap;
    letter-spacing: 0.25px;
    pointer-events: none;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.valyrix-globe-marker:hover .valyrix-marker-pill {
    background: rgba(12, 17, 28, 0.98);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85), 0 0 14px rgba(56, 189, 248, 0.25);
    transform: scale(1.06);
}

.valyrix-pill-user {
    color: #F8FAFC;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.valyrix-pill-sep {
    color: rgba(148, 163, 184, 0.5);
    font-size: 8px;
    user-select: none;
}

.valyrix-pill-loc {
    color: #38BDF8;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.valyrix-pill-loc-local {
    color: #F59E0B;
    font-weight: 600;
}

/* Profile modal */
.valyrix-profile-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(12, 16, 24, 0.97);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(247, 147, 26, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.96), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #F8FAFC;
    z-index: 100005;
    pointer-events: auto;
    width: 360px;
    max-width: min(390px, calc(100vw - 32px));
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    animation: valyrixModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 0 18px 0;
}

.valyrix-modal-accent-stripe {
    height: 2px;
    width: 100%;
    margin-bottom: 16px;
    background: linear-gradient(90deg, transparent, #EA580C 20%, #F7931A 50%, #FFD600 80%, transparent 100%);
}

.valyrix-profile-modal > *:not(.valyrix-modal-accent-stripe):not(.valyrix-modal-close-btn) {
    padding-left: 20px;
    padding-right: 20px;
}

.valyrix-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
    padding-right: 42px;
}

.valyrix-modal-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #07090E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.valyrix-modal-user-info {
    flex: 1;
    min-width: 0;
}

.valyrix-modal-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valyrix-modal-badges {
    margin-top: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.valyrix-modal-loc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 3px 9px;
    font-size: 10.5px;
    color: #94A3B8;
    font-weight: 600;
    white-space: nowrap;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valyrix-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.15s ease;
    line-height: 1;
    z-index: 2;
    padding: 0;
    outline: none;
}

.valyrix-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.valyrix-modal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 14px;
    margin-bottom: 12px;
}

.valyrix-modal-metric {
    background: rgba(255, 255, 255, 0.02);
    padding: 9px 6px;
    text-align: center;
}

.valyrix-modal-metric-label {
    font-size: 9px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    margin-bottom: 3px;
}

.valyrix-modal-metric-val {
    font-size: 13px;
    font-weight: 700;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valyrix-modal-detail-rows {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.valyrix-modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 11px;
}

.valyrix-modal-detail-label {
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 9.5px;
    flex-shrink: 0;
}

.valyrix-modal-detail-val {
    color: #CBD5E1;
    font-weight: 600;
    text-align: right;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.valyrix-modal-code {
    color: #38BDF8;
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Mono', monospace;
    font-size: 10px;
}

.valyrix-modal-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
}

.valyrix-modal-timeline-btn {
    background: linear-gradient(90deg, #EA580C 0%, #F7931A 100%);
    border: 1px solid #F7931A;
    color: #FFFFFF;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
}

.valyrix-modal-timeline-btn:hover {
    background: linear-gradient(90deg, #F7931A 0%, #FFD600 100%);
    border-color: #FFD600;
    box-shadow: 0 4px 16px rgba(247, 147, 26, 0.55);
    transform: translateY(-1px);
}

.valyrix-modal-timeline-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(234, 88, 12, 0.4);
}

@keyframes valyrixRingPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    60% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

@keyframes valyrixModalPop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.93); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Fullscreen Globe HUD & Overlays */
.valyrix-globe-fullscreen {
    border-radius: 0px !important;
}

.valyrix-globe-fullscreen .valyrix-globe-brand-pill {
    display: none !important;
}

.valyrix-globe-fullscreen .valyrix-globe-left-stack {
    top: 92px !important;
    left: 32px !important;
    bottom: 122px !important;
    width: 272px !important;
    max-width: 272px !important;
    z-index: 100001 !important;
}

.valyrix-hud-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 100000;
    box-sizing: border-box;
}

.valyrix-hud-header {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 10px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    gap: 16px;
    flex-wrap: nowrap;
}

.valyrix-hud-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.valyrix-hud-title {
    font-weight: 700;
    color: #F8FAFC;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.valyrix-hud-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.valyrix-hud-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.valyrix-hud-segmented {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 3px 4px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.valyrix-hud-segment-btn {
    border: none;
    background: transparent;
    color: #94A3B8;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.valyrix-hud-segment-btn:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
}

.valyrix-hud-segment-btn.active {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.18);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.valyrix-hud-autospin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.10);
    color: #10B981;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 11px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.valyrix-hud-autospin-toggle:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
}

.valyrix-hud-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.valyrix-hud-chip span {
    white-space: nowrap !important;
    display: inline-block;
}

.valyrix-hud-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 14px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.valyrix-hud-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.valyrix-hud-btn-primary {
    background: linear-gradient(135deg, #F7931A 0%, #EA580C 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 6px 16px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(247, 147, 26, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.valyrix-hud-btn-primary:hover {
    background: linear-gradient(135deg, #FFA733 0%, #F97316 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(247, 147, 26, 0.5);
}

.valyrix-hud-metrics-row {
    pointer-events: auto;
    display: flex;
    gap: 16px;
}

.valyrix-hud-metric-card {
    flex: 1;
    position: relative;
    background: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.valyrix-hud-metric-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.valyrix-hud-metric-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.valyrix-hud-metric-label {
    font-size: 10px;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.valyrix-hud-metric-val {
    font-size: 20px;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.valyrix-hud-metric-sub {
    font-size: 10.5px;
    color: #64748B;
    margin-top: 3px;
    font-weight: 500;
}

@media (max-width: 1023.98px) {
    .valyrix-hud-container {
        padding: 12px;
    }

    .valyrix-hud-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .valyrix-hud-title-wrap,
    .valyrix-hud-actions {
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
    }

    .valyrix-hud-metrics-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .valyrix-hud-metric-card {
        min-width: 0;
        padding: 10px 12px;
    }

    .valyrix-globe-fullscreen .valyrix-globe-left-stack {
        top: 132px !important;
        left: 12px !important;
        bottom: 200px !important;
        width: min(200px, calc(100% - 24px)) !important;
        max-width: calc(100% - 24px) !important;
    }
}
