/* =====================================================================
   RESPWN // HTB Intelligence Console
   Cyberpunk neon + glassmorphism · Inter + JetBrains Mono · dual theme
===================================================================== */

/* Cegah smooth scroll agar scroll restoration tidak animasi saat load */
html { scroll-behavior: auto; }

/* ── DARK THEME (default) ──────────────────────────────────── */
[data-theme="dark"] {
  --bg-deep:   #05060e;
  --bg-0:      #080a18;
  --bg-1:      #0c0f22;
  --bg-2:      #12152e;
  --bg-3:      #1a1e3d;
  --glass:        rgba(20, 24, 56, 0.55);
  --glass-hover:  rgba(28, 33, 72, 0.65);
  --glass-strong: rgba(15, 18, 42, 0.85);
  --glass-brd:    rgba(124, 92, 255, 0.18);
  --glass-brd-2:  rgba(124, 92, 255, 0.32);
  --t-0: #f0f3ff;
  --t-1: #c8cef0;
  --t-2: #8b92c4;
  --t-3: #5c618a;
  --t-4: #3d4168;
  --neon-blue:   #00d4ff;
  --neon-blue-2: #0099ff;
  --neon-violet: #7c5cff;
  --neon-violet-2:#9d7aff;
  --neon-pink:   #ff2a6d;
  --neon-pink-2: #ff5e8a;
  --neon-cyan:   #05d9e8;
  --neon-lime:   #39ff8b;
  --neon-amber:  #ffbb33;
  --glow-blue:   0 0 24px rgba(0, 212, 255, 0.45), 0 0 60px rgba(0, 212, 255, 0.18);
  --glow-violet: 0 0 24px rgba(124, 92, 255, 0.55), 0 0 60px rgba(124, 92, 255, 0.22);
  --glow-pink:   0 0 24px rgba(255, 42, 109, 0.55), 0 0 60px rgba(255, 42, 109, 0.22);
  --glow-lime:   0 0 18px rgba(57, 255, 139, 0.45);
  --glow-soft:   0 8px 32px rgba(0, 0, 0, 0.4);
  --grid-line: rgba(124, 92, 255, 0.06);
  --scrollbar: rgba(124, 92, 255, 0.3);
  --halftone-opacity: 0.04;
}

/* ── LIGHT THEME ──────────────────────────────────────────── */
[data-theme="light"] {
  --bg-deep:   #f4f5fc;
  --bg-0:      #f7f8fd;
  --bg-1:      #ffffff;
  --bg-2:      #f0f2fa;
  --bg-3:      #e6eaf5;
  --glass:        rgba(255, 255, 255, 0.65);
  --glass-hover:  rgba(255, 255, 255, 0.85);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-brd:    rgba(124, 92, 255, 0.16);
  --glass-brd-2:  rgba(124, 92, 255, 0.32);
  --t-0: #0a0d28;
  --t-1: #1f2547;
  --t-2: #4a5078;
  --t-3: #7a809e;
  --t-4: #b0b5cc;
  --neon-blue:   #0091cc;
  --neon-blue-2: #0070b8;
  --neon-violet: #6e3eff;
  --neon-violet-2:#8b5cff;
  --neon-pink:   #e5005e;
  --neon-pink-2: #ff3380;
  --neon-cyan:   #00a6b6;
  --neon-lime:   #1ca34d;
  --neon-amber:  #d68d00;
  --glow-blue:   0 0 18px rgba(0, 145, 204, 0.22), 0 6px 22px rgba(0, 145, 204, 0.08);
  --glow-violet: 0 0 18px rgba(110, 62, 255, 0.28), 0 6px 22px rgba(110, 62, 255, 0.10);
  --glow-pink:   0 0 18px rgba(229, 0, 94, 0.22), 0 6px 22px rgba(229, 0, 94, 0.08);
  --glow-lime:   0 0 14px rgba(28, 163, 77, 0.22);
  --glow-soft:   0 8px 24px rgba(20, 24, 56, 0.08);
  --grid-line: rgba(110, 62, 255, 0.05);
  --scrollbar: rgba(110, 62, 255, 0.25);
  --halftone-opacity: 0.02;
}

:root {
  --display: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --sidebar: 244px;
  --topbar:  64px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: .15s var(--ease);
  --med:  .3s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--neon-violet); color: #fff; }

html {
  scroll-behavior: smooth;
  /* Selalu cadangkan ruang scrollbar agar layout tidak bergeser
     saat pindah ke view pendek (mis. Snippets) yang tak punya scrollbar.
     scrollbar-gutter = cara modern (tanpa scrollbar thumb permanen). */
  scrollbar-gutter: stable;
  /* Fallback browser lama: paksa scrollbar selalu ada */
  overflow-y: scroll;
}
/* SEO static index — visually hidden, readable by non-JS crawlers.
   Uses clip technique (not display:none) — not flagged by Google. */
.seo-index {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg-deep);
  color: var(--t-0);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.005em;
  position: relative;
  transition: background .3s var(--ease), color .3s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 12% 8%,  rgba(124, 92, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 900px 700px at 88% 12%, rgba(0, 212, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 50% 95%, rgba(255, 42, 109, 0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  transition: opacity .4s var(--ease);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 800px 600px at 12% 8%,  rgba(124, 92, 255, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 900px 700px at 88% 12%, rgba(0, 145, 204, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 50% 95%, rgba(229, 0, 94, 0.05) 0%, transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--halftone-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: var(--mono); }
input { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-violet); }

/* ====================== SIDEBAR ====================== */
.sidebar {
  width: var(--sidebar);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  background: linear-gradient(180deg, rgba(15,18,42,0.4) 0%, rgba(15,18,42,0.2) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--glass-brd);
}
[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(237,234,255,0.92) 0%, rgba(245,243,255,0.88) 100%);
}
/* Light mode brand — gradient teks harus gelap agar terbaca di bg terang */
[data-theme="light"] .sb-name {
  background: linear-gradient(90deg, #4a20d0 0%, #6e3eff 50%, #b8005a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .sb-logo-mark {
  background: transparent;
  box-shadow: none;
}
[data-theme="light"] .sb-tag {
  color: var(--t-2);
}
/* Mobile topbar logo — sama, invert jadi putih di atas bg ungu */
[data-theme="light"] .mob-brand-mark {
  background: linear-gradient(135deg, #6e3eff 0%, #4a20d0 100%);
}
[data-theme="light"] .mob-brand-mark img {
  filter: brightness(0) invert(1);
}

.sb-brand {
  padding: 16px 14px 22px;
  border-bottom: 1px solid var(--glass-brd);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.sb-brand::before { display: none; }
.sb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.sb-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124,92,255,0.08);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sb-logo-mark::after { display: none; }
.sb-logo-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}
.sb-logo-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sb-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #c8b4ff 0%, var(--neon-violet) 50%, var(--neon-pink-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.sb-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-3);
  padding-left: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.sb-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-violet);
  box-shadow: 0 0 8px rgba(124,92,255,0.9);
  flex-shrink: 0;
  animation: tagDotPulse 2.5s ease-in-out infinite;
}
@keyframes tagDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(124,92,255,0.9); }
  50%       { opacity: 0.35; box-shadow: 0 0 3px rgba(124,92,255,0.3); }
}

.sb-nav { flex: 1; overflow-y: auto; padding: 0 4px; }
.nav-grp { margin-bottom: 16px; }
.nav-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--t-4);
  padding: 0 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--t-2);
  cursor: pointer;
  transition: var(--fast);
  position: relative;
  user-select: none;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: var(--glass-hover);
  color: var(--t-0);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(124,92,255,0.18) 0%, rgba(0,212,255,0.06) 100%);
  border-color: var(--glass-brd-2);
  color: var(--t-0);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -1px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-violet), var(--neon-blue));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-violet);
}
.nav-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon svg { width: 14px; height: 14px; }
.nav-name { flex: 1; }
.nav-cnt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-3);
  font-weight: 600;
  padding: 1px 6px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 4px;
}
.nav-item.active .nav-cnt {
  background: rgba(124,92,255,0.15);
  border-color: var(--glass-brd-2);
  color: var(--neon-violet-2);
}

.theme-switch {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 24px;
  padding: 3px;
  gap: 0;
  height: 34px;
  box-sizing: border-box;
}
.ts-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 12px;
  border-radius: 20px;
  color: var(--t-3);
  background: none;
  border: none;
  transition: var(--fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}
.ts-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
.ts-btn:hover { color: var(--t-1); }
.ts-btn.active {
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  color: #fff;
  box-shadow: 0 2px 10px rgba(124,92,255,0.45);
}

/* ====================== MAIN ====================== */
.main {
  margin-left: var(--sidebar);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.topbar {
  height: var(--topbar);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-brd);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
}

.bc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-3);
}
.bc-cur {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}
.bc-sep { color: var(--t-4); }

/* ── MODULE SWITCHER ────────────────────────────────────────── */
.module-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  padding: 3px;
}
.module-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--t-3);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.module-btn:hover:not(.soon) {
  background: var(--glass);
  color: var(--t-1);
}
.module-btn.active {
  background: var(--glass-hover);
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0,212,255,0.15);
}
.module-btn.soon {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
}
.module-btn.soon:hover::after {
  content: 'Coming Soon';
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--glass-brd);
  color: var(--t-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 100;
}

