/* ==========================================================================
   MUHAMAD BEKTI WIBOWO — DEVELOPER WORKSPACE (IDE THEME)
   Native C Server Distribution CSS
   ========================================================================== */

:root {
  /* VS Code Dark Pro Palette */
  --bg-darker: #181818;
  --bg-editor: #1e1e1e;
  --bg-sidebar: #252526;
  --bg-card: #2a2d2e;
  --bg-hover: #333333;
  --bg-active: #37373d;
  
  /* Borders & Dividers */
  --border: #333333;
  --border-light: #444444;
  --border-focus: #f2600c;
  
  /* Signature Brand Accents */
  --orange: #f2600c;
  --orange-hover: #ff7324;
  --orange-active: #d95305;
  --orange-soft: rgba(242, 96, 12, 0.15);
  --orange-subtle: rgba(242, 96, 12, 0.08);
  --orange-border: rgba(242, 96, 12, 0.35);

  /* Syntax & Functional Colors */
  --cyan: #4ec9b0;
  --blue: #569cd6;
  --yellow: #dcdcaa;
  --purple: #c586c0;
  --green: #4ec9b0;
  --red: #f87171;
  --text-main: #e2e8f0;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;

  /* Sizing */
  --header-height: 48px;
  --status-height: 28px;
  --sidebar-width: 260px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background-color: #0b0c0e;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3e3e42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Utilities */
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-green { color: var(--green) !important; }
.text-orange { color: var(--orange) !important; }

/* IDE Shell */
.ide-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   HEADER / TOP ACTIVITY BAR
   ========================================================================== */
.ide-header {
  height: var(--header-height);
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 100;
  flex-shrink: 0;
  gap: 8px;
  overflow: hidden;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 6px;
  border-right: 1px solid var(--border);
  margin-right: 2px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.header-back-btn:hover {
  color: var(--orange);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 26px;
  height: 26px;
  background: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: opacity 0.15s ease;
}
.brand-logo:hover {
  opacity: 0.9;
}
.brand-logo:active {
  background: var(--orange-active);
}
.brand-logo.active {
  background: var(--orange-active);
}
.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
}
.brand-sep {
  color: var(--text-muted);
  font-size: 13px;
}
.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 1px;
  font-weight: 600;
}

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: rgba(78, 201, 176, 0.1);
  border: 1px solid rgba(78, 201, 176, 0.25);
  border-radius: 12px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green);
  flex-shrink: 0;
  white-space: nowrap;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseLive 2s infinite ease-in-out;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Center Search Box */
.header-center {
  flex: 1;
  max-width: 280px;
  min-width: 60px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-editor);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  transition: all 0.2s ease;
}
.search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.search-box svg {
  color: var(--text-dim);
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 11.5px;
  font-family: inherit;
  min-width: 0;
}
.search-box input::placeholder {
  color: var(--text-muted);
}
.search-box kbd {
  background: #333;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Header Right Node Metrics */
.node-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: var(--bg-editor);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  white-space: nowrap;
}
.m-label { color: var(--text-muted); }
.m-val { color: var(--text-main); font-weight: 600; }

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: #fff;
}
.header-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.header-link:hover {
  background: var(--bg-hover);
  color: #fff;
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(242,96,12,0.3);
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-contact:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   WORKSPACE LAYOUT (SIDEBAR + EDITOR)
   ========================================================================== */
.ide-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar */
.ide-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  user-select: none;
}

