/* Diagonal Chrysalis navbar — polished L-frame UI */

.ng-shell { position: relative; }

.ng-nav-chrysalis .page-main {
  padding: 0 0 6.5rem;
}

.ae-orbit,
.ae-orbit-tools,
.ae-orbit-launch,
.ae-bento,
.ae-bento-launch,
.ae-vault,
.ae-halo,
.ae-deck,
.ae-brand-island,
.hm-nav,
.ng-keel,
.ng-island,
.ng-topbar,
.a86-menu-toggle,
.a86-mobile-drawer { display: none !important; }

:root,
.ng-nav-chrysalis {
  --ae-neon: #2EF2FF;
  --ae-mint: #7CFFB2;
  --ae-void: #050508;
  --ae-type-sm: 0.9rem;
  --ae-type-xs: 0.72rem;
  --ae-squircle: 1.5rem;
  --ae-core: 3.75rem;
  --ae-gap: 0.75rem;
  --ae-rail: 13.5rem;
  --ae-bar: 4.35rem;
  --ae-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ae-ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ae-nav-accent: var(--ae-neon);
  --ae-nav-void: var(--ae-void);
  --ae-nav-radius: var(--ae-squircle);
  --ae-nav-radius-pill: 999px;
  --ae-orbit-rail: 0px;
  --ae-bento-pad: 5.5rem;
  --ae-deck-h: 5.5rem;
  --ae-vault-w: 0px;
}

