
    :root {
      --primary: #ff6b00;
      --primary-light: #ff8533;
      --primary-dark: #e55e00;
      --primary-bg: #fff7ed;
      --bg: #ffffff;
      --bg-secondary: #f8f9fa;
      --bg-code: #1e1e2e;
      --text: #1a1a2e;
      --text-secondary: #5a5a7a;
      --text-tertiary: #8a8aaa;
      --border: #e8e8f0;
      --border-light: #f0f0f5;
      --sidebar-width: 280px;
      --header-height: 60px;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
      --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
      --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
      --radius: 8px;
      --radius-lg: 12px;
      --transition: all 0.2s ease;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    /* ===== Header ===== */
    .header {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--header-height);
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      z-index: 100;
      display: flex;
      align-items: center;
      padding: 0 24px;
    }

    .header-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--text);
      font-weight: 700;
      font-size: 18px;
    }

    .header-logo .logo-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      object-fit: contain;
    }

    .header-logo span { color: var(--primary); }

    .header-nav {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: 48px;
    }

    .header-nav a {
      text-decoration: none;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 6px;
      transition: var(--transition);
    }

    .header-nav a:hover { color: var(--text); background: var(--bg-secondary); }
    .header-nav a.active { color: var(--primary); background: var(--primary-bg); }

    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-left: auto;
    }

    .header-link {
      text-decoration: none;
      color: var(--primary);
      font-size: 14px;
      font-weight: 600;
      padding: 7px 16px;
      border: 1px solid var(--primary);
      border-radius: 8px;
      transition: var(--transition);
    }

    .header-link:hover { background: var(--primary); color: white; }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      color: var(--text);
    }

    /* ===== Layout ===== */
    .layout { display: flex; margin-top: var(--header-height); min-height: calc(100vh - var(--header-height)); }

    /* ===== Sidebar ===== */
    .sidebar {
      width: var(--sidebar-width);
      position: fixed;
      top: var(--header-height);
      bottom: 0; left: 0;
      background: var(--sidebar-bg, #fafafa);
      border-right: 1px solid var(--border);
      overflow-y: auto;
      padding: 20px 0;
      z-index: 50;
      transition: transform 0.3s ease;
    }

    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-track { background: transparent; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .sidebar-section { margin-bottom: 8px; }

    .sidebar-title {
      padding: 8px 24px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-tertiary);
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 24px;
      font-size: 14px;
      color: var(--text-secondary);
      text-decoration: none;
      border-left: 3px solid transparent;
      transition: var(--transition);
    }

    .sidebar-link:hover { color: var(--text); background: rgba(0,0,0,0.02); }
    .sidebar-link.active { color: var(--primary); background: var(--primary-bg); border-left-color: var(--primary); font-weight: 500; }

    .sidebar-link .link-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
    .sidebar-link .link-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .feature-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .section-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .info-box svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .info-box { display: flex; align-items: flex-start; gap: 10px; }
    .info-box .info-content { flex: 1; }

    .sidebar-sub { padding-left: 20px; }
    .sidebar-sub .sidebar-link { font-size: 13px; padding: 6px 24px; }

    /* ===== Main Content ===== */
    .main { flex: 1; margin-left: var(--sidebar-width); padding: 40px 60px 80px; }

    /* ===== Content Styles ===== */
    .section { margin-bottom: 64px; scroll-margin-top: calc(var(--header-height) + 20px); }

    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      background: var(--primary-bg);
      color: var(--primary);
      font-size: 12px;
      font-weight: 600;
      border-radius: 20px;
      margin-bottom: 12px;
    }

    .section h1 { font-size: 36px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.5px; }
    .section h2 { font-size: 24px; font-weight: 700; line-height: 1.4; margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); letter-spacing: -0.3px; }
    .section h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 32px 0 12px; }
    .section h4 { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 24px 0 8px; }

    .section p { color: var(--text-secondary); margin-bottom: 16px; font-size: 15px; }
    .section ul, .section ol { margin-bottom: 16px; padding-left: 24px; }
    .section li { color: var(--text-secondary); margin-bottom: 6px; font-size: 15px; }
    .section li strong { color: var(--text); }
    .section a { color: var(--primary); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; transition: var(--transition); }
    .section a:hover { border-bottom-color: var(--primary); }

    /* Info Boxes */
    .info-box { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
    .info-box.tip { background: #f0fdf4; border-left: 3px solid #22c55e; color: #15803d; }
    .info-box.warning { background: #fffbeb; border-left: 3px solid #f59e0b; color: #92400e; }
    .info-box.info { background: #eff6ff; border-left: 3px solid #3b82f6; color: #1e40af; }
    .info-box.danger { background: #fef2f2; border-left: 3px solid #ef4444; color: #991b1b; }
    .info-box strong { display: block; margin-bottom: 4px; }
    .info-box .info-icon { flex-shrink: 0; margin-top: 2px; }

    /* Code Blocks */
    pre {
      background: var(--bg-code);
      color: #cdd6f4;
      padding: 20px 24px;
      border-radius: var(--radius-lg);
      overflow-x: auto;
      margin-bottom: 20px;
      font-family: 'JetBrains Mono', 'Fira Code', monospace;
      font-size: 13px;
      line-height: 1.7;
      position: relative;
    }

    pre::-webkit-scrollbar { height: 6px; }
    pre::-webkit-scrollbar-track { background: transparent; }
    pre::-webkit-scrollbar-thumb { background: #45475a; border-radius: 3px; }

    .code-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 20px;
      background: #181825;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      border: 1px solid #313244;
      border-bottom: none;
      margin-bottom: -1px;
    }

    .code-header span { font-size: 12px; font-weight: 600; color: #a6adc8; font-family: 'JetBrains Mono', monospace; }

    .code-copy {
      background: none; border: 1px solid #45475a; color: #a6adc8;
      padding: 3px 10px; border-radius: 5px; font-size: 11px; cursor: pointer;
      transition: var(--transition); font-family: 'Inter', sans-serif;
    }

    .code-copy:hover { background: #313244; color: #cdd6f4; }

    .code-wrapper { margin-bottom: 20px; }
    .code-wrapper pre { border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin-bottom: 0; border: 1px solid #313244; border-top: none; }

    code:not(pre code) {
      background: var(--bg-secondary); color: var(--primary-dark);
      padding: 2px 7px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 13px;
      border: 1px solid var(--border);
    }

    /* Syntax highlighting */
    .token-comment { color: #6c7086; font-style: italic; }
    .token-string { color: #a6e3a1; }
    .token-keyword { color: #cba6f7; }
    .token-function { color: #89b4fa; }
    .token-number { color: #fab387; }
    .token-operator { color: #89dceb; }
    .token-property { color: #f9e2af; }
    .token-variable { color: #f38ba8; }

    /* Tables */
    .table-wrapper { overflow-x: auto; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
    table { width: 100%; border-collapse: collapse; font-size: 14px; }
    thead { background: var(--bg-secondary); }
    th { text-align: left; padding: 12px 16px; font-weight: 600; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
    td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); vertical-align: top; }
    tr:last-child td { border-bottom: none; }
    tr:hover td { background: rgba(0,0,0,0.01); }
    td code { background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px; font-size: 12px; border: 1px solid var(--border); }

    .required-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
    .required-badge.yes { background: #fef2f2; color: #dc2626; }
    .required-badge.no { background: #f8f9fa; color: #6b7280; }

    /* Endpoint Card */
    .endpoint-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px; }
    .endpoint-method { padding: 6px 14px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; flex-shrink: 0; }
    .endpoint-method.post { background: #dcfce7; color: #16a34a; }
    .endpoint-method.get { background: #dbeafe; color: #2563eb; }
    .endpoint-path { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--text); word-break: break-all; }
    .endpoint-desc { margin-left: auto; font-size: 13px; color: var(--text-tertiary); flex-shrink: 0; }

    /* Steps */
    .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
    .step-card { padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--transition); }
    .step-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
    .step-num { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
    .step-card h4 { margin-bottom: 6px; }
    .step-card p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 0; }

    /* Feature Grid */
    .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
    .feature-card { padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--transition); margin-bottom: 12px; }
    .feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
    .feature-icon { width: 40px; height: 40px; background: var(--primary-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
    .feature-card h4 { margin-bottom: 6px; font-size: 15px; }
    .feature-card p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 0; }

    .feature-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .feature-cards .feature-card { margin-bottom: 0; }

    /* Page Footer */
    .page-footer { padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-tertiary); flex-wrap: wrap; gap: 12px; }
    .page-footer a { color: var(--primary); text-decoration: none; }
    .page-footer a:hover { text-decoration: underline; }

    /* Scroll to Top */
    .scroll-top {
      position: fixed; bottom: 24px; right: 24px;
      width: 40px; height: 40px; background: var(--primary); color: white;
      border: none; border-radius: 50%; cursor: pointer;
      box-shadow: var(--shadow-lg); display: none; align-items: center; justify-content: center;
      font-size: 18px; transition: var(--transition); z-index: 90;
    }
    .scroll-top:hover { transform: translateY(-2px); background: var(--primary-dark); }
    .scroll-top.visible { display: flex; }

    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 40; }

    /* Responsive */
    @media (max-width: 1024px) {
      .main { padding: 32px 32px 80px; }
      .header-nav { display: none; }
    }

    @media (max-width: 768px) {
      .menu-toggle { display: block; }
      .sidebar { transform: translateX(-100%); }
      .sidebar.open { transform: translateX(0); }
      .sidebar-overlay.open { display: block; }
      .main { margin-left: 0; padding: 24px 20px 80px; }
      .header-search { display: none; }
      .header-link { display: none; }
      .section h1 { font-size: 28px; }
      .section h2 { font-size: 20px; }
      .steps { grid-template-columns: 1fr; }
      .feature-grid { grid-template-columns: 1fr; }
      .endpoint-card { flex-wrap: wrap; }
      .endpoint-desc { margin-left: 0; width: 100%; margin-top: 8px; }
    }
  