/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:          #080b12;
  --bg-alt:      #0c1020;
  --bg-card:     #0f1623;
  --bg-card-h:   #131d2e;

  --cyan:        #00d4ff;
  --cyan-10:     rgba(0, 212, 255, 0.10);
  --cyan-20:     rgba(0, 212, 255, 0.20);
  --green:       #00ff88;
  --green-10:    rgba(0, 255, 136, 0.10);
  --green-20:    rgba(0, 255, 136, 0.20);
  --purple:      #a855f7;
  --purple-10:   rgba(168, 85, 247, 0.10);
  --purple-20:   rgba(168, 85, 247, 0.20);
  --orange:      #fb923c;
  --orange-10:   rgba(251, 146, 60, 0.10);
  --orange-20:   rgba(251, 146, 60, 0.20);
  --blue:        #3b82f6;
  --blue-10:     rgba(59, 130, 246, 0.10);
  --yellow:      #fbbf24;

  --border:      rgba(0, 212, 255, 0.07);
  --border-h:    rgba(0, 212, 255, 0.22);

  --text:        #e2e8f0;
  --text-dim:    #8899aa;
  --text-muted:  #445566;

  --mono:        'JetBrains Mono', 'Fira Code', monospace;
  --sans:        'Inter', system-ui, sans-serif;

  --r:           8px;
  --r-lg:        14px;
  --ease:        0.22s ease;
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.5);
  --glow:        0 0 24px rgba(0, 212, 255, 0.12);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img, svg { display: block; max-width: 100%; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--ease), border-bottom var(--ease);
}
.nav.scrolled {
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav__logo-bracket { color: var(--cyan); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--ease);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--cyan); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO STATUS PILL (shared)
   ============================================================ */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-10);
  border: 1px solid var(--green-20);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero__status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================================
   TERM HERO — main page layout
   ============================================================ */
.term-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  gap: 2.5rem;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.term-name {
  position: relative;
  z-index: 1;
  text-align: center;
}
.term-name h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.name-accent {
  color: var(--cyan);
  position: relative;
}
.name-accent::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}
.term-subtitle {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ============================================================
   INTERACTIVE TERMINAL
   ============================================================ */
.term-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
}

.terminal-i {
  background: #060a13;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), var(--glow), 0 0 80px rgba(0, 212, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  cursor: text;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.terminal-i:focus-within {
  border-color: var(--border-h);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 212, 255, 0.12), 0 0 60px rgba(0, 212, 255, 0.12);
}

.terminal-i__bar {
  background: #0b1120;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.terminal__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal__dot--red    { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green  { background: #28c840; }
.ti-title {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}
.ti-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.terminal-i__output {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.5rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.85;
  scroll-behavior: smooth;
}
.terminal-i__output::-webkit-scrollbar { width: 4px; }
.terminal-i__output::-webkit-scrollbar-track { background: transparent; }
.terminal-i__output::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 2px; }

/* output lines */
.tl {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 1.2em;
}
.tl-prompt { margin-top: 0.6rem; }

/* prompt display line */
.ti-user   { color: var(--green); font-weight: 600; }
.ti-at     { color: var(--text-muted); }
.ti-host   { color: var(--cyan); font-weight: 600; }
.ti-sep    { color: var(--text-muted); }
.ti-path   { color: var(--blue); }
.ti-dollar { color: var(--text-dim); }
.ti-cmd    { color: var(--text); }