.search-wrap {
  width: 220px;
  flex-shrink: 0;
  position: relative;
}
.search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
  padding: 9px 14px;
  transition: var(--fast);
}
.search:focus-within {
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.12), var(--glow-violet);
}
.search-icon { width: 14px; height: 14px; color: var(--t-3); flex-shrink: 0; }
.search:focus-within .search-icon { color: var(--neon-violet); }
.search input {
  background: none;
  border: none;
  outline: none;
  color: var(--t-0);
  font-size: 13px;
  width: 100%;
}
.search input::placeholder { color: var(--t-4); }
.kbd {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  color: var(--t-3);
  border-radius: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t-2);
  padding: 6px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--neon-lime);
  border-radius: 50%;
  box-shadow: var(--glow-lime);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.sr-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-brd-2);
  border-radius: var(--r);
  z-index: 500;
  max-height: 460px;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,.5), var(--glow-violet);
}
.sr-drop.open { display: block; animation: drop-in .18s var(--ease); }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.sr-hdr {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--t-3);
  border-bottom: 1px solid var(--glass-brd);
}
.sr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--glass-brd);
  cursor: pointer;
  transition: var(--fast);
}
.sr-row:hover { background: var(--glass-hover); }
.sr-row:last-child { border-bottom: none; }
.sr-type {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
  border: 1px solid currentColor;
}
.sr-name { font-size: 13px; font-weight: 600; color: var(--t-0); }
.sr-sub { font-size: 11px; color: var(--t-3); margin-top: 2px; }
.sr-empty { padding: 28px; text-align: center; font-size: 12px; color: var(--t-3); }

/* ====================== CONTENT ====================== */
.content { padding: 32px 36px 56px; flex: 1; max-width: 1480px; }
.view { display: none; animation: fade-in .3s var(--ease); }
.view.active { display: block; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ph {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.ph-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ph-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-blue));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-blue);
}
.ph-title {
  font-weight: 800;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--t-0);
  margin-bottom: 14px;
}
.ph-title .accent {
  background: linear-gradient(135deg, var(--neon-violet) 0%, var(--neon-blue) 50%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ph-lede {
  font-size: 15px;
  color: var(--text-primary);
  max-width: 620px;
  line-height: 1.75;
  opacity: .85;
}
.ov-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 24px;
}
.ov-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  opacity: .6;
}
.ov-divider-label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon-blue);
  white-space: nowrap;
  padding: 4px 12px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 20px;
  background: rgba(0,212,255,0.06);
}

.ph-lede-main {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 8px;
}
.ph-lede-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 0;
}
.ph-hl-word {
  color: var(--neon-cyan);
  font-weight: 500;
}

.ph-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 12px;
  background: rgba(255,187,51,0.07);
  border: 1px solid rgba(255,187,51,0.22);
  border-radius: 12px;
  font-size: .72rem;
  color: var(--neon-amber);
  line-height: 1.5;
  max-width: 580px;
}
.ph-notice svg { flex-shrink: 0; margin-top: 2px; }

/* Overview header — 2 kolom: teks kiri, highlights kanan */
.ph-overview {
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: stretch;
  gap: 32px;
}
.ph-intro { min-width: 0; max-width: 640px; }

/* Wrapper scroll hint — fade gradient kanan */
.ph-hl-wrap {
  position: relative;
  display: flex;
}

/* FAQ panel — wadah terpadu untuk highlights */
.ph-faq {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(5,217,232,0.08), transparent 60%),
    var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  box-shadow: var(--glow-soft);
  backdrop-filter: blur(12px);
}
.ph-faq-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-brd);
}
.ph-faq-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.ph-faq-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

/* Overview highlights — rows di dalam panel */
.ph-highlights {
  display: flex;
  flex-direction: column;
}
.ph-hl {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-brd);
  transition: var(--fast);
}
.ph-hl:last-child { border-bottom: none; padding-bottom: 2px; }
.ph-hl:first-child { padding-top: 2px; }
.ph-hl:hover { transform: translateX(3px); }
.ph-hl-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-cyan);
  background: rgba(5,217,232,0.1);
  border: 1px solid rgba(5,217,232,0.2);
  border-radius: 10px;
  transition: var(--fast);
}
.ph-hl:hover .ph-hl-icon {
  background: rgba(5,217,232,0.18);
  box-shadow: 0 0 16px rgba(5,217,232,0.2);
}
.ph-hl-icon svg { width: 18px; height: 18px; }
.ph-hl-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ph-hl-desc {
  font-size: .73rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: justify;
}
@media (max-width: 860px) {
  /* Overview header kembali 1 kolom */
  .ph-overview { grid-template-columns: 1fr; gap: 0; }
  .ph-hl-wrap { margin-top: 16px; }
  .ph-faq { padding: 14px 14px 14px 16px; }

  /* Gradient fade kanan — tanda bisa di-swipe */
  .ph-faq::after,
  .cbar-scroll-wrap::after {
    content: '';
    position: absolute;
    right: 1px; top: 50px; bottom: 14px;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--glass));
    pointer-events: none;
    z-index: 1;
    border-radius: 0 16px 16px 0;
  }
  .cbar-scroll-wrap::after { top: 0; bottom: 0; border-radius: 0; }

  .ph-highlights {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .ph-highlights::-webkit-scrollbar { display: none; }
  .ph-hl {
    flex: 0 0 76vw;
    max-width: 300px;
    padding: 0 4px 0 0;
    border-bottom: none;
    scroll-snap-align: start;
  }
  .ph-hl:hover { transform: none; }
  .ph-hl-title { font-size: .76rem; }
  .ph-hl-desc  { font-size: .71rem; }
  .ph-hl-icon  { width: 30px; height: 30px; }
  .ph-hl-icon svg { width: 15px; height: 15px; }
}

.ph-aside {
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}
.ph-aside .v {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--t-0);
  margin-top: 4px;
  text-transform: none;
}

/* ====================== STAT CARDS ====================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  position: relative;
  padding: 14px 16px 12px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--med);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}
.stat::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, currentColor 0%, transparent 60%);
  opacity: 0.08;
  pointer-events: none;
  transition: var(--med);
}
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--glass-brd-2);
  background: var(--glass-hover);
}
.stat:hover::after { opacity: 0.16; }
.stat[data-c="violet"] { color: var(--neon-violet); }
.stat[data-c="blue"]   { color: var(--neon-blue); }
.stat[data-c="pink"]   { color: var(--neon-pink); }
.stat[data-c="lime"]   { color: var(--neon-lime); }
.stat[data-c="amber"]  { color: var(--neon-amber); }

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background-color: rgba(124, 92, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}
.stat[data-c="violet"] .stat-icon { background-color: rgba(124, 92, 255, 0.15); }
.stat[data-c="blue"]   .stat-icon { background-color: rgba(0, 212, 255, 0.15); }
.stat[data-c="pink"]   .stat-icon { background-color: rgba(255, 42, 109, 0.15); }
.stat[data-c="lime"]   .stat-icon { background-color: rgba(57, 255, 139, 0.15); }
.stat-icon svg { width: 13px; height: 13px; }
.stat-trend {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: rgba(57, 255, 139, 0.12);
  color: var(--neon-lime);
  letter-spacing: 0.05em;
}

.stat-num {
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--t-0);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit {
  font-size: 12px;
  color: var(--t-3);
  font-weight: 500;
  letter-spacing: 0;
}
.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-top: 3px;
}
.stat-sub {
  font-size: 10px;
  color: var(--t-3);
  margin-top: 2px;
}
.stat-nav-hint {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  transition: opacity var(--fast);
  filter: opacity(0.7);
}
.stat-clickable {
  cursor: pointer;
}
.stat-clickable:hover .stat-nav-hint {
  opacity: 1;
}
.stat-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px currentColor, var(--glow-soft);
}

.panel-clickable {
  cursor: pointer;
  transition: var(--med);
}
.panel-clickable:hover {
  border-color: var(--glass-brd-2);
  transform: translateY(-3px);
  box-shadow: var(--glow-soft), 0 0 28px rgba(124,92,255,0.15);
}
.panel-nav-arrow {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 300;
  color: var(--t-4);
  transition: var(--fast);
  flex-shrink: 0;
  align-self: center;
}
.panel-clickable:hover .panel-nav-arrow {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  transform: translateX(4px);
  display: inline-block;
}

/* ====================== PANELS ====================== */
.panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.panel-flat {
  background: transparent;
  border: none;
  padding: 0;
}
.panel-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.panel-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--t-0);
}
.panel-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-blue);
  font-weight: 700;
  margin-bottom: 4px;
}

.row { display: grid; gap: 20px; margin-bottom: 28px; }
.row-2  { grid-template-columns: 1fr 1fr; }
.row-3  { grid-template-columns: 1fr 1fr 1fr; }
.row-32 { grid-template-columns: 2fr 1fr; }
.row-23 { grid-template-columns: 1fr 2fr; }

.chart-box { position: relative; height: 280px; }
.chart-box-sm { position: relative; height: 220px; }
.chart-box-lg { position: relative; height: 340px; }

