:root {
    --v-bg: #0c0d10;
    --v-surface: #13141a;
    --v-surface-2: #1a1b24;
    --v-border: rgba(255, 255, 255, 0.06);
    --v-border-solid: rgba(255, 255, 255, 0.1);
    --v-text: #f0f1f3;
    --v-muted: #8b8f99;
    --v-accent: #5865f2;
    --v-accent-hover: #4752c4;
    --v-accent-light: #6e79f5;
    --v-accent-soft: rgba(88, 101, 242, 0.15);
    --v-success: #3ba55d;
    --v-font: 'Outfit', 'DM Sans', system-ui, sans-serif;
    --v-radius: 12px;
}

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

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--v-bg);
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--v-accent);
    border-radius: 5px;
    border: 2px solid var(--v-bg);
    transition: background 0.3s ease;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--v-accent-light);
  }

  * {
    scrollbar-width: thin;
    scrollbar-color: var(--v-accent) var(--v-bg);
  }
  
  body {
    font-family: var(--v-font);
    background-color: var(--v-bg);
    color: var(--v-text);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.5s ease-in;
  }

  @keyframes pageLoad {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .sidebar {
    width: 292px;
    background: linear-gradient(180deg, #12131a 0%, #0c0d10 100%);
    border-right: 1px solid rgba(88, 101, 242, 0.12);
    position: fixed;
    height: 100vh;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
  }

  .sidebar::-webkit-scrollbar {
    width: 8px;
  }

  .sidebar::-webkit-scrollbar-track {
    background: var(--v-surface);
    border-radius: 4px;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: var(--v-accent);
    border-radius: 4px;
    transition: background 0.3s ease;
  }

  .sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--v-accent-light);
  }
  
  .sidebar-header {
    flex-shrink: 0;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, var(--v-accent) 0%, var(--v-accent-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: slideInFromLeft 0.5s ease-out;
    text-decoration: none;
    cursor: pointer;
  }

  .sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
  }

  .sidebar-header .logo,
  .sidebar-header > div {
    position: relative;
    z-index: 1;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiByeD0iOCIgZmlsbD0iIzY2N2VlYSIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSIzIiBmaWxsPSIjZmZmIi8+CjxjaXJjbGUgY3g9IjI1IiBjeT0iMTUiIHI9IjMiIGZpbGw9IiNmZmYiLz4KPHBhdGggZD0iTTE1IDI1SDI1IiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=') center/cover;
    transition: transform 0.3s ease;
    animation: scaleIn 0.6s ease-out;
  }

  .logo:hover {
    transform: rotate(5deg) scale(1.1);
  }
  
  .sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .sidebar-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
  }
  
  .nav-menu {
    padding: 16px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
  }

  .doc-lang-bar {
    flex-shrink: 0;
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--v-border-solid);
    background: var(--v-surface);
    position: relative;
    z-index: 5;
  }

  .doc-lang-bar [data-doc-lang-select] {
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .doc-login-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    color: #fff;
    background: var(--v-accent);
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
    vertical-align: middle;
  }

  .doc-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }

  .doc-quick-actions .doc-login-cta {
    margin-top: 0;
    min-height: 42px;
  }

  .doc-quick-btn i {
    font-size: 0.9rem;
    line-height: 1;
  }

  .doc-login-cta:hover {
    background: var(--v-accent-hover);
    color: #fff;
    transform: translateY(-1px);
  }

  .doc-lang-select {
    position: relative;
    width: 100%;
    z-index: 2;
  }

  .doc-lang-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--v-border-solid);
    border-radius: 10px;
    background: var(--v-surface-2);
    color: var(--v-text);
    transition: border-color 0.15s ease, background 0.15s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .doc-lang-trigger:hover {
    border-color: rgba(88, 101, 242, 0.45);
    background: var(--v-surface-2);
  }

  .doc-lang-flag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
  }

  .doc-lang-flag-img {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    display: block;
  }

  .doc-lang-name {
    flex: 1;
    text-align: left;
    min-width: 0;
  }

  .doc-lang-caret {
    opacity: 0.85;
    font-size: 0.75rem;
    transition: transform 0.15s ease;
    flex-shrink: 0;
  }

  .doc-lang-select.open .doc-lang-caret {
    transform: rotate(180deg);
  }

  .doc-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-height: min(420px, 50vh);
    overflow: auto;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(19, 20, 26, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: var(--v-text);
    z-index: 10050;
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 101, 242, 0.45) rgba(255, 255, 255, 0.06);
  }

  .doc-lang-menu.doc-lang-menu--open {
    display: block;
  }

  .doc-lang-menu::-webkit-scrollbar {
    width: 4px;
  }

  .doc-lang-menu::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.45);
    border-radius: 999px;
  }

  .doc-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--v-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease, border-color 0.12s ease;
  }

  .doc-lang-option:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.35);
  }

  .doc-lang-option.active {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
  }
  
  .nav-item {
    display: block;
    padding: 12px 20px;
    color: var(--v-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .nav-item:hover::before {
    left: 100%;
  }
  
  .nav-item:hover {
    background-color: var(--v-surface-2);
    border-left-color: var(--v-accent);
    color: var(--v-text);
  }
  
  .nav-item.active {
    background-color: var(--v-surface-2);
    border-left-color: var(--v-accent);
    color: var(--v-accent-light);
    animation: slideInFromLeft 0.3s ease-out;
  }

  .nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--v-accent);
    border-radius: 2px 0 0 2px;
    animation: scaleIn 0.3s ease-out;
  }
  
  .nav-item .icon {
    margin-right: 8px;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .nav-item:hover .icon {
    transform: scale(1.2) rotate(5deg);
  }

  .nav-item.active .icon {
    animation: pulse 2s ease-in-out infinite;
  }

  .nav-group {
    margin: 0;
    border: none;
    background: none;
    border-radius: 0;
    overflow: hidden;
  }

  .nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--v-muted);
    font-family: var(--v-font);
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .nav-group.open .nav-group-toggle {
    color: var(--v-accent-light);
    background-color: var(--v-surface-2);
    border-left-color: var(--v-accent);
  }

  .nav-group-toggle:hover {
    background-color: var(--v-surface-2);
    border-left-color: var(--v-accent);
    color: var(--v-text);
  }

  .nav-group-toggle .icon {
    margin-right: 8px;
    font-size: 16px;
    width: auto;
    text-align: left;
  }

  .nav-group-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.25s ease;
    opacity: 0.5;
  }

  .nav-group.open .nav-group-chevron {
    transform: rotate(180deg);
  }

  .nav-group-items {
    display: none;
  }

  .nav-group.open .nav-group-items {
    display: block;
  }

  .nav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 36px;
    color: var(--v-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
  }

  .nav-subitem > span:not(.icon) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-subitem:hover {
    background-color: var(--v-surface-2);
    border-left-color: var(--v-accent);
    color: var(--v-text);
  }

  .nav-subitem.active {
    background-color: var(--v-surface-2);
    border-left-color: var(--v-accent);
    color: var(--v-accent-light);
  }

  .nav-lock-icon {
    font-size: 10px;
    color: #fbbf24;
    margin-left: auto;
    flex-shrink: 0;
  }

  .doc-article {
    max-width: 820px;
  }

  .doc-page-head {
    margin-bottom: 24px;
  }

  .doc-page-head .subtitle {
    margin-top: 6px;
    margin-bottom: 0;
  }

  .doc-hero-intro {
    margin: 0 0 32px;
    padding: 0 0 28px;
    border: none;
    border-bottom: 1px solid var(--v-border-solid);
    border-radius: 0;
    background: none;
  }

  .doc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  .doc-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--v-muted);
    background: var(--v-surface-2);
    border: 1px solid var(--v-border-solid);
  }

  .doc-meta-tag i {
    font-size: 0.72rem;
    color: var(--v-accent-light);
  }

  .doc-meta-tag-accent {
    color: var(--v-text);
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.8rem;
  }

  .doc-meta-tag-success {
    color: var(--v-success);
  }

  .doc-meta-tag-success i {
    color: var(--v-success);
  }

  .doc-hero-lead {
    margin: 0 0 14px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--v-text);
    font-weight: 500;
    max-width: 38em;
  }

  .doc-hero-hint {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--v-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 38em;
    background: var(--v-surface);
    border: 1px solid var(--v-border-solid);
    border-left: 3px solid var(--v-accent);
    border-radius: 8px;
  }

  .doc-hero-hint-icon {
    color: var(--v-accent-light);
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .overview-quick-card {
    margin-bottom: 24px;
    border-left: 4px solid var(--v-accent);
  }

  .doc-breadcrumb {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--v-accent-light);
    margin-bottom: 12px;
  }

  .doc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 28px;
  }

  .doc-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.15);
    color: var(--v-accent-light);
    border: 1px solid rgba(88, 101, 242, 0.25);
  }

  .doc-pill-lock {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
  }

  .doc-block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--v-border-solid);
  }

  .doc-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .doc-block h2 {
    font-size: 1rem;
    margin: 0 0 12px;
    padding-bottom: 0;
    border: none;
  }

  .doc-block h2::before {
    display: none;
  }

  .doc-block-example {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--v-border-solid);
  }

  .doc-text {
    color: var(--v-muted);
    line-height: 1.7;
    margin: 0;
  }

  .syntax-block {
    background: #0d1117;
    border: 1px solid var(--v-border-solid);
    border-left: 4px solid var(--v-accent);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.95rem;
    color: #79c0ff;
    margin: 0;
  }

  .doc-subcmd-grid {
    display: grid;
    gap: 12px;
  }

  .doc-subcmd {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--v-surface-2);
    border-radius: 10px;
    border: 1px solid var(--v-border-solid);
  }

  .doc-subcmd > code {
    flex-shrink: 0;
    min-width: 130px;
    padding-top: 2px;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: #79c0ff;
    white-space: nowrap;
  }

  .doc-subcmd > div {
    flex: 1;
    min-width: 0;
  }

  .doc-subcmd p {
    margin: 0;
    color: var(--v-muted);
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .doc-module-list {
    display: grid;
    gap: 16px;
    margin-top: 8px;
  }

  .doc-module-item {
    padding: 16px 18px;
    background: var(--v-surface-2);
    border-radius: 8px;
    border-left: 3px solid var(--v-accent);
  }

  .doc-module-item h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
  }

  .doc-module-item p {
    margin: 0;
    color: var(--v-muted);
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .doc-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--v-muted);
    line-height: 1.8;
  }

  .doc-callout {
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--v-muted);
  }

  .doc-callout-warn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
  }

  .doc-callout-warn i {
    color: #fbbf24;
    margin-top: 3px;
  }

  .doc-login-cta-secondary {
    background: var(--v-surface-2);
    border: 1px solid var(--v-border-solid);
    color: var(--v-text);
  }

  .doc-login-cta-secondary:hover {
    background: var(--v-surface-2);
    border-color: var(--v-accent);
    color: var(--v-accent-light);
  }

  .doc-perm-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 28px;
    border-radius: 6px;
    background: var(--v-surface-2);
    border: none;
    border-left: 3px solid #3ba55d;
  }

  .doc-perm-banner.doc-perm-warn {
    border-left-color: #fbbf24;
  }

  .doc-perm-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #3ba55d;
    flex-shrink: 0;
    font-size: 1rem;
  }

  .doc-perm-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #3ba55d;
    margin-bottom: 4px;
  }

  .doc-perm-text {
    margin: 0;
    color: var(--v-text);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .doc-subcmd-perm {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.1);
  }

  .doc-module-item-locked {
    border-left-color: #fbbf24;
  }

  .doc-mod-lock {
    color: #fbbf24;
    font-size: 0.85em;
    margin-right: 4px;
  }

  .doc-callout-info {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: var(--v-muted);
  }

  .doc-callout-info i {
    color: var(--v-accent-light);
    margin-top: 3px;
  }

  .main-content {
    margin-left: 292px;
    flex: 1;
    padding: 40px 60px;
    max-width: calc(100% - 292px);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .content-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
  }
  
  .content-section.active {
    display: block;
    animation: fadeInSlide 0.5s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }

  @keyframes shimmer {
    0% {
      background-position: -1000px 0;
    }
    100% {
      background-position: 1000px 0;
    }
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  h1 {
    font-size: 32px;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 8px;
    animation: fadeInSlide 0.6s ease-out;
    position: relative;
  }

  h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--v-accent), var(--v-accent-light));
    animation: expandWidth 0.8s ease-out 0.3s forwards;
  }

  @keyframes expandWidth {
    to {
      width: 100px;
    }
  }
  
  .subtitle {
    font-size: 18px;
    color: var(--v-muted);
    margin-bottom: 32px;
    font-weight: 400;
    animation: fadeInSlide 0.6s ease-out 0.2s both;
  }
  
  h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--v-text);
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--v-border-solid);
    position: relative;
    animation: fadeInSlide 0.5s ease-out;
  }

  h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--v-accent);
    transition: width 0.5s ease;
  }

  h2:hover::before {
    width: 100%;
  }
  
  h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--v-text);
    margin: 24px 0 12px 0;
  }
  
  .command-grid {
    display: grid;
    gap: 16px;
    margin: 16px 0;
  }
  
  .command-card {
    background: var(--v-surface-2);
    border: 1px solid var(--v-border-solid);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
  }

  .command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.1), transparent);
    transition: left 0.6s ease;
  }

  .command-card:hover::before {
    left: 100%;
  }
  
  .command-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
    border-color: var(--v-accent);
  }
  
  .command-name {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--v-surface);
    color: var(--v-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid var(--v-border-solid);
    transition: all 0.3s ease;
    position: relative;
  }

  .command-card:hover .command-name {
    background: var(--v-surface);
    color: var(--v-accent-light);
    border-color: var(--v-accent);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
  }
  
  .command-description {
    color: var(--v-muted);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
  }

  .command-card:hover .command-description {
    color: var(--v-text);
  }
  
  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
  }
  
  .info-card {
    background: var(--v-surface-2);
    border: 1px solid var(--v-border-solid);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--v-accent), var(--v-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }

  .info-card:hover::after {
    transform: scaleX(1);
  }

  .info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.2);
    border-color: var(--v-accent);
  }

  .custom-bot-step-highlight {
    border: 2px solid var(--v-accent);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(110, 121, 245, 0.05) 100%);
  }

  .custom-bot-step-highlight p {
    color: var(--v-text) !important;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
  }

  .custom-bot-step-highlight h3 {
    color: #fff !important;
    font-size: 17px;
  }

  .custom-bot-step-highlight code {
    color: #ffffff !important;
    font-weight: 600;
    background: rgba(88, 101, 242, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--v-accent);
  }
  
  .info-card h3 {
    margin: 0 0 16px 0;
    color: var(--v-text);
    font-size: 16px;
    font-weight: 600;
  }
  
  .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--v-border-solid);
    transition: all 0.3s ease;
    position: relative;
  }

  .info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.2), transparent);
    transition: width 0.3s ease;
  }

  .info-item:hover::before {
    width: 100%;
  }

  .info-item:hover {
    padding-left: 8px;
    color: var(--v-text);
  }
  
  .info-item:last-child {
    border-bottom: none;
  }
  
  .info-label {
    font-weight: 500;
    color: var(--v-muted);
    font-size: 14px;
  }
  
  .info-value {
    font-weight: 600;
    color: var(--v-text);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
  }

  .info-item:hover .info-value {
    color: var(--v-accent-light);
    transform: translateX(4px);
  }
  
  .status-online {
    color: var(--v-success);
    position: relative;
    padding-left: 12px;
  }

  .status-online::before {
    content: '●';
    position: absolute;
    left: 0;
    animation: pulse 2s ease-in-out infinite;
  }
  
  .status-enabled {
    color: var(--v-success);
  }
  
  .status-disabled {
    color: #e53e3e;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
  }
  
  .feature-card {
    background: linear-gradient(135deg, var(--v-accent) 0%, var(--v-accent-light) 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .feature-card:hover::before {
    opacity: 1;
  }
  
  .feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
  }

  .guide-grid {
    display: grid;
    gap: 20px;
    margin: 16px 0 32px;
  }

  .guide-card {
    background: var(--v-surface-2);
    border: 1px solid var(--v-border-solid);
    border-radius: 12px;
    padding: 20px 24px;
    border-left: 4px solid var(--v-accent);
    transition: box-shadow 0.3s ease;
  }

  .guide-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .guide-card.locked {
    border-left-color: #fbbf24;
  }

  .guide-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .guide-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .guide-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.2);
    color: var(--v-accent-light);
  }

  .guide-badge.owner {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
  }

  .guide-desc {
    color: var(--v-muted);
    margin: 0 0 16px;
    line-height: 1.65;
  }

  .guide-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--v-accent-light);
    margin-bottom: 8px;
  }

  .usage-block {
    background: #1a1b26;
    border: 1px solid var(--v-border-solid);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #c9d1d9;
    overflow-x: auto;
    margin: 0 0 16px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .guide-example p {
    color: var(--v-muted);
    margin: 0;
    line-height: 1.65;
  }

  .guide-toc a {
    color: var(--v-accent);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .guide-toc a:hover {
    color: var(--v-accent-light);
    text-decoration: underline;
  }
  
  .feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .feature-description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
  }
  
  .developer-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .developer-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 24px 0;
  }
  
  .developer {
    text-align: center;
  }
  
  .developer-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--v-accent) 0%, var(--v-accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 8px;
  }
  
  .developer-name {
    font-weight: 600;
    color: #2d3748;
  }
  
  @media (max-width: 768px) {
    body {
      overflow-x: hidden;
      position: relative;
    }
    
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
      width: min(280px, 88vw);
      max-width: 100%;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      pointer-events: none;
    }
  
    .sidebar.mobile-open {
      transform: translateX(0);
      pointer-events: auto;
    }

    body.doc-mobile-nav-open {
      overflow: hidden;
    }

    .doc-lang-bar {
      overflow: visible;
    }

    .doc-lang-menu {
      left: 0;
      right: 0;
      width: 100%;
      max-height: min(360px, 45dvh);
    }
  
    .main-content {
      margin-left: 0;
      max-width: 100%;
      padding: 20px;
      padding-top: 80px;
      overflow-x: hidden;
      min-height: 100vh;
    }

    .doc-subcmd {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .nav-subitem {
      padding: 12px 20px 12px 32px;
      font-size: 14px;
    }
  
    .mobile-menu-toggle {
      display: block !important;
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 1002;
      background: var(--v-accent);
      color: white;
      border: none;
      padding: 12px 16px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      min-width: 48px;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .mobile-menu-toggle:hover {
      background: var(--v-accent-hover);
      transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
      transform: scale(0.95);
    }
    
    .mobile-overlay {
      display: block;
      pointer-events: none;
    }

    .mobile-overlay.active {
      pointer-events: auto;
    }
    
    .command-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    .info-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .feature-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  
  .mobile-menu-toggle {
    display: none;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.9);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }


  .developer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 24px;
  }

  .developer-grid-alt {
    margin-top: 20px;
  }
  
  .dev-card {
    background: linear-gradient(135deg, #1e1b2e 0%, #2a2540 50%, #1f1d2e 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    width: 220px;
    padding: 18px;
    text-align: center;
    color: var(--v-text);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
  }

  .dev-card .dev-avatar {
    border-color: rgba(139, 92, 246, 0.5);
  }

  .dev-card .dev-info h3 {
    color: #c4b5fd;
  }

  .dev-card .dev-info span {
    color: #a78bfa;
  }

  .dev-card-crash {
    background: linear-gradient(135deg, #2a1214 0%, #3d1518 50%, #261014 100%);
    border: 1px solid rgba(237, 66, 69, 0.55);
  }

  .dev-card-crash:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(237, 66, 69, 0.35), 0 0 0 1px rgba(237, 66, 69, 0.35);
    border-color: rgba(237, 66, 69, 0.85);
  }

  .dev-card-crash .dev-avatar {
    border-color: rgba(237, 66, 69, 0.65);
  }

  .dev-card-crash .dev-info h3 {
    color: #fca5a5;
  }

  .dev-card-crash .dev-info p {
    color: rgba(254, 202, 202, 0.88);
  }

  .dev-card-crash .dev-info span {
    color: #fecaca;
  }
  
  .dev-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4a5568;
    transition: all 0.4s ease;
  }
  
  .dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .dev-info h3 {
    margin-bottom: 2px;
    font-size: 16px;
    color: var(--v-text);
  }
  
  .dev-info p {
    font-size: 12px;
    color: var(--v-muted);
    margin-bottom: 4px;
  }
  
  .dev-info span {
    font-size: 11px;
    color: var(--v-muted);
  }

  .dev-card-alt {
    background: linear-gradient(135deg, #2a2418 0%, #352d1e 50%, #282118 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
  }

  .dev-card-alt:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(251, 191, 36, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
  }

  .dev-card-alt .dev-avatar {
    border-color: rgba(251, 191, 36, 0.5);
  }

  .dev-card-alt .dev-info h3 {
    color: #fcd34d;
  }

  .dev-card-alt .dev-info span {
    color: #d4b896;
  }

  .dev-card-support {
    background: linear-gradient(135deg, #1a2520 0%, #243529 50%, #1e2d24 100%);
    border: 1px solid rgba(52, 211, 153, 0.35);
  }

  .dev-card-support:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(52, 211, 153, 0.2), 0 0 0 1px rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
  }

  .dev-card-support .dev-avatar {
    border-color: rgba(52, 211, 153, 0.4);
  }

  .dev-card-support .dev-info h3 {
    color: #6ee7b7;
  }

  .dev-card-support .dev-info p,
  .dev-card-support .dev-info span {
    color: #9ca3af;
  }

.discord-container {
  max-width: 800px;
  margin: 0 auto;
}

.discord-card {
  background: linear-gradient(135deg, var(--v-surface-2), var(--v-surface));
  border: 1px solid var(--v-border-solid);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.discord-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(110, 121, 245, 0.05) 100%);
  z-index: 1;
}

