:root {
      --bg: #090d16;
      --bg-card: #0e1424;
      --bg-card-hover: #131c31;
      --bg-sidebar: #060911;
      --border: #1e293b;
      --border-accent: rgba(59, 130, 246, 0.3);
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --primary: #3b82f6;
      --primary-light: #60a5fa;
      --primary-glow: rgba(59, 130, 246, 0.2);
      --success: #10b981;
      --success-glow: rgba(16, 185, 129, 0.15);
      --warning: #f59e0b;
      --danger: #ef4444;
      --solana-purple: #9945ff;
      --solana-green: #14f195;
      --tron-red: #ff0018;
      --code-bg: #030712;
      --code-border: #1f2937;
      --header-h: 64px;
      --horiz-nav-h: 46px;
      --sidebar-w: 280px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 15px; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      line-height: 1.65;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      width: 100%;
      max-width: 100vw;
    }

    /* Scrollbars */
    ::-webkit-scrollbar { width: 7px; height: 7px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #334155; }

    /* Top Navigation */
    header.top-nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--header-h);
      background: rgba(9, 13, 22, 0.96);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      z-index: 100;
    }
    .brand-group {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      flex-shrink: 0;
    }
    .brand-logo {
      height: 36px;
      width: auto;
      object-fit: contain;
    }
    .brand-title {
      font-weight: 700;
      font-size: 16px;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .badge-live {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      background: rgba(16, 185, 129, 0.15);
      color: var(--success);
      border: 1px solid rgba(16, 185, 129, 0.3);
      padding: 2px 7px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .badge-live::before {
      content: "";
      width: 6px;
      height: 6px;
      background: var(--success);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--success);
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 15px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .btn-primary {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #ffffff;
      box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
    }
    .btn-primary:hover {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
      transform: translateY(-1px);
    }
    .btn-outline {
      background: rgba(255, 255, 255, 0.04);
      border-color: var(--border);
      color: var(--text);
    }
    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: #3b82f6;
      color: #fff;
    }

    /* Hamburger Menu Button */
    .hamburger-menu-btn {
      display: none;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      padding: 0;
      border-radius: 10px;
      background: rgba(59, 130, 246, 0.16);
      border: 1px solid rgba(59, 130, 246, 0.45);
      color: #fff;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .hamburger-menu-btn:hover, .hamburger-menu-btn:active {
      background: rgba(59, 130, 246, 0.3);
      border-color: var(--primary);
      transform: translateY(-1px);
    }
    .header-bayi-btn {
      padding: 8px 18px !important;
      font-weight: 700 !important;
      font-size: 13px !important;
    }

    /* Horizontal Category Bar */
    .horizontal-nav-bar {
      position: fixed;
      top: var(--header-h);
      left: 0;
      right: 0;
      height: var(--horiz-nav-h);
      background: rgba(8, 12, 22, 0.95);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      padding: 0 16px;
      z-index: 95;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
    }
    .horizontal-nav-bar::-webkit-scrollbar {
      display: none;
    }
    .horizontal-nav-track {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .horiz-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 12px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.15s ease;
      white-space: nowrap;
      flex-shrink: 0;
      user-select: none;
    }
    .horiz-chip:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.2);
    }
    .horiz-chip.active {
      background: rgba(59, 130, 246, 0.18);
      border-color: var(--primary);
      color: #60a5fa;
      font-weight: 700;
      box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
    }

    /* Layout */
    .app-container {
      display: flex;
      margin-top: calc(var(--header-h) + var(--horiz-nav-h));
      min-height: calc(100vh - (var(--header-h) + var(--horiz-nav-h)));
      width: 100%;
      max-width: 100vw;
      box-sizing: border-box;
      overflow-x: hidden;
      position: relative;
    }

    /* Sidebar Navigation */
    aside.sidebar {
      position: fixed;
      top: calc(var(--header-h) + var(--horiz-nav-h));
      left: 0;
      bottom: 0;
      width: var(--sidebar-w);
      background: var(--bg-sidebar);
      border-right: 1px solid var(--border);
      overflow-y: auto;
      padding: 24px 16px;
      z-index: 90;
      box-sizing: border-box;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sidebar-mobile-header, .sidebar-mobile-footer {
      display: none;
    }
    .sidebar-backdrop {
      display: none;
    }
    .search-box {
      margin-bottom: 20px;
      position: relative;
    }
    .search-box input {
      width: 100%;
      background: #0d1322;
      border: 1px solid var(--border);
      color: #fff;
      font-size: 13px;
      padding: 9px 12px 9px 34px;
      border-radius: 8px;
      outline: none;
      transition: border-color 0.2s;
    }
    .search-box input:focus {
      border-color: var(--primary);
    }
    .search-box svg {
      position: absolute;
      left: 10px;
      top: 10px;
      width: 15px;
      height: 15px;
      fill: var(--text-dim);
    }

    .nav-category {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-dim);
      margin: 18px 0 8px 10px;
    }
    .nav-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .nav-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border-radius: 7px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      transition: all 0.15s ease;
    }
    .nav-link:hover {
      background: rgba(255, 255, 255, 0.04);
      color: #fff;
    }
    .nav-link.active {
      background: rgba(59, 130, 246, 0.12);
      color: var(--primary-light);
      font-weight: 600;
      border-left: 3px solid var(--primary);
    }
    .method-tag {
      font-size: 9px;
      font-weight: 800;
      padding: 2px 5px;
      border-radius: 4px;
      font-family: 'JetBrains Mono', monospace;
    }
    .tag-post { background: rgba(16, 185, 129, 0.2); color: #10b981; }
    .tag-get { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
    .tag-hook { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

    /* Main Content Area */
    main.content {
      margin-left: var(--sidebar-w);
      width: calc(100% - var(--sidebar-w));
      max-width: calc(100% - var(--sidebar-w));
      min-width: 0;
      flex: 1 1 auto;
      box-sizing: border-box;
      padding: 40px 48px 80px 48px;
      overflow-x: hidden;
    }

    /* Section Styling */
    section.doc-section {
      margin-bottom: 64px;
      scroll-margin-top: calc(var(--header-h) + var(--horiz-nav-h) + 20px);
    }
    h1.doc-title {
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    p.lead-text {
      font-size: 16px;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 28px;
    }
    h2.section-heading {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin: 32px 0 16px 0;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 10px;
    }
    h3.sub-heading {
      font-size: 17px;
      font-weight: 600;
      margin: 24px 0 10px 0;
      color: #e2e8f0;
    }
    p { margin-bottom: 16px; color: #cbd5e1; }
    ul, ol { margin-bottom: 18px; padding-left: 22px; color: #cbd5e1; }
    li { margin-bottom: 8px; }

    /* Alert / Callout Boxes */
    .callout {
      border-radius: 12px;
      padding: 16px 20px;
      margin: 20px 0;
      border-left: 4px solid;
      background: var(--bg-card);
      display: flex;
      gap: 14px;
      font-size: 14px;
      line-height: 1.6;
    }
    .callout-icon {
      font-size: 20px;
      line-height: 1;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .callout-info { border-left-color: var(--primary); background: rgba(59, 130, 246, 0.06); }
    .callout-success { border-left-color: var(--success); background: rgba(16, 185, 129, 0.06); }
    .callout-warning { border-left-color: var(--warning); background: rgba(245, 158, 11, 0.06); }
    .callout-danger { border-left-color: var(--danger); background: rgba(239, 68, 68, 0.06); }

    /* Interactive Code Blocks */
    .code-container {
      background: var(--code-bg);
      border: 1px solid var(--code-border);
      border-radius: 12px;
      margin: 20px 0;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      box-sizing: border-box;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    pre {
      margin: 0;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      box-sizing: border-box;
      -webkit-overflow-scrolling: touch;
    }
    .code-header {
      background: #0a0f1d;
      padding: 10px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--code-border);
    }
    .code-tabs {
      display: flex;
      gap: 4px;
      overflow-x: auto;
    }
    .code-tab-btn {
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-dim);
      font-size: 12px;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 6px;
      cursor: pointer;
      font-family: 'JetBrains Mono', monospace;
      transition: all 0.15s;
    }
    .code-tab-btn:hover { color: #fff; }
    .code-tab-btn.active {
      background: #1e293b;
      color: var(--primary-light);
      border-color: #334155;
    }
    .copy-btn {
      background: #131d33;
      border: 1px solid #233152;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .copy-btn:hover {
      background: #1e2e50;
      color: #fff;
    }
    pre code {
      display: block;
      padding: 18px 20px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.6;
      color: #e2e8f0;
      overflow-x: auto;
    }
    .inline-code {
      background: rgba(255, 255, 255, 0.08);
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: #60a5fa;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    /* Cards Grid */
    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
      margin: 20px 0;
    }
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin: 20px 0;
    }
    .doc-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 22px;
      transition: transform 0.2s, border-color 0.2s;
    }
    .doc-card:hover {
      border-color: #334155;
      transform: translateY(-2px);
    }
    .doc-card-title {
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .doc-card-desc {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* Flow Diagram */
    .flow-diagram {
      background: #070b14;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 26px;
      margin: 24px 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .flow-step-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      position: relative;
    }
    .flow-node {
      flex: 1;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
      text-align: center;
    }
    .flow-node.crypto {
      border-color: rgba(59, 130, 246, 0.4);
      background: rgba(37, 99, 235, 0.08);
    }
    .flow-node.settlement {
      border-color: rgba(16, 185, 129, 0.4);
      background: rgba(16, 185, 129, 0.08);
    }
    .flow-node-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 2px 7px;
      border-radius: 4px;
      margin-bottom: 6px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-dim);
    }
    .flow-node-title {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }
    .flow-node-sub {
      font-size: 11px;
      color: var(--text-muted);
    }
    .flow-node-detail {
      font-size: 10px;
      color: #60a5fa;
      margin-top: 4px;
      font-family: 'JetBrains Mono', monospace;
    }
    .flow-arrow {
      font-size: 16px;
      color: var(--primary-light);
      font-weight: 800;
    }

    /* Sequence Steps */
    .sequence-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin: 20px 0;
    }
    .sequence-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      position: relative;
    }
    .sequence-card-number {
      font-size: 11px;
      font-weight: 800;
      color: #60a5fa;
      background: rgba(59, 130, 246, 0.15);
      border-radius: 50%;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10px;
    }
    .sequence-card-title {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 6px;
    }
    .sequence-card-body {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Tables */
    .param-table, .data-table {
      width: 100%;
      max-width: 100%;
      border-collapse: collapse;
      margin: 18px 0;
      background: var(--bg-card);
      border-radius: 10px;
      border: 1px solid var(--border);
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
    }
    .param-table th, .data-table th {
      background: #0a0f1d;
      text-align: left;
      padding: 12px 16px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border-bottom: 1px solid var(--border);
    }
    .param-table td, .data-table td {
      padding: 12px 16px;
      font-size: 13px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      color: #cbd5e1;
      vertical-align: top;
    }
    .param-name {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 600;
      color: #60a5fa;
    }
    .param-type {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: #a78bfa;
      display: block;
      margin-top: 2px;
    }
    .param-req {
      font-size: 10px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }
    .req-yes { background: rgba(239, 68, 68, 0.2); color: #f87171; }
    .req-no { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

    /* Interactive HMAC Tool */
    .interactive-tool {
      background: #070c18;
      border: 1px solid var(--primary-glow);
      border-radius: 14px;
      padding: 24px;
      margin: 28px 0;
      box-shadow: 0 0 25px rgba(59, 130, 246, 0.1);
    }
    .interactive-tool h4 {
      font-size: 16px;
      color: #fff;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .tool-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 14px;
    }
    .tool-field label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 6px;
    }
    .tool-field input, .tool-field textarea {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: #fff;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      padding: 8px 12px;
      border-radius: 6px;
      outline: none;
    }
    .tool-field input:focus, .tool-field textarea:focus {
      border-color: var(--primary);
    }
    .tool-calc-btn {
      padding: 8px 18px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      font-size: 13px;
    }
    .tool-calc-btn:hover { background: #2563eb; }
    .tool-result {
      margin-top: 14px;
      background: #030712;
      border: 1px solid #1f2937;
      border-radius: 6px;
      padding: 10px 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      word-break: break-all;
      color: var(--solana-green);
    }

    /* Demo Simulator & Graphics */
    .demo-bar {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.08));
      border: 1px solid rgba(59, 130, 246, 0.35);
      border-radius: 14px;
      padding: 16px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 20px 0 24px;
      flex-wrap: wrap;
      gap: 14px;
    }
    .demo-bar-info {
      font-size: 13px;
      color: #e2e8f0;
      line-height: 1.5;
    }
    .demo-btn-random {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: #fff;
      font-weight: 700;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      padding: 10px 20px;
      font-size: 13px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
      transition: all 0.2s;
    }
    .demo-btn-random:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
      background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }
    .demo-steps-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
      margin: 20px 0 30px;
    }
    .demo-step-card {
      background: #0d1322;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px;
      position: relative;
      display: flex;
      flex-direction: column;
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
      transition: border-color 0.2s;
    }
    .demo-step-card:hover {
      border-color: rgba(59, 130, 246, 0.4);
    }
    .demo-step-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .demo-step-pill {
      font-size: 11px;
      font-weight: 800;
      padding: 3px 9px;
      border-radius: 6px;
      background: rgba(59, 130, 246, 0.2);
      color: #60a5fa;
      border: 1px solid rgba(59, 130, 246, 0.3);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .demo-step-title {
      font-size: 15px;
      font-weight: 700;
      color: #fff;
    }
    .demo-ui-box {
      background: #111827;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
      font-size: 13px;
    }
    .demo-field-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding: 7px 0;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    }
    .demo-field-row:last-child {
      border-bottom: none;
    }
    .demo-field-label {
      color: var(--text-dim);
      font-size: 12px;
      flex-shrink: 0;
    }
    .demo-field-val {
      font-weight: 700;
      color: #f1f5f9;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      word-break: break-word;
      overflow-wrap: anywhere;
      text-align: right;
    }
    .card-graphic {
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      padding: 18px;
      color: #fff;
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 14px;
      position: relative;
      box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    }
    .card-chip {
      width: 34px;
      height: 24px;
      background: linear-gradient(135deg, #d97706, #fbbf24);
      border-radius: 4px;
      margin-bottom: 14px;
    }
    .card-num {
      font-size: 16px;
      letter-spacing: 2px;
      font-weight: 700;
      margin-bottom: 12px;
      color: #f8fafc;
      text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }
    .card-info-grid {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
    }
    .bank-sim-box {
      background: #ffffff;
      color: #0f172a;
      border-radius: 12px;
      padding: 18px;
      font-family: system-ui, -apple-system, sans-serif;
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    .bank-sim-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1.5px solid #e2e8f0;
      padding-bottom: 10px;
      margin-bottom: 12px;
    }
    .bank-sim-otp {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin: 14px 0;
    }
    .bank-otp-box {
      width: 32px;
      height: 38px;
      border: 1.5px solid #94a3b8;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 800;
      color: #0f172a;
      background: #f8fafc;
    }

    /* Footer */
    footer.doc-footer {
      border-top: 1px solid var(--border);
      padding: 32px 48px;
      margin-left: var(--sidebar-w);
      width: calc(100% - var(--sidebar-w));
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-dim);
      font-size: 13px;
    }

    /* Responsive */
    @media (max-width: 1280px) {
      main.content {
        padding: 32px 28px 80px 28px !important;
      }
      footer.doc-footer {
        padding: 28px 28px !important;
      }
    }
    @media (max-width: 1180px) {
      .sequence-steps {
        grid-template-columns: repeat(2, 1fr) !important;
      }
      .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
      }
      .flow-step-row {
        flex-direction: column !important;
      }
      .flow-arrow {
        transform: rotate(90deg) !important;
        margin: 6px 0 !important;
      }
    }
    @media (max-width: 992px) {
      header.top-nav {
        padding: 0 14px;
        height: var(--header-h);
      }
      .brand-title {
        font-size: 14px;
      }
      .header-actions .desktop-only {
        display: none !important;
      }
      .hamburger-menu-btn {
        display: inline-flex !important;
      }
      aside.sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 80% !important;
        max-width: 80vw !important;
        height: 100vh !important;
        background: #080c16 !important;
        border-left: 1px solid var(--border) !important;
        border-right: none !important;
        z-index: 1001 !important;
        transform: translateX(100%) !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 18px 16px 36px !important;
        overflow-y: auto !important;
      }
      aside.sidebar.drawer-open {
        transform: translateX(0) !important;
      }
      .sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 1000 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease !important;
      }
      .sidebar-backdrop.active {
        opacity: 1 !important;
        pointer-events: auto !important;
      }
      .sidebar-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--border);
      }
      .sidebar-mobile-title {
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .sidebar-close-btn {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border);
        color: #94a3b8;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
      }
      .sidebar-mobile-footer {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
      }
      main.content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 20px 14px 60px 14px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
      }
      .doc-title {
        font-size: 22px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
      }
      .lead-text {
        font-size: 14px !important;
      }
      .section-heading {
        font-size: 19px !important;
      }
      .sub-heading {
        font-size: 16px !important;
      }
      footer.doc-footer {
        margin-left: 0 !important;
        padding: 24px 16px !important;
        flex-direction: column;
        gap: 12px;
        text-align: center;
      }
      .grid-2, .grid-3, .tool-grid, .sequence-steps, .demo-steps-grid {
        grid-template-columns: 1fr !important;
      }
      .flow-step-row {
        flex-direction: column !important;
      }
      .flow-arrow {
        transform: rotate(90deg) !important;
        margin: 6px 0 !important;
      }
      .param-table, .data-table {
        display: block !important;
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
      }
      .param-table th, .param-table td, .data-table th, .data-table td {
        padding: 10px 12px !important;
        font-size: 12px !important;
      }
      .code-container {
        max-width: 100% !important;
        overflow-x: auto !important;
      }
      pre code {
        font-size: 12px !important;
        padding: 14px 12px !important;
      }
      .demo-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
      }
      .demo-btn-random {
        width: 100% !important;
        justify-content: center !important;
      }
      .callout {
        padding: 14px !important;
        gap: 10px !important;
        font-size: 13px !important;
      }
    }