.ai-nav-body {
  min-height: 100vh;
  background: #020503;
  overflow: hidden;
}

.ai-nav-page {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #f4f8ef;
  background:
    radial-gradient(circle at 18% 14%, rgba(188, 255, 0, 0.18), transparent 27%),
    radial-gradient(circle at 88% 6%, rgba(46, 230, 199, 0.13), transparent 28%),
    linear-gradient(135deg, #020503 0%, #07100d 48%, #020304 100%);
}

.ai-nav-page::before {
  content: none;
}

.ai-nav-page::after {
  content: none !important;
}

.ai-nav-page .brand {
  min-height: 0;
}

.ai-nav-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  padding-top: 18px;
}

.ai-nav-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: calc(100vh - 112px);
  padding: 24px 18px 24px 20px;
  background: rgba(5, 12, 11, 0.82);
  border-right: 1px solid rgba(199, 255, 0, 0.16);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.ai-nav-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #f7ffe6;
  text-decoration: none;
}

.ai-nav-brand-mark,
.ai-tool-logo {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #091006;
  background:
    linear-gradient(145deg, #c9ff00, #5df0be);
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.28);
  font-weight: 950;
}

.ai-nav-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.ai-nav-brand strong,
.ai-nav-brand small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-nav-brand strong {
  font-size: 18px;
}

.ai-nav-brand small {
  margin-top: 4px;
  color: rgba(244, 248, 239, 0.56);
  font-size: 12px;
}

.ai-side-menu {
  display: grid;
  gap: 8px;
}

.ai-side-menu button,
.ai-top-actions button,
.ai-top-actions a,
.ai-section-head button,
.ai-rail-panel header button,
.ai-open-button,
.ai-category-card,
.ai-mini-tool,
.ai-workflow-card {
  font: inherit;
}

.ai-side-menu button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: rgba(244, 248, 239, 0.72);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.ai-side-menu span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #c8ff00;
  font-size: 12px;
  font-weight: 900;
}

.ai-side-menu button.active,
.ai-side-menu button:hover {
  color: #dfff9d;
  background: linear-gradient(90deg, rgba(200, 255, 0, 0.22), rgba(200, 255, 0, 0.04));
  border-color: rgba(200, 255, 0, 0.42);
}

.ai-side-pro {
  margin-top: auto;
  padding: 18px;
  color: #f8ffef;
  background:
    radial-gradient(circle at 90% 100%, rgba(200, 255, 0, 0.18), transparent 45%),
    rgba(12, 22, 17, 0.88);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 8px;
}

.ai-side-pro p,
.ai-side-pro strong,
.ai-side-pro span,
.ai-side-pro a {
  display: block;
}

.ai-side-pro p {
  margin: 0 0 10px;
  color: #c8ff00;
  font-size: 12px;
  font-weight: 900;
}

.ai-side-pro strong {
  font-size: 18px;
}

.ai-side-pro span {
  margin: 10px 0 18px;
  color: rgba(244, 248, 239, 0.64);
  font-size: 13px;
  line-height: 1.6;
}

.ai-side-pro a,
.ai-top-actions a,
.ai-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: #081006;
  text-decoration: none;
  font-weight: 900;
  background: #c8ff00;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.ai-nav-workspace {
  min-width: 0;
  overflow-x: hidden;
  padding: 24px clamp(18px, 3vw, 34px) 56px;
}

.ai-nav-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.ai-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  background: rgba(8, 14, 16, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.ai-search span {
  color: #c8ff00;
  font-size: 21px;
}

.ai-search input {
  width: 100%;
  min-width: 0;
  color: #f5ffe9;
  background: transparent;
  border: 0;
  outline: 0;
}

.ai-search input::placeholder {
  color: rgba(244, 248, 239, 0.46);
}

.ai-search kbd {
  padding: 5px 8px;
  color: rgba(244, 248, 239, 0.46);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.ai-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-top-actions button,
.ai-top-actions a {
  min-height: 42px;
  padding: 0 14px;
  color: #f5ffe9;
  background: rgba(9, 15, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
}

.ai-top-actions a {
  color: #071006;
  background: #c8ff00;
  border-color: #c8ff00;
}

.ai-category-tabs {
  display: flex;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 18px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 255, 0, 0.42) rgba(255, 255, 255, 0.06);
}

.ai-category-tabs::-webkit-scrollbar {
  height: 5px;
}

.ai-category-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
}

.ai-category-tabs::-webkit-scrollbar-thumb {
  background: rgba(200, 255, 0, 0.5);
  border-radius: 99px;
}

.ai-category-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: rgba(244, 248, 239, 0.72);
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.ai-category-tabs button.active,
.ai-category-tabs button:hover {
  color: #c8ff00;
  background: rgba(200, 255, 0, 0.08);
  border-color: rgba(200, 255, 0, 0.46);
}

.ai-nav-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 18px;
  align-items: start;
}