.m-list { display: flex; flex-direction: column; gap: 0; }
.m-row {
  display: grid;
  grid-template-columns: 56px 1fr 130px 110px 70px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--fast);
  position: relative;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
}
.m-row:hover {
  background: var(--glass-hover);
  border-color: var(--glass-brd);
  transform: translateX(2px);
}
.m-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--t-4);
  letter-spacing: -0.01em;
}
.m-row:hover .m-num {
  color: var(--neon-violet);
  text-shadow: 0 0 12px var(--neon-violet);
}
.m-info { min-width: 0; }
.m-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  color: var(--t-0);
}
.m-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t-3);
  letter-spacing: 0.04em;
}
.m-meta strong { color: var(--t-1); font-weight: 600; }

.diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .diff-badge { background: rgba(255,255,255,0.5); }
.diff-Very\ Easy { color: var(--neon-cyan); }
.diff-Easy   { color: var(--neon-lime); }
.diff-Medium { color: var(--neon-amber); }
.diff-Hard   { color: var(--neon-pink); }
.diff-Insane { color: var(--neon-violet-2); }

.m-cta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t-3);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  transition: var(--fast);
}
.m-row:hover .m-cta { color: var(--neon-blue); }

/* Locked row di Recent Ops */
.m-row.locked {
  border-color: rgba(255, 42, 109, 0.2);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 42, 109, 0.025) 0px,
    rgba(255, 42, 109, 0.025) 2px,
    transparent 2px,
    transparent 14px
  );
  border-left: 3px solid rgba(255, 42, 109, 0.55);
}
.m-row.locked:hover {
  border-color: rgba(255, 42, 109, 0.45);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 42, 109, 0.04) 0px,
    rgba(255, 42, 109, 0.04) 2px,
    transparent 2px,
    transparent 14px
  );
  transform: translateX(2px);
}
.m-row.locked .m-num { color: rgba(255, 42, 109, 0.4); }
.m-row.locked:hover .m-num { color: var(--neon-pink); text-shadow: 0 0 12px var(--neon-pink); }
.m-row.locked .m-name { color: var(--t-2); }
.m-row.locked .m-desc {
  color: var(--neon-pink);
  opacity: 0.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}
.m-row.locked .m-cta { color: rgba(255,42,109,0.4); }
.m-row.locked:hover .m-cta { color: var(--neon-pink); }

.method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.method-step {
  padding: 20px 18px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
  position: relative;
  transition: var(--med);
  cursor: default;
}
.method-step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t-4);
  font-size: 16px;
  font-weight: 300;
  z-index: 2;
}
.method-step:last-child::after { display: none; }
.method-step:hover {
  border-color: var(--glass-brd-2);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}
.method-clickable {
  cursor: pointer;
}
.method-clickable:hover {
  border-color: var(--neon-violet);
  box-shadow: var(--glow-violet), var(--glow-soft);
  background: var(--glass-hover);
}
.method-clickable:hover .method-num {
  text-shadow: 0 0 12px var(--neon-violet);
}
.method-cta {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-violet);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--fast), transform var(--fast);
}
.method-clickable:hover .method-cta {
  opacity: 1;
  transform: translateY(0);
}
.method-num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--neon-violet);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.method-num::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-violet);
  box-shadow: 0 0 8px var(--neon-violet);
}
.method-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--t-0);
}
.method-desc {
  font-size: 11.5px;
  color: var(--t-2);
  line-height: 1.55;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
}
.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  padding: 3px;
}
.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  color: var(--t-3);
  transition: var(--fast);
}
.view-toggle-btn svg { width: 14px; height: 14px; }
.view-toggle-btn:hover { color: var(--t-1); background: var(--glass-brd); }
.view-toggle-btn.active { background: rgba(124,92,255,0.18); color: var(--neon-violet); }

/* ── LIST MODE ── */
.mcards.list-mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mcards.list-mode .mcard {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  transform: none !important;
}
.mcards.list-mode .mcard::before { display: none; }
.mcards.list-mode .mcard:hover { transform: none !important; }
.mcards.list-mode .mcard-top {
  margin-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.mcards.list-mode .mcard-name {
  font-size: 16px;
  margin-bottom: 2px;
}
.mcards.list-mode .mcard-host {
  margin-bottom: 0;
  font-size: 10.5px;
}
.mcards.list-mode .mcard-rows-inline {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.mcards.list-mode .mcard-row {
  border: none;
  padding: 0;
  font-size: 11px;
  gap: 5px;
}
.mcards.list-mode .mcard-row:last-of-type { border-bottom: none; }
.mcards.list-mode .mcard-tags {
  margin-top: 0;
  flex-wrap: nowrap;
}
.mcards.list-mode .mcard-list-cta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon-violet);
  white-space: nowrap;
}
.mcards.list-mode .mcard.locked .mcard-list-cta { color: var(--neon-pink); }
.filter-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-right: 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--glass-brd);
  color: var(--t-2);
  background: transparent;
  cursor: pointer;
  transition: var(--fast);
  border-radius: var(--r-sm);
  letter-spacing: 0.03em;
}
.chip:hover {
  color: var(--t-0);
  border-color: var(--glass-brd-2);
  background: var(--glass-hover);
}
.chip.active {
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(124,92,255,0.32);
}

.mcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}
.mcard {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  cursor: pointer;
  position: relative;
  transition: var(--med);
  overflow: hidden;
}
.mcard::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-blue), var(--neon-cyan));
  transition: width .4s var(--ease);
  box-shadow: 0 0 12px var(--neon-violet);
}
.mcard:hover {
  border-color: var(--glass-brd-2);
  transform: translateY(-3px);
  box-shadow: var(--glow-soft), 0 0 32px rgba(124,92,255,0.18);
}
.mcard:hover::before { width: 100%; }

/* LOCKED machine card style */
.mcard.locked {
  border-color: rgba(255, 42, 109, 0.5);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 42, 109, 0.03) 0px,
      rgba(255, 42, 109, 0.03) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--glass);
}
.mcard.locked::before {
  width: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-violet), var(--neon-pink));
  box-shadow: 0 0 16px var(--neon-pink);
  animation: lockedPulse 3s ease-in-out infinite;
}
@keyframes lockedPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.mcard.locked:hover {
  border-color: rgba(255, 42, 109, 0.75);
  box-shadow: 0 0 0 1px rgba(255,42,109,0.25), 0 0 40px rgba(255,42,109,0.22);
  transform: translateY(-2px);
}
.mcard.locked .mcard-name { color: var(--t-2); }

/* Stamp CLASSIFIED */
.locked-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 10px;
  border: 2px solid rgba(255, 42, 109, 0.5);
  border-radius: 6px;
  background: rgba(255, 42, 109, 0.06);
  position: relative;
}
.locked-stamp-icon {
  color: rgba(255, 42, 109, 0.7);
}
.locked-stamp-icon svg { width: 22px; height: 22px; }
.locked-stamp-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255,42,109,0.6);
}
.locked-stamp-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--t-3);
  text-transform: uppercase;
}

/* Badge kecil — dipakai di list mode */
.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--neon-pink);
  border: 1px solid rgba(255,42,109,0.55);
  background: rgba(255,42,109,0.1);
  text-shadow: 0 0 8px rgba(255,42,109,0.5);
}
.locked-badge svg { width: 10px; height: 10px; flex-shrink: 0; }

/* List mode — locked row */
.mcards.list-mode .mcard.locked {
  border-left: 3px solid rgba(255,42,109,0.7);
}
.mcards.list-mode .mcard.locked .mcard-name { color: var(--t-2); }
.locked-overlay {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 42, 109, 0.05);
  border: 1px solid rgba(255, 42, 109, 0.18);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--t-3);
  line-height: 1.55;
}

.mcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mcard-id {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 0.2em;
  padding: 3px 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
}
.mcard-name {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--t-0);
}
.mcard-host {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t-3);
  margin-bottom: 16px;
}
.mcard-host code {
  color: var(--neon-cyan);
  background: rgba(5, 217, 232, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(5, 217, 232, 0.18);
}
.mcard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 11.5px;
  border-top: 1px solid var(--glass-brd);
}
.mcard-row:last-of-type { border-bottom: 1px solid var(--glass-brd); }
.mcard-row-k {
  font-family: var(--mono);
  color: var(--t-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
}
.mcard-row-v {
  color: var(--t-1);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 11px;
}
.mcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}
.mtag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  color: var(--t-2);
  border-radius: 4px;
}
.mtag.cve {
  color: var(--neon-pink);
  border-color: rgba(255, 42, 109, 0.25);
  background: rgba(255, 42, 109, 0.06);
}

.tbl-wrap {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  overflow: hidden;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.tbl thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-3);
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-brd-2);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--glass-brd);
  vertical-align: middle;
}
.tbl tbody tr {
  cursor: pointer;
  transition: var(--fast);
}
.tbl tbody tr:hover { background: var(--glass-hover); }
.tbl tbody tr:last-child td { border-bottom: none; }
.cve-id {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--neon-pink);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.cve-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--t-0);
  letter-spacing: -0.01em;
  margin-top: 3px;
}
.cvss-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.cvss-bar .v {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--t-0);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}
.cvss-bar .bar {
  flex: 1;
  height: 4px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.cvss-bar .bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
}
.sev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.sev-pill::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.sev-Critical { color: var(--neon-pink); }
.sev-High     { color: var(--neon-amber); }
.sev-Medium   { color: var(--neon-blue); }
.sev-Low      { color: var(--neon-lime); }
.type-pill {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  color: var(--t-1);
  border-radius: 4px;
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}
.tcard {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  cursor: pointer;
  transition: var(--med);
  position: relative;
  overflow: hidden;
}
.tcard:hover {
  border-color: var(--glass-brd-2);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}
