/* ==========================================================================
   CHOSENITE.COM — "THE LIGHT IN THE VOID" SOLAR ORBITAL & CHATBOT STYLES
   ========================================================================== */

.hub-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   MINIMALIST SPACE HEADER
   ========================================================================== */

.hub-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(3, 3, 8, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hub-brand__sun-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #FDE68A 55%, #F59E0B 100%);
  box-shadow: 0 0 16px rgba(254, 240, 184, 0.9), 0 0 32px rgba(245, 196, 81, 0.45);
}

.hub-brand__name {
  font-family: var(--font-scifi);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFDF7;
}

.bag-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(254, 240, 184, 0.26);
  background: rgba(10, 13, 25, 0.65);
  color: var(--ink-primary);
  font-family: var(--font-scifi);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: all var(--dur-fast);
}

.bag-trigger:hover {
  border-color: #FFFDF7;
  box-shadow: 0 0 20px rgba(245, 196, 81, 0.28);
}

.bag-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

/* ==========================================================================
   HERO TITLE — "WELCOME TO CHOSEN"
   ========================================================================== */

.void-hero {
  padding: var(--fib-5) 0 var(--fib-7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.void-hero__header {
  text-align: center;
  margin-bottom: 10px;
  padding: 0 var(--fib-3);
}

.void-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(254, 240, 184, 0.72);
  margin-bottom: 12px;
}

.void-hero__title {
  font-family: var(--font-scifi);
  font-size: clamp(1.55rem, 4.1vw, 3.15rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  padding-left: 0.26em; /* Visually center wide letter-spacing */
  text-transform: uppercase;
  color: #FFFDF9;
  text-shadow:
    0 0 22px rgba(255, 250, 225, 0.55),
    0 0 58px rgba(245, 196, 81, 0.28);
  line-height: 1.2;
}

.void-hero__subtitle {
  margin-top: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

/* ==========================================================================
   SOLAR ORBITAL DIRECTORY STAGE (CENTERPIECE)
   ========================================================================== */

.solar-stage {
  position: relative;
  width: min(920px, 96vw);
  height: clamp(410px, 58vh, 560px);
  margin: 0 auto;
  user-select: none;
}

/* Soft Solar Bloom Illuminating the Void */
.solar-stage__ambient {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 88vw);
  height: min(620px, 88vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 248, 214, 0.16) 0%,
    rgba(245, 185, 66, 0.08) 26%,
    rgba(30, 41, 82, 0.05) 54%,
    transparent 74%
  );
  pointer-events: none;
  z-index: 0;
}

/* Subtle Anamorphic Horizontal Solar Lens Flare */
.solar-lens-flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(680px, 90vw);
  height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(254, 240, 184, 0.12) 25%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(254, 240, 184, 0.12) 75%,
    transparent 100%
  );
  filter: blur(0.6px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

/* Orbital Track & Dynamic Solar Beam SVG */
.solar-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* THE CENTRAL GLOWING SUN */
.solar-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.solar-sun__sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 38%,
    #FFFFFF 0%,
    #FFF9DB 28%,
    #FCD34D 58%,
    #F59E0B 84%,
    #B45309 100%
  );
  box-shadow:
    0 0 28px 6px rgba(255, 251, 225, 0.82),
    0 0 68px 18px rgba(245, 185, 66, 0.48),
    0 0 135px 38px rgba(217, 119, 6, 0.24),
    inset 0 0 18px rgba(255, 255, 255, 0.9);
  animation: sunPulse 5.4s ease-in-out infinite;
}

.solar-sun__corona {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(254, 240, 184, 0.28);
  background: conic-gradient(
    from 0deg,
    rgba(254, 240, 184, 0.16),
    transparent 20%,
    rgba(245, 158, 11, 0.2) 45%,
    transparent 70%,
    rgba(254, 240, 184, 0.16) 100%
  );
  filter: blur(5px);
  animation: coronaSpin 28s linear infinite;
}