.ae-chrys-link,
.ae-chrys-tool,
.ae-chrys-core,
.ae-chrys-link strong,
.ae-chrys-link em,
.ae-chrys-tool strong,
.ae-chrys-tool em {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ae-chrys-link,
.ae-chrys-tool { color: #ffffff !important; }
.ae-chrys-link em,
.ae-chrys-tool em { color: #9EFFF0 !important; }
.ae-chrys-link:hover,
.ae-chrys-link:focus-visible,
.ae-chrys-link.is-active,
.ae-chrys-tool:hover,
.ae-chrys-tool:focus-visible { color: #ffffff !important; }
.ae-chrys-link:hover em,
.ae-chrys-link:focus-visible em,
.ae-chrys-link.is-active em,
.ae-chrys-tool:hover em,
.ae-chrys-tool:focus-visible em { color: #7CFFB2 !important; }
.ae-chrys-tool--bag strong,
.ae-chrys-tool--bag em,
.ae-chrys-core-mark,
.ae-chrys-seek button,
.ae-chrys-core-hint { color: #050508 !important; }
.ae-chrys-seek input { color: #ffffff !important; }

.ae-chrys-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3, 3, 5, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ae-ease), visibility 0.4s;
}
.ae-nav[data-open="true"] .ae-chrys-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ae-chrysalis {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.ae-chrys-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Core trigger ── */
.ae-chrys-core {
  position: fixed;
  z-index: 140;
  left: var(--ae-gap);
  bottom: var(--ae-gap);
  width: var(--ae-core);
  height: var(--ae-core);
  border: 0;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  color: #050508;
  background: linear-gradient(145deg, #7CFFB2 0%, #2EF2FF 100%);
  box-shadow:
    0 0 0 3px rgba(46, 242, 255, 0.22),
    0 14px 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(124, 255, 178, 0.3);
  transition:
    border-radius 0.45s var(--ae-ease-snap),
    transform 0.4s var(--ae-ease),
    background 0.3s,
    box-shadow 0.4s var(--ae-ease);
}
.ae-chrys-core:hover,
.ae-chrys-core:focus-visible {
  transform: scale(1.06);
  border-radius: 50%;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px rgba(124, 255, 178, 0.28),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 40px rgba(46, 242, 255, 0.4);
}
.ae-nav[data-open="true"] .ae-chrys-core {
  background: #F4F4F2;
  border-radius: 1rem;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.35);
}
.ae-chrys-core-mark {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #050508;
  line-height: 1;
}
.ae-chrys-core-hint {
  position: absolute;
  left: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #050508;
  background: #7CFFB2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s var(--ae-ease);
}
.ae-nav[data-open="true"] .ae-chrys-core-hint {
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  pointer-events: none;
}

/* ── Arms (L-frame) ── */
.ae-chrys-arm {
  position: absolute;
  z-index: 125;
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(8, 10, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  transition:
    opacity 0.35s var(--ae-ease),
    visibility 0.35s,
    transform 0.55s var(--ae-ease),
    width 0.55s var(--ae-ease),
    height 0.55s var(--ae-ease);
}

.ae-chrys-arm--y {
  left: var(--ae-gap);
  bottom: calc(var(--ae-core) + var(--ae-gap) + 0.45rem);
  width: var(--ae-rail);
  height: 0;
  max-height: min(62vh, 32rem);
  flex-direction: column;
  border-radius: var(--ae-squircle);
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom left;
}

.ae-chrys-arm--x {
  left: calc(var(--ae-core) + var(--ae-gap) + 0.45rem);
  bottom: var(--ae-gap);
  width: 0;
  max-width: min(70vw, 40rem);
  height: var(--ae-bar);
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--ae-squircle);
  transform: translateX(-18px) scale(0.96);
  transform-origin: bottom left;
}

.ae-nav[data-open="true"] .ae-chrys-arm {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ae-nav[data-open="true"] .ae-chrys-arm--y {
  height: min(62vh, 32rem);
  transform: translateY(0) scale(1);
}
.ae-nav[data-open="true"] .ae-chrys-arm--x {
  width: min(70vw, 40rem);
  transform: translateX(0) scale(1);
}

/* ── Links & tools ── */
.ae-chrys-link,
.ae-chrys-tool {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  flex: 0 0 auto;
  min-height: 3.15rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--font-ui);
  cursor: pointer;
  transition:
    background 0.25s var(--ae-ease),
    border-color 0.25s,
    transform 0.3s var(--ae-ease),
    box-shadow 0.3s var(--ae-ease);
}

.ae-chrys-arm--y .ae-chrys-link { width: 100%; }
.ae-chrys-arm--x .ae-chrys-tool { flex: 1 1 0; min-width: 4.5rem; }

.ae-chrys-link strong,
.ae-chrys-tool strong {
  display: block;
  font-size: var(--ae-type-sm, 0.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  line-height: 1.2;
}
.ae-chrys-link em,
.ae-chrys-tool em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--ae-type-xs, 0.72rem);
  font-weight: 500;
  color: #9EFFF0 !important;
  line-height: 1.25;
}

.ae-chrys-link:hover,
.ae-chrys-link:focus-visible,
.ae-chrys-tool:hover,
.ae-chrys-tool:focus-visible {
  background: rgba(46, 242, 255, 0.2);
  border-color: rgba(124, 255, 178, 0.7);
  box-shadow: 0 0 0 1px rgba(124, 255, 178, 0.25), 0 10px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  outline: none;
}
.ae-chrys-link:hover strong,
.ae-chrys-link:focus-visible strong,
.ae-chrys-tool:hover strong,
.ae-chrys-tool:focus-visible strong {
  color: #ffffff;
  letter-spacing: 0.02em;
}
.ae-chrys-link:hover em,
.ae-chrys-link:focus-visible em,
.ae-chrys-tool:hover em,
.ae-chrys-tool:focus-visible em {
  color: #7CFFB2;
}

.ae-chrys-link.is-active {
  background: linear-gradient(145deg, rgba(46, 242, 255, 0.35), rgba(124, 255, 178, 0.16));
  border-color: rgba(124, 255, 178, 0.8);
  box-shadow: inset 0 0 0 1px rgba(124, 255, 178, 0.35);
}
.ae-chrys-link.is-active em { color: #7CFFB2; }

.ae-chrys-tool--bag {
  background: linear-gradient(145deg, #7CFFB2, #2EF2FF);
  border-color: rgba(255, 255, 255, 0.4);
}
.ae-chrys-tool--bag strong,
.ae-chrys-tool--bag em { color: #050508 !important; }
.ae-chrys-tool--bag:hover,
.ae-chrys-tool--bag:focus-visible {
  background: linear-gradient(145deg, #B6FFD6, #7CFFB2);
  border-color: #fff;
}

.ae-chrys-seek {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  flex: 1.6 1 8rem;
  min-width: 8rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ae-chrys-seek:focus-within {
  box-shadow: 0 0 0 3px rgba(46, 242, 255, 0.4);
  border-color: rgba(46, 242, 255, 0.55);
}
.ae-chrys-seek input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffffff;
  min-width: 0;
  width: 100%;
}
.ae-chrys-seek input::placeholder {
  color: #9EFFF0;
  opacity: 0.9;
}
.ae-chrys-seek button {
  border: 0;
  padding: 0 0.95rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: #050508;
  background: #2EF2FF;
  transition: background 0.2s;
}
.ae-chrys-seek button:hover,
.ae-chrys-seek button:focus-visible {
  background: #7CFFB2;
  outline: none;
}

.ae-aisles {
  position: fixed;
  z-index: 145;
  left: calc(var(--ae-core) + var(--ae-gap) + 0.45rem);
  bottom: calc(var(--ae-bar) + var(--ae-gap) + 0.55rem);
  width: min(720px, calc(100vw - 6rem));
  pointer-events: none;
}
.ae-aisles .a86-mega {
  pointer-events: auto;
  display: none;
  background: rgba(8, 10, 14, 0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--ae-squircle);
  border: 1px solid rgba(46, 242, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  max-height: min(48vh, 380px);
  overflow: auto;
  padding: 1rem 0;
  color: #ffffff;
}
.ae-aisles .a86-mega.is-open { display: block; }
.a86-mega-panel { display: none; }
.a86-mega-panel.is-active { display: block; }
.a86-mega-inner { display: grid; gap: 1rem; }
.a86-mega-dept,
.a86-mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.a86-mega-col h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #ffffff;
}
.a86-mega-col h4 a { color: #ffffff !important; text-decoration: none; }
.a86-mega-col a {
  display: block;
  color: #9EFFF0 !important;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  text-decoration: none;
}
.a86-mega-col a:hover,
.a86-mega-col a:focus-visible {
  color: #7CFFB2 !important;
  outline: none;
}
.a86-mega-promo {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(46, 242, 255, 0.28), rgba(124, 255, 178, 0.12));
  text-decoration: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.a86-mega-promo small { display: block; color: #9EFFF0; font-size: 0.7rem; }
.a86-mega-promo strong { display: block; color: #ffffff; }
.a86-mega-promo span { color: #7CFFB2; font-weight: 600; }
.a86-mega-promo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 720px) {
  .ae-nav--chrysalis {
    --ae-rail: min(78vw, 17rem);
    --ae-bar: auto;
  }
  .ae-chrys-arm--x {
    left: var(--ae-gap);
    bottom: calc(var(--ae-core) + var(--ae-gap) + 0.45rem);
    height: auto;
    max-height: none;
    flex-wrap: wrap;
    max-width: calc(100vw - 1.5rem);
  }
  .ae-nav[data-open="true"] .ae-chrys-arm--x {
    width: calc(100vw - 1.5rem);
  }
  .ae-chrys-arm--y {
    bottom: calc(var(--ae-core) + 7.5rem);
    max-height: min(48vh, 22rem);
  }
  .ae-nav[data-open="true"] .ae-chrys-arm--y {
    height: min(48vh, 22rem);
  }
  .ae-chrys-arm--x .ae-chrys-tool {
    flex: 1 1 calc(33% - 0.4rem);
    min-width: 5rem;
  }
  .ae-chrys-seek {
    flex: 1 1 100%;
    min-height: 2.85rem;
  }
  .ae-chrys-core-hint { display: none; }
  .ae-aisles {
    left: var(--ae-gap);
    width: calc(100vw - 1.5rem);
    bottom: calc(var(--ae-core) + 12rem);
  }
  .a86-mega-dept,
  .a86-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ae-chrys-core,
  .ae-chrys-arm,
  .ae-chrys-link,
  .ae-chrys-tool { transition: none; }
}