.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.tcard-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--t-0);
  letter-spacing: -0.01em;
}
.tcard-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 60%;
}
.tcard-cat {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-blue);
  padding: 3px 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 4px;
}
.tcard-desc {
  font-size: 12.5px;
  color: var(--t-2);
  line-height: 1.55;
  margin-bottom: 14px;
}
.tcard-roles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.tcard-role {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
}
.tcard-role-cat {
  flex-shrink: 0;
  min-width: 66px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-violet);
  background: rgba(124, 92, 255, 0.10);
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 4px;
  padding: 3px 7px;
  text-align: center;
  margin-top: 1px;
}
.tcard-role-txt { color: var(--t-2); }
.modal-roles { margin-bottom: 0; }
.modal-roles .tcard-role { font-size: 13px; }

.tcard-cmd {
  background: #05060e;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--neon-lime);
  white-space: nowrap;
  overflow-x: auto;
}
.tcard-cmd::before {
  content: "$ ";
  color: var(--t-4);
}
.tcard-flags-cnt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t-3);
  margin-top: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tcard-flags-cnt::before {
  content: "▸";
  color: var(--neon-violet);
}

/* ── Arsenal LIST view ── */
.tgrid.list-mode {
  grid-template-columns: 1fr;
  gap: 8px;
}
.tgrid.list-mode .tcard {
  padding: 13px 18px;
}
.tgrid.list-mode .tcard-top {
  margin-bottom: 6px;
}
.tgrid.list-mode .tcard-name {
  font-size: 15px;
}
.tgrid.list-mode .tcard-desc {
  margin-bottom: 10px;
}
.tcard-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tgrid.list-mode .tcard-list-meta .tcard-cmd {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.tgrid.list-mode .tcard-list-meta .tcard-flags-cnt {
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.tech-section { margin-bottom: 28px; }
.tech-section-hdr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-brd);
}
.tech-section-title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--t-0);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tech-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--neon-violet), var(--neon-blue));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-violet);
}
.tech-section-cnt {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-3);
}
.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
/* tier color variables — dipakai badge tag & legend */
.tier-first       { --tier-clr: var(--neon-lime);   --tier-bg: rgba(57,255,139,0.12);  --tier-brd: rgba(57,255,139,0.35); }
.tier-situational { --tier-clr: var(--neon-amber);  --tier-bg: rgba(255,187,51,0.12);  --tier-brd: rgba(255,187,51,0.35); }
.tier-advanced    { --tier-clr: var(--neon-violet);  --tier-bg: rgba(124,92,255,0.12); --tier-brd: rgba(124,92,255,0.35); }

/* kartu teknik — tiap tier punya warna, tint, dan glow sendiri */
.tier-item-first       { --tier-clr: var(--neon-lime);   --tier-tint: rgba(57,255,139,0.07);  --tier-glow: rgba(57,255,139,0.30); }
.tier-item-situational { --tier-clr: var(--neon-amber);  --tier-tint: rgba(255,187,51,0.07);  --tier-glow: rgba(255,187,51,0.30); }
.tier-item-advanced    { --tier-clr: var(--neon-violet); --tier-tint: rgba(124,92,255,0.08);  --tier-glow: rgba(124,92,255,0.32); }

.tech-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 16px;
  border: 1px solid var(--glass-brd);
  border-left: 3px solid var(--tier-clr, var(--glass-brd));
  border-radius: var(--r-lg);
  background:
    linear-gradient(165deg, var(--tier-tint, transparent), transparent 60%),
    var(--glass);
  backdrop-filter: blur(12px);
  cursor: default;
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}
/* glow lembut di pojok kiri-atas mengikuti warna tier */
.tech-item::before {
  content: "";
  position: absolute;
  top: -45px; left: -45px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--tier-glow, transparent), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.tech-item:hover {
  transform: translateY(-3px);
  border-color: var(--tier-clr);
  box-shadow: 0 10px 32px -12px var(--tier-glow), var(--glow-soft);
}
.tech-item.linked { cursor: pointer; }

/* top row: number badge + name + tier tag + ref pill */
.tech-item-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tech-order-badge {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
  color: #05060e;
  background: var(--tier-clr);
  box-shadow: 0 0 14px -3px var(--tier-clr);
}
.tech-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--t-0);
  letter-spacing: -0.01em;
  flex: 1;
  line-height: 1.25;
}
.tech-tier-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--tier-bg);
  border: 1px solid var(--tier-brd);
  color: var(--tier-clr);
}
/* tombol icon tool terkait (klik card → buka tool) */
.tech-ref-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 6px;
  opacity: 0.8;
  transition: opacity 0.18s, box-shadow 0.18s;
}
.tech-item.linked:hover .tech-ref-pill {
  opacity: 1;
  box-shadow: 0 0 10px -2px rgba(0, 212, 255, 0.5);
}

.tech-item-what {
  position: relative;
  font-size: 12.5px;
  color: var(--t-1);
  line-height: 1.6;
  margin-bottom: 11px;
}
.tech-item-desc {            /* fallback lama */
  font-size: 11.5px;
  color: var(--t-2);
  line-height: 1.55;
}
/* blok "Tujuan" — callout kenapa teknik ini dilakukan */
.tech-item-why {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding: 10px 12px;
  background: rgba(57, 255, 139, 0.06);
  border: 1px solid rgba(57, 255, 139, 0.18);
  border-radius: var(--r-sm);
}
.tech-why-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-lime);
}
.tech-why-label svg {
  filter: drop-shadow(0 0 4px rgba(57, 255, 139, 0.6));
}
.tech-why-txt {
  font-size: 11.5px;
  color: var(--t-2);
  line-height: 1.55;
}
.tech-item:hover .tech-item-why {
  background: rgba(57, 255, 139, 0.09);
  border-color: rgba(57, 255, 139, 0.3);
}
/* inline code di dalam teks teknik — WAJIB bisa wrap agar command panjang
   tidak terpotong oleh kartu (yang punya overflow:hidden). Jangan pakai nowrap. */
.tech-ic {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--neon-cyan);
  background: rgba(5, 217, 232, 0.08);
  border: 1px solid rgba(5, 217, 232, 0.16);
  border-radius: 3px;
  padding: 0.5px 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* jaga seluruh teks di kartu teknik agar selalu wrap, tidak pernah overflow */
.tech-item-what,
.tech-why-txt {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* section header meta + legend pills */
.tech-section-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.tier-legend {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tier-bg);
  border: 1px solid var(--tier-brd);
  color: var(--tier-clr);
}

.chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 8px;
}
.chain-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 16px 0;
  position: relative;
}
.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, var(--glass-brd-2) 0%, var(--glass-brd) 100%);
}
.chain-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  color: white;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--glow-violet);
}
.chain-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--t-0);
  letter-spacing: -0.01em;
}
.chain-detail {
  font-size: 12.5px;
  color: var(--t-2);
  line-height: 1.6;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
  transition: var(--fast);
}
.insight:hover {
  border-color: var(--glass-brd-2);
  background: var(--glass-hover);
}
.insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.12);
  color: var(--neon-violet);
}
.insight-icon svg { width: 16px; height: 16px; }
.insight-content { flex: 1; min-width: 0; }
.insight-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--t-0);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.insight-desc {
  font-size: 11.5px;
  color: var(--t-2);
  line-height: 1.5;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 24px;
}
[data-theme="light"] .modal { background: rgba(20, 24, 56, 0.4); }
.modal.open {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: fade-in .25s var(--ease);
}
.modal-box {
  background: var(--bg-1);
  border: 1px solid var(--glass-brd-2);
  border-radius: var(--r-xl);
  max-width: 980px;
  width: 100%;
  position: relative;
  animation: modal-up .35s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), var(--glow-violet);
  overflow: hidden;
}
@keyframes modal-up {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-blue), var(--neon-cyan));
  box-shadow: 0 0 16px var(--neon-violet);
}
.modal-hdr {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--glass-brd);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.modal-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 12px;
}
.modal-title {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--t-0);
}
.modal-title .accent {
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-sub {
  font-size: 13px;
  color: var(--t-2);
  margin-top: 10px;
  line-height: 1.55;
}
.modal-close {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-2);
  padding: 8px 12px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  border-radius: var(--r-sm);
  transition: var(--fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-close:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255,42,109,0.3);
}
.modal-body {
  padding: 24px 32px 32px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.m-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-brd);
}
.m-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.m-sec-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-sec-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-brd) 0%, transparent 100%);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.kv {
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
}
.kv-k {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 6px;
}
.kv-v {
  font-size: 13px;
  color: var(--t-0);
  font-weight: 500;
  word-break: break-word;
}
.kv-v code {
  font-family: var(--mono);
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  padding: 2px 7px;
  font-size: 12px;
  color: var(--neon-lime);
  border-radius: 4px;
}