.solar-sun__word {
  position: relative;
  z-index: 2;
  font-family: var(--font-scifi);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  color: #1F1300;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

@keyframes sunPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 28px 6px rgba(255, 251, 225, 0.82),
      0 0 68px 18px rgba(245, 185, 66, 0.48),
      0 0 135px 38px rgba(217, 119, 6, 0.24);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 36px 9px rgba(255, 253, 235, 0.94),
      0 0 84px 24px rgba(245, 185, 66, 0.6),
      0 0 160px 48px rgba(217, 119, 6, 0.3);
  }
}

@keyframes coronaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   ORBITING ENTITY LOGOS (60FPS GPU TRANSLATE3D)
   ========================================================================== */

.orbit-planet {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 6;
  will-change: transform;
  outline: none;
}

.orbit-planet:hover,
.orbit-planet:focus-visible,
.orbit-planet.is-highlighted {
  z-index: 14;
}

.orbit-planet__anchor {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.orbit-planet__medallion {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 2px;
  background: radial-gradient(circle at 35% 28%, rgba(26, 32, 54, 0.95) 0%, rgba(5, 7, 15, 0.98) 100%);
  border: 1.5px solid rgba(254, 240, 184, 0.48);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(245, 196, 81, 0.18),
    inset 0 1px 4px rgba(255, 255, 255, 0.25);
  transition: transform 320ms var(--ease-royal),
              border-color 320ms var(--ease-royal),
              box-shadow 320ms var(--ease-royal);
}

.orbit-planet__medallion::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.16) 0%, transparent 44%);
  pointer-events: none;
  z-index: 3;
}

/* Locked / Coming Soon Bubble State */
.orbit-planet--coming-soon .orbit-planet__anchor {
  cursor: not-allowed;
}

.orbit-planet--coming-soon .brand-logo-wrap {
  filter: brightness(0.46) saturate(0.75);
}

.orbit-planet__coming-soon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 92%;
  padding: 5px 4px;
  border-radius: var(--radius-pill);
  background: rgba(3, 4, 10, 0.88);
  border: 1px solid rgba(254, 240, 184, 0.65);
  backdrop-filter: blur(6px);
  font-family: var(--font-scifi);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFDF7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 14px rgba(245, 196, 81, 0.28);
  pointer-events: none;
}

