
:root {
    --map-width: 2600px;
    --map-height: 2000px;
    --space-black: #020412;
    --space-panel: rgba(15, 20, 40, 0.75);
    --space-panel-strong: rgba(12, 16, 34, 0.92);
    --space-border: rgba(255, 255, 255, 0.16);
    --space-line: rgba(120, 180, 255, 0.25);
    --space-text: rgba(246, 248, 255, 0.96);
    --space-muted: rgba(193, 208, 255, 0.72);
    --space-soft: rgba(155, 177, 255, 0.48);
    --purple: #9d65ff;
    --red: #ff3d68;
    --mint: #5eead4;
    --gold: #fbbf24;
    --green: #34d399;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--space-text);
    background:
        radial-gradient(circle at 20% 20%, rgba(157, 101, 255, 0.22), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(94, 234, 212, 0.16), transparent 24%),
        radial-gradient(circle at 60% 70%, rgba(251, 191, 36, 0.12), transparent 22%),
        linear-gradient(180deg, #030617 0%, #020412 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

body::before {
    background:
        radial-gradient(circle at 16% 24%, rgba(157, 101, 255, 0.18), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(94, 234, 212, 0.12), transparent 24%),
        radial-gradient(circle at 72% 76%, rgba(52, 211, 153, 0.12), transparent 18%),
        radial-gradient(circle at 36% 82%, rgba(255, 61, 104, 0.08), transparent 16%);
    filter: blur(12px);
}

body::after {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px);
    background-size: 180px 180px, 240px 240px, 320px 320px;
    background-position: 0 0, 40px 80px, 120px 40px;
    opacity: 0.35;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(157, 101, 255, 0.45);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 10, 24, 0.95);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(157, 101, 255, 0.75), rgba(94, 234, 212, 0.75));
    border-radius: 999px;
}

.cosmos-shell {
    position: relative;
    min-height: 100vh;
}

.starfield-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.68;
    z-index: -2;
}

.nebula-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 22% 18%, rgba(157, 101, 255, 0.18), transparent 28%),
        radial-gradient(circle at 75% 20%, rgba(94, 234, 212, 0.12), transparent 25%),
        radial-gradient(circle at 58% 74%, rgba(251, 191, 36, 0.08), transparent 26%);
    filter: blur(18px);
}