.ai-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ai-feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: 172px;
  padding: clamp(18px, 2.4vw, 24px);
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(35, 64, 27, 0.72), rgba(6, 16, 14, 0.94) 58%, rgba(7, 20, 16, 0.72));
  border: 1px solid rgba(200, 255, 0, 0.28);
  border-radius: 8px;
}

.ai-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ai-feature-badges,
.ai-feature-stats,
.ai-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ai-feature-badges span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: #081006;
  background: #c8ff00;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.ai-feature-badges span + span {
  color: #dfff9d;
  background: rgba(255, 255, 255, 0.08);
}

.ai-feature-copy h1 {
  max-width: 760px;
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(28px, 2.35vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}

.ai-feature-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(244, 248, 239, 0.72);
  line-height: 1.7;
}

.ai-feature-stats {
  margin-top: 16px;
}

.ai-feature-stats span {
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 9px 12px;
  background: rgba(6, 12, 10, 0.45);
  border: 1px solid rgba(200, 255, 0, 0.18);
  border-radius: 8px;
}

.ai-feature-stats strong {
  color: #c8ff00;
  font-size: 18px;
}

.ai-feature-stats small {
  color: rgba(244, 248, 239, 0.58);
}

.ai-orbit {
  display: none;
}

.ai-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #c8ff00;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.9);
}

.ai-orbit span:nth-child(1) { left: 20%; top: 28%; }
.ai-orbit span:nth-child(2) { right: 19%; top: 24%; background: #5df0be; }
.ai-orbit span:nth-child(3) { left: 31%; bottom: 18%; }
.ai-orbit span:nth-child(4) { right: 27%; bottom: 31%; background: #ffffff; }

.ai-orbit strong {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #081006;
  background: #c8ff00;
  border-radius: 20px;
  font-size: 26px;
  font-weight: 950;
}

.ai-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: 4px;
}

.ai-section-head span {
  color: #c8ff00;
  font-size: 12px;
  font-weight: 900;
}

.ai-section-head h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 22px;
}

.ai-section-head button,
.ai-rail-panel header button {
  color: rgba(244, 248, 239, 0.72);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-tool-card {
  display: grid;
  grid-template-rows: auto minmax(118px, 1fr) auto auto;
  gap: 12px;
  min-width: 0;
  min-height: 218px;
  padding: 14px;
  color: #f8ffef;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(9, 14, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ai-tool-card:hover,
.ai-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(200, 255, 0, 0.6);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32), 0 0 22px rgba(200, 255, 0, 0.12);
  outline: 0;
}