.bullet-list { list-style: none; }
.bullet-list li {
  padding: 10px 0 10px 22px;
  position: relative;
  font-size: 12.5px;
  color: var(--t-1);
  line-height: 1.65;
  border-bottom: 1px solid var(--glass-brd);
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-violet);
}

.codeblk-wrap { position: relative; margin-bottom: 14px; }
.codeblk-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  border-bottom: none;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-blue);
}
.codeblk {
  background: #05060e;
  border: 1px solid var(--glass-brd);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: #c8cef0;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.65;
}
.copy-btn {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--t-2);
  padding: 4px 10px;
  border: 1px solid var(--glass-brd);
  background: transparent;
  border-radius: 4px;
  transition: var(--fast);
}
.copy-btn:hover { color: var(--neon-blue); border-color: var(--neon-blue); }
.copy-btn.done { color: var(--neon-lime); border-color: var(--neon-lime); }

.flag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.flag-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-brd);
  vertical-align: top;
}
.flag-table td:first-child {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--neon-blue);
  white-space: nowrap;
  width: 140px;
}
.flag-table td:last-child { color: var(--t-1); }

.credtbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--glass);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.credtbl th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-3);
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--glass-brd);
}
.credtbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-brd);
  color: var(--t-1);
}
.credtbl tr:last-child td { border-bottom: none; }
.credtbl td code {
  font-family: var(--mono);
  background: var(--bg-2);
  padding: 2px 7px;
  color: var(--neon-lime);
  border-radius: 4px;
  border: 1px solid var(--glass-brd);
}

.txt-block {
  font-size: 13px;
  color: var(--t-1);
  line-height: 1.7;
  padding: 14px 18px;
  background: var(--glass);
  border-left: 3px solid var(--neon-violet);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.locked-modal-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  gap: 18px;
}
.locked-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 42, 109, 0.10);
  border: 1px solid rgba(255, 42, 109, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-pink);
}
.locked-modal-icon svg { width: 28px; height: 28px; }
.locked-modal-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-pink);
}
.locked-modal-desc {
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.65;
  max-width: 520px;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}
.locked-modal-hint {
  text-align: justify;
  hyphens: auto;
  max-width: 520px;
  margin-top: 4px;
  padding: 16px 18px;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: var(--r);
}
.locked-modal-hint-text {
  font-size: 12.5px;
  color: var(--t-2);
  line-height: 1.6;
}
.locked-modal-hint-text strong { color: var(--neon-violet); font-weight: 600; }

.empty {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--glass-brd);
  border-radius: var(--r);
  color: var(--t-3);
  font-size: 13px;
  background: var(--glass);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE HAMBURGER, BRAND & DRAWER
══════════════════════════════════════════════════════════════ */

/* Tombol hamburger — tersembunyi di desktop */
.mob-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px 7px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  transition: var(--fast);
}
.mob-menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--t-1);
  transform-origin: center;
  transition: transform .25s var(--ease), opacity .15s, background .15s;
}
.mob-menu-btn:hover { background: var(--glass-hover); border-color: var(--neon-violet); }
.mob-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  background: var(--neon-violet); }
.mob-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--neon-violet); }