.glass-panel {
    background: linear-gradient(180deg, rgba(15, 20, 40, 0.88), rgba(9, 13, 30, 0.74));
    border: 1px solid var(--space-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(216, 225, 255, 0.68);
}

.panel-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 238, 255, 0.80);
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.section-heading h2,
.hero-brand h1,
.page-toolbar h1,
.info-panel h2 {
    margin: 0;
    line-height: 1.05;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.hero-brand {
    padding: 14px 16px;
    border-radius: 20px;
}

.hero-brand h1 {
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy {
    margin: 10px 0 0;
    color: var(--space-muted);
    line-height: 1.6;
    font-size: 13px;
}

.home-main,
.page-main {
    position: relative;
    z-index: 1;
}

.hero-stage {
    position: relative;
    min-height: auto;
    padding: 12px 16px 24px;
}

.floating-panel {
    position: absolute;
    border-radius: 20px;
    z-index: 10;
}

.left-col {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    width: min(220px, calc(100vw - 24px));
}

.filter-panel {
    padding: 10px;
    border-radius: 18px;
}

.search-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 20px;
    z-index: 10;
}

.compass-panel {
    padding: 10px;
    border-radius: 18px;
}

.info-panel {
    position: absolute;
    right: 12px;
    bottom: 52px;
    width: min(280px, calc(50vw - 24px));
    padding: 12px;
    border-radius: 18px;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-panel-toggle {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 20, 40, 0.8);
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 11;
}

.info-panel-toggle:hover {
    background: rgba(157, 101, 255, 0.3);
    border-color: rgba(157, 101, 255, 0.5);
}

.info-panel.collapsed {
    transform: translateX(calc(100% - 40px));
    opacity: 0.9;
}

.info-panel.collapsed .panel-title,
.info-panel.collapsed .signal-galaxy,
.info-panel.collapsed .signal-summary,
.info-panel.collapsed .signal-stats,
.info-panel.collapsed .info-actions {
    opacity: 0;
    pointer-events: none;
}

.info-panel.collapsed h2 {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.info-panel.collapsed .info-panel-toggle {
    position: absolute;
    left: 8px;
    top: 8px;
}

.info-panel h2 {
    font-size: clamp(18px, 2.5vw, 28px);
    margin-bottom: 8px;
}

.signal-galaxy {
    margin: 0 0 6px;
    color: var(--space-soft);
    font-size: 12px;
}

.signal-summary {
    margin: 0;
    color: var(--space-muted);
    line-height: 1.6;
    font-size: 13px;
}

.signal-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.signal-stats span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-stats strong {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230, 236, 255, 0.56);
}

.signal-stats em {
    font-style: normal;
    font-weight: 600;
}

.info-actions,
.search-actions,
.compass-buttons,
.page-toolbar__actions,
.detail-actions {
    padding-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.star-search {
    width: 100%;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 9, 20, 0.68);
    color: var(--space-text);
    padding: 0 12px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.star-search:focus {
    border-color: rgba(157, 101, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(157, 101, 255, 0.15);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-height: 280px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(15, 20, 40, 0.96), rgba(9, 13, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.search-suggestions.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13px;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(157, 101, 255, 0.25);
}

.search-suggestion-item .suggestion-type {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(200, 210, 255, 0.8);
    white-space: nowrap;
}

.search-suggestion-item .suggestion-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-item .suggestion-galaxy {
    font-size: 11px;
    color: rgba(180, 190, 230, 0.7);
}

.action-button {
    position: relative;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    font-size: 13px;
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-button:active,
.action-button.is-pressed {
    transform: translateY(1px) scale(0.985);
}

.primary-button {
    background: linear-gradient(135deg, rgba(157, 101, 255, 0.92), rgba(94, 234, 212, 0.86));
    color: #fff;
    box-shadow: 0 12px 34px rgba(120, 108, 255, 0.3);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

.tertiary-button {
    background: rgba(7, 10, 24, 0.78);
    color: rgba(230, 236, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.16);
}

.stacked-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.cluster-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    border-radius: 12px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.cluster-toggle.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--galaxy-color) 34%, rgba(255,255,255,0.05)), rgba(255,255,255,0.06));
    border-color: color-mix(in srgb, var(--galaxy-color) 60%, rgba(255,255,255,0.12));
}

.cluster-toggle__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--galaxy-color);
    box-shadow: 0 0 14px var(--galaxy-color);
}

.galaxy-viewport {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 46%),
        linear-gradient(180deg, rgba(3, 6, 18, 0.46), rgba(2, 4, 18, 0.86));
    cursor: grab;
    z-index: 1;
}

.galaxy-viewport.is-dragging {
    cursor: grabbing;
}

.galaxy-map {
    position: absolute;
    top: calc(50% - (var(--map-height) / 2));
    left: calc(50% - (var(--map-width) / 2));
    width: var(--map-width);
    height: var(--map-height);
    transform-origin: 50% 50%;
    transition: transform 0.8s cubic-bezier(0.18, 0.78, 0.16, 1);
}

.universe-origin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(157, 101, 255, 0.4) 22%, rgba(94, 234, 212, 0.08) 52%, transparent 70%);
    filter: blur(0.4px);
    box-shadow: 0 0 90px rgba(157, 101, 255, 0.48), 0 0 160px rgba(94, 234, 212, 0.2);
    opacity: 0;
    animation: originBirth 1.4s ease-out 0.2s forwards;
}

@keyframes originBirth {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); filter: blur(20px); }
    40% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.4); filter: blur(6px); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(0.95); filter: blur(1px); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0.4px); }
}

