/* ============================================================
   LABS.CSS — RGAi Labs Workspace Suite Stylesheet
   ============================================================ */

/* ---- Layout Grid ---- */
.labs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--nav-h));
  background: var(--clr-bg, #0A0A0C);
  color: var(--clr-text, #ffffff);
  position: relative;
}

/* ---- Sidebar Navigation ---- */
.labs-sidebar {
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sh-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.sh-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0.75rem;
}

.sidebar-group {
  margin-bottom: 1.5rem;
}

.sg-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

.sg-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 0.15rem;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.sidebar-item.active {
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.15);
  color: #0066FF;
  font-weight: 600;
}

.si-icon {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ---- Main Workspace Panel ---- */
.labs-workspace {
  padding: 2.5rem;
  overflow-y: auto;
  height: calc(100vh - var(--nav-h));
}

.lab-panel {
  display: none;
  animation: panel-fade-in 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lab-panel.active {
  display: block;
}

@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  margin-bottom: 2rem;
}

.panel-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.panel-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ---- Component Globals ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ---- 1. RGPT Chat UI ---- */
.rgpt-chat-container {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-width: 800px;
}

.rgpt-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rgpt-msg {
  display: flex;
  gap: 0.75rem;
}

.rgpt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.rgpt-msg.bot .rgpt-avatar {
  background: linear-gradient(135deg, #0066FF 0%, #7C3AED 100%);
  color: #fff;
}

.rgpt-msg.user .rgpt-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.rgpt-msg-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1.15rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 85%;
}

.rgpt-msg.user {
  flex-direction: row-reverse;
}

.rgpt-msg.user .rgpt-msg-content {
  border-radius: 12px 0 12px 12px;
  background: rgba(0, 102, 255, 0.06);
  border-color: rgba(0, 102, 255, 0.15);
}

.rgpt-input-wrap {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0 0 0;
}

.rgpt-input-wrap input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.rgpt-input-wrap input:focus {
  border-color: #0066FF;
  background: rgba(0, 102, 255, 0.02);
}

.rgpt-input-wrap button {
  background: #0066FF;
  border: none;
  border-radius: 8px;
  padding: 0 1.25rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.rgpt-input-wrap button:hover {
  opacity: 0.9;
}

/* ---- 2. AI Playground ---- */
.playground-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.playground-config h3,
.ab-setup h3,
.ab-execution h3,
.kb-sidebar h3,
.kb-content h3,
.chapters-roadmap h3,
.chapter-viewer h3,
.pg-sidebar h3,
.pg-content h3,
.crm-wrapper h3,
.ent-section h3,
.audit-tool h3,
.chart-container h4,
.trust-card h3,
.comm-categories h3,
.comm-feed h3,
.ref-section h3,
.invest-summary h3,
.invest-reports h3,
.labs-info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.form-group-labs {
  margin-bottom: 1.25rem;
}

.form-group-labs label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group-labs select,
.form-group-labs input[type="text"],
.form-group-labs textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  outline: none;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.form-group-labs select:focus,
.form-group-labs input[type="text"]:focus,
.form-group-labs textarea:focus {
  border-color: #0066FF;
}

.form-group-labs input[type="range"] {
  width: 100%;
  accent-color: #0066FF;
}

.playground-output {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.po-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.po-body {
  flex: 1;
  overflow-y: auto;
  margin: 0.75rem 0 0 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  white-space: pre-wrap;
}

/* ---- 3. Agent Builder ---- */
.agent-builder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.checkbox-group-labs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group-labs label {
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-group-labs input[type="checkbox"] {
  accent-color: #0066FF;
}

.ab-execution {
  display: flex;
  flex-direction: column;
  height: 410px;
}

.console-box {
  flex: 1;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  overflow-y: auto;
  line-height: 1.55;
  color: #10B981;
}

.console-line.system { color: #8B5CF6; }
.console-line.action { color: #3B82F6; }
.console-line.observation { color: #F59E0B; }
.console-line.success { color: #10B981; }

/* ---- 4. Knowledge Base & 5. AI Academy ---- */
.kb-grid,
.academy-portal-layout,
.portal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  min-height: 380px;
}

.kb-doc-list,
.pg-menu,
.comm-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-doc-list li,
.pg-menu li,
.comm-cat-list li {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.kb-doc-list li:hover,
.pg-menu li:hover,
.comm-cat-list li:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.kb-doc-list li.active,
.pg-menu li.active,
.comm-cat-list li.active {
  background: rgba(0, 102, 255, 0.08);
  color: #0066FF;
  font-weight: 600;
}

.kb-content,
.chapter-viewer,
.pg-content {
  line-height: 1.6;
}

.kb-content p,
.chapter-viewer p,
.pg-content p,
.labs-info-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.kb-content pre {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  overflow-x: auto;
}

.kb-content code {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  color: #7C3AED;
}

.chapter-node {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chapter-node h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.chapter-node p {
  font-size: 0.78rem;
  margin-top: 0.15rem;
  margin-bottom: 0;
  opacity: 0.6;
}

.chapter-node:hover {
  background: rgba(255,255,255,0.02);
}

.chapter-node.active {
  border-color: rgba(0,102,255,0.25);
  background: rgba(0,102,255,0.04);
}

.quiz-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.quiz-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.quiz-opt {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt:hover {
  background: rgba(255, 255, 255, 0.06);
}

.quiz-opt.correct-select {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.quiz-opt.incorrect-select {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.quiz-feedback {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ---- 6. Client Portal ---- */
.client-auth-box {
  padding: 2.25rem;
}

.project-headline-status {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.badge-status-green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ---- 7. Project Tracker (Kanban) ---- */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-height: 400px;
}

.kanban-col {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.kc-header {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
  padding-left: 0.25rem;
  display: flex;
  justify-content: space-between;
}

.kc-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.kanban-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem;
  position: relative;
  transition: all 0.2s ease;
}

.kanban-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}

.kanban-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card-btns {
  display: flex;
  justify-content: space-between;
}

.btn-card-move {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-move:hover {
  background: #0066FF;
}

/* ---- 8. CRM Pipeline ---- */
.crm-actions {
  margin-bottom: 1rem;
}

.crm-table-scroll {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
}

.crm-table th,
.crm-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.crm-table th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.crm-table td {
  font-size: 0.88rem;
}

.crm-stage-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #fff;
  padding: 0.25rem 0.45rem;
  outline: none;
}

.btn-table-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  color: #EF4444;
  font-size: 0.78rem;
  padding: 0.25rem 0.50rem;
  cursor: pointer;
}

/* ---- 9. Enterprise Panel ---- */
.enterprise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.api-key-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.api-key-row code {
  flex: 1;
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  color: #10B981;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
}

.btn-sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
}

.limit-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

.bs-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

/* ---- 10. Website & 11. SEO Audit ---- */
.audit-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.audit-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  font-size: 0.88rem;
}

.audit-input-row input:focus {
  border-color: #0066FF;
}

.audit-scores-row {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
}

.score-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.score-circle-container span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.score-circle-container svg {
  width: 80px;
  height: 80px;
}

.score-circle-container circle {
  fill: none;
  stroke-width: 8;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.score-circle-container circle.track {
  stroke: rgba(255, 255, 255, 0.04);
}

.score-circle-container circle.fill {
  stroke-dasharray: 283;
  stroke-dashoffset: 283; /* Simulated in JS */
  transition: stroke-dashoffset 1s ease-out;
  stroke-linecap: round;
}

.audit-details-list h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.audit-log-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audit-log-lines li {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.audit-log-lines li.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.audit-log-lines li.pass {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.seo-overview-row {
  display: flex;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.seo-score-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding-right: 2rem;
}

.seo-score-box h3 {
  font-size: 2.2rem;
  color: #10B981;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.04em;
}

.seo-score-box p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.seo-quick-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.text-green { color: #10B981; }
.text-orange { color: #F59E0B; }

/* ---- 12. Live Analytics & 16. Globe & 17. Neural Network ---- */
.live-metrics-grid,
.trust-center-grid,
.referral-layout,
.investor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.live-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.ln-node,
.tc-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
}

.globe-viewport-card,
.neural-viewport-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.globe-mount {
  width: 100%;
  height: 100%;
}

.globe-overlay-stats {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.85rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gos-stat {
  font-size: 0.78rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.gos-stat span { opacity: 0.5; }

.neural-canvas {
  flex: 1;
  width: 100%;
  background: #040407;
  border-radius: 8px;
}

.neural-controls {
  padding: 1rem 0 0 0;
  display: flex;
  gap: 0.75rem;
}

/* ---- 13. Community & 14. Referral & 15. Trust Center & 18. Innovation & 19. Investor ---- */
.community-layout,
.innovation-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

.comm-thread {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ct-header {
  font-size: 0.75rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ct-author {
  font-weight: 600;
}

.ct-date {
  opacity: 0.5;
}

.comm-thread h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.comm-thread p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ct-actions {
  display: flex;
  gap: 0.5rem;
}

.ct-actions button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.ct-actions button:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0,102,255,0.2);
}

.ref-link-row {
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.ref-link-row code {
  flex: 1;
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  color: #0066FF;
}

.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  height: 100%;
}

.ref-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ref-stat-box h4 {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-bottom: 0.35rem;
}

.ref-stat-box strong {
  font-size: 1.1rem;
  color: #fff;
}

.tc-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tc-cert-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}

.innov-card {
  margin-bottom: 1.25rem;
}

.ic-tag {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.innov-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.innov-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.ic-link {
  font-size: 0.78rem;
  color: #0066FF;
  text-decoration: none;
}

.ic-link:hover {
  text-decoration: underline;
}

/* ---- 20. Labs Info ---- */
.labs-info-card {
  max-width: 680px;
}

.labs-info-card h3 {
  font-size: 1.2rem;
}

/* ---- Sidebar Mobile styles ---- */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 99;
  background: #0066FF;
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
  cursor: pointer;
}

@media (max-width: 900px) {
  .labs-layout {
    grid-template-columns: 1fr;
  }
  
  .labs-sidebar {
    position: fixed;
    top: var(--nav-h);
    left: -280px;
    width: 280px;
    height: calc(100vh - var(--nav-h));
    transition: left 0.3s ease;
  }
  
  .labs-sidebar.open {
    left: 0;
  }
  
  .sidebar-mobile-toggle {
    display: block;
  }
  
  .playground-layout,
  .agent-builder-grid,
  .kb-grid,
  .academy-portal-layout,
  .portal-grid,
  .enterprise-layout,
  .live-metrics-grid,
  .trust-center-grid,
  .community-layout,
  .referral-layout,
  .investor-layout {
    grid-template-columns: 1fr;
  }
  
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .labs-workspace {
    padding: 1.5rem;
  }
}