/* Mini brand in topbar — tersembunyi di desktop */
.mob-brand {
  display: none;
  align-items: center;
  gap: 8px;
}
.mob-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mob-brand-mark img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
.mob-brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Backdrop overlay */
.mob-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,6,14,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 190;
}
.mob-backdrop.open {
  display: block;
  animation: backdropFadeIn .25s var(--ease);
}
@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Mobile-only elements — hidden on desktop */
.mob-search-btn   { display: none; }
.mob-search-close { display: none; }
.mob-theme-wrap   { display: none; }
.mob-module-wrap  { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1100px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .row-2, .row-3, .row-32, .row-23 { grid-template-columns: 1fr; }
  .stats  { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: 1fr 1fr; }
  .method-step::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Root vars ── */
  :root { --sidebar: 0px; --topbar: 56px; }

  /* ──────────────────────────────────────────────────────────
     SIDEBAR — off-canvas drawer
     CRITICAL FIX: width harus explicit agar translateX(-100%)
     benar-benar menggeser sidebar keluar layar
  ────────────────────────────────────────────────────────── */
  .sidebar {
    width: min(280px, 82vw);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    box-shadow: 6px 0 32px rgba(0,0,0,0.65);
    overflow: hidden;
  }
  .sidebar.mob-open { transform: translateX(0); }

  /* Nav scroll internal */
  .sidebar .sb-nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  /* Theme switch desktop — sembunyikan di mobile */
  .theme-switch { display: none !important; }

  /* Hide desktop module switcher, show mobile version */
  .module-switcher { display: none !important; }
  .mob-module-wrap {
    display: block;
    position: relative;
    flex-shrink: 0;
  }
  .mob-module-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fast);
  }
  .mob-module-btn:hover { border-color: var(--neon-violet); color: var(--neon-violet); }
  .mob-module-chevron { opacity: .5; transition: var(--fast); }
  .mob-module-wrap.open .mob-module-chevron { transform: rotate(180deg); opacity: 1; }

  .mob-module-popup {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-2, var(--glass));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r);
    overflow: hidden;
    min-width: 150px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 200;
  }
  .mob-module-popup.open { display: flex; }

  .mob-mod-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fast);
    text-align: left;
    width: 100%;
  }
  .mob-mod-opt:hover { background: var(--glass-brd); }
  .mob-mod-opt.active { color: var(--neon-violet); background: rgba(124,92,255,0.08); }
  .mob-mod-opt.soon { opacity: .5; cursor: default; }
  .mob-mod-opt.soon:hover { background: none; }
  .mob-mod-soon-tag {
    margin-left: auto;
    font-size: .6rem;
    font-family: var(--mono);
    letter-spacing: .06em;
    color: var(--text-muted);
    background: var(--glass-brd);
    border-radius: 4px;
    padding: 1px 5px;
  }

  /* Hide module wrap saat search mode */
  .topbar.mob-search-on .mob-module-wrap { display: none; }

  /* Mobile theme wrap — tampilkan circle button */
  .mob-theme-wrap {
    display: block;
    position: relative;
    flex-shrink: 0;
  }
  .mob-theme-btn {
    display: flex;
    width: 36px; height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    color: var(--t-2);
    cursor: pointer;
    transition: var(--fast);
    flex-shrink: 0;
  }
  .mob-theme-btn:hover { color: var(--neon-violet); border-color: var(--neon-violet); }
  .mob-theme-btn svg { width: 15px; height: 15px; }

  /* Popup dropdown */
  .mob-theme-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px;
    z-index: 400;
    min-width: 130px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .mob-theme-popup.open { display: flex; }

  .mob-tp-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--t-2);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--fast);
    width: 100%;
    text-align: left;
    white-space: nowrap;
  }
  .mob-tp-opt:hover { background: var(--glass-hover); color: var(--t-0); }
  .mob-tp-opt.active { color: var(--neon-violet); background: rgba(124,92,255,0.12); }
  .mob-tp-opt svg { width: 13px; height: 13px; flex-shrink: 0; }

  /* Sembunyikan saat search mode */
  .topbar.mob-search-on .mob-theme-wrap { display: none; }

  /* ── MAIN — cegah horizontal overflow dari table lebar ── */
  .main { overflow-x: hidden; max-width: 100vw; }

  /* ── TOPBAR ── */
  .topbar { padding: 0 12px; gap: 8px; }
  .mob-menu-btn    { display: flex; flex-shrink: 0; }
  /* mob-brand disembunyikan — hamburger sudah cukup */
  .mob-brand       { display: none; }
  .module-switcher { display: none; }

  /* Search-back button — tersembunyi default, muncul saat search mode */
  .mob-search-close {
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 10px;
    color: var(--t-1);
    flex-shrink: 0;
    transition: var(--fast);
  }

  /* topbar-right: kanan topbar */
  .topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* Mob search icon button — visible on mobile */
  .mob-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 10px;
    color: var(--t-2);
    flex-shrink: 0;
    transition: var(--fast);
  }
  .mob-search-btn:hover { color: var(--neon-violet); border-color: var(--neon-violet); }
  .mob-search-btn svg { width: 15px; height: 15px; }

  /* Search wrap — hidden by default on mobile, shown via search mode */
  .search-wrap { display: none; flex: 1; min-width: 0; max-width: none; position: relative; }
  .search { padding: 7px 10px; gap: 7px; }
  .kbd { display: none; }
  .tag { display: none; }

  /* ── SEARCH MODE: .mob-search-on pada .topbar ── */
  .topbar.mob-search-on { gap: 6px; }
  .topbar.mob-search-on .mob-menu-btn     { display: none; }
  .topbar.mob-search-on .mob-brand        { display: none; }
  .topbar.mob-search-on .mob-search-close { display: flex; }
  .topbar.mob-search-on .topbar-right     { margin-left: 0; flex: 1; gap: 0; }
  .topbar.mob-search-on .mob-search-btn   { display: none; }
  .topbar.mob-search-on .search-wrap      { display: flex; flex: 1; }
  .topbar.mob-search-on .roadmap-btn      { display: none; }
  .topbar.mob-search-on .donate-btn       { display: none; }
  .topbar.mob-search-on .about-btn        { display: none; }

  /* Search dropdown — full width below input */
  .sr-drop { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 6px); }

  /* Roadmap — icon only, compact */
  .roadmap-btn span { display: none; }

  /* Donate — icon only */
  .donate-btn span   { display: none; }

  /* About — avatar only */
  .about-btn-name             { display: none; }
  .about-btn > svg:last-child { display: none; }
  .about-btn { padding: 3px; border-radius: 50%; }

  /* ── CONTENT ── */
  .content { padding: 22px 16px 96px; max-width: 100%; }

  /* ── PAGE HEADER ── */
  .ph { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
  .ph > div { width: 100%; overflow: hidden; min-width: 0; }
  .ph-aside   { display: none; }
  .ph-eyebrow { font-size: 9px; letter-spacing: 0.22em; margin-bottom: 10px; }
  .ph-title   { font-size: 26px; line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.025em; }
  /* Sembunyikan chart panels dan methodology di mobile — terlalu besar */
  #view-overview .row-3 { display: none; }
  #view-overview .panel-flat { display: none; }
  #view-cves .row-2 { grid-template-columns: 1fr; }
  #view-cves .row-2 .panel:first-child { display: none; }
  #view-credentials .row-2 { grid-template-columns: 1fr; }
  #view-credentials .row-2 .panel:last-child { display: none; }

  /* Recent Ops — batasi tampil 4 baris, sisanya scroll */
  .ov-recent-scroll {
    max-height: 435px !important;
    overflow-y: auto !important;
  }
  .ph-lede    { font-size: 13px; line-height: 1.65; max-width: 100%; }

  /* ── STAT CARDS ── */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
  .stat  { padding: 12px 10px 10px; }
  .stat-num   { font-size: 24px; }
  .stat-label { font-size: 7px; letter-spacing: 0.08em; overflow: hidden; }
  .stat-sub   { font-size: 9px; }
  .stat-top   { margin-bottom: 6px; }
  .stat-icon  { width: 24px; height: 24px; }
  .stat-nav-hint { display: none; }

  /* ── LAYOUT GRIDS ── */
  .row-2, .row-3, .row-32, .row-23 { grid-template-columns: 1fr; gap: 14px; }
  .row { margin-bottom: 20px; }

  /* ── PANELS ── */
  .panel      { padding: 18px 16px; }
  .panel-flat { padding: 0; }
  .panel-hdr  { margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
  .panel-title { font-size: 15px; }
  .panel-sub   { font-size: 9px; }

  /* ── CHARTS ── */
  .chart-box-sm { height: 140px; }
  .chart-box    { height: 160px; }
  .chart-box-lg { height: 180px; }

  /* Chart panels — 2 kolom di mobile, panel ketiga full width */
  #view-overview .row-3 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  #view-overview .row-3 .panel:last-child {
    grid-column: 1 / -1;
  }

  /* ── PENDING WRITEUP BAR ── */
  .classified-bar { margin-bottom: 18px; }
  .cbar-header    { flex-wrap: wrap; gap: 6px; }

  /* ── METHODOLOGY ── */
  .method { grid-template-columns: 1fr; gap: 8px; }
  .method-step::after { display: none; }
  .method-step  { padding: 13px 14px; }
  .method-num   { font-size: 9px; margin-bottom: 7px; }
  .method-title { font-size: 13px; }
  .method-desc  { font-size: 11px; }

  /* ── RECENT OPS ── */
  .m-row { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 12px 14px; }
  .m-row > :nth-child(3) { display: none; }
  .m-row > :nth-child(5) { display: none; }
  .m-num  { font-size: 10.5px; }
  .m-name { font-size: 13.5px; }
  .m-desc { font-size: 10.5px; }
  .ov-recent-scroll { max-height: 390px !important; }

  /* ── MACHINE CARDS ── */
  .mcards { grid-template-columns: 1fr; gap: 12px; }
  .mcard  { padding: 16px 16px 14px; }
  .mcard-name { font-size: 21px; letter-spacing: -0.02em; }
  .mcard-top  { margin-bottom: 12px; }
  .mcard-id   { font-size: 9px; }
  .mcard-row-v { white-space: nowrap; }

  /* List mode — gunakan 3-col sederhana di mobile */
  .mcards.list-mode .mcard {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .mcards.list-mode .mcard-rows-inline { display: none; }
  .mcards.list-mode .mcard-tags { display: none; }

  /* ── FILTER BAR ── */
  .filter-bar   { flex-wrap: wrap; gap: 7px; padding: 12px 14px; }
  .filter-label { display: none; }
  .chip { padding: 7px 13px; font-size: 11px; }
  .view-toggle  { margin-left: auto; }

  /* ── TABLE CELLS — kurangi padding pada mobile ── */
  .tbl thead th { padding: 10px 10px; font-size: 9px; letter-spacing: 0.15em; white-space: nowrap; }
  .tbl tbody td { padding: 11px 10px; }

  /* ── CVE TABLE ── */
  .cve-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .cve-table-wrap table { min-width: unset; width: 100%; font-size: 11.5px; }
  /* Sembunyikan kolom sekunder: Mechanism (2), CVSS bar (4), Affected (6) */
  .cve-table-wrap th:nth-child(2),
  .cve-table-wrap td:nth-child(2),
  .cve-table-wrap th:nth-child(4),
  .cve-table-wrap td:nth-child(4),
  .cve-table-wrap th:nth-child(6),
  .cve-table-wrap td:nth-child(6) { display: none; }

  /* ── TOOLS ── */
  .tgrid { grid-template-columns: 1fr; gap: 10px; }
  .tcard { padding: 14px 16px; }

  /* ── TECHNIQUES ── */
  .tech-items { grid-template-columns: 1fr; gap: 8px; }
  .tech-section { margin-bottom: 22px; }
  .tech-section-hdr { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tech-section-meta { flex-wrap: wrap; gap: 5px; margin-left: 0; }
  .tech-item { padding: 12px 13px; }
  .tech-item-name { font-size: 13px; }

  /* ── CREDENTIALS ── */
  .cred-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .cred-table-wrap table { min-width: unset; width: 100%; font-size: 11.5px; }
  /* Sembunyikan kolom Source (4) — kurang penting di mobile */
  .cred-table-wrap th:nth-child(4),
  .cred-table-wrap td:nth-child(4) { display: none; }
  #cred-filter-bar { flex-wrap: wrap; gap: 6px; padding: 10px 14px; }

  /* ── KEY INSIGHTS ── */
  .insight { padding: 12px 14px; gap: 12px; }
  .insight-icon { width: 28px; height: 28px; border-radius: 7px; }
  .insight-icon svg { width: 14px; height: 14px; }
  .insight-title { font-size: 12.5px; }
  .insight-desc  { font-size: 11px; }

  /* ── MAIN MODAL — centered dialog ── */
  .modal { padding: 20px 16px; }
  .modal.open { align-items: center; justify-content: center; }
  .modal-box {
    border-radius: 16px;
    max-height: calc(100vh - 40px);
    width: 100%;
    max-width: 100%;
    animation: mobileSlideUp .3s var(--ease);
  }
  .modal-hdr   { padding: 20px 20px 16px; gap: 12px; }
  .modal-title { font-size: 22px; }
  .modal-sub   { font-size: 12px; margin-top: 8px; }
  .modal-body  { padding: 16px 20px 28px; max-height: calc(100vh - 200px); }
  .modal-close { font-size: 9px; padding: 6px 10px; }
  .kv-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── ABOUT & DONATE — centered dialog ── */
  .about-modal.open { align-items: center; justify-content: center; }
  .about-box, .donate-box {
    border-radius: 16px;
    max-height: 88vh;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    animation: mobileSlideUp .3s var(--ease);
  }
  .about-links     { grid-template-columns: 1fr; gap: 8px; }
  .about-box       { padding: 24px 20px 28px; }
  .about-name      { font-size: 16px; }
  .about-avatar-lg { width: 54px; height: 54px; }
  .donate-qr-wrap  { padding: 12px; min-height: 190px; }
  .donate-qr-img   { width: 160px; height: 160px; }
  .donate-tabs     { gap: 5px; }
  .donate-box      { padding: 24px 20px 28px; }

  /* ── ROADMAP ── */
  .rm-timeline::before { left: 8px; }
  .rm-timeline { padding-left: 26px; }
  .rm-node { left: -22px; top: 16px; width: 10px; height: 10px; }
  .rm-item::before { left: -12px; top: 20px; width: 12px; }
  .rm-card { padding: 14px 16px; }
  .rm-card-title { font-size: 13.5px; }
  .rm-card-desc  { font-size: 11.5px; }
  .rm-icon { width: 30px; height: 30px; }
  .rm-legend { gap: 6px; }

  /* ── CHAIN (dalam modal) ── */
  .chain-step { grid-template-columns: 36px 1fr; gap: 14px; }
  .chain-num  { width: 34px; height: 34px; font-size: 12px; }
  .chain-title { font-size: 14px; }
  .chain-detail { font-size: 12px; }

  /* ── THEME SWITCH — hanya tersembunyi di luar sidebar (topbar, dll) ── */
  /* theme-switch di dalam sidebar tetap visible via .sidebar .theme-switch rule di atas */
}

@keyframes mobileSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Small phone (≤480px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .content { padding: 18px 12px 96px; }
  .topbar  { padding: 0 12px; gap: 8px; }

  .ph-title { font-size: 22px; }
  .stats { gap: 6px; }
  .stat  { padding: 10px 8px 8px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 6.5px; }
  .stat-icon { width: 20px; height: 20px; }

  /* Hanya tampilkan ikon brand di HP sangat kecil */
  .mob-brand-name { display: none; }

  .modal-box, .about-box, .donate-box { max-height: 94vh; }
  .modal-title { font-size: 20px; }
  .kv-grid { grid-template-columns: 1fr; }

  .rm-card { padding: 12px 14px; }
  .rm-card-title { font-size: 13px; }
}

/* ── ABOUT ME ───────────────────────────────────────────────── */
.about-btn {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 24px;
  cursor: pointer;
  color: var(--t-1);
  font-family: var(--sans);
  font-size: 13px;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.about-btn:hover {
  background: var(--glass-hover);
  border-color: var(--neon-violet);
  box-shadow: 0 0 12px rgba(124,92,255,0.25);
}
.about-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.about-btn-name {
  font-weight: 600;
  color: var(--t-0);
  white-space: nowrap;
}
.about-btn > svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--t-3);
}

/* Modal overlay */
.about-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,6,14,0.72);
  backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.about-modal.open { display: flex; }