.ai-tool-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ai-tool-logo {
  width: 46px;
  height: 46px;
  overflow: hidden;
  font-size: 15px;
  background:
    linear-gradient(145deg, rgba(244, 248, 239, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(244, 248, 239, 0.14);
}

.ai-tool-logo.small {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 10px;
}

.ai-tool-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  border-radius: 6px;
}

.ai-tool-logo > span {
  display: none;
}

.ai-tool-logo.fallback {
  color: #091006;
  background:
    linear-gradient(145deg, #c9ff00, #5df0be);
  border-color: rgba(200, 255, 0, 0.42);
}

.ai-tool-logo.fallback > span {
  display: inline;
}

.ai-fav-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: rgba(244, 248, 239, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.ai-fav-button.active {
  color: #c8ff00;
  border-color: rgba(200, 255, 0, 0.5);
}

.ai-tool-copy {
  min-width: 0;
}

.ai-tool-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-tool-copy p {
  display: -webkit-box;
  min-height: 66px;
  margin: 8px 0 0;
  overflow: hidden;
  color: rgba(244, 248, 239, 0.62);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ai-tool-tags span,
.ai-tool-tags small {
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  overflow: hidden;
  color: #dfff9d;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(200, 255, 0, 0.08);
  border-radius: 6px;
  font-size: 12px;
}

.ai-tool-tags small {
  color: rgba(244, 248, 239, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.ai-open-button {
  width: 100%;
  min-height: 36px;
  color: #f6ffef;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ai-tool-card:hover .ai-open-button {
  color: #081006;
  background: #c8ff00;
  border-color: #c8ff00;
}

.ai-category-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-category-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  color: #f8ffef;
  text-align: left;
  background: rgba(9, 14, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.ai-category-card:hover {
  border-color: rgba(200, 255, 0, 0.48);
}

.ai-category-card span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #c8ff00;
  background: rgba(200, 255, 0, 0.08);
  border-radius: 8px;
  font-weight: 900;
}

.ai-category-card strong,
.ai-category-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-category-card small {
  color: rgba(244, 248, 239, 0.56);
}

.ai-right-rail {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.ai-rail-panel {
  padding: 16px;
  background: rgba(9, 14, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.ai-rail-panel header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ai-rail-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.ai-rail-panel header span {
  color: rgba(244, 248, 239, 0.5);
  font-size: 12px;
}

.ai-rank-list,
.ai-mini-list,
.ai-workflows {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.ai-rank-list li,
.ai-mini-tool,
.ai-workflow-card {
  min-width: 0;
  color: #f8ffef;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
}

.ai-rank-list li {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 7px;
}

.ai-rank-list b {
  display: grid;
  place-items: center;
  height: 24px;
  color: #071006;
  background: #c8ff00;
  border-radius: 6px;
  font-size: 12px;
}

.ai-rank-list strong,
.ai-mini-tool strong,
.ai-workflow-card strong,
.ai-workflow-card span,
.ai-workflow-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-rank-list strong,
.ai-mini-tool strong {
  white-space: nowrap;
}

.ai-rank-list small,
.ai-mini-tool small {
  color: rgba(244, 248, 239, 0.5);
  font-size: 12px;
  white-space: nowrap;
}

.ai-mini-tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 7px;
  text-align: left;
}

.ai-workflow-card {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  text-align: left;
}

.ai-workflow-card span {
  color: rgba(244, 248, 239, 0.6);
  font-size: 13px;
  white-space: nowrap;
}

.ai-workflow-card small {
  color: #c8ff00;
  font-size: 12px;
  white-space: nowrap;
}

.ai-rank-list li:hover,
.ai-mini-tool:hover,
.ai-workflow-card:hover {
  border-color: rgba(200, 255, 0, 0.44);
}

.ai-empty,
.ai-rail-empty {
  margin: 0;
  padding: 18px;
  color: rgba(244, 248, 239, 0.62);
  background: rgba(255, 255, 255, 0.045);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

@media (max-width: 1380px) {
  .ai-tool-grid,
  .ai-category-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .ai-nav-grid {
    grid-template-columns: 1fr;
  }

  .ai-right-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .ai-feature-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ai-orbit {
    display: none;
  }

  .ai-feature-copy h1 {
    max-width: 560px;
  }
}

@media (max-width: 900px) {
  .ai-nav-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-nav-sidebar {
    position: relative;
    top: 0;
    height: auto;
    padding: 16px clamp(18px, 3vw, 34px);
    border-right: 0;
    border-bottom: 1px solid rgba(199, 255, 0, 0.16);
  }

  .ai-side-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ai-side-menu button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 0;
    padding: 8px;
    text-align: center;
  }

  .ai-side-pro {
    display: none;
  }

}

@media (max-width: 820px) {
  .ai-nav-shell {
    padding-top: 12px;
  }

  .ai-nav-topbar {
    grid-template-columns: 1fr;
  }

  .ai-top-actions {
    overflow-x: auto;
  }

  .ai-feature-panel,
  .ai-right-rail {
    grid-template-columns: 1fr;
  }

  .ai-orbit {
    display: none;
  }

  .ai-tool-grid,
  .ai-category-cards,
  .ai-side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ai-nav-sidebar {
    gap: 14px;
    padding: 14px 18px 12px;
  }

  .ai-nav-brand {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ai-side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .ai-side-menu button {
    flex: 0 0 112px;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 62px;
    padding: 8px 10px;
    scroll-snap-align: start;
    text-align: center;
  }

  .ai-nav-workspace {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ai-tool-grid,
  .ai-category-cards {
    grid-template-columns: 1fr;
  }

  .ai-search {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ai-search kbd {
    display: none;
  }

  .ai-feature-copy h1 {
    font-size: 27px;
  }

  .ai-feature-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ai-feature-stats span {
    min-width: 0;
  }
}