/* Profile Snippet */
.sidebar-profile {
  padding: 12px 14px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 1px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
  background: #252525;
}
.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border: 2px solid var(--bg-sidebar);
  border-radius: 50%;
}
.profile-meta {
  flex: 1;
  min-width: 0;
}
.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-role {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green);
}
.status-pulsar {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* Sidebar Section Headers */
.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.category-count, .project-count {
  background: transparent;
  padding: 0;
  font-size: 10px;
  color: var(--text-muted);
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.cat-pill {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 2px 7px;
  color: var(--text-dim);
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
}
.cat-pill:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.cat-pill.active {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
}
.pill-badge {
  color: var(--text-muted);
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
}
.cat-pill.active .pill-badge {
  color: var(--orange);
}

/* Special Files Item (ABOUT.md) */
.sidebar-special-files {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
}

/* Project Tree List */
.project-tree-list {
  flex: 1;
  padding: 4px 6px 24px;
  overflow-y: auto;
}
.tree-loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* Tree Folders & Items */
.tree-folder {
  margin-bottom: 2px;
}
.tree-folder-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-dim);
  transition: background 0.1s ease;
  user-select: none;
}
.tree-folder-header:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.folder-chevron {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  color: var(--text-muted);
}
.tree-folder.collapsed .folder-chevron {
  transform: rotate(-90deg);
}
.tree-folder.collapsed .tree-folder-children {
  display: none;
}
.folder-icon {
  color: #dcb67a;
  flex-shrink: 0;
  display: flex;
}
.folder-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.folder-count {
  font-size: 9.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.tree-folder-children {
  margin-left: 14px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08); /* VS Code Indent Guide */
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-left: 2px solid transparent;
  transition: all 0.1s ease;
  border-radius: 0;
  margin-bottom: 1px;
}
.tree-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.tree-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-left-color: var(--orange);
  font-weight: 500;
}
.tree-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tree-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tree-title {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-sub {
  display: none; /* Bersih tanpa subtitle panjang di tree */
}
.tree-tag {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* Project Folder & Subfiles Explorer */
.tree-project-folder {
  margin-bottom: 2px;
}
.tree-project-header {
  font-weight: 500;
  color: var(--text-main);
  border-left: 2px solid transparent;
  padding: 4px 8px;
}
.tree-project-header:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.tree-project-header.active {
  color: #fff;
  border-left-color: var(--orange);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.tree-subfile {
  padding: 3px 8px 3px 12px;
  font-size: 11.5px;
  color: var(--text-dim);
  border-left: 2px solid transparent;
}
.tree-subfile:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.tree-subfile.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left-color: var(--orange);
  font-weight: 500;
}
.tree-project-files {
  margin-left: 10px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MAIN EDITOR AREA
   ========================================================================== */
.ide-editor {
  flex: 1;
  background: var(--bg-editor);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tabs Bar */
.editor-tabs-bar {
  height: 38px;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 0;
  flex-shrink: 0;
  user-select: none;
}
.editor-tabs-scroll {
  display: flex;
  height: 100%;
  overflow-x: auto;
}
.editor-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 100%;
  background: var(--bg-darker);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.editor-tab:hover {
  background: var(--bg-editor);
  color: var(--text-main);
}
.editor-tab.active {
  background: var(--bg-editor);
  color: #fff;
  font-weight: 500;
}
.editor-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}
.tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  margin-left: 6px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.12s ease;
}
.editor-tab:hover .tab-close {
  opacity: 0.85;
}
.tab-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  opacity: 1;
}

/* Editor Header Actions */
.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.editor-act-btn:hover {
  background: var(--bg-hover);
  border-color: #555;
}
.editor-act-btn.primary {
  background: var(--orange-soft);
  border-color: var(--orange-border);
  color: var(--orange);
}
.editor-act-btn.primary:hover {
  background: var(--orange);
  color: #fff;
}

/* Breadcrumbs */
.editor-breadcrumbs {
  height: 26px;
  background: var(--bg-editor);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bc-sep { opacity: 0.4; }
.bc-active { color: var(--text-dim); }

/* Editor Body Panes */
.editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 48px;
}
.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TAB 1: README / OVERVIEW COMPONENTS
   ========================================================================== */
.project-hero-card {
  background: transparent;
  border: none;
  border-left: 3px solid var(--orange);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0 24px 18px;
  margin-bottom: 28px;
  box-shadow: none;
}
.hero-header-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.hero-titles {
  flex: 1;
}
.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.badge-cat {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange-border);
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.badge-role {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
}
.badge-status {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(78,201,176,0.3);
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
}

.project-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.project-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.6;
}