.discord-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--v-accent);
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(88, 101, 242, 0.3);
  position: relative;
  z-index: 2;
}

  .discord-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--v-accent) 0%, var(--v-accent-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 4s ease-in-out infinite;
  }

  .discord-icon:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.7);
    animation: none;
  }

.discord-info h3 {
  font-size: 2rem;
  color: var(--v-accent-light);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.discord-info p {
  color: var(--v-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.discord-widget {
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(88, 101, 242, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.discord-widget:hover {
  border-color: var(--v-accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.discord-widget iframe {
  display: block;
  border: none;
  width: 100%;
  height: 400px;
  background: var(--v-surface-2);
}

.discord-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

  .discord-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .discord-actions a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
  }

  .discord-actions a:hover::before {
    width: 300px;
    height: 300px;
  }

.discord-actions a:first-child {
  background: linear-gradient(135deg, var(--v-accent) 0%, var(--v-accent-light) 100%);
  color: white;
  border: 1px solid var(--v-accent);
}

.discord-actions a:last-child {
  background: transparent;
  color: var(--v-accent-light);
  border: 2px solid var(--v-accent);
}

.discord-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.discord-actions a:first-child:hover {
  background: linear-gradient(135deg, var(--v-accent-hover) 0%, var(--v-accent-light) 100%);
}

.discord-actions a:last-child:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: var(--v-accent-light);
}

@media (max-width: 768px) {
  .discord-card {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .discord-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .discord-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .discord-info h3 {
    font-size: 1.8rem;
  }
  
  .discord-info p {
    font-size: 1rem;
  }
  
  .discord-widget iframe {
    height: 350px;
  }
  
  .discord-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .discord-actions a {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .discord-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .discord-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .discord-info h3 {
    font-size: 1.6rem;
  }
  
  .discord-widget iframe {
    height: 300px;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--v-radius);
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: var(--v-accent);
  border: 1px solid var(--v-accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--v-accent-hover);
  border-color: var(--v-accent-hover);
  transform: translateY(-2px);
}

.doc-heading-icon {
  margin-right: 0.5rem;
  color: var(--v-accent-light);
  width: 1.1em;
  text-align: center;
}

.doc-inline-icon {
  margin-right: 0.35rem;
  color: var(--v-accent-light);
}

.doc-callout-icon {
  margin-right: 0.35rem;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item .icon,
.nav-group-toggle .icon,
.nav-subitem .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  flex-shrink: 0;
}

.nav-item .icon i,
.nav-group-toggle .icon i,
.nav-subitem .icon i {
  font-size: 0.85rem;
  color: var(--v-accent-light);
  opacity: 0.85;
}

.nav-subitem.active .icon i {
  opacity: 1;
}

.nav-group-chevron {
  color: var(--v-accent-light);
  opacity: 0.65;
}

.nav-group.open .nav-group-chevron {
  opacity: 1;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.command-name .doc-inline-icon,
.feature-title .doc-inline-icon {
  opacity: 0.95;
}

.dev-info span .doc-inline-icon {
  margin-right: 0.25rem;
}
