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

    :root {
      --bg: #fbfbfd;
      --text: #0f172a;
      --text-muted: #475569;
      --text-light: #64748b;
      --border: rgba(0,0,0,0.08);
      --code-bg: #f1f5f9;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    /* ── NAVBAR ─────────────────────────────────────────────── */
    .navbar-wrap {
      position: sticky;
      top: 0;
      z-index: 50;
      padding: 1rem 2rem 0.5rem;
      pointer-events: none;
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1420px;
      height: 64px;
      margin: 0 auto;
      padding: 0 1.5rem;
      border-radius: 2rem;
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255,255,255,0.6);
      box-shadow: 0 4px 24px rgba(0,0,0,0.06);
      pointer-events: auto;
      transition: background 0.3s, box-shadow 0.3s;
    }

    .navbar.scrolled {
      background: rgba(255,255,255,0.6);
      backdrop-filter: blur(32px) saturate(180%);
      -webkit-backdrop-filter: blur(32px) saturate(180%);
      box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    }

    .navbar-nav {
      display: flex;
      flex-direction: row;
      gap: 2rem;
      font-size: 0.9375rem;
      font-weight: 600;
      color: #333;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .navbar-nav li { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
    .navbar-nav li::before { display: none; }

    .navbar-nav a {
      text-decoration: none;
      color: inherit;
      transition: color 0.2s;
    }

    .navbar-nav a:hover { color: #000; }

    .navbar-actions { display: flex; align-items: center; gap: 0.75rem; }

    .btn-login {
      font-size: 0.875rem;
      font-weight: 500;
      color: #333;
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .btn-login:hover { opacity: 0.6; }

    .btn-signup {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      padding: 0.625rem 1.5rem;
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 500;
      color: #fff;
      text-decoration: none;
      background: linear-gradient(90deg, #4e58fe, #904bf5, #cc01ff, #4e58fe);
      background-size: 300% 100%;
      background-position: 0% 50%;
      transition: background-position 0.6s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-signup:hover {
      background-position: 100% 50%;
      transform: scale(1.05);
      box-shadow: 0 8px 30px rgba(144,75,245,0.35);
    }

    /* ── AMBIENT ─────────────────────────────────────────────── */
    .ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
    .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.18; }
    .orb-1 { width: 600px; height: 600px; top: -200px; left: -150px; background: radial-gradient(circle, #904bf5, transparent 70%); }
    .orb-2 { width: 400px; height: 400px; top: 100px; right: -100px; background: radial-gradient(circle, #4e58fe, transparent 70%); opacity: 0.12; }
    .orb-3 { width: 500px; height: 300px; bottom: 200px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #cc01ff, transparent 70%); opacity: 0.10; }

    /* ── LAYOUT ──────────────────────────────────────────────── */
    .main {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      padding: 3rem 1.5rem 6rem;
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 2.5rem;
      align-items: start;
    }

    /* ── TOC ─────────────────────────────────────────────────── */
    .toc {
      position: sticky;
      top: 110px;
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.8);
      box-shadow: 0 4px 24px rgba(0,0,0,0.06);
      border-radius: 1.25rem;
      padding: 1.25rem;
      max-height: calc(100vh - 130px);
      overflow-y: auto;
    }

    .toc::-webkit-scrollbar { width: 4px; }
    .toc::-webkit-scrollbar-track { background: transparent; }
    .toc::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.2); border-radius: 2px; }

    .toc-title {
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-light);
      margin-bottom: 0.875rem;
      padding: 0 0.5rem;
    }

    .toc ul { list-style: none; display: flex; flex-direction: column; gap: 0.0625rem; }
    .toc ul li { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
    .toc ul li::before { display: none; }

    .toc a {
      display: block;
      width: 100%;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      padding: 0.3rem 0.625rem;
      border-radius: 0.5rem;
      transition: color 0.2s, background 0.2s;
      line-height: 1.4;
    }

    .toc a:hover { color: #7c3aed; background: rgba(124,58,237,0.07); }
    .toc a.active { color: #7c3aed; background: rgba(124,58,237,0.10); font-weight: 600; }

    /* ── CARD ────────────────────────────────────────────────── */
    .card {
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255,255,255,0.9);
      box-shadow: 0 8px 40px rgba(0,0,0,0.07);
      border-radius: 1.5rem;
      padding: 3rem;
    }

    /* ── PAGE HEADER ─────────────────────────────────────────── */
    .page-header {
      margin-bottom: 3rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--border);
    }

    .page-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.375rem 1rem;
      border-radius: 9999px;
      font-size: 0.8125rem;
      font-weight: 500;
      color: #7c3aed;
      background: rgba(124,58,237,0.08);
      border: 1px solid rgba(124,58,237,0.18);
      margin-bottom: 1.25rem;
    }

    .badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: linear-gradient(135deg, #904bf5, #4e58fe);
      animation: pulse 2s infinite;
    }

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

    .page-title {
      font-size: 2.75rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.1;
      color: var(--text);
      margin-bottom: 0.75rem;
    }

    .gradient-text {
      background: linear-gradient(90deg, #4e58fe, #904bf5, #cc01ff);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .page-meta {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .page-meta span {
      font-size: 0.875rem;
      color: var(--text-light);
    }

    /* ── SECTIONS ────────────────────────────────────────────── */
    .section {
      margin-bottom: 2.5rem;
      padding: 1.75rem;
      border-radius: 1rem;
      border: 1px solid transparent;
      transition: border-color 0.25s, background 0.25s;
    }

    .section:hover {
      border-color: rgba(124,58,237,0.10);
      background: rgba(124,58,237,0.02);
    }

    .section:last-child { margin-bottom: 0; }

    .section-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px; height: 28px;
      padding: 0 6px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4e58fe, #904bf5);
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      flex-shrink: 0;
      margin-right: 0.75rem;
    }

    h2 {
      display: flex;
      align-items: center;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 1rem;
      letter-spacing: -0.01em;
    }

    h3 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
      border-left: 2px solid #904bf5;
      padding-left: 0.625rem;
    }

    p {
      font-size: 0.9375rem;
      line-height: 1.75;
      color: var(--text-muted);
      margin-bottom: 0.875rem;
    }

    p:last-child { margin-bottom: 0; }

    ul, ol {
      font-size: 0.9375rem;
      line-height: 1.75;
      color: var(--text-muted);
      padding-left: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 0.875rem;
    }

    li {
      display: flex;
      align-items: flex-start;
      gap: 0.625rem;
    }

    li::before {
      content: '';
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4e58fe, #904bf5);
      flex-shrink: 0;
      margin-top: 0.55rem;
    }

    a { color: #7c3aed; text-decoration: none; font-weight: 500; transition: color 0.2s; }
    a:hover { color: #5b21b6; text-decoration: underline; }

    strong { color: var(--text); font-weight: 600; }

    .caps {
      font-size: 0.875rem;
      line-height: 1.7;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* ── INFO / WARNING BOXES ────────────────────────────────── */
    .box {
      padding: 1rem 1.25rem;
      border-radius: 0.875rem;
      margin: 1rem 0;
    }

    .box-warning {
      background: rgba(245,158,11,0.06);
      border: 1px solid rgba(245,158,11,0.2);
    }

    .box-warning p { color: #92400e; margin-bottom: 0; font-size: 0.875rem; }

    .box-info {
      background: rgba(78,88,254,0.05);
      border: 1px solid rgba(78,88,254,0.15);
    }

    .box-info p { color: var(--text-muted); margin-bottom: 0; font-size: 0.875rem; }

    /* ── CONTACT BOX ─────────────────────────────────────────── */
    .contact-box {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.25rem 1.5rem;
      border-radius: 1rem;
      background: linear-gradient(135deg, rgba(78,88,254,0.06), rgba(144,75,245,0.06));
      border: 1px solid rgba(124,58,237,0.15);
      margin-top: 0.5rem;
    }

    .contact-icon {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4e58fe, #904bf5);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .contact-icon svg { width: 18px; height: 18px; color: #fff; }

    /* ── DIVIDER ─────────────────────────────────────────────── */
    .divider { height: 1px; background: var(--border); margin: 2.5rem 0; }

    /* ── BACK LINK ───────────────────────────────────────────── */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9375rem;
      font-weight: 600;
      color: #7c3aed;
      text-decoration: none;
      transition: gap 0.2s, opacity 0.2s;
    }

    .back-link:hover { gap: 0.75rem; opacity: 0.8; text-decoration: none; }
    .back-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
    .back-link:hover svg { transform: translateX(-3px); }

    /* ── FOOTER ──────────────────────────────────────────────── */
    footer {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 2rem;
      font-size: 0.8125rem;
      color: var(--text-light);
      border-top: 1px solid var(--border);
    }

    footer a { color: #7c3aed; font-weight: 500; }

    /* ── RESPONSIVE ──────────────────────────────────────────── */
    @media (max-width: 900px) {
      .main { grid-template-columns: 1fr; padding: 2rem 1rem 4rem; }
      .toc { position: static; max-height: none; }
      .navbar-nav { display: none; }
      .card { padding: 2rem 1.5rem; }
      .page-title { font-size: 2rem; }
    }
  
    /* ── RESPONSIVE NAVBAR ─────────────────────────────────── */
    @media (max-width: 960px) {
      .navbar-nav { gap: 1.25rem; }
    }

    @media (max-width: 860px) {
      .navbar-nav { gap: 0.875rem; font-size: 0.875rem; }
      .btn-signup { padding: 0.5rem 1.125rem; }
    }

    @media (max-width: 760px) {
      .navbar-nav { display: none; }
    }

    @media (max-width: 680px) {
      .navbar-wrap { padding: 0.75rem 0.75rem 0.4rem; }
      .navbar { padding: 0 1rem; border-radius: 1.5rem; height: 56px; }
      .navbar-logo svg, .navbar > a svg, nav.navbar a > svg { height: 26px; }
      .btn-login { font-size: 0.8rem; }
      .btn-signup { font-size: 0.8rem; padding: 0.5rem 0.875rem; }
    }

/* ---- Rules below replace what used to be inline style="" attributes ---- */

.contact-label { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0.125rem; }
.contact-value { font-size: 0.9375rem; font-weight: 600; }
.contact-note { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 0; }