.galaxy-layer {
    position: absolute;
    inset: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.galaxy-layer.is-hidden {
    opacity: 0.08;
}

.galaxy-core {
    position: absolute;
    left: calc(50% + (var(--gx) * 1px));
    top: calc(50% + (var(--gy) * 1px));
    transform: translate(-50%, -50%);
    min-width: 186px;
    min-height: 186px;
    border-radius: 50%;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.32), transparent 20%),
        radial-gradient(circle, color-mix(in srgb, var(--galaxy-color) 86%, #ffffff 8%) 0%, color-mix(in srgb, var(--galaxy-accent) 62%, rgba(255,255,255,0.08)) 42%, transparent 72%);
    box-shadow: 0 0 44px color-mix(in srgb, var(--galaxy-color) 36%, transparent), 0 0 120px color-mix(in srgb, var(--galaxy-color) 12%, transparent);
    opacity: 0;
    animation: galaxyCoreBirth 0.9s ease-out var(--birth-delay, 0.4s) forwards;
    cursor: pointer;
    z-index: 4;
}

@keyframes galaxyCoreBirth {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    60% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.galaxy-core__halo {
    position: absolute;
    inset: -24px;
    border: 1px solid color-mix(in srgb, var(--galaxy-color) 40%, rgba(255,255,255,0.08));
    border-radius: 50%;
    opacity: 0.58;
}

.galaxy-core__title {
    position: absolute;
    inset: auto 18px 28px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.cluster-label {
    position: absolute;
    left: calc(50% + (var(--x) * 1px));
    top: calc(50% + (var(--y) * 1px));
    transform: translate(-50%, -220%);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cluster-color);
    background: rgba(3, 7, 20, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.5s ease-out var(--birth-delay, 1s) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.star-node {
    position: absolute;
    left: calc(50% + (var(--x) * 1px));
    top: calc(50% + (var(--y) * 1px));
    width: var(--star-size);
    height: var(--star-size);
    padding: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    border: none;
    opacity: 0;
    animation: starBirth 0.55s ease-out var(--birth-delay, 0.8s) forwards;
    cursor: pointer;
    z-index: 5;
}

@keyframes starBirth {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.star-node__core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.95), color-mix(in srgb, var(--star-color) 72%, #ffffff 18%) 34%, color-mix(in srgb, var(--star-color) 92%, #091120 0%) 62%, rgba(0,0,0,0) 100%);
    box-shadow: 0 0 calc(24px * var(--star-glow)) color-mix(in srgb, var(--star-color) 72%, transparent), 0 0 calc(70px * var(--star-glow)) color-mix(in srgb, var(--star-color) 30%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.star-node__core::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,0.18) 8%, transparent 16%);
    animation: starSpin var(--spin-duration, 18s) linear infinite;
    pointer-events: none;
}

@keyframes starSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.star-node__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 1.2;
    color: rgba(244, 248, 255, 0.92);
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.82);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.star-node:hover .star-node__label,
.star-node.active .star-node__label {
    opacity: 1;
}

.star-node:hover .star-node__core,
.star-node.active .star-node__core,
.star-node.is-featured .star-node__core {
    transform: scale(1.16);
}

.star-node:hover .star-node__core::after,
.star-node.active .star-node__core::after {
    animation-play-state: paused;
}

.star-node.is-featured::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--star-color) 52%, rgba(255,255,255,0.2));
    opacity: 0.74;
}

.orbit-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--star-color);
    box-shadow: 0 0 8px var(--star-color), 0 0 16px color-mix(in srgb, var(--star-color) 50%, transparent);
    top: 50%;
    left: 50%;
    margin: -2px 0 0 -2px;
    pointer-events: none;
    animation: orbitSpin var(--orbit-speed, 4s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
    opacity: 0;
    animation: orbitSpin var(--orbit-speed, 4s) linear infinite var(--orbit-delay, 0s), fadeIn 0.4s ease-out var(--birth-delay, 1.2s) forwards;
}

@keyframes orbitSpin {
    from {
        transform: rotate(var(--orbit-start, 0deg)) translateX(var(--orbit-radius, 26px));
        opacity: 0.7;
    }
    50% { opacity: 1; }
    to {
        transform: rotate(calc(var(--orbit-start, 0deg) + 360deg)) translateX(var(--orbit-radius, 26px));
        opacity: 0.7;
    }
}

.star-node.search-highlight .star-node__core {
    animation: searchPulse 0.5s ease-in-out infinite alternate !important;
    box-shadow: 0 0 40px color-mix(in srgb, var(--star-color) 90%, transparent), 0 0 90px color-mix(in srgb, var(--star-color) 50%, transparent) !important;
}

.star-node.search-highlight .star-node__core::after {
    animation: searchPulseSpin 0.5s linear infinite !important;
}

@keyframes searchPulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.35); filter: brightness(1.6); }
}

