/* Professional Design Tokens */
:root {
  --bg-core: #07080a;
  --bg-card: #0e1117;
  --bg-card-gradient: linear-gradient(180deg, #131720 0%, #0e1117 100%);
  --bg-card-hover: #151a24;
  --bg-console: #090b0e;
  --border-light: rgba(48, 59, 80, 0.45);
  --border-hover: rgba(16, 185, 129, 0.5);
  --border-glow: rgba(99, 102, 241, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --accent-green: #10b981;
  --accent-green-rgb: 16, 185, 129;
  --accent-indigo: #6366f1;
  --accent-indigo-rgb: 99, 102, 241;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --header-height: 64px;
}

[data-theme="light"] {
  --bg-core: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --bg-card-hover: #f1f5f9;
  --bg-console: #1e293b;
  --border-light: rgba(226, 232, 240, 0.95);
  --border-hover: rgba(16, 185, 129, 0.6);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-main: #0f172a;
  --text-muted: #4b5563;
  --text-dim: #9ca3af;
  --accent-green: #059669;
  --accent-indigo: #4f46e5;
}

/* Global Reset & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  
  /* Modern technical dot-grid overlay */
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: center top;
}

[data-theme="light"] body {
  background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 0);
}

/* Header & Brand styling */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

[data-theme="light"] .main-header {
  background: rgba(248, 250, 252, 0.85);
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-svg {
  color: var(--accent-green);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.brand-name .text-dim {
  color: var(--text-dim);
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.desktop-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 550;
  transition: color 0.15s ease;
  position: relative;
  padding: 0.25rem 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-out;
}

.desktop-nav a:hover {
  color: var(--text-main);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.github-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

[data-theme="light"] .github-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
  border: 1px solid transparent;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 3.5rem;
  text-align: center;
}

.hero-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

/* Premium Segmented Configurator Widget */
.configurator-card {
  background: var(--bg-card);
  background-image: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  text-align: left;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .configurator-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.configurator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, var(--accent-green) 50%, var(--accent-indigo) 90%);
  opacity: 0.8;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-width: 0;
}

.config-inputs h3 {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.config-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

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

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

/* Premium Segmented button controls style */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  padding: 0.2rem;
  border-radius: 8px;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .radio-group {
  background: rgba(0, 0, 0, 0.03);
}

.radio-label {
  cursor: pointer;
  position: relative;
  flex: 1 1 auto;
  display: inline-block;
  margin: 0;
  padding: 0;
  text-align: center;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label span {
  display: block;
  text-align: center;
  padding: 0.45rem 1.15rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.radio-label:hover span {
  color: var(--text-main);
}

.radio-label input:checked + span {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .radio-label input:checked + span {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Config outputs panel */
.config-outputs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.output-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.metric-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

[data-theme="light"] .metric-card {
  background: rgba(0, 0, 0, 0.015);
}

.metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-green);
  letter-spacing: -0.04em;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  white-space: nowrap;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Console block styling with syntax coloring */
.console-box {
  background: var(--bg-console);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  position: relative;
  max-width: 100%;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-light);
}

.console-header span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.console-copy-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.console-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.console-box pre {
  padding: 1.25rem;
  overflow: auto;
  margin: 0;
  flex-grow: 1;
  max-height: 250px;
}

.console-box pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.console-box pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.console-box code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  display: block;
}

/* Syntax Highlighting Classes */
.syntax-comment {
  color: var(--text-dim);
  font-style: italic;
}
.syntax-pkg {
  color: #60a5fa;
  font-weight: 500;
}
.syntax-cmd {
  color: var(--accent-green);
  font-weight: 600;
}
.syntax-string {
  color: #fb7185;
}
.syntax-var {
  color: #fbbf24;
}

.config-instructions {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-indigo);
  padding-left: 0.75rem;
}

/* Documentation Layout and Sidebar */
.main-layout-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  box-sizing: border-box;
}

.sidebar-nav {
  position: relative;
  border-right: 1px solid var(--border-light);
  padding-right: 1.5rem;
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
}

.sidebar-sticky h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.sidebar-sticky ul {
  list-style: none;
}

.sidebar-sticky li {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: block;
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] .sidebar-link:hover {
  background: rgba(0, 0, 0, 0.015);
}

.sidebar-link.active {
  color: var(--accent-green);
  border-left-color: var(--accent-green);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.04);
}

/* Content Blocks */
.content-body {
  min-width: 0;
  overflow: hidden;
}

