/* ============================================================
   aXCrack — 完整重構樣式
   設計語言：極簡黑色工業 × 青色霓虹光線
   ============================================================ */

/* ── CSS 變數 ── */
:root {
  --c0: #000000;
  --c1: #050d14;
  --c2: #0a1520;
  --c3: #0d1e2e;
  --accent: #51c4d3;
  --accent-dim: rgba(81, 196, 211, 0.18);
  --accent-glow: rgba(81, 196, 211, 0.08);
  --teal-dark: #126e82;
  --teal-mid: #2c8c99;
  --text-pri: rgba(255, 255, 255, 0.92);
  --text-sec: rgba(255, 255, 255, 0.58);
  --text-ter: rgba(255, 255, 255, 0.32);
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(81, 196, 211, 0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-sans: "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;
  --font-display: "Orbitron", sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Body ── */
body {
  font-family: var(--font-sans);
  background: var(--c0);
  color: var(--text-pri);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── 動態背景（保留結構，隱藏） ── */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  display: none;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 196, 211, 0.04), transparent);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-24px) scale(1.06);
  }
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  z-index: 1000;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.2s ease;
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-dim),
    transparent
  );
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(135deg, #7ee8f2 0%, #51c4d3 40%, #2c8c99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(81, 196, 211, 0.35));
  transition: filter 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 28px rgba(81, 196, 211, 0.55));
}

@keyframes shimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(81, 196, 211, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(81, 196, 211, 0.55));
  }
}

/* Search wrap */
.search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  max-width: 580px;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border: 1px solid var(--border);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  min-width: 0;
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-accent);
  box-shadow:
    0 0 0 3px rgba(81, 196, 211, 0.07),
    0 8px 30px rgba(0, 0, 0, 0.3);
}

.search-input {
  background: none;
  border: none;
  color: var(--text-pri);
  outline: none;
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.92rem;
  font-family: var(--font-sans);
}

.search-input::placeholder {
  color: var(--text-ter);
}

.search-btn {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn-icon {
  flex-shrink: 0;
  display: block;
}

.search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(81, 196, 211, 0.35);
}

/* Platform filter chips */
.platform-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.platform-filter-bar::-webkit-scrollbar {
  display: none;
}

.pf-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-sec);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.pf-chip:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.pf-chip.active {
  background: linear-gradient(
    135deg,
    rgba(18, 110, 130, 0.9),
    rgba(44, 140, 153, 0.85)
  );
  border-color: rgba(81, 196, 211, 0.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(81, 196, 211, 0.15);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-sec);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  transition: width 0.25s ease;
  background: currentColor;
}

.nav-link:hover {
  color: var(--text-pri);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-link.nav-docs:hover {
  color: #60a5fa;
}
.nav-link.nav-docs::after {
  background: #60a5fa;
}
.nav-link.nav-about:hover {
  color: #fb923c;
}
.nav-link.nav-about::after {
  background: #fb923c;
}
.nav-link.nav-discord:hover {
  color: var(--accent);
}
.nav-link.nav-discord::after {
  background: var(--accent);
}
.nav-link.nav-youtube:hover {
  color: #c084fc;
}
.nav-link.nav-youtube::after {
  background: #c084fc;
}
.nav-link.nav-login:hover {
  color: #4ade80;
}
.nav-link.nav-login::after {
  background: #4ade80;
}

/* Avatar */
.nav-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--c2);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-avatar:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81, 196, 211, 0.1);
}

.nav-avatar-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 175px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(5, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 0.35rem;
  display: none;
  z-index: 1200;
}

.nav-avatar-menu.open {
  display: block;
}

.nav-avatar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: var(--text-pri);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.nav-avatar-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* User menu (old) */
.user-menu {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.menu-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-pri);
}

/* Responsive header */
@media (max-width: 900px) {
  .header {
    padding: 0.6rem 0;
  }
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0 1rem;
  }
  .user-menu {
    justify-content: center;
    flex-wrap: wrap;
  }
  .search-bar {
    min-width: 0;
    width: 100%;
  }
  .nav-links {
    gap: 0.75rem;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .nav-link {
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.5rem;
    text-align: center;
  }
  .search-btn {
    padding: 0.5rem 0.75rem;
  }
}

/* ════════════════════════════════════════
   MAIN / SIDEBAR / CONTENT
════════════════════════════════════════ */
.main-content {
  margin-top: var(--header-h, 100px);
  padding: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  transition: margin-top 0.2s ease;
}