/* output colors */
.ti-cyan    { color: var(--cyan); }
.ti-green   { color: var(--green); }
.ti-yellow  { color: var(--yellow); }
.ti-dim     { color: var(--text-dim); }
.ti-muted   { color: var(--text-muted); }
.ti-val     { color: var(--text); }
.ti-key     { color: var(--cyan); }
.ti-error   { color: #f87171; }
.ti-section { color: var(--cyan); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.5px; }
.ti-bold    { font-weight: 700; }

.terminal-i__input-row {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.05);
  flex-shrink: 0;
  gap: 0;
}
.ti-prompt-full {
  font-family: var(--mono);
  font-size: 0.8rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.terminal-i__input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  caret-color: var(--cyan);
  min-width: 0;
}
.terminal-i__input-row input::placeholder { color: var(--text-muted); }
.terminal-i__input-row input:disabled { opacity: 0.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.68rem 1.45rem;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all var(--ease);
  border: none;
}
.btn--primary {
  background: var(--cyan);
  color: #040810;
}
.btn--primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   REVEAL ANIMATION (blog)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer__logo { font-family: var(--mono); font-size: 0.98rem; font-weight: 700; }
.footer__copy,
.footer__tech { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 212, 255, 0.08), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(0, 255, 136, 0.05), transparent 28rem),
    var(--bg);
}
.blog-shell { padding-top: 72px; }
.blog-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.blog-back {
  display: inline-flex;
  margin-bottom: 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.blog-back:hover { color: var(--cyan); }
.blog-hero__title {
  max-width: 840px;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0.35rem 0 1rem;
}
.blog-hero__desc {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
}
.blog-hero__meta {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.blog-section { padding-top: 4rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.blog-card {
  min-height: 260px;
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.96), rgba(12, 16, 32, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.blog-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
}
.blog-card__meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
}
.blog-card h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.4px; }
.blog-card h2 a:hover { color: var(--cyan); }
.blog-card p { color: var(--text-dim); font-size: 0.9rem; }
.blog-article {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.9;
}
.blog-article h1,
.blog-article h2,
.blog-article h3 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 2.2rem 0 0.85rem;
}
.blog-article h1 { font-size: 2rem; }
.blog-article h2 { font-size: 1.55rem; }
.blog-article h3 { font-size: 1.2rem; }
.blog-article p  { margin-bottom: 1.15rem; }
.blog-article a  { color: var(--cyan); border-bottom: 1px solid var(--cyan-20); }
.blog-article strong { color: var(--text); }
.blog-article ul,
.blog-article ol { list-style: revert; padding-left: 1.35rem; margin: 1rem 0 1.3rem; }
.blog-article li { margin-bottom: 0.45rem; }
.blog-article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--cyan);
  background: var(--cyan-10);
  color: var(--text);
  border-radius: 0 var(--r) var(--r) 0;
}
.blog-article pre {
  margin: 1.4rem 0;
  padding: 1.1rem;
  overflow: auto;
  background: #070b12;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.blog-article code { font-family: var(--mono); font-size: 0.9em; }
.blog-article hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.blog-article table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.95rem; }
.blog-article th,
.blog-article td { border: 1px solid var(--border); padding: 0.6rem 0.75rem; text-align: left; }
.blog-article thead { background: var(--cyan-10); color: var(--text); }
.blog-article img { max-width: 100%; border-radius: var(--r); border: 1px solid var(--border); margin: 1rem 0; }
.blog-article .task-list { list-style: none; padding-left: 0; }
.blog-article .task-list-item { display: flex; gap: 0.6rem; align-items: flex-start; }
.blog-article .task-list-item input { margin-top: 0.35rem; accent-color: var(--cyan); }
.blog-article p code,
.blog-article li code {
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.16);
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
}
.blog-empty,
.admin-login {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.blog-empty h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.blog-empty p  { color: var(--text-dim); margin-bottom: 1.2rem; }

/* ============================================================
   BLOG ADMIN
   ============================================================ */
.admin-shell .blog-hero { padding-bottom: 2rem; }
.admin-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.admin-posts,
.admin-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
}
.admin-posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 92px;
}
.admin-post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r);
  background: rgba(255,255,255,0.025);
}
.admin-post-row strong { display: block; font-size: 0.86rem; line-height: 1.3; }
.admin-post-row span  { display: block; font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; }
.admin-delete {
  width: 28px; height: 28px;
  border: 1px solid rgba(239,68,68,.28);
  border-radius: var(--r);
  background: rgba(239,68,68,.08);
  color: #ef4444;
  cursor: pointer;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1rem;
  margin-bottom: 1rem;
}
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.editor-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.editor-buttons button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}
.editor-buttons button:hover { border-color: var(--border-h); color: var(--cyan); }
.editor-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); }
.editor-tabs { display: none; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.editor-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.editor-tab.is-active { border-color: var(--cyan); color: var(--cyan); }
.editor-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.editor-panel { min-width: 0; }
.admin-editor textarea { min-height: 560px; font-family: var(--mono); line-height: 1.65; }
.admin-preview { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.admin-preview > label { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.blog-article--preview {
  max-width: none;
  min-height: 560px;
  max-height: 720px;
  overflow: auto;
  background: #080d17;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  font-size: 0.92rem;
}

/* form elements shared (blog admin / contact form) */
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.72rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-10);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { appearance: none; }
.form-success {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 8px; margin-bottom: 1.2rem;
  background: var(--green-10); border: 1px solid var(--green-20); color: var(--green);
  font-size: 0.9rem;
}
.form-error {
  padding: 14px 16px; border-radius: 8px; margin-bottom: 1.2rem;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: #ef4444;
  font-size: 0.9rem;
}

/* ============================================================
   PORTFOLIO / SKILLS SECTION
   ============================================================ */
.portfolio {
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(0,212,255,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(168,85,247,0.04) 0%, transparent 55%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}
.portfolio-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 0.65rem;
}
.portfolio-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 0.75rem;
}
.portfolio-desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* last row: 2 cards centred */
.p-grid .p-card:nth-child(4) { grid-column: 1; }
.p-grid .p-card:nth-child(5) { grid-column: 2; }

.p-card {
  --cc:  var(--cyan);
  --ccr: 0,212,255;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.p-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cc);
  border-radius: 3px 0 0 3px;
}
.p-card:hover {
  border-color: rgba(var(--ccr), 0.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow), 0 0 40px rgba(var(--ccr), 0.08);
}
.p-card--orange { --cc: var(--orange); --ccr: 251,146,60; }
.p-card--purple { --cc: var(--purple); --ccr: 168,85,247; }
.p-card--cyan   { --cc: var(--cyan);   --ccr: 0,212,255;  }
.p-card--green  { --cc: var(--green);  --ccr: 0,255,136;  }
.p-card--blue   { --cc: var(--blue);   --ccr: 59,130,246; }

