.star-shop-page {
  padding-top: 88px;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%,rgba(128,64,220,.14),transparent 34%),#050505
}
.star-shop-hero {
  padding: 90px 0 55px;
  border-bottom: 1px solid rgba(255,255,255,.07)
}
.star-shop-hero h1 {
  font-size: clamp(2.8rem,7vw,6rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.055em
}
.star-shop-hero p {
  max-width: 760px;
  margin-top: 24px;
  color: #bbb;
  font-size: 1.12rem
}
.star-shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 34px;
  padding-top: 42px;
  padding-bottom: 140px
}
.constellation-list-panel {
  align-self: start;
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.035)
}
.constellation-list-panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #e8c864
}
.constellation-list {
  display: grid;
  gap: 9px;
  margin-top: 18px
}
.constellation-list button {
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: transparent;
  color: white;
  cursor: pointer
}
.constellation-list button.active {
  border-color: #b66cff;
  background: rgba(182,108,255,.12)
}
.star-shop-status {
  margin-bottom: 14px;
  color: #aaa
}
.constellation-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(182,108,255,.23);
  border-radius: 28px;
  background: radial-gradient(circle at center,rgba(89,39,142,.28),transparent 50%),linear-gradient(#04030a,#090611);
  box-shadow: 0 35px 100px rgba(0,0,0,.42)
}
.constellation-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#fff 1px,transparent 1px);
  background-size: 67px 67px;
  opacity: .13
}
.constellation-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 660px;
  overflow: visible
}
.constellation-image {
  opacity: .34;
  filter: drop-shadow(0 0 28px rgba(166,92,255,.3))
}
.constellation-line {
  stroke: rgba(166,92,255,.7);
  stroke-width: 2
}
.star-node {
  cursor: pointer
}
.star-node circle.halo {
  fill: rgba(182,108,255,.2)
}
.star-node circle.core {
  fill: #fff;
  stroke: #c590ff;
  stroke-width: 2
}
.star-node.available:hover circle.halo {
  fill: rgba(212,175,55,.38)
}
.star-node.sold {
  cursor:not-allowed;
  opacity: .38
}
.star-node text {
  fill: #fff;
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #050505;
  stroke-width: 4px;
  stroke-linejoin: round
}
.star-price {
  fill: #e8c864!important;
  font-size: 11px!important
}
.star-details {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px
}
.star-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.03)
}
.star-card h3 {
  font-size: 1rem
}
.star-card p {
  color: #aaa;
  margin-top: 6px
}
.star-card button {
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #d4af37;
  color: #080808;
  font-weight: 900;
  cursor: pointer
}
.star-card.sold {
  opacity: .5
}
@media(max-width:860px) {
  .star-shop-layout {
    grid-template-columns: 1fr
  }
  .constellation-list-panel {
    position: static
  }
  .constellation-list {
    display: flex;
    overflow: auto
  }
  .constellation-list button {
    min-width: 170px
  }
  .constellation-stage {
    min-height: 520px;
    padding: 20px
  }
}
@media(max-width:560px) {
  .star-shop-hero {
    padding: 65px 0 40px
  }
  .constellation-stage {
    min-height: 430px;
    padding: 12px;
    border-radius: 20px
  }
  .star-shop-layout {
    padding-left: 14px;
    padding-right: 14px
  }
  .star-node text {
    font-size: 11px
  }
  .star-price {
    font-size: 9px!important
  }
}
.star-card button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(212,175,55,.18);
  transition: .22s ease
}
.star-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(212,175,55,.28)
}
.star-add-icon {
  display: inline-flex;
  width: 20px;
  height: 20px
}
.star-add-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}
.star-card.focused {
  border-color: rgba(212,175,55,.72);
  box-shadow: 0 0 0 3px rgba(212,175,55,.08),0 18px 55px rgba(0,0,0,.3)
}
.star-node.focused circle.halo {
  fill: rgba(212,175,55,.55)
}
.star-node.focused circle.core {
  stroke: #f5df8d;
  stroke-width: 4
}

/* =========================================================
   CONSTELLATION D'ACHAT — ZOOM, DÉPLACEMENT ET CARTES FIXES
   ========================================================= */