.content-section {
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4.5rem;
}

.content-section:last-of-type {
  border-bottom: none;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.heading-accent {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-indigo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.content-section > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Bento Grid System with hover reflections */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.25rem;
  margin-top: 2rem;
  min-width: 0;
}

.bento-item {
  background: var(--bg-card);
  background-image: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.bento-icon-wrapper {
  color: var(--accent-green);
  margin-bottom: 1.25rem;
}

.bento-item h3 {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bento-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Custom Bento layouts */
.bento-large {
  /* No row span — card sizes to content */
}

.bento-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

.bento-wide .bento-icon-wrapper {
  margin-bottom: 0;
  margin-top: 0.2rem;
}

/* Table Cards styles */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.75rem 0;
}

.benchmark-table {
  width: 100%;
}

.table-header-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.table-row-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.table-row-grid:last-child {
  border-bottom: none;
}

.table-row-grid .title-cell {
  font-weight: 600;
}

.table-row-grid .accent-cell {
  color: var(--accent-green);
  font-weight: 600;
}

.table-row-grid .pct-cell {
  color: var(--accent-green);
  font-weight: 700;
}

/* Relative output graph display card */
.dashboard-graph-card {
  background: var(--bg-card);
  background-image: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.75rem;
  margin: 1.75rem 0;
}

.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.graph-header h3 {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.graph-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.25rem;
  margin-left: 0.5rem;
}

.legend-dot.color-cachy { background: #2ed573; }
.legend-dot.color-win { background: #ff4757; }

.svg-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.svg-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Alert Boxes */
.info-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.01);
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.alert-icon {
  color: var(--accent-indigo);
}

.info-alert p {
  color: var(--text-muted);
}

.info-alert code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

/* System Settings tuning table */
.settings-list {
  margin-top: 1.75rem;
}

.settings-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.settings-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.settings-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Code block configurations */
.code-box {
  background: var(--bg-console);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.code-box .code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-light);
}

.code-box .code-header span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.code-box .copy-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.code-box .copy-btn:hover {
  color: var(--text-main);
}

.code-box pre {
  padding: 0.85rem 1rem;
  margin: 0;
  overflow: auto;
}

.code-box code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Steps Timeline with Pulse Animation */
.steps-timeline {
  position: relative;
  margin: 3rem 0;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.step-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 3.5rem;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-core);
  border: 2px solid var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
  transition: background-color 0.25s ease;
}

/* Active indicator pulses */
.step-number::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-indigo);
  animation: stepperPulse 2.5s infinite;
  box-sizing: border-box;
}

@keyframes stepperPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.step-content ul {
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.step-content li {
  margin-bottom: 0.4rem;
}

/* Double-column Maintenance layouts */
.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

/* Skills Cards layout */
.skills-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.skill-card-v2 {
  background: var(--bg-card);
  background-image: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.25s ease;
}

.skill-card-v2:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.skill-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.skill-badge-container h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.skill-indicator-pill {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
}

.skill-card-svg {
  color: var(--text-dim);
}

.skill-card-v2:hover .skill-card-svg {
  color: var(--accent-green);
}

.skill-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.skill-triggers h5, .skill-actions h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.skill-triggers {
  margin-bottom: 1.25rem;
}

.trigger-labels {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trigger-labels span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-main);
}

.skill-actions code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  display: inline-block;
  color: var(--text-main);
}

/* FAQ Accordion Styling without emojis */
.faq-holder {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.faq-block {
  background: var(--bg-card);
  background-image: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.5rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger svg {
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-trigger:hover svg {
  color: var(--text-main);
}

.faq-block.active .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--accent-green);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background: rgba(0, 0, 0, 0.08);
}

.faq-body > div {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-body ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.faq-body li {
  margin-bottom: 0.35rem;
}

/* Footer layout */
.main-footer {
  border-top: 1px solid var(--border-light);
  background: rgba(7, 8, 10, 0.95);
  padding: 2.5rem 1.5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Interactive Documentation Links */
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-indigo);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.learn-more-link:hover {
  color: var(--accent-green);
}

.learn-more-link svg {
  transition: transform 0.15s ease;
}

.learn-more-link:hover svg {
  transform: translateX(3px);
}

/* For links that look like small secondary buttons */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  margin-top: 0.75rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text-main);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Calculator & Container Orchestration Panels */
.calculator-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .calculator-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.calculator-inputs, .calculator-results {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.calculator-inputs h3, .calculator-results h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-console);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
  outline: none;
}

