/* Aver Docs - Complete Modern Dark Theme Stylesheet */
:root {
  --bg-main: #0a0d1c;
  --bg-sidebar: #0a0d1c;
  --bg-card: rgba(255, 255, 255, 0.015);
  --bg-card-hover: rgba(255, 255, 255, 0.03);
  --bg-code: #080b18;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 118, 180, 0.3);
  --accent: #ff76b4;
  --accent-glow: rgba(255, 118, 180, 0.15);
  --accent-light: rgba(255, 118, 180, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-faint: rgba(255, 255, 255, 0.25);
  --sidebar-w: 270px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 13, 28, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 13, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

.mobile-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 40;
}
.mobile-backdrop.active {
  display: block;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 45;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Clean logo with transparent background & glowing accent drop shadow */
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 118, 180, 0.55));
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.brand-title .pink {
  color: var(--accent);
}

/* Search Box */
.sidebar-search {
  padding: 14px 16px 8px 16px;
  flex-shrink: 0;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrapper i {
  position: absolute;
  left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px 8px 34px;
  font-size: 0.8rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}
.search-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px var(--accent-glow);
}
.search-input::placeholder {
  color: var(--text-muted);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 12px;
  margin-bottom: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.18s ease;
  margin-bottom: 2px;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}
.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.nav-item:hover i {
  color: var(--text-secondary);
}

.nav-item.active {
  color: #ffffff;
  background: var(--accent-light);
  font-weight: 600;
}
.nav-item.active i {
  color: var(--accent);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent);
}
.nav-item .active-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
  box-shadow: 0 0 6px var(--accent);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s ease;
}
.sidebar-footer-link:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}
.sidebar-footer-link i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: calc(100vw - var(--sidebar-w));
}

#docs-view {
  flex: 1;
}

/* Hero Banner */
.page-hero {
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(10, 13, 28, 0) 100%);
  padding: 48px 40px;
}
.page-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.18s ease;
}
.back-link:hover {
  color: #ffffff;
}
.back-link i {
  font-size: 0.75rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-light);
  border: 1px solid rgba(255, 118, 180, 0.25);
  color: var(--accent);
  margin-bottom: 16px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.page-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Page Body Container */
.page-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 40px 80px 40px;
  width: 100%;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Cards & Grids */
.docs-grid {
  display: grid;
  gap: 16px;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(255, 118, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-card-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  transition: color 0.18s ease;
}
.feature-card:hover .feature-card-content h3 {
  color: var(--accent);
}
.feature-card-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Quick Start 3-step */
.quickstart-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
}
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quickstart-step {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
}
.quickstart-step:last-child {
  border-right: none;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.step-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid rgba(255, 118, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.85rem;
}
.step-badge {
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
}
.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Banner Alerts */
.quick-setup-alert {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.alert-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.alert-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.alert-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.alert-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.alert-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Accordion Component */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.accordion-item.is-open {
  border-color: rgba(255, 255, 255, 0.12);
}

.accordion-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}
.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}
.accordion-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.accordion-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-light);
  border: 1px solid rgba(255, 118, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.accordion-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.accordion-chevron {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.accordion-body {
  display: none;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}
.accordion-item.is-open .accordion-body {
  display: block;
}

/* Commands Section Styling (Exact Match) */
.command-category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.commands-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.command-card {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.18s ease;
}
.command-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 118, 180, 0.2);
}
.command-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.command-card-header code {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 118, 180, 0.1);
  border: 1px solid rgba(255, 118, 180, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
}
.command-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.command-opts {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding-left: 2px;
}

/* Code Blocks & Pre */
.code-block-wrapper {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  margin: 14px 0;
}
.code-block-wrapper pre {
  max-height: 320px;
  overflow-y: auto;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-subtle);
}
.code-block-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.18s ease;
}
.copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.copy-btn.copied {
  color: #4ade80 !important;
}

pre {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}
pre code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

/* Inline Code */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Callout Boxes */
.callout {
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.callout-warning {
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.callout-warning i {
  color: #eab308;
  font-size: 1rem;
  margin-top: 2px;
}
.callout-info {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.callout-info i {
  color: #60a5fa;
  font-size: 1rem;
  margin-top: 2px;
}
.callout-pink {
  background: var(--accent-light);
  border: 1px solid rgba(255, 118, 180, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.callout-pink i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 2px;
}

/* Lists */
.docs-list-bullet {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.docs-list-bullet li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.bullet-dot.required {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.bullet-dot.optional {
  background: rgba(255, 255, 255, 0.25);
}

.docs-list-numbered {
  list-style: none;
  counter-reset: docs-counter;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.docs-list-numbered li {
  counter-increment: docs-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.docs-list-numbered li::before {
  content: counter(docs-counter);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin: 16px 0;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
.docs-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: top;
}
.docs-table tr:last-child td {
  border-bottom: none;
}
.docs-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* Support Buttons */
.support-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.btn-support-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: #5865f2;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-support-discord:hover {
  background: rgba(88, 101, 242, 0.22);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.25);
}
.btn-support-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 12px;
  background: rgba(38, 165, 228, 0.12);
  border: 1px solid rgba(38, 165, 228, 0.28);
  color: #26a5e4;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-support-telegram:hover {
  background: rgba(38, 165, 228, 0.22);
  box-shadow: 0 0 15px rgba(38, 165, 228, 0.25);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .mobile-header {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
    max-width: 100vw;
    padding-top: 60px;
  }
  .page-hero {
    padding: 32px 20px;
  }
  .page-body {
    padding: 28px 20px 60px 20px;
  }
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quickstart-grid {
    grid-template-columns: 1fr;
  }
  .quickstart-step {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .quickstart-step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 1.85rem;
  }
}