/* Modal box */
.about-box {
  position: relative;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: var(--glass-strong);
  border: 1px solid var(--glass-brd-2);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--glow-violet), 0 24px 64px rgba(0,0,0,0.6);
  animation: aboutIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes aboutIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
.about-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.about-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--glow-violet);
  overflow: hidden;
}
.about-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.about-header-info { flex: 1; }
.about-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--t-0);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.about-quote {
  font-size: 12.5px;
  color: var(--t-2);
  font-style: italic;
  line-height: 1.5;
}

/* Divider */
.about-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-brd-2), transparent);
  margin: 20px 0;
}

/* Social links */
.about-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.about-link:hover {
  background: var(--glass-hover);
  transform: translateX(4px);
}
.about-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.about-link-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.about-link-arr {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.about-link-icon.discord   { background: rgba(88,101,242,0.18);  border: 1px solid rgba(88,101,242,0.35); }
.about-link-icon.telegram  { background: rgba(0,136,204,0.18);   border: 1px solid rgba(0,136,204,0.35); }
.about-link-icon.instagram { background: rgba(225,48,108,0.18);  border: 1px solid rgba(225,48,108,0.35); }
.about-link-icon.linkedin  { background: rgba(0,119,181,0.18);   border: 1px solid rgba(0,119,181,0.35); }
.about-link-icon.email     { background: rgba(57,255,139,0.12);  border: 1px solid rgba(57,255,139,0.3); color: var(--neon-lime); }
.about-link-icon.htb       { background: rgba(159,239,0,0.12);   border: 1px solid rgba(159,239,0,0.3);  color: #9fef00; }
.about-link-icon.youtube   { background: rgba(255,0,0,0.12);    border: 1px solid rgba(255,0,0,0.35);   color: #ff4444; }
.about-link:hover .about-link-icon.discord   { background: rgba(88,101,242,0.32);  border-color: #5865f2; }
.about-link:hover .about-link-icon.telegram  { background: rgba(0,136,204,0.32);   border-color: #0088cc; }
.about-link:hover .about-link-icon.instagram { background: rgba(225,48,108,0.32);  border-color: #e1306c; }
.about-link:hover .about-link-icon.linkedin  { background: rgba(0,119,181,0.32);   border-color: #0077b5; }
.about-link:hover .about-link-icon.email     { background: rgba(57,255,139,0.22);  border-color: var(--neon-lime); }
.about-link:hover .about-link-icon.htb       { background: rgba(159,239,0,0.22);   border-color: #9fef00; }
.about-link:hover .about-link-icon.youtube   { background: rgba(255,0,0,0.25);     border-color: #ff0000; }
.about-link-info { flex: 1; }
.about-link-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--t-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.about-link-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t-0);
}
.about-link-arr {
  color: var(--t-4);
  transition: color 0.18s;
}
.about-link:hover .about-link-arr { color: var(--t-2); }

/* Close button */
.about-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--glass-brd-2);
  border-radius: 50%;
  color: var(--t-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  z-index: 10;
}
.about-close:hover {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: #fff;
  transform: rotate(90deg);
}

/* ── ROADMAP BUTTON (topbar) ───────────────────────────────── */
.roadmap-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(5,217,232,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(5,217,232,0.45);
  border-radius: 24px;
  cursor: pointer;
  color: var(--neon-cyan);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.roadmap-btn:hover {
  background: linear-gradient(135deg, rgba(5,217,232,0.28), rgba(0,212,255,0.2));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(5,217,232,0.35);
}

/* ── DONATE BUTTON (topbar) ────────────────────────────────── */
.donate-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(255,187,51,0.15), rgba(255,120,20,0.15));
  border: 1px solid rgba(255,187,51,0.35);
  border-radius: 24px;
  cursor: pointer;
  color: var(--neon-amber);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.donate-btn:hover {
  background: linear-gradient(135deg, rgba(255,187,51,0.28), rgba(255,120,20,0.22));
  border-color: var(--neon-amber);
  box-shadow: 0 0 14px rgba(255,187,51,0.3);
}

/* ── DONATE MODAL ──────────────────────────────────────────── */
.donate-box {
  width: 420px;
}
.donate-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.donate-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,187,51,0.2), rgba(255,120,20,0.15));
  border: 1px solid rgba(255,187,51,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-amber);
  flex-shrink: 0;
}
.donate-icon svg { width: 22px; height: 22px; }
.donate-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--t-0);
  margin-bottom: 4px;
}
.donate-sub {
  font-size: 12px;
  color: var(--t-2);
  line-height: 1.5;
}

/* Tabs */
.donate-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.donate-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 8px;
  cursor: pointer;
  color: var(--t-2);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.18s;
}
.donate-tab:hover { color: var(--t-0); border-color: var(--glass-brd-2); }
.donate-tab.active {
  background: rgba(255,187,51,0.12);
  border-color: rgba(255,187,51,0.4);
  color: var(--neon-amber);
}

/* QR panel */
.donate-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  min-height: 220px;
}
.donate-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}
.qr-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--t-3);
  font-size: 12px;
}

/* Leaderboard panel */
.donate-lb-wrap {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  height: 280px;
}
.donate-lb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--glass-brd);
  margin-bottom: 12px;
}
.donate-lb-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--t-2);
}
.donate-lb-sub {
  font-size: 11.5px;
  color: var(--t-3);
  text-align: center;
}
.donate-lb-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg-1);
}

/* Link button */
.donate-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255,187,51,0.12), rgba(255,120,20,0.08));
  border: 1px solid rgba(255,187,51,0.3);
  border-radius: 8px;
  color: var(--neon-amber);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.donate-link-btn:hover {
  background: linear-gradient(135deg, rgba(255,187,51,0.22), rgba(255,120,20,0.15));
  border-color: var(--neon-amber);
}

/* ── ROADMAP MODAL BOX ──────────────────────────────────────── */
.roadmap-box {
  width: 600px;
  max-height: 86vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-brd-2) transparent;
}
.roadmap-box::-webkit-scrollbar { width: 4px; }
.roadmap-box::-webkit-scrollbar-track { background: transparent; }
.roadmap-box::-webkit-scrollbar-thumb { background: var(--glass-brd-2); border-radius: 2px; }

.roadmap-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.roadmap-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(160,100,255,0.2), rgba(80,120,255,0.15));
  border: 1px solid rgba(160,100,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-violet);
  flex-shrink: 0;
}
.roadmap-modal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 4px;
}
.roadmap-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--t-0);
  letter-spacing: 0.01em;
}
.roadmap-modal-lede {
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── ROADMAP ────────────────────────────────────────────────── */
.rm-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.rm-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 5px;
}
.status-done    { background: rgba(57,255,139,0.12);  border: 1px solid rgba(57,255,139,0.35);  color: var(--neon-lime); }
.status-wip     { background: rgba(0,212,255,0.12);   border: 1px solid rgba(0,212,255,0.35);   color: var(--neon-blue); }
.status-planned { background: rgba(124,92,255,0.12);  border: 1px solid rgba(124,92,255,0.35);  color: var(--neon-violet-2); }
.status-idea    { background: rgba(255,187,51,0.10);  border: 1px solid rgba(255,187,51,0.3);   color: var(--neon-amber); }

/* Timeline layout */
.rm-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 32px;
}
/* Vertical line */
.rm-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--neon-lime) 0%,
    var(--neon-blue) 20%,
    var(--neon-violet) 45%,
    var(--neon-violet) 65%,
    var(--neon-amber) 80%,
    var(--neon-amber) 100%
  );
  opacity: 0.35;
}

