@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #090d16;
  --sidebar-bg: #0e1322;
  --card-bg: #121a2e;
  --card-border: #1d293d;
  --text-white: #f8fafc;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-bg: rgba(56, 189, 248, 0.1);
  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.12);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --orange: #f97316;
  --orange-bg: rgba(249, 115, 22, 0.12);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.12);
  --cyan: #06b6d4;
  --cyan-bg: rgba(6, 182, 212, 0.12);
}

html {
  scroll-behavior: smooth;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 265px;
  min-width: 265px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--card-border);
  height: 100vh;
  position: fixed;
  overflow-y: auto;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.nav-buttons {
  display: flex;
  gap: 6px;
  padding: 0 8px;
  margin-bottom: 20px;
}

.nav-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
  text-decoration: none;
}

.nav-btn.primary {
  background: #6366f1;
  color: white;
}

.nav-btn.primary:hover {
  background: #4f46e5;
}

.nav-btn.secondary {
  background: var(--card-bg);
  color: var(--text-gray);
  border: 1px solid var(--card-border);
}

.nav-btn.secondary:hover {
  background: var(--card-border);
  color: var(--text-white);
}

.nav-section {
  margin-bottom: 16px;
}

.nav-title {
  white-space: nowrap;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 6px 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7.5px 12px;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 1px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 600;
  border-left: 3px solid #6366f1;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid var(--card-border);
}

.nav-item.footer-item {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: 265px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  justify-content: flex-end; gap: 24px;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 8px;
  gap: 8px;
  width: 320px;
  cursor: pointer;
  transition: border-color .2s;
}

.search-box:hover {
  border-color: #475569;
}

.search-box i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-box span {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
}

.search-kbd {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  font-family: inherit;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all .2s;
}

.topbar-btn:hover {
  background: var(--card-border);
  color: var(--text-white);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 28px 32px 40px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: block;
  margin-bottom: 32px;
}

.hero-info {
  width: 100%;
}

/* ===== INLINE GRAPHS & VISUALIZATIONS ===== */
.graph-container {
  background: var(--sidebar-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.graph-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.graph-svg-wrapper {
  width: 100%;
  height: auto;
  min-height: 180px;
}

.graph-axis {
  stroke: var(--text-muted);
  stroke-width: 1;
}

.graph-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 4 4;
}

.graph-line-load {
  stroke: var(--green);
  stroke-width: 3;
  fill: none;
}

.graph-line-stress {
  stroke: var(--red);
  stroke-width: 3;
  fill: none;
}

.graph-line-soak {
  stroke: var(--yellow);
  stroke-width: 3;
  fill: none;
}

.graph-line-spike {
  stroke: var(--orange);
  stroke-width: 3;
  fill: none;
}

.graph-line-scale {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
}

.graph-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-gray);
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* ===== HERO WIDGETS ===== */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-white);
}

.page-desc {
  color: var(--text-gray);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 750px;
}

/* ===== HERO WIDGETS ===== */
.dashboard-widget {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.widget-header {
  display: flex;
  justify-content: flex-end; gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.widget-dots {
  display: flex;
  gap: 6px;
}

.widget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.widget-dot.r {
  background: #ef4444;
}

.widget-dot.y {
  background: #f59e0b;
}

.widget-dot.g {
  background: #10b981;
}

.widget-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.widget-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.widget-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.gauge-svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: #1e293b;
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 8;
  stroke-dasharray: 251;
  stroke-dashoffset: 75;
  stroke-linecap: round;
}

.gauge-val {
  position: absolute;
  top: 38px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
}

.gauge-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

.widget-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
}

.w-bar {
  flex: 1;
  background: linear-gradient(to top, #6366f1, #38bdf8);
  border-radius: 2px 2px 0 0;
  height: var(--h, 0%);
}

.w-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.w-stat {
  display: flex;
  justify-content: flex-end; gap: 24px;
  font-size: 0.7rem;
}

.w-stat span:first-child {
  color: var(--text-gray);
}

.w-stat span:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* ===== CARDS GRID ===== */
.cards-row {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.cards-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-row.cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  transition: all .2s;
}

.card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.05);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card-icon.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.card-icon.green {
  background: var(--green-bg);
  color: var(--green);
}

.card-icon.blue {
  background: var(--accent-bg);
  color: var(--accent);
}

.card-icon.red {
  background: var(--red-bg);
  color: var(--red);
}

.card-icon.orange {
  background: var(--orange-bg);
  color: var(--orange);
}

.card-icon.yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-white);
}

.card p {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* ===== SECTION ===== */
.section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
}

.section-text {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

.section-subtitle {
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 16px 0 12px;
}

/* ===== CHECK LIST ===== */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-gray);
}

.check-item i {
  color: var(--green);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===== TYPE LIST ===== */
.type-list {
  display: flex;
  flex-direction: column;
}

.type-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}

.type-item:last-child {
  border-bottom: none;
}

.type-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.type-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-white);
}

.type-item p {
  font-size: 0.78rem;
  color: var(--text-gray);
}

/* ===== LEARN CARDS ===== */
.learn-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all .2s;
}

.learn-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.learn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--accent-bg);
  color: var(--accent);
}

.learn-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-white);
}

/* ===== MARK LEARNED BTN ===== */
.mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #6366f1;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  margin-top: 12px;
}

.mark-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.mark-btn i {
  font-size: 0.8rem;
}

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--card-border);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-gray);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge.blue {
  background: var(--accent-bg);
  color: var(--accent);
}

.badge.green {
  background: var(--green-bg);
  color: var(--green);
}

.badge.purple {
  background: var(--purple-bg);
  color: #a78bfa;
}