@keyframes searchPulseSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.star-node.search-dimmed {
    opacity: 0.12 !important;
    transition: opacity 0.3s ease !important;
}

.star-node.search-dimmed .star-node__core::after {
    animation-play-state: paused !important;
}

.star-river-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.star-river-svg line {
    stroke: rgba(120, 180, 255, 0.12);
    stroke-width: 1;
    stroke-linecap: round;
}

.star-river-svg line.river-core {
    stroke: rgba(120, 180, 255, 0.08);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
}

.jump-dock {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    width: min(960px, calc(100% - 24px));
    z-index: 10;
}

.jump-dock-handle {
    display: none;
}

.jump-dock-content {
    display: contents;
}

.jump-dock-header {
    display: none;
}

.jump-dock-close {
    display: none;
}

.jump-dock-buttons {
    display: contents;
}

.jump-pill {
    background: rgba(5, 8, 20, 0.72);
    border-color: color-mix(in srgb, var(--galaxy-color) 46%, rgba(255,255,255,0.12));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-stage__ad {
    margin-top: 16px;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cosmic-ad-slot {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cosmic-ad-slot #adv1,
.cosmic-ad-slot #adv2,
.cosmic-ad-slot #adv3 {
    width: 100%;
    max-width: 840px;
    padding: 16px 12px 8px !important;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15,20,40,0.82), rgba(8,11,24,0.82));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
}

.cosmic-toast {
    position: fixed;
    top: 28px;
    left: 50%;
    z-index: 30;
    transform: translateX(-50%) translateY(-8px);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(9, 12, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(245, 248, 255, 0.94);
    font-size: 13px;
    letter-spacing: 0.06em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cosmic-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.content-band {
    padding: 0 28px 68px;
}

.intro-band {
    margin-top: -32px;
}

.prose-panel,
.static-content-shell {
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 32px;
}

.prose-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
}

.prose-panel p {
    margin: 0;
    line-height: 1.85;
    color: var(--space-muted);
}

.signal-grid,
.related-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.signal-card,
.related-card {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 20, 40, 0.92), rgba(9, 13, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.signal-card__image-wrap,
.related-card img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.signal-card__image-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.92));
}

.signal-card__image,
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signal-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--signal-color) 50%, rgba(255,255,255,0.1));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.signal-card__body,
.related-card__body {
    padding: 18px;
}

.signal-card__eyebrow,
.related-card__body p {
    margin: 0 0 10px;
    color: var(--signal-color);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signal-card__title,
.related-card__body h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.2;
}

.signal-card__summary {
    margin: 0 0 16px;
    color: var(--space-muted);
    line-height: 1.7;
    min-height: 86px;
}

.signal-card__button,
.related-button {
    width: 100%;
}

.lane-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.lane-panel {
    border-radius: 28px;
    padding: 20px;
}

.lane-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.lane-panel__header p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.lane-panel__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lane-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.lane-card img {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    object-fit: cover;
}

.lane-card span {
    display: block;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.page-main {
    padding: 28px 28px 84px;
}

.page-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-radius: 30px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.page-toolbar h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
}

.detail-hero-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
    gap: 28px;
    border-radius: 32px;
    padding: 30px;
    margin: 22px auto;
    max-width: 1240px;
}

.detail-hero-panel__art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.planet-orbit {
    position: relative;
    width: min(420px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 26px;
    background:
        radial-gradient(circle, rgba(255,255,255,0.16), transparent 44%),
        radial-gradient(circle, color-mix(in srgb, var(--hero-color) 36%, transparent), transparent 72%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 80px color-mix(in srgb, var(--hero-color) 24%, transparent);
}

.planet-orbit::before,
.planet-orbit::after {
    content: '';
    position: absolute;
    inset: 6% 6%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
}

.planet-orbit::after {
    inset: 14% 14%;
    border-color: color-mix(in srgb, var(--hero-color) 42%, rgba(255,255,255,0.08));
}

.planet-orbit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 44px color-mix(in srgb, var(--hero-color) 36%, transparent);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}

.detail-tags span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.detail-copy p {
    margin: 0 0 14px;
    line-height: 1.82;
    color: var(--space-muted);
}

.portal-frame-shell {
    display: none;
    max-width: 1240px;
    margin: 0 auto 28px;
    border-radius: 30px;
    padding: 24px;
}

.portal-frame-shell.is-visible {
    display: block;
}

.portal-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(4, 6, 16, 0.88);
}