.rm-item {
  position: relative;
  padding-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.rm-item:last-child { padding-bottom: 0; }

/* Dot node on timeline */
.rm-node {
  position: absolute;
  left: -26px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  border: 2px solid var(--bg-0);
}
.rm-node.status-done    { background: var(--neon-lime);      box-shadow: 0 0 8px rgba(57,255,139,0.6); }
.rm-node.status-wip     { background: var(--neon-blue);      box-shadow: 0 0 8px rgba(0,212,255,0.6); animation: nodePulse 2s ease-in-out infinite; }
.rm-node.status-planned { background: var(--neon-violet-2);  box-shadow: 0 0 6px rgba(124,92,255,0.4); }
.rm-node.status-idea    { background: var(--neon-amber);     box-shadow: 0 0 6px rgba(255,187,51,0.3); opacity: 0.7; }

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0,212,255,0.5); }
  50%       { box-shadow: 0 0 14px rgba(0,212,255,0.9); }
}

/* Connector line from node to card */
.rm-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 23px;
  width: 14px;
  height: 1px;
  background: var(--glass-brd-2);
}

.rm-card {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  padding: 18px 20px;
  border-left: 3px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rm-card:hover {
  transform: translateX(4px);
  box-shadow: var(--glow-soft);
}
.rm-card.status-done    { border-left-color: var(--neon-lime); }
.rm-card.status-wip     { border-left-color: var(--neon-blue); }
.rm-card.status-planned { border-left-color: var(--neon-violet); }
.rm-card.status-idea    { border-left-color: rgba(255,187,51,0.5); }

.rm-card-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rm-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--t-2);
}
.rm-icon svg { width: 16px; height: 16px; }
.rm-card.status-done    .rm-icon { color: var(--neon-lime);      background: rgba(57,255,139,0.08);  border-color: rgba(57,255,139,0.25); }
.rm-card.status-wip     .rm-icon { color: var(--neon-blue);      background: rgba(0,212,255,0.08);   border-color: rgba(0,212,255,0.25); }
.rm-card.status-planned .rm-icon { color: var(--neon-violet-2);  background: rgba(124,92,255,0.08);  border-color: rgba(124,92,255,0.25); }
.rm-card.status-idea    .rm-icon { color: var(--neon-amber);     background: rgba(255,187,51,0.08);  border-color: rgba(255,187,51,0.25); }

.rm-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--t-0);
  margin-bottom: 4px;
  line-height: 1.3;
  flex: 1;
}
.rm-card-desc {
  font-size: 12.5px;
  color: var(--t-2);
  line-height: 1.6;
  margin: 0;
}

/* ── RECENT OPS SCROLL ──────────────────────────────────────── */
.ov-recent-scroll {
  max-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}
.ov-recent-scroll::-webkit-scrollbar { width: 4px; }
.ov-recent-scroll::-webkit-scrollbar-track { background: transparent; }
.ov-recent-scroll::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 2px; }

/* ── CLASSIFIED BAR (slim alert strip) ──────────────────────── */
/* ── ACTIVE TARGETS SECTION ── */
.classified-bar {
  margin-bottom: 28px;
}
.cbar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.classified-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 6px rgba(255,42,109,0.8);
  animation: classifiedPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes classifiedPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255,42,109,0.8); }
  50%       { opacity: 0.4; box-shadow: 0 0 2px rgba(255,42,109,0.3); }
}
.cbar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--neon-pink);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.cbar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(255,42,109,0.15);
  border: 1px solid rgba(255,42,109,0.35);
  color: var(--neon-pink);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.cbar-sub {
  font-size: 11px;
  color: var(--t-4);
}
/* Horizontal scroll container */
.cbar-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.cbar-scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--bg-1));
  pointer-events: none;
}
.cbar-machines {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,42,109,0.3) transparent;
}
.cbar-machines::-webkit-scrollbar { height: 3px; }
.cbar-machines::-webkit-scrollbar-track { background: transparent; }
.cbar-machines::-webkit-scrollbar-thumb { background: rgba(255,42,109,0.35); border-radius: 2px; }
/* Individual chip — compact pill */
.cbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-2);
  border: 1px solid rgba(255,42,109,0.25);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.cbar-chip:hover {
  background: rgba(255,42,109,0.08);
  border-color: rgba(255,42,109,0.5);
}
.cbar-chip-icon {
  color: var(--neon-pink);
  flex-shrink: 0;
  opacity: 0.8;
}
.cbar-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--t-0);
}
.cbar-chip-meta {
  font-size: 10px;
  color: var(--t-4);
  font-family: var(--font-mono);
}
.cbar-chip-diff {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cbar-chip-diff.easy   { background: rgba(0,255,136,0.12); color: var(--neon-green); border: 1px solid rgba(0,255,136,0.25); }
.cbar-chip-diff.medium { background: rgba(255,165,0,0.12);  color: #ffa500;           border: 1px solid rgba(255,165,0,0.3); }
.cbar-chip-diff.hard   { background: rgba(255,42,109,0.12); color: var(--neon-pink);  border: 1px solid rgba(255,42,109,0.3); }
.cbar-chip-diff.insane { background: rgba(160,0,255,0.12);  color: #b060ff;           border: 1px solid rgba(160,0,255,0.3); }
.cbar-chip-diff.veryeasy { background: rgba(0,200,255,0.12); color: var(--neon-blue); border: 1px solid rgba(0,200,255,0.25); }

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERRIDES LANJUTAN — harus diletakkan setelah semua
   base styles agar menang dalam cascade (specificity sama,
   posisi lebih akhir = prioritas lebih tinggi).
   Memperbaiki: roadmap-btn, donate-btn, about-btn, modals.
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Roadmap — lingkaran icon, sama seperti donate & mob-search-btn ── */
  .roadmap-btn {
    display: flex;
    width: 36px; height: 36px;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .roadmap-btn span { display: none; }

  /* ── Donate — lingkaran icon ── */
  .donate-btn {
    width: 36px; height: 36px;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .donate-btn span { display: none; }

  /* ── About — tombol lingkaran sempurna ── */
  .about-btn {
    padding: 3px;
    border-radius: 50%;
    gap: 0;
  }
  .about-btn-name             { display: none; }
  .about-btn > svg:last-child { display: none; }

  /* ── Roadmap modal box — full width on mobile ── */
  .roadmap-box {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 40px);
  }

  /* ── Search mode — sembunyikan SEMUA tombol di topbar-right ── */
  .topbar.mob-search-on .roadmap-btn { display: none; }
  .topbar.mob-search-on .donate-btn  { display: none; }
  .topbar.mob-search-on .about-btn   { display: none; }
}

/* ════════════════════════════════════════════════════════════
   SNIPPETS VIEW — category cards
════════════════════════════════════════════════════════════ */
.sn-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sn-cat-card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: var(--fast);
  border-left: 3px solid var(--neon-cyan);
}
.sn-cat-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}

.sn-cat-icon {
  width: 38px; height: 38px;
  background: rgba(5,217,232,0.1);
  border: 1px solid rgba(5,217,232,0.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-cyan);
  flex-shrink: 0;
}
.sn-cat-icon svg { width: 18px; height: 18px; }

.sn-cat-body { flex: 1; }
.sn-cat-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.sn-cat-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sn-cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--glass-brd);
}
.sn-cat-cnt {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--neon-cyan);
  letter-spacing: .05em;
}
.sn-cat-arr { color: var(--text-muted); transition: var(--fast); }
.sn-cat-card:hover .sn-cat-arr { color: var(--neon-cyan); transform: translateX(3px); }

/* ── Modal content: snippet items ── */
.sn-modal-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-brd);
}
.sn-modal-item:last-child { border-bottom: none; }
.sn-modal-item-highlight {
  background: rgba(5,217,232,0.08);
  border-radius: 8px;
  outline: 1px solid rgba(5,217,232,0.4);
  transition: background .4s, outline .4s;
}

.sn-modal-item-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: .02em;
}

/* code block */
.sn-code-wrap { position: relative; }
.sn-code {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.65;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-brd);
  border-radius: 6px;
  padding: 10px 42px 10px 14px;
  color: var(--neon-lime);
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}
[data-theme="light"] .sn-code { background: rgba(0,0,0,0.06); }

/* copy button */
.sn-copy {
  position: absolute;
  top: 7px; right: 7px;
  background: var(--glass-brd);
  border: 1px solid var(--glass-brd);
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 5px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--fast);
  line-height: 1;
}
.sn-copy:hover  { background: var(--glass-brd-2); color: var(--text-primary); }
.sn-copy.copied { background: rgba(57,255,139,0.2); color: var(--neon-lime); border-color: var(--neon-lime); }

/* alt block */
.sn-alt-block { display: flex; flex-direction: column; gap: 5px; }
.sn-alt-label {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--neon-amber);
}

/* desc */
.sn-card-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.55; }

/* when */
.sn-when {
  font-size: .73rem; color: var(--neon-cyan);
  display: flex; align-items: flex-start; gap: 7px; line-height: 1.4;
}
.sn-when-label {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(5,217,232,0.12); color: var(--neon-cyan);
  border: 1px solid rgba(5,217,232,0.25); border-radius: 4px;
  padding: 1px 6px; flex-shrink: 0; margin-top: 1px;
}

/* note */
.sn-note {
  font-size: .73rem; color: var(--neon-amber);
  display: flex; align-items: flex-start; gap: 7px; line-height: 1.4;
  background: rgba(255,187,51,0.07);
  border: 1px solid rgba(255,187,51,0.2);
  border-radius: 6px; padding: 7px 10px;
}
.sn-note svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 640px) {
  .sn-cat-grid { grid-template-columns: 1fr; }
}