.badge.red {
  background: var(--red-bg);
  color: var(--red);
}

.badge.orange {
  background: var(--orange-bg);
  color: var(--orange);
}

/* ===== FORMULA BOX ===== */
.formula-box {
  background: rgba(56, 189, 248, 0.03);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  font-family: monospace;
  color: var(--accent);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formula-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-visual {
    width: 100%;
    justify-content: flex-start;
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .cards-row.cols-2,
  .cards-row.cols-3,
  .cards-row.cols-4 {
    grid-template-columns: 1fr;
  }
  .cards-row.cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .page-content {
    padding: 20px 16px;
  }
}


/* ===== LIFECYCLE INTERACTIVE TABS ===== */
.lifecycle-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}
.lifecycle-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
  border-color: #38bdf8;
}
.tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: #6366f1;
  border-left: 4px solid #6366f1;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-gray);
  transition: all 0.2s ease;
}
.tab-btn.active .step-num {
  background: #6366f1;
  color: white;
}
.lifecycle-panels {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  min-height: 480px;
  position: relative;
}
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 992px) {
  .lifecycle-container {
    grid-template-columns: 1fr;
  }
}


/* ===== LIFECYCLE INTERACTIVE TABS ===== */
.lifecycle-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}
.lifecycle-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
  border-color: #38bdf8;
}
.tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: #6366f1;
  border-left: 4px solid #6366f1;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-gray);
  transition: all 0.2s ease;
}
.tab-btn.active .step-num {
  background: #6366f1;
  color: white;
}
.lifecycle-panels {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  min-height: 480px;
  position: relative;
}
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 992px) {
  .lifecycle-container {
    grid-template-columns: 1fr;
  }
}

/* ===== CORRELATION INTERACTIVE TABS & GRID ===== */
.correlation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  margin-top: 10px;
}
.correlation-card-main {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.5));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.correlation-card-main:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}
.correlation-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}
.correlation-card-main.auto::before {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.correlation-card-main.manual::before {
  background: linear-gradient(90deg, var(--green), var(--accent));
}
.correlation-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.correlation-card-main.auto .correlation-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.correlation-card-main.manual .correlation-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.correlation-card-main h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.correlation-card-main p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.pros-list, .cons-list {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
}
.list-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.pros-list .list-title { color: var(--green); }
.cons-list .list-title { color: var(--red); }
.list-items {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-gray);
  padding-left: 0;
}
.list-items li {
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.list-items li i { margin-top: 3px; font-size: 0.68rem; }
.pros-list li i { color: var(--green); }
.cons-list li i { color: var(--red); }

.correlation-container {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  margin-top: 24px;
}
.correlation-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.correlation-panels {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  min-height: 520px;
  position: relative;
}
.correlation-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.correlation-tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
  border-color: #38bdf8;
}
.correlation-tab-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: #8b5cf6;
  border-left: 4px solid #8b5cf6;
}
.correlation-tab-btn .tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-gray);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.correlation-tab-btn.active .tab-icon {
  background: #8b5cf6;
  color: white;
}
.correlation-tab-panel {
  display: none;
  animation: correlationFadeIn 0.3s ease-in-out forwards;
}
.correlation-tab-panel.active {
  display: block;
}
@keyframes correlationFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.82rem;
  text-align: left;
}
.compare-table th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 2px solid var(--card-border);
  padding: 10px 14px;
  color: var(--text-white);
  font-weight: 600;
}
.compare-table td {
  border-bottom: 1px solid var(--card-border);
  padding: 10px 14px;
  color: var(--text-gray);
  line-height: 1.5;
}
.compare-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

/* ===== CODE BLOCKS ===== */
.code-block-wrapper {
  background: #0c1222;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: flex-end; gap: 24px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
}

.code-block-header span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block {
  padding: 16px 20px;
  margin: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
  tab-size: 4;
  white-space: pre;
}

.code-block code {
  font-family: inherit;
  color: inherit;
}

.code-block .keyword { color: #c084fc; }
.code-block .string { color: #86efac; }
.code-block .comment { color: #64748b; font-style: italic; }
.code-block .function { color: #38bdf8; }
.code-block .number { color: #fbbf24; }

/* ===== INFO BOXES ===== */
.info-box {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.info-box.warning {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.15);
  border-left-color: var(--yellow);
}

.info-box.tip {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.15);
  border-left-color: var(--green);
}

.info-box.danger {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.15);
  border-left-color: var(--red);
}

.info-box strong {
  color: var(--text-white);
  font-weight: 600;
}

.info-box i {
  margin-right: 6px;
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

.table-wrapper .data-table {
  min-width: 600px;
}

/* ===== SECTION INNER TEXT ===== */
.section-text ul, .section-text ol {
  padding-left: 20px;
  margin: 10px 0;
}

.section-text li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--text-gray);
  font-size: 0.88rem;
}

.section-text strong {
  color: var(--text-white);
}

/* ===== Q&A SECTIONS ===== */
.qa-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 12px 0;
}

.qa-item .qa-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.qa-item .qa-a {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.7;
  padding-left: 26px;
}

/* ===== STEP PROCESS LIST ===== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ===== FULL WIDTH SECTION ===== */
.section.full-width {
  margin-bottom: 24px;
}

.section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 20px 0 12px;
}

.section p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .correlation-grid {
    grid-template-columns: 1fr;
  }
  .correlation-container {
    grid-template-columns: 1fr;
  }
}


/* ===== HELP CARD ===== */
.help-card {
  margin: 16px 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-align: center;
}

.help-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.help-desc {
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 14px;
}

.help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  background: #6366f1;
  color: white;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.help-btn:hover {
  background: #4f46e5;
}

