/* ==========================================================
   SHARED LAB SHELL — used by navigation-lab, forms-lab, hero-lab,
   footer-lab, tabs-lab, modal-lab, 404-lab, auth-lab, dashboard-lab,
   pricing-lab. Keeps the variant-tab + code-viewer pattern consistent.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: #0b0b14;
  color: #f5f5f7;
  line-height: 1.55;
}

/* ---------- HERO ---------- */
.lab-header {
  text-align: center;
  padding: 100px 20px 50px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, .25), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(59, 130, 246, .22), transparent 55%),
    linear-gradient(180deg, #0b0b14, #0f0f18);
}
.lab-header .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: #ec4899; font-weight: 700; margin-bottom: 12px;
}
.lab-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px;
}
.lab-header p {
  color: #a0a0b0; max-width: 680px; margin: 0 auto; font-size: 1.05rem;
}

/* ---------- TABS ---------- */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; padding: 40px 20px 30px; max-width: 1100px; margin: 0 auto;
}
.tab-btn {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: #c0c0c8; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.tab-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.tab-btn.active {
  background: linear-gradient(135deg, #ec4899, #3b82f6);
  color: #fff; border-color: transparent;
}

/* ---------- VARIANT FRAME ---------- */
.variant-frame { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.variant-title {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 14px; color: #c0c0c8; padding-left: 6px;
}
.variant-box {
  background: #fff; color: #111;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  padding: 40px 30px;
}
.variant-box.plain { padding: 0; }
.variant { display: none; }
.variant.active { display: flex; flex-direction: column; }
.variant .variant-title { order: 1; }
.variant .variant-box   { order: 2; }
.variant .code-block    { order: 3; margin-top: 22px; }

/* ---------- CODE VIEWER ---------- */
.code-block {
  background: #0d1117; border: 1px solid #30363d;
  border-radius: 12px; overflow: hidden;
}
.code-tabs { display: flex; background: #161b22; border-bottom: 1px solid #30363d; }
.code-tab {
  padding: 10px 20px; background: transparent; border: none;
  color: #8b949e; font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.03em;
}
.code-tab:hover { color: #c9d1d9; }
.code-tab.active { color: #fff; background: #0d1117; border-bottom: 2px solid #ec4899; }
.code-pane {
  display: none; padding: 18px 22px;
  overflow-x: auto; max-height: 460px; overflow-y: auto;
}
.code-pane.active { display: block; }
.code-pane pre {
  margin: 0; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6; color: #c9d1d9; white-space: pre;
}
.code-pane .tg { color: #ff7b72; }
.code-pane .at { color: #d2a8ff; }
.code-pane .st { color: #a5d6ff; }
.code-pane .cm { color: #8b949e; font-style: italic; }
.code-pane .pr { color: #79c0ff; }
.code-pane .vl { color: #a5d6ff; }
.code-pane .sl { color: #ffa657; }