@media (max-width: 900px) {
  .main-content {
    padding: 1rem;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-h, 100px);
  width: 270px;
  height: calc(100vh - var(--header-h, 100px));
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.2s ease,
    height 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 196, 211, 0.18) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(81, 196, 211, 0.18);
  border-radius: 99px;
}

@media (max-width: 900px) {
  .sidebar {
    top: var(--header-h, 140px);
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    max-height: calc(100vh - var(--header-h, 140px) - 12px);
    padding: 1rem;
    transform: translateY(-110%);
    border-right: 0;
    border-bottom: 1px solid var(--border);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  }
  .sidebar:not(.hidden) {
    transform: translateY(0);
  }
}

.sidebar.hidden {
  transform: translateY(-110%);
}

.sidebar-fab-close {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: linear-gradient(135deg, var(--accent), var(--teal-mid));
  color: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  font-size: 1.1rem;
  font-weight: 900;
}

.sidebar-fab-close.active {
  display: inline-flex;
}

@media (min-width: 901px) {
  .sidebar-fab-close {
    display: none !important;
  }
}

/* Category */
.category-section {
  margin-bottom: 1.75rem;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.category-title-row .category-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.category-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ter);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.category-links-btn {
  border: 1px solid var(--border-accent);
  background: transparent;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-links-btn:hover {
  background: rgba(81, 196, 211, 0.1);
  box-shadow: 0 4px 12px rgba(81, 196, 211, 0.15);
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.3rem;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  min-width: 0;
}

.category-item > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text-sec);
  transition: color 0.15s ease;
}

.category-count {
  flex: 0 0 auto;
}

.category-item:hover,
.category-item.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  transform: translateX(3px);
}

.category-item:hover > span:first-child,
.category-item.active > span:first-child {
  color: var(--text-pri);
}

.category-item.api-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05);
}

.category-item.api-item:hover,
.category-item.api-item.active {
  background: rgba(81, 196, 211, 0.06);
  border-color: var(--border-accent);
  transform: none;
}

@media (max-width: 900px) {
  .category-item:hover,
  .category-item.active {
    transform: none;
  }
}

.category-count {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.category-item.api-item .category-count {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
}

/* Content area */
.content-area {
  margin-left: 270px;
  transition: margin-left 0.3s ease;
  position: relative;
  z-index: 1;
}

.content-area.expanded {
  margin-left: 0;
}

@media (max-width: 900px) {
  .content-area {
    margin-left: 0;
  }
}
@media (max-width: 1200px) {
  .content-area {
    margin-left: 0;
  }
}

/* ════════════════════════════════════════
   TOOLBAR
════════════════════════════════════════ */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 200;
  overflow: visible;
}

@media (max-width: 900px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .view-options {
    flex-wrap: wrap;
  }
  .sort-options,
  .sort-options select,
  .sort-dropdown,
  .sort-dropdown-btn {
    width: 100%;
  }
  .sort-dropdown-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

.view-options {
  display: flex;
  gap: 0.35rem;
}

.view-btn {
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-ter);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.82rem;
  font-weight: 600;
}

.view-btn.active,
.view-btn:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-color: transparent;
  color: #fff;
}

.sort-options {
  position: relative;
  z-index: 6000;
}

.sort-options select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-pri);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
}

.sort-options select option {
  background: #0a2342;
  color: #fff;
}

.sort-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-dropdown-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.sort-dropdown-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-pri);
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 175px;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(3, 9, 16, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 5000;
}

.sort-dropdown.open .sort-dropdown-menu {
  display: block;
}

.sort-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 0.58rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-sec);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.12s ease;
}

.sort-dropdown-item:hover {
  background: rgba(81, 196, 211, 0.07);
  border-color: var(--border-accent);
  color: var(--accent);
}

.sort-dropdown-item.active {
  background: rgba(81, 196, 211, 0.1);
  color: var(--accent);
  border-color: var(--border-accent);
}

/* ════════════════════════════════════════
   SOFTWARE CARDS
════════════════════════════════════════ */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  animation: fadeInUp 0.5s ease-out;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .software-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
@media (max-width: 600px) {
  .software-grid {
    grid-template-columns: 1fr;
  }
}

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

.software-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.software-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  transition: left 0.55s ease;
}

.software-card:hover::before {
  left: 100%;
}

