/* XingHub Celestial: visual-only layer, scoped to observed layout roots. */
.xh-home, .xh-auth {
  --xh-ink: #f3f5f4;
  --xh-muted: #c1cbc9;
  --xh-accent: #70e2c4;
  position: relative;
  isolation: isolate;
  background: #090d10 !important;
  color: var(--xh-ink);
  letter-spacing: 0;
}
.xh-home > .pointer-events-none, .xh-auth > .absolute, .xh-auth > .pointer-events-none { display: none; }
.xh-cosmos {
  position: absolute;
  inset: 0 0 auto;
  height: var(--xh-sky-height, 720px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.xh-nebula {
  position: absolute;
  inset: -6%;
  background: url('/assets/xinghub-galaxy-20260925.webp') center / cover no-repeat;
  opacity: .8;
  transform-origin: 65% 40%;
  animation: xh-galaxy-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.xh-cosmos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 14, .36);
  pointer-events: none;
}
.xh-stars, .xh-meteors {
  position: absolute;
  height: var(--xh-sky-height, 720px);
  inset: 0 0 auto;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.xh-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: #e3f7f5;
  border-radius: 50%;
  box-shadow: 0 0 8px #ddf9f3;
  opacity: .75;
  animation: xh-starlight var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.xh-bright-star { background: #fff1c5; border-radius: 0; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%); }
.xh-meteor { position: absolute; left: var(--x); top: var(--y); width: 130px; height: 2px; opacity: 0; border-radius: 2px; background: linear-gradient(90deg, transparent, #9bdddf, #fff7d8); box-shadow: 0 0 8px #8edce440; animation: xh-shooting-star 10s linear infinite; animation-delay: var(--delay); }
.xh-meteor::after { content: ''; position: absolute; right: -1px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff9dd; box-shadow: 0 0 12px #fff3b9; }
@keyframes xh-galaxy-drift { from { transform: scale(1.02) translate(-1%, -1%); } to { transform: scale(1.15) translate(2%, 1%); } }
@keyframes xh-starlight { from { opacity: .24; transform: translate3d(0, 0, 0) scale(.65); } to { opacity: 1; transform: translate3d(10px, -9px, 0) scale(1.3); } }
@keyframes xh-shooting-star { 0% { opacity: 0; transform: translate3d(-100px, -40px, 0) rotate(25deg) scaleX(.2); } 4% { opacity: .85; } 16% { opacity: 0; transform: translate3d(440px, 220px, 0) rotate(25deg) scaleX(1); } 100% { opacity: 0; transform: translate3d(440px, 220px, 0) rotate(25deg) scaleX(1); } }
.xh-home header { position: relative; z-index: 4; padding: 22px 32px; border-bottom: 1px solid rgba(220,235,230,.12); background: rgba(8,13,16,.42); }
.xh-home header nav { max-width: 1240px; gap: 16px; }
.xh-home header nav > div:first-child { gap: 12px; }
.xh-nav-brand { color: #f4f6f5; font-size: 17px; font-weight: 650; white-space: nowrap; }
.xh-home header nav > div:first-child > div { width: 36px; height: 36px; border-radius: 8px; box-shadow: none; }
.xh-home header nav > div:last-child { gap: 12px; }
.xh-home header nav > div:last-child > a, .xh-home header nav > div:last-child > button,
.xh-home header nav > div:last-child > div > button { color: #e3ebe8 !important; }
.xh-home header nav > div:last-child > button,
.xh-home header nav > div:last-child > div > button { background: transparent !important; }
.xh-home header nav > div:last-child > button:hover,
.xh-home header nav > div:last-child > div > button:hover { background: #26382f !important; }
.xh-home header nav > div:last-child > a:last-child { border: 1px solid #65726e; padding: 8px 17px; border-radius: 6px; background: #14211f; }
.xh-home-main { position: relative; z-index: 2; padding: 0 !important; }
.xh-home-inner { max-width: none !important; }
.xh-hero {
  min-height: min(630px, calc(100svh - 155px));
  padding: 72px 32px 60px;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
}
.xh-hero-copy { flex: none !important; width: 100%; max-width: 850px; text-align: center !important; }
.xh-kicker { margin: 0 0 24px !important; color: #9ef0d9 !important; font-size: 11px !important; font-weight: 600; letter-spacing: 0; }
.xh-hero h1 { margin: 0 0 24px !important; color: #fff !important; font-size: 76px !important; line-height: 1.12; font-weight: 650; letter-spacing: 0; text-shadow: 0 3px 32px #0008; }
.xh-hero-copy > p:not(.xh-kicker) { max-width: 620px; margin: 0 auto 30px !important; font-size: 17px !important; line-height: 1.85; color: #e1e7e5 !important; text-wrap: pretty; }
.xh-hero-copy > div > a {
  min-height: 48px;
  padding: 12px 27px !important;
  border-radius: 6px !important;
  background: #8aefd3 !important;
  color: #0b3027 !important;
  box-shadow: 0 5px 20px #0004 !important;
  font-weight: 650;
  transition: background .2s, transform .2s;
}
.xh-hero-copy > div > a:hover { background: #b2f7e2 !important; transform: translateY(-2px); }
.xh-terminal { display: none !important; }
.xh-tags {
  margin: 0 !important;
  padding: 24px 20px;
  min-height: 82px;
  gap: 36px !important;
  border-top: 1px solid rgba(225,240,233,.16);
  border-bottom: 1px solid rgba(225,240,233,.16);
  background: rgba(7,13,16,.75);
}
.xh-tags > div { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; border-radius: 0 !important; }
.xh-tags span { color: #d7e3de !important; font-size: 13px !important; }
.xh-tags svg { color: #90dbc6 !important; }
.xh-features {
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 66px 32px;
  gap: 48px !important;
}
.xh-features > div { padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; backdrop-filter: none !important; box-shadow: none !important; }
.xh-features > div > div { width: 36px !important; height: 36px !important; border-radius: 6px !important; box-shadow: none !important; background-image: none !important; background-color: #183c35 !important; }
.xh-features > div:nth-child(2) > div { background-color: #38334b !important; }
.xh-features > div:nth-child(3) > div { background-color: #483d27 !important; }
.xh-features h3 { font-size: 18px !important; color: #ecf1ee !important; margin-bottom: 12px !important; }
.xh-features p { color: #aebeb7 !important; line-height: 1.85; }
.xh-providers-heading { padding: 28px 24px 0; margin-bottom: 28px !important; border-top: 1px solid #26352f; }
.xh-providers-heading h2 { font-size: 24px !important; color: #e5eee9 !important; }
.xh-providers-heading p { color: #b8c7c0 !important; }
.xh-providers { max-width: 1180px; margin: 0 auto 64px !important; padding: 0 24px; gap: 12px !important; }
.xh-providers > div { border: 1px solid #34443d !important; background: #101b17 !important; border-radius: 6px !important; box-shadow: none !important; }
.xh-providers > div > span { color: #dbe8e1 !important; }
.xh-providers > div > span:last-child { background: transparent !important; color: #9ac9b5 !important; }
.xh-home footer { background: #080f0c; border-color: #25352d !important; padding: 28px 24px !important; }
.xh-home footer p, .xh-home footer a { color: #9bac9f !important; }
.xh-credit { font-size: 10px; text-align: center; margin-top: 14px; }
.xh-support { font-size: 12px; text-align: center; margin-top: 16px; color: #b6d4c4 !important; }
.xh-home a:focus-visible, .xh-home button:focus-visible, .xh-auth a:focus-visible, .xh-auth button:focus-visible { outline: 2px solid #9ff4d8; outline-offset: 4px; }

.xh-auth { padding: 36px 20px !important; align-items: center; min-height: 100svh; overflow-y: auto; }
.xh-auth > .xh-cosmos, .xh-auth > .xh-stars, .xh-auth > .xh-meteors { height: 100%; }
.xh-auth .xh-nebula { background-position: 58% center; opacity: .6; }
.xh-auth-content { max-width: 440px !important; }
.xh-auth-brand { margin-bottom: 24px !important; }
.xh-auth-brand > div { width: 52px !important; height: 52px !important; border-radius: 8px !important; margin-bottom: 16px !important; box-shadow: 0 4px 22px #0005 !important; }
.xh-auth-brand h1 { background: none !important; -webkit-text-fill-color: #f1f6f2; color: #f1f6f2 !important; font-size: 30px !important; letter-spacing: 0; }
.xh-auth-brand p { color: #c6d4cc !important; line-height: 1.8; font-size: 12px !important; }
.xh-auth-card { border-radius: 8px !important; padding: 30px !important; background: #fafcfb !important; border: 1px solid #edf2ef !important; box-shadow: 0 18px 65px #0005 !important; backdrop-filter: none !important; color: #17231d; color-scheme: light; }
.xh-auth-card h2, .xh-auth-card label, .xh-auth-card .text-gray-900, .xh-auth-card .text-gray-700 { color: #182b22 !important; }
.xh-auth-card p, .xh-auth-card .text-gray-500, .xh-auth-card .text-gray-600, .xh-auth-card .text-gray-400 { color: #5b6a61 !important; }
.xh-auth-card input:not([type=checkbox]) { background: #fff !important; border-color: #cfdcd3 !important; color: #15291e !important; border-radius: 6px !important; min-height: 44px; font-size: 16px; }
.xh-auth-card input::placeholder { color: #849189 !important; }
.xh-auth-card button.btn-primary, .xh-auth-card button[type=submit] { border-radius: 6px !important; background: #147e65 !important; color: #fff !important; box-shadow: none !important; min-height: 44px; }
.xh-auth-card a { color: #08785d !important; }
.xh-auth-content > .mt-6 { color: #d7e4dc !important; }
.xh-auth-content > .mt-6 p { color: #d7e4dc !important; }
.xh-auth-content > .mt-6 a { color: #9bf0cf !important; }
.xh-auth-content > .mt-8 { color: #bac8bf !important; }
.xh-auth-card input[type=checkbox] { accent-color: #13795f; }

.xh-workspace > .bg-mesh-gradient { display: none; }
.xh-workspace { background-image: none !important; }
.xh-sidebar-brand { position: relative; isolation: isolate; border-bottom: 1px solid #293c34 !important; background: #101a16 !important; }
.xh-sidebar-brand::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url('/assets/xinghub-galaxy-20260925.webp') 75% 36% / 620px auto; opacity: .22; pointer-events: none; }
.xh-sidebar-brand .sidebar-brand-title { color: #f0f5f1 !important; }
.xh-sidebar-brand .sidebar-brand > .relative > span { color: #b9ccc0 !important; }
.xh-sidebar-brand .sidebar-brand > .relative > button { color: #c3dfcf !important; background: #15291fd9 !important; }
.xh-sidebar .sidebar-logo { border-radius: 7px !important; box-shadow: none !important; }
.xh-sidebar .sidebar-link { border-radius: 6px !important; }
.xh-sidebar .sidebar-link-active { box-shadow: inset 3px 0 #23a984; }
.xh-workspace > div.relative > header { border-top: 2px solid #208c71; }
.xh-workspace .card, .xh-workspace .card-glass { border-radius: 8px; }

.xh-console-sky { position: relative; isolation: isolate; height: 108px; overflow: hidden; background: #0a1216; border-bottom: 1px solid #ad95553b; }
.xh-console-sky .xh-cosmos, .xh-console-sky .xh-stars, .xh-console-sky .xh-meteors { height: 100%; }
.xh-console-sky .xh-nebula { background-position: 48% 43%; background-size: cover; opacity: .75; animation-duration: 20s; }
.xh-console-sky .xh-cosmos::after { background: rgba(5, 12, 15, .43); }
.xh-console-sky .xh-star { box-shadow: none; }
.xh-console-sky .xh-meteor { width: 70px; animation-duration: 12s; }
.xh-pendants { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.xh-pendant { position: absolute; top: 0; left: var(--x); width: var(--size); height: calc(var(--drop) + var(--size)); transform-origin: 50% 0; animation: xh-pendulum var(--duration) ease-in-out infinite alternate; animation-delay: var(--delay); }
.xh-pendant-thread { position: absolute; height: var(--drop); width: 1px; top: 0; left: 50%; background: #d7bb6ca6; }
.xh-pendant-thread::after { content: ''; position: absolute; bottom: 2px; left: -2px; width: 5px; height: 5px; border: 1px solid #eccf81; border-radius: 50%; }
.xh-pendant-star { position: absolute; top: var(--drop); width: var(--size); height: var(--size); background: #efd079; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%); animation: xh-golden-light 3.4s ease-in-out infinite alternate; animation-delay: var(--delay); }
.xh-pendant-star::after { content: ''; position: absolute; inset: 2px; background: #fff0b9; clip-path: polygon(50% 0, 50% 50%, 0 100%, 0 0); opacity: .9; }
@keyframes xh-pendulum { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
@keyframes xh-golden-light { from { opacity: .68; } to { opacity: 1; } }
.xh-motion-toggle { position: absolute; z-index: 5; right: 16px; top: calc(var(--xh-sky-height, 720px) - 47px); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #dbe5df5e; border-radius: 50%; background: #0b1519c9; color: #ecdfb7; font-size: 14px; line-height: 1; cursor: pointer; }
.xh-motion-toggle:hover { background: #324139; border-color: #e6cf87; }
.xh-motion-toggle:focus-visible { outline: 2px solid #eed492; outline-offset: 3px; }
.xh-motion-toggle:disabled { opacity: .55; cursor: default; }
.xh-auth > .xh-motion-toggle { position: fixed; top: auto; bottom: 14px; }
.xh-console-sky > .xh-motion-toggle { top: auto; bottom: 12px; right: 16px; }
.xh-still .xh-star, .xh-still .xh-nebula, .xh-still .xh-meteor, .xh-still .xh-pendant, .xh-still .xh-pendant-star { animation-play-state: paused; }

@media (min-width: 1600px) { .xh-hero { min-height: 650px; } }
@media (max-width: 767px) {
  .xh-home .xh-nebula { background-position: 61% top; }
  .xh-console-sky { height: 86px; }
  .xh-pendant:nth-child(even) { display: none; }
  .xh-console-sky .xh-pendant { --drop: 24px !important; }
  .xh-star:nth-child(n+29) { display: none; }
  .xh-home header { padding: 16px 18px; }
  .xh-home header nav > div:last-child { gap: 8px; }
  .xh-nav-brand { font-size: 15px; }
  .xh-hero { min-height: 500px; padding: 62px 22px 55px; }
  .xh-hero h1 { font-size: 52px !important; margin-bottom: 22px !important; }
  .xh-hero-copy > p:not(.xh-kicker) { font-size: 15px !important; line-height: 1.9; max-width: 390px; }
  .xh-kicker { font-size: 10px !important; margin-bottom: 22px !important; }
  .xh-tags { gap: 20px !important; padding: 22px 12px; }
  .xh-tags span { font-size: 12px !important; }
  .xh-tags > div { gap: 6px !important; }
  .xh-features { padding: 44px 26px; gap: 32px !important; }
  .xh-features > div + div { padding-top: 28px !important; border-top: 1px solid #26352f !important; }
  .xh-providers > div { padding: 10px 12px !important; }
  .xh-auth { padding: 24px 18px !important; }
  .xh-auth-card { padding: 26px 22px !important; }
  .xh-auth-brand p { max-width: 350px; margin: 0 auto; }
}
@media (max-width: 380px) {
  .xh-home header nav > div:last-child { gap: 4px; }
  .xh-home header nav > div:last-child > div:first-child { display: none; }
  .xh-home header nav > div:first-child { gap: 8px; }
  .xh-hero h1 { font-size: 44px !important; }
  .xh-tags { gap: 12px !important; }
}
@media (max-height: 500px) and (min-width: 768px) {
  .xh-home header { padding-top: 10px; padding-bottom: 10px; }
  .xh-hero { min-height: 0; padding: 20px 24px 22px; }
  .xh-hero h1 { font-size: 44px !important; margin-bottom: 12px !important; }
  .xh-kicker { margin-bottom: 12px !important; }
  .xh-hero-copy > p:not(.xh-kicker) { font-size: 15px !important; margin-bottom: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .xh-star, .xh-nebula, .xh-meteor, .xh-pendant, .xh-pendant-star { animation: none !important; }
  .xh-meteor { display: none; }
  .xh-home *, .xh-auth * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