.hero-thumb-box {
  width: 140px;
  height: 95px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #141414;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.hero-thumb-box:hover {
  border-color: var(--orange);
}
.hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tech Stack Row */
.tech-stack-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ts-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* Metrics Cards Grid - Zero Boxy */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.metric-card {
  background: transparent;
  border: none;
  border-left: 2px solid var(--orange);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 12px;
}
.metric-name {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 3px;
}
.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

/* Content Cards - Zero Boxy, Line Accents */
.content-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  margin-bottom: 28px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.card-body {
  padding: 16px 0;
}

/* Markdown Rendering */
.markdown-body {
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.8;
}
.markdown-body h1, .markdown-body h2 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  margin: 20px 0 10px;
}
.markdown-body h3 {
  color: #fff;
  font-size: 15px;
  margin: 18px 0 8px;
  font-family: 'Outfit', sans-serif;
}
.markdown-body p {
  margin-bottom: 12px;
}
.markdown-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.markdown-body li {
  margin-bottom: 6px;
}
.markdown-body strong {
  color: #fff;
}
.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.markdown-body table, .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.markdown-body th, .md-table th {
  background: #1f1f1f;
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
}
.markdown-body td, .md-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d4d4d4;
  vertical-align: top;
}
.markdown-body tr:last-child td, .md-table tr:last-child td {
  border-bottom: none;
}
.markdown-body tr:hover td, .md-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.markdown-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ce9178;
}
.markdown-body pre {
  background: #181818;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 14px 0;
}
.markdown-body pre code {
  background: transparent;
  padding: 0;
  color: #9cdcfe;
}


/* ==========================================================================
   TAB 2: ARCHITECTURE
   ========================================================================== */
.arch-card .card-body {
  padding: 0;
}
.arch-container {
  background: #181818;
  padding: 20px;
  overflow-x: auto;
}
.ascii-diagram {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cyan);
  white-space: pre;
}
.copy-btn {
  background: #333;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
}
.copy-btn:hover {
  background: #444;
  color: #fff;
}

/* ==========================================================================
   TAB 3: FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: #252526;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}
.feature-icon {
  width: 32px;
  height: 32px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================================================
   TAB 4: TERMINAL
   ========================================================================== */
.terminal-card {
  background: #141414;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
  margin-bottom: 28px;
}
.terminal-bar {
  background: #1f1f1f;
  border-bottom: 1px solid #2d2d2d;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.term-dots {
  display: flex;
  gap: 6px;
}
.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tdot.red { background: #ff5f56; }
.tdot.yellow { background: #ffbd2e; }
.tdot.green { background: #27c93f; }

.term-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.term-actions {
  display: flex;
  gap: 6px;
}
.term-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-dim);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
}
.term-btn:hover {
  background: #3a3a3a;
  color: #fff;
}
.terminal-body {
  padding: 16px 20px;
  max-height: 520px;
  overflow-y: auto;
  background: #121212;
}
.term-lines {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #4ec9b0;
  white-space: pre-wrap;
}

/* ==========================================================================
   TAB 5: INTERACTIVE FILE TREE MAP & CODE PREVIEW GATEWAY
   ========================================================================== */
.ft-split-card {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.ft-split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1c1c1c;
  border-bottom: 1px solid var(--border);
}
.ft-header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ft-header-left h3 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
}
.ft-header-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.ft-header-actions {
  display: flex;
  gap: 6px;
}
.ft-act-btn {
  background: #252526;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ft-act-btn:hover {
  background: #333;
  color: #fff;
}

.ft-split-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0 !important;
}

/* Left Column: Interactive Tree Explorer */
.ft-tree-col {
  width: 320px;
  min-width: 240px;
  max-width: 380px;
  background: #141414;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ft-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid #222;
  background: #181818;
  letter-spacing: 0.5px;
}
.ft-tree-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px;
  background: #141414;
}