/* Hover & Chatbot-Highlighted Radiant Halo + Scale(1.18) */
.orbit-planet:hover .orbit-planet__medallion,
.orbit-planet:focus-visible .orbit-planet__medallion,
.orbit-planet.is-highlighted .orbit-planet__medallion {
  transform: scale(1.18);
  border-color: #FFFDF7;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.9),
    0 0 32px 6px color-mix(in srgb, var(--entity-accent, #F5C451) 68%, transparent),
    0 0 56px 12px rgba(254, 240, 184, 0.36);
}

.orbit-planet--coming-soon:hover .orbit-planet__medallion,
.orbit-planet--coming-soon:focus-visible .orbit-planet__medallion {
  transform: scale(1.08);
  border-color: rgba(254, 240, 184, 0.65);
}

.orbit-planet.is-highlighted .orbit-planet__medallion {
  animation: beaconPulse 1.5s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% {
    transform: scale(1.16);
  }
  50% {
    transform: scale(1.24);
  }
}

/* Clean Minimal Label — Fades In Beneath Hovered or Highlighted Logo */
.orbit-planet__label {
  margin-top: 12px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 16, 0.88);
  border: 1px solid rgba(254, 240, 184, 0.42);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 240ms var(--ease-royal), transform 240ms var(--ease-royal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.orbit-planet:hover .orbit-planet__label,
.orbit-planet:focus-visible .orbit-planet__label,
.orbit-planet.is-highlighted .orbit-planet__label {
  opacity: 1;
  transform: translateY(0);
}

.orbit-planet__name {
  display: block;
  font-family: var(--font-scifi);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFDF7;
}

.orbit-planet__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-top: 2px;
}

/* Brand Logo Wrapper Shared Across Bubbles & Subpages */
.brand-logo-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.brand-logo-wrap--light {
  background: #FFFFFF;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.14);
  padding: 0;
}

.brand-logo-wrap--dark {
  background: radial-gradient(circle at 35% 30%, #151B30 0%, #05070F 88%);
  padding: 0;
}

.brand-logo-img,
.brand-logo-wrap > svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(var(--logo-scale, 1.2));
  transform-origin: center center;
}

.brand-logo-img--contain {
  object-fit: contain;
}

.brand-logo-img--cover {
  object-fit: cover;
}

/* Mobile Compact Orbital Scaling */
@media (max-width: 640px) {
  .solar-stage {
    height: 390px;
  }

  .solar-sun {
    width: 80px;
    height: 80px;
  }

  .solar-sun__word {
    font-size: 0.54rem;
  }

  .orbit-planet__medallion {
    width: 70px;
    height: 70px;
    padding: 2px;
  }

  .orbit-planet__coming-soon {
    font-size: 0.42rem;
    padding: 3px 2px;
  }

  /* Show subtle mini-name on touch screens so mobile users recognize every logo immediately */
  .orbit-planet__label {
    opacity: 0.92;
    transform: translateY(0);
    margin-top: 6px;
    padding: 3px 8px;
  }

  .orbit-planet__name {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .orbit-planet__sub {
    display: none;
  }
}

/* ==========================================================================
   GUIDED BUTTON / DECISION-TREE CHATBOT (DARK GLASSMORPHISM BELOW ORBIT)
   ========================================================================== */

.void-chatbot-wrap {
  width: min(760px, 92vw);
  margin: 18px auto 0;
  position: relative;
  z-index: 10;
}

.void-chatbot {
  border-radius: var(--radius-lg);
  background: rgba(7, 9, 19, 0.62);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(254, 240, 184, 0.26);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.85),
    0 0 42px rgba(245, 196, 81, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.void-chatbot__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.void-chatbot__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-scifi);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.void-chatbot__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFDF7;
  box-shadow: 0 0 10px #FDE68A;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.void-chatbot__controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.auto-redirect-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.auto-redirect-toggle input {
  accent-color: #F5C451;
  cursor: pointer;
}

.chat-reset-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--dur-fast);
}

.chat-reset-link:hover {
  color: var(--gold-bright);
}

.void-chatbot__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.chat-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.55;
  animation: chatFadeUp 260ms var(--ease-royal);
}

@keyframes chatFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--ink-primary);
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  align-self: flex-end;
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(254, 240, 184, 0.38);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  border-bottom-right-radius: 4px;
}

/* Glowing Quick-Reply Pill Buttons */
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 4px;
}

.chat-pill {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(14, 18, 34, 0.78);
  border: 1px solid rgba(254, 240, 184, 0.28);
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 220ms var(--ease-royal);
}

.chat-pill:hover {
  background: rgba(245, 196, 81, 0.16);
  border-color: #FFFDF7;
  color: #FFFDF7;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(245, 196, 81, 0.28);
}

.chat-pill--accent {
  border-color: rgba(167, 139, 250, 0.45);
  color: #E9D5FF;
}

.chat-pill--accent:hover {
  background: rgba(167, 139, 250, 0.18);
  border-color: #F3E8FF;
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.32);
}

/* Match Result Card Inside Chat */
.chat-match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.12), rgba(10, 14, 28, 0.88));
  border: 1px solid rgba(254, 240, 184, 0.46);
  box-shadow: 0 0 32px rgba(245, 196, 81, 0.14);
  animation: chatFadeUp 300ms var(--ease-royal);
}

.chat-match-card__info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 220px;
}

.chat-match-card__crest {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid #FFFDF7;
  background: #060812;
  flex-shrink: 0;
}

.chat-match-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Minimal Space Footer */
.hub-footer-minimal {
  margin-top: auto;
  padding: var(--fib-5) 0 var(--fib-4);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
