:root {
  --ink: #0b0e17;
  --text: #c8d0e0;
  --muted: #7b8aa8;
  --paper: #131826;
  --surface: #1a2135;
  --surface-hover: #222b45;
  --line: #28304a;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.18);
  --accent-2: #a855f7;
  --accent-2-glow: rgba(168, 85, 247, 0.18);
  --success: #10b981;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 5%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    linear-gradient(160deg, #070a12 0%, #0e1525 50%, #0a0f1c 100%);
  min-height: 100vh;
  margin: 0;
}

.docs-shell {
  position: relative;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* --- Header / Top Bar --- */
.docs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.8rem 1.2rem;
  background: rgba(19, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.docs-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.docs-brand span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.docs-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.docs-nav a:hover,
.docs-nav a.active {
  color: #fff;
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

/* --- Main Layout Grid (Sidebar on Right) --- */
.docs-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-areas: "content sidebar";
  gap: 1.75rem;
  align-items: start;
}

.docs-content {
  grid-area: content;
  min-width: 0;
}

/* --- Sidebar (Right Sticky Panel) --- */
.docs-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 2rem;
  align-self: start;
  background: rgba(19, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 0.9rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 138, 168, 0.35) transparent;
  scrollbar-gutter: stable;
}
.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}
.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(123, 138, 168, 0.35);
  border-radius: 999px;
}
.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

.sidebar-group {
  margin-bottom: 0.75rem;
}
.sidebar-group:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem 0.5rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  margin-bottom: 0.05rem;
}
.sidebar-links a {
  display: block;
  padding: 0.24rem 0.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 8px;
  transition: all 0.18s ease;
  line-height: 1.25;
}
.sidebar-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-links a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.08));
  border-left: 3px solid var(--accent);
  font-weight: 600;
}

/* --- Content Container --- */
.docs-content {
  min-width: 0;
  container-type: inline-size;
  container-name: docs;
}

.doc-head {
  margin-bottom: 1.75rem;
}