/* Interactive Folder & File Nodes in FileTree */
.ft-folder {
  margin-bottom: 2px;
}
.ft-folder-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #dcb67a;
  user-select: none;
  border-radius: 3px;
  transition: background 0.1s ease;
}
.ft-folder-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffe082;
}
.ft-chevron {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.ft-folder.collapsed > .ft-folder-header .ft-chevron {
  transform: rotate(-90deg);
}
.ft-folder.collapsed > .ft-folder-children {
  display: none;
}
.ft-folder-children {
  margin-left: 12px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #9cdcfe;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: all 0.1s ease;
}
.ft-file:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.ft-file.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-left-color: var(--orange);
  font-weight: 500;
}
.ft-file-icon {
  flex-shrink: 0;
  display: inline-flex;
}

/* Right Column: Code Editor & WhatsApp Redirect Gateway */
.ft-preview-col {
  flex: 1;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.ft-preview-tab-bar {
  height: 34px;
  background: #181818;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.ft-active-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1e1e;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  padding: 0 14px;
  height: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #fff;
  border-top: 2px solid var(--orange);
}
.ft-code-editor {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
}
.ft-code-lines {
  color: #abb2bf;
  user-select: text;
  margin-bottom: 16px;
}
.ft-code-line {
  display: flex;
  gap: 16px;
}
.ft-ln {
  color: #5c6370;
  min-width: 24px;
  text-align: right;
  user-select: none;
}
.ft-txt {
  flex: 1;
  white-space: pre-wrap;
}

/* Elegant Lock & WA Gateway Overlay */
.ft-lock-overlay {
  margin-top: 14px;
  background: rgba(24, 24, 24, 0.96);
  border: 1px solid rgba(242, 96, 12, 0.35);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  padding: 22px 24px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.ft-lock-icon {
  margin-bottom: 10px;
  display: inline-flex;
  padding: 10px;
  background: rgba(242, 96, 12, 0.1);
  border-radius: 50%;
}
.ft-lock-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.ft-lock-desc {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 6px;
}
.ft-lock-subdesc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.ft-lock-pill {
  color: var(--orange);
  background: rgba(242, 96, 12, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}
.btn-wa-gateway {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-wa-gateway:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* File tree maintains horizontal split across all resolutions (min 720px - max 1080px) */


/* ==========================================================================
   TAB 6: MEDIA GALLERY
   ========================================================================== */
.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.media-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #181818;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  aspect-ratio: 16 / 10;
}
.media-item:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   STATUS BAR (FOOTER)
   ========================================================================== */
.ide-status-bar {
  height: var(--status-height);
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}
.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.status-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-btn-sidebar {
  background: transparent;
  border: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  height: 100%;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}
.status-btn-sidebar:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.status-btn-sidebar.active {
  color: var(--orange);
}
.git-cell {
  background: var(--orange);
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 600;
}
.dot-sync {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ==========================================================================
   MODALS (CONTACT & LIGHTBOX)
   ========================================================================== */
.modal-overlay, .lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.active, .lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1f1f1f;
  border-bottom: 1px solid var(--border);
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title-wrap h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.modal-title-wrap p {
  font-size: 11px;
  color: var(--text-dim);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }

.contact-form {
  padding: 20px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.btn-secondary {
  background: #333;
  color: var(--text-main);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--orange-hover); }

.form-feedback {
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(78,201,176,0.15);
  border: 1px solid rgba(78,201,176,0.3);
  color: var(--green);
}
.form-feedback.error {
  display: block;
  background: rgba(248,113,113,0.15);
  border: 1px solid rgba(248,113,113,0.3);
  color: var(--red);
}

/* Lightbox */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: #fff;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
}




/* ==========================================================================
   MERMAID DIAGRAM & ARCHITECTURE TOGGLE
   ========================================================================== */
.arch-view-toggle {
  display: inline-flex;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  margin-left: 12px;
}
.arch-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.15s ease;
}
.arch-toggle-btn:hover {
  color: var(--text-main);
}
.arch-toggle-btn.active {
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 600;
}
.mermaid-container {
  background: #181818;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow-x: auto;
}
.mermaid-diagram {
  width: 100%;
  display: flex;
  justify-content: center;
}
.mermaid-diagram svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.mermaid-error {
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  padding: 20px;
  text-align: center;
}

/* ==========================================================================
   SIDEBAR COLLAPSE / EXPAND TOGGLE (DESKTOP & MOBILE)
   ========================================================================== */
.sidebar-toggle-btn {
  display: flex !important;
  color: var(--text-dim);
}
.sidebar-toggle-btn:hover {
  background: var(--bg-hover);
  color: #fff;
}
.ide-sidebar {
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s ease;
}
.ide-workspace.sidebar-collapsed .ide-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
}

/* ==========================================================================
   CATEGORY ACCORDION TREE FOLDERS
   ========================================================================== */
.sidebar-root-files {
  padding: 2px 6px;
  margin-bottom: 4px;
}
.tree-item-about {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  margin-bottom: 1px;
  transition: all 0.1s ease;
}
.tree-item-about:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.tree-item-about.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-left-color: var(--orange);
  font-weight: 500;
}
.tag-about {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  margin-left: auto;
}