.software-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(81, 196, 211, 0.12);
  border-color: rgba(81, 196, 211, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.software-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.software-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.status-badges {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.25rem 0 0.65rem;
}

.meta-chip {
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-sec);
  background: rgba(81, 196, 211, 0.06);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
}

.meta-chip--version {
  border-color: rgba(81, 196, 211, 0.2);
}
.meta-chip--size {
  border-color: rgba(144, 255, 245, 0.15);
}

.status-badge {
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge.cracked {
  background: linear-gradient(
    135deg,
    rgba(18, 110, 130, 0.85),
    rgba(10, 35, 66, 0.85)
  );
  border-color: rgba(81, 196, 211, 0.25);
}
.status-badge.cheat {
  background: linear-gradient(
    135deg,
    rgba(130, 40, 18, 0.85),
    rgba(66, 28, 10, 0.85)
  );
  border-color: rgba(255, 120, 120, 0.2);
}
.status-badge.premium {
  background: linear-gradient(
    135deg,
    rgba(44, 140, 153, 0.9),
    rgba(81, 196, 211, 0.9)
  );
  border-color: rgba(81, 196, 211, 0.3);
}
.status-badge.free {
  background: linear-gradient(
    135deg,
    rgba(18, 130, 74, 0.9),
    rgba(44, 153, 89, 0.9)
  );
  border-color: rgba(120, 255, 170, 0.2);
}
.status-badge.updated {
  background: linear-gradient(
    135deg,
    rgba(18, 110, 130, 0.9),
    rgba(44, 140, 153, 0.9)
  );
  border-color: rgba(81, 196, 211, 0.3);
}
.status-badge.tested {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.85),
    rgba(16, 185, 129, 0.85)
  );
  border-color: rgba(34, 197, 94, 0.3);
}
.status-badge.untested {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.9),
    rgba(165, 20, 20, 0.9)
  );
  border-color: rgba(239, 68, 68, 0.3);
}

.software-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.software-version {
  color: var(--text-ter);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.software-description {
  color: var(--text-sec);
  font-size: 0.87rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  max-height: 5rem;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 196, 211, 0.15) transparent;
}

.software-description-modal {
  line-height: 1.6;
  color: var(--text-sec);
  max-height: 14rem;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 0.4rem;
  scrollbar-width: thin;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-ter);
}

.download-btn {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.download-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(81, 196, 211, 0.35);
}

.root-required-hint {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(255, 75, 75, 0.9),
    rgba(165, 20, 20, 0.9)
  );
  border: 1px solid rgba(255, 120, 120, 0.3);
  font-weight: 900;
  font-size: 0.7rem;
  color: #fff;
}

/* Platform badges */
.platform-badges {
  display: flex;
  gap: 0.22rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.platform-badge {
  padding: 0.14rem 0.48rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-badge.pc {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: #fff;
}
.platform-badge.android {
  background: linear-gradient(135deg, #3ddc84, #2bb673);
  color: #fff;
}
.platform-badge.linux {
  background: linear-gradient(135deg, #fcc624, #f39c12);
  color: #222;
}
.platform-badge.mac {
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: #fff;
}
.platform-badge.ios {
  background: linear-gradient(135deg, #ff2d55, #af52de);
  color: #fff;
}
.platform-badge.web {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
}
.platform-badge.generic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sec);
}

/* ════════════════════════════════════════
   LIST VIEW
════════════════════════════════════════ */
.software-list {
  display: none;
  position: relative;
  z-index: 1;
}
.software-list.active {
  display: block;
}

.view-switch-enter {
  opacity: 0;
  transform: translateY(10px);
}
.view-switch-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.view-switch-leave {
  opacity: 1;
  transform: translateY(0);
}
.view-switch-leave-active {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.list-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-accent);
  transform: translateX(3px);
}

.list-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

.list-meta {
  color: var(--text-ter);
  font-size: 0.78rem;
}

.list-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   LOADING
════════════════════════════════════════ */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* ════════════════════════════════════════
   MODAL BASE
════════════════════════════════════════ */
.modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0s linear 0.18s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease;
}

.modal-content {
  background: linear-gradient(160deg, #0b1825 0%, #0d1f2f 100%);
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.18s ease;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content h2 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-ter);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-pri);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Site links modal */
#siteLinksModal .modal-content {
  max-height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#siteLinksModal #siteLinksContent {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.site-links-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(81, 196, 211, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  vertical-align: middle;
}

.site-links-list {
  display: grid;
  gap: 0.65rem;
  overflow-wrap: break-word;
}