.constellation-stage {
  padding: 0;
  user-select: none;
}

.constellation-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  cursor: grab;
  touch-action: none;
}

.constellation-viewport.is-dragging {
  cursor: grabbing;
}

.constellation-world {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.constellation-world .constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: visible;
}

.constellation-label-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

/*
 * Les boutons d'étoiles et leurs cartes sont placés dans ce calque.
 * Ils suivent la position projetée des étoiles, mais ne reçoivent
 * jamais le scale appliqué à .constellation-world.
 */
.star-hotspot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  transform: translate3d(0, 0, 0);
}

.star-hotspot:disabled {
  cursor: not-allowed;
}

.star-hotspot__halo,
.star-hotspot__core {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.star-hotspot__halo {
  width: 30px;
  height: 30px;
  background: rgba(182,108,255,.20);
  box-shadow: 0 0 22px rgba(182,108,255,.42);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.star-hotspot__core {
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #c590ff;
  box-shadow: 0 0 10px rgba(197,144,255,.95);
}

.star-hotspot__label {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 1px;
  width: max-content;
  max-width: 190px;
  padding: 5px 8px 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: rgba(4,3,10,.82);
  box-shadow: 0 8px 24px rgba(0,0,0,.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  text-align: left;
  line-height: 1.15;
  transform: translateY(-50%);
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.star-hotspot[data-label-side="right"] .star-hotspot__label {
  left: 14px;
}

.star-hotspot[data-label-side="left"] .star-hotspot__label {
  right: 14px;
  text-align: right;
}

.star-hotspot[data-label-vertical="above"] .star-hotspot__label {
  top: -11px;
  transform: translateY(-100%);
}

.star-hotspot[data-label-vertical="below"] .star-hotspot__label {
  top: 11px;
  transform: none;
}

.star-hotspot__label strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 2px 5px #000;
}

.star-hotspot__label small {
  display: block;
  color: #f1d36c;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 2px 5px #000;
}

.star-hotspot.available:hover .star-hotspot__halo,
.star-hotspot.available:focus-visible .star-hotspot__halo {
  background: rgba(212,175,55,.38);
  box-shadow: 0 0 28px rgba(212,175,55,.62);
  transform: translate(-50%, -50%) scale(1.18);
}

.star-hotspot.available:hover .star-hotspot__label,
.star-hotspot.available:focus-visible .star-hotspot__label,
.star-hotspot.focused .star-hotspot__label {
  border-color: rgba(212,175,55,.58);
  background: rgba(12,9,3,.94);
}

.star-hotspot:focus-visible {
  outline: none;
}

.star-hotspot.sold {
  opacity: .48;
}

.star-hotspot.sold .star-hotspot__label small {
  color: #aaa;
}

.constellation-navigation {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.constellation-zoom-controls {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(4,3,10,.82);
  box-shadow: 0 12px 35px rgba(0,0,0,.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.constellation-zoom-controls button,
.constellation-reset {
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.constellation-zoom-controls button {
  width: 48px;
  height: 46px;
  font-size: 1.55rem;
}

.constellation-zoom-controls button + button {
  border-top: 1px solid rgba(255,255,255,.12);
}

.constellation-zoom-controls button:hover,
.constellation-reset:hover {
  background: rgba(182,108,255,.15);
}

.constellation-zoom-controls button:disabled {
  opacity: .32;
  cursor: default;
}

.constellation-reset {
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(4,3,10,.82);
  box-shadow: 0 12px 35px rgba(0,0,0,.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

@media(max-width:560px) {
  .star-hotspot__halo {
    width: 26px;
    height: 26px;
  }

  .star-hotspot__label {
    max-width: 145px;
    padding: 4px 6px 5px;
  }

  .star-hotspot__label strong {
    font-size: 11px;
  }

  .star-hotspot__label small {
    font-size: 10px;
  }

  .constellation-navigation {
    top: 12px;
    right: 12px;
    bottom: 12px;
  }

  .constellation-zoom-controls button {
    width: 44px;
    height: 42px;
  }

  .constellation-reset {
    padding: 10px 16px;
  }
}