.portal-frame iframe {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 560px;
    border: 0;
}

.static-content {
    font-size: 15px;
    line-height: 1.82;
    color: var(--space-muted);
}

.static-content p,
.static-content ul,
.static-content ol {
    margin-top: 0;
    margin-bottom: 16px;
}

.static-content ul,
.static-content ol {
    padding-left: 20px;
}

.static-content strong {
    color: rgba(255,255,255,0.96);
}

.static-content a {
    color: #9d65ff;
}

.cosmic-footer {
    padding: 0 28px 34px;
}

.cosmic-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 24px 28px;
    background: linear-gradient(180deg, rgba(11, 15, 32, 0.94), rgba(7, 9, 22, 0.96));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow);
}

.cosmic-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
}

.cosmic-footer__links a {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.cosmic-footer__copyright {
    margin: 0;
    text-align: center;
    color: rgba(193, 208, 255, 0.66);
    font-size: 14px;
}

@media (max-width: 1180px) {
    .hero-stage {
        min-height: auto;
        padding-top: 9px;
        padding-bottom: 56px;
    }

    .left-col {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .left-col .hero-brand {
        width: 100%;
        flex: none;
    }

    .left-col .filter-panel,
    .left-col .compass-panel {
        flex: 1 1 auto;
        min-width: 200px;
    }

    .search-panel {
        position: static;
        width: 100%;
        margin-bottom: 16px;
    }

    .galaxy-viewport {
        height: 72vh;
        min-height: 560px;
        margin-bottom: 18px;
    }

    .info-panel {
        position: absolute;
        right: 8px;
        bottom: 56px;
        width: min(260px, calc(45vw - 16px));
        padding: 12px;
    }

    .jump-dock {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 6px;
        width: calc(100% - 24px);
        max-width: none;
        gap: 5px;
    }

    .hero-stage__ad {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        margin-bottom: 16px;
    }
}

@media (max-width: 920px) {
    .page-toolbar,
    .detail-hero-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .page-toolbar {
        align-items: stretch;
    }

    .search-row,
    .signal-stats {
        grid-template-columns: 1fr;
    }

    .portal-frame iframe {
        min-height: 420px;
        height: 58vh;
    }

    .search-suggestions {
        left: -10px;
        right: -10px;
        width: auto;
    }

    .lane-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .hero-stage,
    .content-band,
    .page-main,
    .cosmic-footer {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-brand h1 {
        font-size: clamp(22px, 7vw, 36px);
    }

    .hero-brand {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .hero-copy {
        display: none;
    }

    .filter-panel,
    .search-panel,
    .compass-panel,
    .info-panel,
    .page-toolbar,
    .detail-hero-panel,
    .prose-panel,
    .static-content-shell,
    .cosmic-footer__inner,
    .portal-frame-shell {
        border-radius: 20px;
        padding: 14px;
    }

    .galaxy-viewport {
        height: 62vh;
        min-height: 420px;
        border-radius: 22px;
    }

    .galaxy-map {
        --map-width: 2200px;
        --map-height: 1800px;
    }

    .star-node {
        cursor: pointer;
        touch-action: manipulation;
    }

    .star-node__label {
        display: none;
    }

    .cluster-label {
        font-size: 10px;
        padding: 5px 8px;
    }

    .galaxy-core {
        min-width: 120px;
        min-height: 120px;
    }

    .galaxy-core__title {
        font-size: 11px;
        inset: auto 10px 18px;
    }

    .stacked-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .cluster-toggle {
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 12px;
    }

    .panel-title {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .action-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .primary-button,
    .secondary-button,
    .tertiary-button {
        padding: 8px 13px;
        font-size: 12px;
    }

    .star-search {
        height: 38px;
        font-size: 13px;
        border-radius: 12px;
    }

    .search-input-wrap {
        width: 100%;
    }

    .search-suggestions {
        left: -12px;
        right: -12px;
        width: auto;
        max-height: 240px;
        border-radius: 12px;
        padding: 6px;
    }

    .search-suggestion-item {
        padding: 9px 10px;
        font-size: 12px;
        gap: 8px;
    }

    .suggestion-type {
        font-size: 9px;
        padding: 2px 6px;
    }

    .suggestion-galaxy {
        display: none;
    }

    .info-panel {
        right: 6px;
        bottom: 48px;
        width: calc(50vw - 12px);
        min-width: 160px;
        padding: 10px;
        border-radius: 16px;
    }

    .info-panel-toggle {
        display: flex;
    }

    .info-panel h2 {
        font-size: clamp(15px, 3.5vw, 22px);
        margin-bottom: 6px;
    }

    .signal-summary {
        font-size: 12px;
        line-height: 1.5;
    }

    .signal-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .signal-stats span {
        padding: 7px 8px;
        border-radius: 10px;
    }

    .signal-stats strong {
        font-size: 9px;
    }

    .info-actions {
        gap: 6px;
        flex-direction: column;
    }

    .info-actions button {
        width: 100%;
    }

    .jump-dock {
        left: 0;
        right: 0;
        transform: none;
        bottom: 0;
        width: 100%;
        gap: 0;
        justify-content: flex-start;
        flex-direction: column;
        pointer-events: none;
    }

    .jump-dock-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
        padding: 10px 16px 14px;
        background: linear-gradient(180deg, transparent, rgba(5, 8, 20, 0.95) 40%);
        border: none;
        border-radius: 0;
        pointer-events: auto;
        cursor: pointer;
    }

    .jump-dock-handle-bar {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .jump-dock-handle-text {
        font-size: 11px;
        color: rgba(200, 210, 255, 0.7);
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .jump-dock-content {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 70vh;
        background: linear-gradient(180deg, rgba(15, 20, 40, 0.98), rgba(9, 13, 30, 0.99));
        border-radius: 20px 20px 0 0;
        padding: 16px 20px 24px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: auto;
        z-index: 200;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    }

    .jump-dock-content.open {
        transform: translateY(0);
    }

    .jump-dock-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .jump-dock-title {
        font-size: 16px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
    }

    .jump-dock-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        cursor: pointer;
    }

    .jump-dock-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-y: auto;
        max-height: calc(70vh - 80px);
    }

    .jump-pill {
        padding: 12px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    .lane-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .lane-panel__header p {
        font-size: 15px;
    }

    .lane-card span {
        padding: 8px;
        font-size: 11px;
    }

    .signal-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .lane-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lane-panel {
        padding: 14px;
    }

    .lane-panel__header {
        margin-bottom: 12px;
    }

    .lane-panel__header p {
        font-size: 16px;
    }

    .lane-panel__cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .lane-card img {
        aspect-ratio: 1.1 / 1;
    }

    .lane-card span {
        padding: 8px;
        font-size: 11px;
    }

    .signal-card__image-wrap {
        aspect-ratio: 4 / 3;
    }

    .signal-card__image {
        height: 100%;
    }

    .signal-card__body {
        padding: 10px;
    }

    .signal-card__eyebrow {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .signal-card__title {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .signal-card__summary {
        font-size: 11px;
        line-height: 1.5;
        min-height: auto;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .signal-card__button {
        padding: 8px 10px;
        font-size: 11px;
    }

    .signal-card__title,
    .related-card__body h3 {
        font-size: 12px;
    }

    .related-card img {
        height: 70px;
    }

    .related-card__body {
        padding: 8px;
    }

    .related-card__body p {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .related-button {
        padding: 6px 8px;
        font-size: 10px;
    }

    .section-heading h2 {
        font-size: clamp(22px, 5vw, 34px);
    }

    .cosmic-toast {
        width: calc(100vw - 24px);
        text-align: center;
        font-size: 12px;
        padding: 10px 14px;
    }

    .portal-frame iframe {
        min-height: 280px;
        height: 44vh;
    }

    .planet-orbit {
        padding: 18px;
    }

    .detail-tags {
        gap: 6px;
        flex-wrap: wrap;
    }

    .detail-tags span {
        padding: 6px 10px;
        font-size: 11px;
    }

    .detail-copy p {
        font-size: 14px;
        line-height: 1.7;
    }

    .cosmic-footer__links {
        gap: 8px;
    }

    .cosmic-footer__links a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cosmic-footer__copyright {
        font-size: 12px;
    }

    .static-content {
        font-size: 14px;
    }
}