/* ==========================================================================
   ABOUT DEVELOPER PROFILE VIEW - Zero Boxy, Line Accents
   ========================================================================== */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-hero-card {
  background: transparent;
  border: none;
  border-left: 3px solid var(--orange);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0 24px 18px;
  box-shadow: none;
}
.about-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
}
.about-avatar-frame {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 2px;
  flex-shrink: 0;
  box-shadow: none;
}
.about-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
  background: #252525;
}
.about-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: var(--green);
  border: 2px solid #141414;
  border-radius: 50%;
}
.about-hero-details {
  flex: 1;
}
.about-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.badge-node {
  background: transparent;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.about-name {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.about-lead {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 16px 0;
}
.about-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.btn-about-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  box-shadow: none;
}
.btn-about-contact:hover {
  opacity: 0.9;
}
.btn-about-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 7px 16px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-about-outline:hover {
  border-color: #569cd6;
  color: #fff;
}
.about-prose {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-main);
}
.about-prose p {
  margin-bottom: 12px;
}
.about-prose p:last-child {
  margin-bottom: 0;
}

/* Skills Category Grid - Line Accents */
.skills-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skill-group {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.skill-group:hover {
  border-left-color: var(--orange);
}
.skill-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-pill {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 2px 7px;
  border-radius: 2px;
}
.skill-pill.highlight {
  border-color: var(--orange-border);
  color: var(--orange);
  font-weight: 600;
}

/* Lab Specs Grid - Line Accents */
.lab-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
  border: none;
  border-left: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  transition: border-color 0.15s ease;
}
.lab-item:hover {
  border-left-color: var(--orange);
}
.lab-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.lab-info {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}
.lab-info strong {
  color: #fff;
  margin-right: 6px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (Phone & Touch Optimization)
   Desktop (>900px) remains 100% UNTOUCHED
   ========================================================================== */

/* Utility Visibility Classes */
.mobile-only {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.mobile-menu-btn:hover, .mobile-menu-btn:active, .mobile-menu-btn.active {
  background: var(--bg-hover);
  color: #fff;
  border-color: var(--orange);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Tablet & Mobile (<= 900px) */
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }

  /* 1. Header Bar on Mobile */
  .ide-header {
    height: 46px;
    padding: 0 10px;
    gap: 8px;
  }
  .header-left {
    gap: 8px;
  }
  .header-back-btn {
    padding: 4px 6px;
    margin-right: 0;
  }
  .header-center {
    max-width: 240px;
  }
  .search-box {
    padding: 4px 8px;
  }
  .header-right {
    gap: 8px;
  }
  .btn-contact {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  /* 2. Off-Canvas Mobile Drawer Sidebar */
  .ide-workspace {
    position: relative;
    overflow: hidden;
  }
  .ide-sidebar {
    position: fixed;
    top: 46px;
    bottom: var(--status-height);
    left: 0;
    width: 290px;
    max-width: 85vw;
    background: #181818;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    border-right: 1px solid #333;
    box-shadow: none;
  }
  .ide-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 35px rgba(0, 0, 0, 0.75);
  }

  /* 3. Editor Tabs Bar on Mobile */
  .editor-tabs-bar {
    height: 38px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .editor-tabs-bar::-webkit-scrollbar {
    display: none;
  }
  .editor-tabs-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
  .editor-tab {
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .editor-actions {
    display: none;
  }
  .editor-breadcrumbs {
    padding: 0 12px;
    font-size: 10.5px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .editor-breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  /* 4. Editor Body & Hero Card on Mobile */
  .editor-body {
    padding: 14px 14px 40px;
  }
  .project-hero-card {
    padding: 12px 0 18px 12px;
    margin-bottom: 22px;
  }
  .hero-header-row {
    flex-direction: column-reverse;
    gap: 14px;
  }
  .hero-thumb-box {
    width: 100%;
    max-width: 100%;
    max-height: 220px;
  }
  .hero-thumb {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
  }
  .project-title {
    font-size: 21px !important;
    line-height: 1.35 !important;
    word-break: break-word;
  }
  .project-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }
  .tech-stack-row {
    margin-top: 14px;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .metric-value {
    font-size: 16px;
  }

  /* 5. Combined Specs Pane Components on Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .media-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mermaid-container {
    padding: 12px 8px;
    overflow-x: auto;
  }
  .arch-card .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .arch-view-toggle {
    margin-left: 0;
  }

  /* 6. File Tree Split Card on Mobile */
  .ft-split-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ft-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .ft-act-btn {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
  }
  .ft-split-body {
    flex-direction: column;
    height: auto;
  }
  .ft-tree-col {
    width: 100%;
    max-width: none;
    height: 210px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ft-preview-col {
    height: auto;
    min-height: 380px;
  }
  .ft-lock-overlay {
    padding: 16px 14px;
    max-width: 92%;
    margin: 14px auto;
  }
  .ft-lock-title {
    font-size: 14px;
  }
  .ft-lock-desc, .ft-lock-subdesc {
    font-size: 11.5px;
    line-height: 1.5;
  }
  .btn-wa-gateway {
    width: 100%;
    padding: 10px 12px;
    font-size: 11.5px;
    justify-content: center;
    text-align: center;
  }

  /* 7. Status Bar on Mobile */
  .ide-status-bar {
    padding: 0 8px;
  }
  .status-left, .status-right {
    gap: 8px;
  }

  /* 8. About dynamic markdown on mobile */
  .about-hero-main {
    flex-direction: column;
    text-align: center;
  }
  .about-tag-row, .about-action-row {
    justify-content: center;
  }
  .skills-category-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra Small Phone Screens (<= 600px) */
@media (max-width: 600px) {
  .ide-header {
    padding: 0 8px;
    gap: 6px;
  }
  .header-left {
    gap: 6px;
  }
  .header-back-btn {
    padding: 4px 6px;
  }
  .brand-logo {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .brand-name {
    font-size: 13px;
  }
  .header-center {
    flex: 1;
    max-width: 130px;
    min-width: 0;
  }
  .search-box {
    padding: 3px 6px;
  }
  .search-box input {
    font-size: 11px;
  }
  .search-box input::placeholder {
    color: transparent;
  }
  .header-right {
    gap: 6px;
  }
  .btn-contact {
    padding: 4px 7px;
    font-size: 11px;
  }
  .header-link {
    padding: 4px 6px;
    font-size: 11px;
  }
  .project-title {
    font-size: 18px !important;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .media-gallery-grid {
    grid-template-columns: 1fr;
  }
}


