/* Floating aurora dock + horizon footer */

.a59-dock {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px var(--space-container) 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--dock-h);
  padding: 0.55rem 0.7rem;
  border-radius: 28px;
  background: rgba(14, 20, 40, 0.78);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-bright);
}

.a59-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fog);
}

.a59-gem {
  position: relative;
  width: 42px;
  height: 46px;
  color: var(--mint);
  display: grid;
  place-items: center;
}

.a59-gem svg { width: 40px; height: 44px; }

.a59-gem em {
  position: absolute;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.a59-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.a59-word strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.a59-word small {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--iris);
  text-transform: uppercase;
}

.a59-constellation {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  position: relative;
}

.a59-constellation::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  z-index: 0;
}

.a59-star {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--mist);
}

.a59-star-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iris);
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.12);
}

.a59-star.is-active,
.a59-star:hover {
  color: var(--fog);
  background: rgba(94, 234, 212, 0.1);
}

.a59-star.is-active .a59-star-dot {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2), 0 0 12px var(--mint);
}

.a59-tools {
  display: flex;
  gap: 0.4rem;
}

.a59-tool {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fog);
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.a59-tool:hover,
.a59-tool.is-active,
.a59-tool[aria-expanded="true"] {
  border-color: var(--mint);
  color: var(--mint);
}

.a59-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--peach);
  color: #3b1d04;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.a59-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 14px;
}

.a59-hamburger i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.a59-search-bloom {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  padding: 0.15rem 0.2rem 0.35rem;
}

.a59-search-bloom[hidden] { display: none; }

.a59-search-bloom input {
  flex: 1;
  border: 0;
  background: rgba(5, 7, 13, 0.45);
  border-radius: var(--radius-full);
  padding: 0.8rem 1.1rem;
  outline: none;
}

.a59-search-bloom button {
  border: 0;
  border-radius: var(--radius-full);
  padding: 0 1.2rem;
  background: var(--mint);
  color: #04221c;
  font-weight: 800;
  cursor: pointer;
}

.a59-aisle-river {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.85rem var(--space-container) 0.2rem;
  scrollbar-width: none;
}

.a59-aisle-river::-webkit-scrollbar { display: none; }

.a59-aisle-river a {
  flex: none;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px dashed var(--glass-border);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.a59-aisle-river a.is-active,
.a59-aisle-river a:hover {
  border-style: solid;
  border-color: var(--iris);
  color: var(--fog);
  background: rgba(196, 181, 253, 0.1);
}

.a59-sheet[hidden] { display: none; }

.a59-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(8px);
}

.a59-sheet-glass {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(360px, calc(100vw - 24px));
  border-radius: 24px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.1rem 1.3rem;
  box-shadow: var(--shadow-glass);
}

.a59-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.a59-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--fog);
  font-size: 1.4rem;
  cursor: pointer;
}

.a59-sheet nav {
  display: grid;
  gap: 0.25rem;
}

.a59-sheet nav a {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--fog);
}

.a59-sheet nav a.is-active,
.a59-sheet nav a:hover {
  background: rgba(94, 234, 212, 0.1);
}

.a59-horizon {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(18, 24, 48, 0.4), rgba(5, 7, 13, 0.9));
}

.a59-horizon-watermark {
  position: absolute;
  left: -2%;
  bottom: 12%;
  font-family: var(--display);
  font-size: clamp(4.5rem, 16vw, 11rem);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(186, 214, 255, 0.08);
  pointer-events: none;
  white-space: nowrap;
}

.a59-horizon-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.2rem;
  padding: 4rem 0 2.4rem;
}

.a59-horizon-lead h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.a59-horizon-lead p { color: var(--mist); max-width: 36ch; }

.a59-signal {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.4rem;
  max-width: 380px;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.a59-signal input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  outline: none;
  color: var(--fog);
}

.a59-signal input::placeholder {
  color: rgba(197, 208, 234, 0.72);
}

.a59-signal button {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: var(--iris);
  color: #1b1033;
  font-weight: 800;
  cursor: pointer;
}

.a59-horizon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-content: start;
}

.a59-horizon-chips a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  font-size: 0.82rem;
}

.a59-horizon-chips a:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.a59-horizon-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  color: var(--mist);
  font-size: 0.88rem;
}

.a59-horizon-meta a { color: var(--mint); text-decoration: none; }

.a59-horizon-bar {
  border-top: 1px solid var(--glass-border);
  padding: 0.9rem 0 1.2rem;
  font-size: 0.78rem;
  color: var(--slate);
}

.a59-horizon-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.a59-tabbar {
  display: none;
}

.a59-tool-menu { display: none; }

@media (max-width: 980px) {
  .a59-constellation { display: none; }
  .a59-tool-menu { display: grid; }
  .a59-dock { grid-template-columns: auto 1fr; }
  .a59-tools { justify-self: end; }
  .a59-horizon-inner { grid-template-columns: 1fr; padding-top: 2.6rem; }
  .a59-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    padding: 0.35rem;
  }
  .a59-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    font-size: 0.62rem;
    color: var(--mist);
    padding: 0.45rem 0;
    position: relative;
  }
  .a59-tabbar a.is-active { color: var(--mint); }
  .a59-tabbar em {
    position: absolute;
    top: 2px;
    right: 18%;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--peach);
    color: #3b1d04;
    font-size: 0.58rem;
    display: grid;
    place-items: center;
    font-style: normal;
  }
  body.a59-store { padding-bottom: 88px; }
}