[data-theme="light"] .calc-select, [data-theme="light"] .calc-input {
  background: #ffffff;
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--accent-indigo);
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.slider-val {
  font-family: var(--font-mono);
  color: var(--accent-indigo);
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
  margin: 1rem 0 0.5rem 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-indigo);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0 0.25rem;
}

.result-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.result-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

[data-theme="light"] .result-metric-item {
  background: rgba(0, 0, 0, 0.01);
}

.result-metric-item.highlight-metric {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.metric-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
}

.highlight-metric .metric-num {
  font-size: 1.35rem;
  color: var(--accent-indigo);
}

.progress-bar-container {
  margin-top: 1.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--border-light);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-green);
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.mid-label {
  position: absolute;
  left: 66%;
  transform: translateX(-50%);
}

.recommendation-panel {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

[data-theme="light"] .recommendation-panel {
  background: rgba(0, 0, 0, 0.01);
}

.recommendation-panel h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.recommendation-panel p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tabs Panel Design */
.tabs-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

.tab-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .tab-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
  font-weight: 600;
}

.tab-content-panel {
  display: none;
  animation: tab-fade-in 0.25s ease;
}

.tab-content-panel.active {
  display: block;
}

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

/* Interactive SVG Chart Styling */
.interactive-chart-svg {
  padding: 1rem 0;
  overflow: visible;
  width: 100%;
}

.chart-group {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chart-group:hover {
  transform: translateX(4px);
}

.bar-win {
  fill: var(--text-dim);
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.bar-cachy {
  fill: var(--accent-green);
  opacity: 0.85;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.chart-group:hover .bar-win {
  opacity: 0.5;
}

.chart-group:hover .bar-cachy {
  opacity: 1;
  fill: var(--accent-indigo);
}

.chart-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-main);
}

.bar-text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-5px);
}

.chart-group:hover .bar-text {
  opacity: 1;
  transform: translateX(0);
}

.accent-text-fill {
  font-weight: 600;
}

.axis-label {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--text-dim);
}

/* VRAM Allocation Segmented Diagram */
.vram-diagram-container h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.vram-diagram-bar {
  display: flex;
  width: 100%;
  height: 20px;
  background: var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.vram-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.segment-weights {
  background: var(--accent-green);
}

.segment-cache {
  background: var(--accent-indigo);
}

.segment-free {
  background: transparent;
}

.vram-diagram-legend {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.segment-weights-bg {
  background: var(--accent-green);
}

.segment-cache-bg {
  background: var(--accent-indigo);
}

.segment-free-bg {
  background: transparent;
  border: 1px solid var(--border-light);
}

/* FAQ Tags & Search filter */
.faq-filter-bar {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem;
}

[data-theme="light"] .faq-filter-bar {
  background: #ffffff;
}

.faq-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.faq-tag:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .faq-tag:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-tag.active {
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

/* VRAM Calculator Presets */
.vram-preset-pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

[data-theme="light"] .vram-preset-pill {
  background: #ffffff;
}

.vram-preset-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

[data-theme="light"] .vram-preset-pill:hover {
  background: rgba(0, 0, 0, 0.02);
}

.vram-preset-pill.active {
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  z-index: 100;
}

[data-theme="light"] .back-to-top-btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.2);
}

/* Sidebar Sliding Active Indicator Marker */
.sidebar-sticky {
  position: relative;
}

.sidebar-active-indicator {
  position: absolute;
  left: 0;
  width: 2px;
  background: var(--accent-green);
  border-radius: 2px;
  transition: top 0.25s cubic-bezier(0.4, 0, 0.2, 1), height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
}

/* Custom Toast Notification Manager */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--bg-card-gradient);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: auto;
  transform: translateX(120%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 250px;
}

[data-theme="light"] .toast {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  color: var(--accent-green);
  flex-shrink: 0;
}

.toast-message {
  line-height: 1.4;
}

/* Responsive configurations */
@media (max-width: 1024px) {
  .config-grid, .calculator-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 968px) {
  .main-layout-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar-nav {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .table-header-grid, .table-row-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .table-header-grid {
    display: none;
  }
  
  .table-row-grid {
    padding: 0.85rem 1rem;
  }
  
  .bento-grid, .maintenance-grid, .skills-showcase {
    grid-template-columns: 1fr;
  }
  
  .bento-wide {
    grid-column: span 1;
  }
  
  .settings-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