.doc-breadcrumb {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.doc-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.doc-breadcrumb a:hover {
  color: var(--accent);
}
.doc-breadcrumb .sep {
  opacity: 0.4;
}

.doc-head h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.doc-head p.lede {
  color: var(--text);
  opacity: 0.88;
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* --- Panels & Cards --- */
.panel {
  background: rgba(19, 24, 38, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}
.panel:hover {
  border-color: rgba(40, 48, 74, 0.9);
}

.panel h2 {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.panel h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--accent);
}
.panel h3:first-child { margin-top: 0; }

.panel p, .panel li, .panel ol {
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}
.panel ul, .panel ol {
  padding-left: 1.25rem;
  margin: 0.6rem 0 1rem;
}
.panel li {
  margin-bottom: 0.5rem;
}

/* --- Step List Styling --- */
.step-list {
  list-style: none !important;
  padding-left: 0 !important;
  counter-reset: step-counter;
}
.step-list > li {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.2rem !important;
}
.step-list > li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* --- KBD & Code Formatting --- */
kbd {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(26, 33, 53, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.badge-all { color: #7be3ff; border-color: rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.08); }
.badge-android { color: #a5f3a5; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.badge-win { color: #c5a3ff; border-color: rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.08); }

/* --- Callout Boxes --- */
.callout {
  position: relative;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.02));
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
}
.callout strong:first-child {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.callout.warn {
  border-color: var(--accent-2);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.02));
}
.callout.warn strong:first-child {
  color: var(--accent-2);
}
.callout.tip {
  border-color: var(--success);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
}
.callout.tip strong:first-child {
  color: var(--success);
}
.callout.troubleshoot {
  border-color: var(--warning);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
}
.callout.troubleshoot strong:first-child {
  color: var(--warning);
}

/* --- Docs Grid Cards (for Docs Catalog) --- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.25rem 0;
}
.docs-card {
  background: rgba(26, 33, 53, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}
.docs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(29, 37, 56, 0.9);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.12);
}
.docs-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 4px;
}
.docs-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.3;
}
.docs-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Related Grid --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.related-card {
  display: block;
  padding: 1rem;
  background: rgba(26, 33, 53, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.related-card:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}
.related-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: #fff;
}
.related-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* --- Footer --- */
.doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.doc-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
.doc-footer a:hover {
  text-decoration: underline;
}

/* --- Mobile Navigation & Responsive --- */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
  }

  .docs-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .docs-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-list > li {
    padding-left: 2.7rem;
  }
  .step-list > li::before {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.8rem;
  }
}

/* --- Guide Prerequisites & Quick Spec Box --- */
.guide-spec-box {
  background: rgba(26, 33, 53, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.spec-item .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.spec-item .val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Quick Jump "On This Page" TOC --- */
.guide-toc-box {
  background: rgba(19, 24, 38, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.guide-toc-box .toc-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.guide-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.guide-toc-links a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.18s ease;
}
.guide-toc-links a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

/* --- Visual Diagram Box --- */
.diagram-box {
  background: linear-gradient(135deg, rgba(15, 20, 32, 0.95), rgba(26, 33, 53, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
  overflow: hidden;
}
.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.diagram-node {
  min-width: 0;
  max-width: 100%;
  background: rgba(26, 33, 53, 0.9);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.12);
}
.diagram-node small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.73rem;
  margin-top: 0.15rem;
}
.diagram-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 1rem;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  flex-shrink: 0;
}
.diagram-arrow .arrow-glyph {
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
}
.diagram-arrow .arrow-label {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@container docs (max-width: 880px) {
  .diagram-flow {
    flex-direction: column;
    gap: 0.45rem;
  }
  .diagram-arrow {
    flex-direction: column;
    gap: 0.2rem;
  }
  .diagram-arrow .arrow-glyph {
    transform: rotate(90deg);
    font-size: 1rem;
  }
}

/* --- Expandable Details Accordions --- */
details.details-accordion {
  background: rgba(26, 33, 53, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0.85rem 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
details.details-accordion[open] {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(26, 33, 53, 0.85);
}
details.details-accordion summary {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
details.details-accordion summary::-webkit-details-marker {
  display: none;
}
details.details-accordion summary::after {
  content: "❯";
  font-size: 0.8rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
details.details-accordion[open] summary::after {
  transform: rotate(90deg);
}
.details-content {
  padding: 0 1.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --- Code Command Block --- */
.code-block-wrap {
  background: #0d111a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}
.code-block-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.code-block-wrap pre {
  margin: 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
/* --- Index Hero Header & Live Search --- */
.hero-docs-header {
  background: linear-gradient(135deg, rgba(26, 33, 53, 0.9), rgba(19, 24, 38, 0.95));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-docs-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-docs-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.8rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-docs-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-docs-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 0 1.75rem;
}

/* --- Live Search Input --- */
.docs-search-wrap {
  position: relative;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.docs-search-input {
  width: 100%;
  padding: 0.95rem 1.2rem 0.95rem 3.2rem;
  background: rgba(11, 14, 23, 0.8);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.docs-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.25);
  background: rgba(15, 20, 32, 0.95);
}
.docs-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
  pointer-events: none;
}

/* --- Metric Stat Bar --- */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- Filter Pills Bar --- */
.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-pill {
  background: rgba(26, 33, 53, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.filter-pill:hover,
.filter-pill.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.15));
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* --- Rich Section Headings --- */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: #fff;
  margin: 2.2rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.section-heading .icon {
  font-size: 1.5rem;
}

/* --- Upgraded Cards Grid --- */
.docs-card-rich {
  background: linear-gradient(145deg, rgba(26, 33, 53, 0.8), rgba(19, 24, 38, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.docs-card-rich:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.18);
  background: linear-gradient(145deg, rgba(32, 42, 68, 0.9), rgba(22, 29, 46, 0.95));
}
.docs-card-rich .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.docs-card-rich .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.docs-card-rich.purple .card-icon {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}
.docs-card-rich.emerald .card-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.docs-card-rich .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.docs-card-rich.purple .tag {
  color: var(--accent-2);
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}
.docs-card-rich.emerald .tag {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.docs-card-rich h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.3;
}
.docs-card-rich p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.55;
}

.docs-card-rich .card-link-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.2s ease;
}
.docs-card-rich:hover .card-link-text {
  transform: translateX(4px);
}

/* --- No Results Empty State --- */
.no-results {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(26, 33, 53, 0.7);
  border: 1px dashed var(--accent-2);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.no-results span {
  color: var(--accent);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
}