.site-links-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-links-name {
  font-weight: 900;
  color: #fff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-links-updated {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-ter);
  white-space: nowrap;
}

.site-links-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.site-links-item:hover {
  border-color: var(--border-accent);
  background: rgba(81, 196, 211, 0.04);
}

.site-links-body {
  min-width: 0;
  flex: 1 1 auto;
}

.site-links-item a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  flex: 0 0 auto;
  font-size: 0.88rem;
}

.site-links-item a:hover {
  text-decoration: underline;
}

.site-links-desc {
  color: var(--text-ter);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.15rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .site-links-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .site-links-item a {
    width: 100%;
    text-align: right;
  }
}

/* ════════════════════════════════════════
   NAV LINKS (standalone styles)
════════════════════════════════════════ */

/* ════════════════════════════════════════
   ROBLOX EXEC SECTION
════════════════════════════════════════ */
.roblox-exec-section .exec-panel {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
}

.roblox-exec-section .exec-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.roblox-exec-section .exec-panel-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.roblox-exec-section .exec-panel-title h3 {
  color: var(--accent);
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.roblox-exec-section .exec-panel-badge {
  background: rgba(81, 196, 211, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.roblox-exec-section .exec-panel-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.roblox-exec-section .exec-panel-link:hover {
  background: rgba(81, 196, 211, 0.15);
  border-color: rgba(81, 196, 211, 0.35);
}

.roblox-exec-section .api-badge-link {
  text-decoration: none;
  color: inherit;
}

.roblox-exec-section .api-badge-link:hover {
  filter: brightness(1.1);
}

.roblox-exec-section .exec-panel-btn {
  padding: 0.65rem 1.15rem;
  margin: 0;
}

.roblox-exec-section .exec-result {
  min-height: 100px;
}

.roblox-exec-section .exec-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-ter);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.roblox-exec-section #execResult > div {
  box-shadow: none !important;
}
.roblox-exec-section #execResult table {
  width: 100% !important;
}
.roblox-exec-section #execResult th {
  font-size: 0.9rem !important;
  padding: 1rem 0.75rem !important;
}
.roblox-exec-section #execResult td {
  padding: 1rem 0.75rem !important;
}
.roblox-exec-section #execResult a {
  border-radius: 12px !important;
  padding: 0.4rem 0.85rem !important;
}
.roblox-exec-section .exec-row:hover {
  background: rgba(18, 110, 130, 0.12) !important;
}

.roblox-exec-section input:focus {
  border-color: rgba(81, 196, 211, 0.45);
  box-shadow: 0 0 0 3px rgba(81, 196, 211, 0.08);
}

.roblox-exec-section table tr:hover {
  background: rgba(18, 110, 130, 0.08) !important;
}

.roblox-exec-section .spinner {
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid var(--accent);
  width: 28px;
  height: 28px;
}

.roblox-exec-section ::-webkit-scrollbar {
  height: 5px;
}
.roblox-exec-section ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
}
.roblox-exec-section ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: 99px;
}

.roblox-exec-section .rb-script-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}

.roblox-exec-section .rb-script-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--border-accent);
}

.roblox-exec-section .rb-script-card pre {
  margin: 0;
}

.roblox-exec-section .rb-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--text-ter);
  font-weight: 900;
  font-size: 0.68rem;
}

.roblox-exec-section .rb-thumb img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  display: block;
}

.roblox-exec-section .rb-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.roblox-exec-section .rb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.roblox-exec-section .rb-green {
  color: #35d07f;
  border-color: rgba(53, 208, 127, 0.3);
  background: rgba(53, 208, 127, 0.07);
}
.roblox-exec-section .rb-red {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.07);
}

.roblox-exec-section .rb-modal-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.roblox-exec-section .rb-modal-title {
  flex: 1;
  min-width: 0;
}

.roblox-exec-section .rb-modal-toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 2.5rem;
}

.roblox-exec-section .rb-modal-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.roblox-exec-section .rb-modal-img--placeholder {
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ter);
  font-weight: 900;
  font-size: 0.72rem;
}