.p-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.p-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--r);
  background: rgba(var(--ccr), 0.10);
  border: 1px solid rgba(var(--ccr), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cc);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.p-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.p-card__sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.p-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.p-card__features li {
  font-size: 0.86rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.p-card__features li::before {
  content: '▸';
  color: var(--cc);
  flex-shrink: 0;
  margin-top: 0.08rem;
}
.p-card__mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cc);
}

.p-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(var(--ccr), 0.12);
}
.p-card__tags span {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(var(--ccr), 0.08);
  border: 1px solid rgba(var(--ccr), 0.2);
  color: var(--cc);
  letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid .p-card:nth-child(4),
  .p-grid .p-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 860px) {
  .blog-grid,
  .admin-grid,
  .editor-split,
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-posts   { position: static; }
  .editor-tabs   { display: flex; }
  .editor-split.show-preview .editor-panel--editor  { display: none; }
  .editor-split.show-preview .editor-panel--preview { display: flex; }
  .editor-panel--preview { display: none; }
  .editor-split  { margin-top: 0.5rem; }

  .term-hero     { padding-top: 5rem; gap: 2rem; }
  .terminal-i    { height: 460px; }
  .ti-hint       { display: none; }
}

@media (max-width: 600px) {
  .p-grid     { grid-template-columns: 1fr; }
  .portfolio  { padding: 4rem 0; }

  .term-hero  { padding: 5rem 1rem 2.5rem; }
  .terminal-i { height: 400px; }
  .terminal-i__output { padding: 0.9rem 1rem 0.4rem; font-size: 0.75rem; }
  .terminal-i__input-row { padding: 0.55rem 1rem; }
  .terminal-i__input-row input { font-size: 0.75rem; }
  .ti-title   { display: none; }

  .blog-hero  { padding: 3.5rem 0 2.2rem; }
  .blog-hero__title { letter-spacing: -1px; }
  .blog-article { font-size: 0.98rem; }
  .blog-card  { min-height: auto; }
  .blog-article table { display: block; overflow-x: auto; }

  .footer__inner { flex-direction: column; text-align: center; }
}