.roblox-exec-section .rb-modal-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.3rem;
  line-height: 1.25;
  word-break: break-word;
}
.roblox-exec-section .rb-modal-meta {
  color: var(--text-sec);
  margin-top: 0.3rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.roblox-exec-section .rb-modal-submeta {
  color: var(--text-ter);
  margin-top: 0.2rem;
  font-size: 0.83rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.roblox-exec-section .rb-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.roblox-exec-section .rb-modal-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.roblox-exec-section .rb-modal-left,
.roblox-exec-section .rb-modal-right {
  min-width: 0;
}

.roblox-exec-section .rb-code-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.roblox-exec-section .rb-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.roblox-exec-section .rb-code-title {
  font-weight: 900;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.roblox-exec-section .rb-code-sub {
  color: var(--text-ter);
  font-size: 0.82rem;
}

.roblox-exec-section .rb-code {
  margin: 0;
  padding: 0.85rem 1rem 1rem 3rem;
  max-height: 55vh;
  overflow: auto;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre;
}

.roblox-exec-section .rb-code li {
  padding-left: 0.2rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.roblox-exec-section .rb-code li::marker {
  color: rgba(81, 196, 211, 0.4);
}

.roblox-exec-section .rb-modal-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
}

.roblox-exec-section .rb-modal-label {
  color: var(--text-ter);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.roblox-exec-section .rb-modal-value {
  color: var(--text-pri);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.roblox-exec-section .rb-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.roblox-exec-section .rb-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  background: rgba(81, 196, 211, 0.06);
  color: rgba(81, 196, 211, 0.9);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.roblox-exec-section .rb-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.roblox-exec-section .rb-modal-script {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.88);
  max-height: 55vh;
  overflow: auto;
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.6;
}

@media (max-width: 520px) {
  #rbScriptsQuery {
    width: 175px !important;
  }
}
@media (max-width: 768px) {
  .roblox-exec-section .rb-modal-grid {
    grid-template-columns: 1fr;
  }
  .roblox-exec-section .rb-modal-header {
    flex-direction: column;
  }
  .roblox-exec-section .rb-modal-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1200px) {
  .roblox-exec-section .modal-content {
    max-width: 95vw;
  }
  .roblox-exec-section table {
    min-width: 1000px;
  }
  .search-bar {
    min-width: 250px;
  }
}
@media (max-width: 640px) {
  .menu-btn,
  .view-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
  }
  .download-btn {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
  }
  .roblox-exec-section .exec-panel-btn {
    padding: 0.6rem 0.9rem;
  }
}
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }
  .search-bar {
    min-width: 0;
  }
  .software-grid {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 1rem;
  }
}

/* ════════════════════════════════════════
   RB FILTERS
════════════════════════════════════════ */
.rb-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rb-filter-wrap {
  display: inline-flex;
  align-items: center;
}

.rb-filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.87rem;
  transition: all 0.18s ease;
}

.rb-filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--accent);
}

.rb-filter-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  width: min(500px, 90vw);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(3, 9, 18, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  z-index: 2100;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.2s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.rb-filter-panel.open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.rb-filter-panel-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.rb-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-sec);
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.rb-filter-check:hover {
  border-color: var(--border-accent);
  color: var(--text-pri);
}

.rb-filter-check input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rb-filter-check input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.12s ease;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
}

.rb-filter-check input[type="checkbox"]:checked {
  border-color: rgba(81, 196, 211, 0.6);
  box-shadow: 0 0 0 2px rgba(81, 196, 211, 0.1);
}

.rb-filter-check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.rb-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 170px;
  flex: 0 1 auto;
}

.rb-filter-field span {
  color: var(--text-ter);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rb-filter-field input,
.rb-filter-field select {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-pri);
  outline: none;
  font-size: 0.85rem;
  transition: border-color 0.15s ease;
}

.rb-filter-field input:focus,
.rb-filter-field select:focus {
  border-color: rgba(81, 196, 211, 0.4);
  box-shadow: 0 0 0 2px rgba(81, 196, 211, 0.07);
}

.rb-filter-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.rb-filter-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.rb-filter-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-pri);
}

.rb-filter-primary {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border: none;
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.rb-filter-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.rb-filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.rb-filter:hover {
  transform: translateY(-1px);
  border-color: var(--border-accent);
  color: var(--accent);
}

.rb-filter.active {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-color: transparent;
  color: #fff;
}

/* RB select option */
.roblox-exec-section select option {
  background: #0a2342;
  color: #fff;
}

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.rb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.rb-page-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  min-width: 36px;
  text-align: center;
}

.rb-page-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.rb-page-btn.active {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-color: transparent;
  color: #fff;
}

.rb-page-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.rb-page-ellipsis {
  color: var(--text-ter);
  padding: 0.2rem 0.3rem;
  user-select: none;
}

/* ════════════════════════════════════════
   API 文檔模態框
════════════════════════════════════════ */
.api-docs-modal-content {
  max-width: 1080px !important;
  width: 92vw !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse 70% 40% at 50% 0%,
      rgba(81, 196, 211, 0.06) 0%,
      transparent 55%
    ),
    linear-gradient(165deg, #090f18 0%, #0c1622 50%, #07101a 100%) !important;
  border: 1px solid rgba(81, 196, 211, 0.15);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 32px 90px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(81, 196, 211, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  padding: 0 !important;
  animation: apiModalEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes apiModalEnter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.973);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.api-docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.api-docs-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.api-docs-header h2,
#apiDocsTitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, #51c4d3 0%, #a8eaf5 50%, #51c4d3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 5s linear infinite;
}

@keyframes titleShimmer {
  to {
    background-position: 200% center;
  }
}

/* Language toggle */
.api-docs-lang {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

.api-docs-lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  line-height: 1;
}

.api-docs-lang-btn:hover {
  color: rgba(255, 255, 255, 0.75);
}

.api-docs-lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  box-shadow: 0 2px 8px rgba(81, 196, 211, 0.25);
}

/* Close button */
.api-docs-modal-content .modal-close {
  position: static;
  top: unset;
  right: unset;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.api-docs-modal-content .modal-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
}

/* Tab nav */
.api-docs-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.api-docs-nav::-webkit-scrollbar {
  display: none;
}

.api-docs-tab {
  padding: 0.5rem 1.05rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.api-docs-tab:hover {
  background: rgba(81, 196, 211, 0.07);
  border-color: rgba(81, 196, 211, 0.2);
  color: rgba(81, 196, 211, 0.85);
}

.api-docs-tab.active {
  background: linear-gradient(
    135deg,
    rgba(18, 110, 130, 0.85),
    rgba(44, 140, 153, 0.8)
  );
  border-color: rgba(81, 196, 211, 0.28);
  color: #fff;
  box-shadow:
    0 3px 12px rgba(81, 196, 211, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Content area */
.api-docs-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.85rem 2.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 196, 211, 0.18) transparent;
}

.api-docs-content::-webkit-scrollbar {
  width: 4px;
}
.api-docs-content::-webkit-scrollbar-track {
  background: transparent;
}
.api-docs-content::-webkit-scrollbar-thumb {
  background: rgba(81, 196, 211, 0.15);
  border-radius: 99px;
}
.api-docs-content::-webkit-scrollbar-thumb:hover {
  background: rgba(81, 196, 211, 0.32);
}

/* Loading */
.api-docs-loading {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-docs-loading::after {
  content: "";
  display: block;
  margin: 1.5rem auto 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(81, 196, 211, 0.1);
  border-top-color: rgba(81, 196, 211, 0.65);
  border-radius: 50%;
  animation: apiSpin 0.75s linear infinite;
}

@keyframes apiSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Markdown 排版 ── */
.api-docs-content h1 {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(81, 196, 211, 0.15);
  background: linear-gradient(90deg, #fff 0%, #9adbeb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.api-docs-content h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.7rem;
  border-left: 2px solid rgba(81, 196, 211, 0.6);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.api-docs-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.api-docs-content h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.api-docs-content p {
  line-height: 1.88;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.api-docs-content ul,
.api-docs-content ol {
  margin-left: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.82;
}

.api-docs-content li {
  margin-bottom: 0.38rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.api-docs-content li::marker {
  color: rgba(81, 196, 211, 0.5);
}

/* Inline code */
.api-docs-content code {
  background: rgba(81, 196, 211, 0.08);
  border: 1px solid rgba(81, 196, 211, 0.14);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: #7de0ed;
  white-space: nowrap;
}

/* Code block */
.api-docs-content pre {
  background: rgba(0, 0, 0, 0.58);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0.9rem 0 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(81, 196, 211, 0.12);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(81, 196, 211, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.api-docs-content pre::-webkit-scrollbar {
  height: 3px;
}
.api-docs-content pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.api-docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.865rem;
  line-height: 1.68;
  white-space: pre;
}

/* Table */
.api-docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0 1.6rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.api-docs-content thead {
  background: linear-gradient(
    90deg,
    rgba(18, 110, 130, 0.5),
    rgba(44, 140, 153, 0.4)
  );
}

.api-docs-content th {
  padding: 0.68rem 0.95rem;
  text-align: left;
  font-weight: 800;
  color: #a2e6f2;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(81, 196, 211, 0.18);
}

.api-docs-content td {
  padding: 0.62rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.12s ease;
}

.api-docs-content tr:hover td {
  background: rgba(81, 196, 211, 0.04);
}
.api-docs-content tr:last-child td {
  border-bottom: none;
}

/* HR */
.api-docs-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(81, 196, 211, 0.22) 20%,
    rgba(81, 196, 211, 0.22) 80%,
    transparent
  );
  margin: 1.75rem 0;
}

/* Links */
.api-docs-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(81, 196, 211, 0.18);
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.api-docs-content a:hover {
  color: #9adde8;
  border-bottom-color: rgba(154, 221, 232, 0.4);
}

/* Blockquote */
.api-docs-content blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1.1rem;
  border-left: 2px solid rgba(81, 196, 211, 0.35);
  background: rgba(81, 196, 211, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
  font-size: 0.92rem;
}

.api-docs-content strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
}
.api-docs-content em {
  color: rgba(255, 255, 255, 0.62);
}

/* Callout */
.api-docs-content .callout {
  padding: 0;
  margin: 1.35rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid;
  overflow: hidden;
}

.api-docs-content .callout-title {
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  padding: 0.52rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
}

.api-docs-content .callout-content {
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.74;
  font-size: 0.9rem;
}

.api-docs-content .callout-content p:last-child {
  margin-bottom: 0;
}

.api-docs-content .callout.note {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.03);
}
.api-docs-content .callout.note .callout-title {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
}
.api-docs-content .callout.tip {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
}
.api-docs-content .callout.tip .callout-title {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
}
.api-docs-content .callout.warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.03);
}
.api-docs-content .callout.warning .callout-title {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
}
.api-docs-content .callout.important {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.03);
}
.api-docs-content .callout.important .callout-title {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}
.api-docs-content .callout.info {
  border-color: rgba(81, 196, 211, 0.25);
  background: rgba(81, 196, 211, 0.03);
}
.api-docs-content .callout.info .callout-title {
  color: #51c4d3;
  background: rgba(81, 196, 211, 0.09);
}
.api-docs-content .callout.caution {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.03);
}
.api-docs-content .callout.caution .callout-title {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.1);
}

/* Responsive API docs */
@media (max-width: 768px) {
  .api-docs-modal-content {
    max-width: 98vw !important;
    max-height: 96vh;
    border-radius: var(--radius-md);
  }
  .api-docs-header {
    padding: 0.9rem 1rem;
  }
  .api-docs-header h2,
  #apiDocsTitle {
    font-size: 0.95rem;
  }
  .api-docs-nav {
    padding: 0.6rem 0.9rem;
    gap: 0.28rem;
  }
  .api-docs-tab {
    padding: 0.42rem 0.75rem;
    font-size: 0.77rem;
  }
  .api-docs-content {
    padding: 1.1rem 1rem;
  }
  .api-docs-content h1 {
    font-size: 1.25rem;
  }
  .api-docs-content h2 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
  }
  .api-docs-content table {
    font-size: 0.8rem;
  }
  .api-docs-content th,
  .api-docs-content td {
    padding: 0.48rem 0.6rem;
  }
  .api-docs-content pre {
    padding: 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .api-docs-lang-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
  }
}

/* ============================================
   aXTool 新增樣式
   ============================================ */

/* --- AI 類別項目 (側邊欄) --- */
.category-item.ai-nav-cat {
  color: #51c4d3;
  font-weight: 600;
}
.category-item.ai-nav-cat .category-count {
  background: linear-gradient(135deg, #51c4d3, #126e82);
  color: #000;
  font-weight: 800;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 99px;
}

/* --- AI 工具全頁面 --- */
.ai-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(81, 196, 211, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ai-page-header-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(81, 196, 211, 0.1);
  border: 1px solid rgba(81, 196, 211, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #51c4d3;
}
.ai-page-header h2 {
  font-size: 1.6rem;
  color: #51c4d3;
  margin: 0 0 0.4rem 0;
  font-family: "Orbitron", sans-serif;
}
.ai-page-header p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-size: 0.9rem;
}

.ai-group-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  opacity: 0.9;
  vertical-align: middle;
}

.ai-page-group {
  margin-bottom: 2rem;
}
.ai-page-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(81, 196, 211, 0.85);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-left: 3px solid #51c4d3;
  background: rgba(81, 196, 211, 0.06);
  border-radius: 0 8px 8px 0;
}

.ai-page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.ai-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.ai-page-card:hover {
  background: rgba(81, 196, 211, 0.12);
  border-color: rgba(81, 196, 211, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(81, 196, 211, 0.15);
  color: #fff;
}
.ai-page-card-icon-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.ai-page-card-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}
.ai-page-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.ai-page-card-desc {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .ai-page-cards {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* --- 風格切換按鈕 --- */
.nav-link.nav-style-toggle {
  font-size: 0.82rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-link.nav-style-toggle:hover {
  opacity: 1;
}

/* ============================================
   導航站風格 (style-nav)
   ============================================ */
body.style-nav {
  --bg: #f0f4f8;
  --text: #1a1a2e;
  --text-sec: #4a5568;
  --text-ter: #718096;
  --border: rgba(0, 0, 0, 0.1);
  --border-accent: rgba(81, 196, 211, 0.4);
  background: #f0f4f8 !important;
  color: #1a1a2e;
}

body.style-nav .bg-animation {
  display: none !important;
}

body.style-nav .header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
body.style-nav .header::after {
  display: none;
}

body.style-nav .logo {
  color: #126e82;
}

body.style-nav .sidebar {
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

body.style-nav .category-title {
  color: #718096;
}
body.style-nav .category-item {
  color: #2d3748;
}
body.style-nav .category-item:hover {
  background: rgba(81, 196, 211, 0.1);
}
body.style-nav .category-item.active {
  background: rgba(81, 196, 211, 0.15);
  color: #126e82;
}

body.style-nav .ai-nav-item {
  color: #2d3748;
}
body.style-nav .ai-nav-item:hover {
  color: #126e82;
  background: rgba(81, 196, 211, 0.1);
}
body.style-nav .ai-nav-desc {
  color: #a0aec0;
}
body.style-nav .ai-nav-group-label {
  color: #a0aec0;
}

body.style-nav .main-content {
  background: transparent;
}

body.style-nav .software-grid .software-card,
body.style-nav .software-list .software-item {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}
body.style-nav .software-card:hover,
body.style-nav .software-item:hover {
  box-shadow: 0 6px 24px rgba(81, 196, 211, 0.2);
  border-color: rgba(81, 196, 211, 0.4);
}

body.style-nav .software-name {
  color: #1a1a2e;
}
body.style-nav .software-description,
body.style-nav .software-desc {
  color: #4a5568;
}

body.style-nav .nav-link {
  color: #4a5568;
}
body.style-nav .nav-link:hover {
  color: #126e82;
}

body.style-nav .search-bar {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}
body.style-nav .search-input {
  color: #1a1a2e;
  background: transparent;
}
body.style-nav .search-input::placeholder {
  color: #a0aec0;
}
body.style-nav .search-btn {
  color: #4a5568;
}

body.style-nav .toolbar {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}
body.style-nav .view-btn {
  color: #4a5568;
  background: rgba(0, 0, 0, 0.05);
}
body.style-nav .view-btn.active {
  background: #51c4d3;
  color: #fff;
}

body.style-nav .modal-content {
  background: #fff;
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.1);
}

body.style-nav .pf-chip {
  background: rgba(0, 0, 0, 0.06);
  color: #4a5568;
  border-color: rgba(0, 0, 0, 0.1);
}
body.style-nav .pf-chip.active {
  background: #51c4d3;
  color: #fff;
}

body.style-nav .category-links-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #4a5568;
  border-color: rgba(0, 0, 0, 0.1);
}

/* style-nav: AI 工具頁卡片亮色覆寫 */
body.style-nav .ai-page-header h2 {
  color: #126e82;
}
body.style-nav .ai-page-header p {
  color: #718096;
}
body.style-nav .ai-page-group-title {
  color: #126e82;
  background: rgba(81, 196, 211, 0.08);
  border-left-color: #126e82;
}
body.style-nav .ai-page-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #2d3748;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body.style-nav .ai-page-card:hover {
  border-color: #51c4d3;
  background: rgba(81, 196, 211, 0.06);
  box-shadow: 0 6px 20px rgba(81, 196, 211, 0.15);
}
body.style-nav .ai-page-card-name {
  color: #1a1a2e;
}
body.style-nav .ai-page-card-desc {
  color: #718096;
}
