/* ==========================================================================
   phpshells.net — Pure Custom CSS (Zero Tailwind / Zero Framework)
   Dark terminal theme — exact port of the original React/Tailwind design
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   CSS Custom Properties — Dark Terminal Palette
   -------------------------------------------------------------------------- */
:root {
  --background:          0 0% 3.5%;
  --foreground:          0 0% 87%;
  --card:                0 0% 6.5%;
  --card-foreground:     0 0% 87%;
  --muted:               0 0% 9%;
  --muted-foreground:    0 0% 45%;
  --accent:              0 0% 11%;
  --accent-foreground:   0 0% 87%;
  --primary:             130 100% 40%;
  --primary-foreground:  0 0% 0%;
  --secondary:           0 0% 9%;
  --secondary-foreground:0 0% 70%;
  --border:              0 0% 11%;
  --input:               0 0% 13%;
  --ring:                130 100% 40%;
  --radius:              0.375rem;
  --destructive:         0 70% 50%;

  /* Resolved colour values (used in box-shadows, rgba etc.) */
  --clr-bg:           hsl(0, 0%, 3.5%);
  --clr-card:         hsl(0, 0%, 6.5%);
  --clr-fg:           hsl(0, 0%, 87%);
  --clr-muted:        hsl(0, 0%, 45%);
  --clr-border:       hsl(0, 0%, 11%);
  --clr-accent:       hsl(0, 0%, 11%);
  --clr-green:        hsl(130, 100%, 40%);
  --clr-green-dim:    hsl(130, 50%, 32%);
  --clr-primary-10:   hsla(130, 100%, 40%, 0.10);
  --clr-primary-20:   hsla(130, 100%, 40%, 0.20);
  --clr-primary-30:   hsla(130, 100%, 40%, 0.30);
  --clr-primary-5:    hsla(130, 100%, 40%, 0.05);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  text-rendering: optimizeLegibility;
  margin: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; margin: 0; }
p  { text-wrap: pretty; margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration-skip-ink: auto; text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; font: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection {
  background: rgba(0, 200, 50, 0.12);
  color: hsl(130, 100%, 50%);
}

/* Scrollbar */
::-webkit-scrollbar        { width: 4px; height: 4px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: hsl(0, 0%, 16%); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(0, 0%, 22%); }

/* Custom form controls */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
textarea { resize: none; }
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: hsla(130, 100%, 40%, 0.3) !important;
  box-shadow: 0 0 0 1px hsla(130, 100%, 40%, 0.08);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Custom Utility Classes (used throughout Blade templates)
   -------------------------------------------------------------------------- */

/* Monospace font */
.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-feature-settings: "liga" 0;
}

/* Accent colour */
.text-green     { color: var(--clr-green); }
.text-green-dim { color: var(--clr-green-dim); }

/* Blinking terminal cursor */
.cursor-blink::after {
  content: "█";
  font-size: 0.75em;
  animation: blink 1s step-end infinite;
  color: var(--clr-green);
  margin-left: 1px;
}

/* --------------------------------------------------------------------------
   Page Scaffold
   -------------------------------------------------------------------------- */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; background-color: hsl(var(--background)); }
.page-main  { flex: 1; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsla(0, 0%, 6.5%, 0.8);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-logo__icon  { width: 1rem; height: 1rem; color: var(--clr-green); }
.site-logo__text  { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); }
.site-logo__tld   { color: hsla(0,0%,45%,0.4); }
.site-logo__brand { color: var(--clr-green); }

.site-nav { display: none; align-items: center; gap: 1.5rem; }
.site-nav__link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav__link:hover { color: hsl(var(--foreground)); }

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  width: 2rem;
  height: 2rem;
}
.mobile-menu-btn svg { width: 1rem; height: 1rem; }

.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  flex-direction: column;
  gap: 0.5rem;
  background-color: hsl(var(--card));
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}
.mobile-nav__link:hover { color: hsl(var(--foreground)); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  margin-top: 1rem;
}
.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-footer__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer__heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsla(0,0%,45%,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.site-footer__desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}
.site-footer__nav { display: flex; flex-direction: column; gap: 0.375rem; }
.site-footer__nav a {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer__nav a:hover { color: hsl(var(--foreground)); }
.site-footer__bottom { border-top: 1px solid hsl(var(--border)); padding-top: 1rem; }
.site-footer__legal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  color: hsla(0,0%,45%,0.4);
  line-height: 1.625;
  max-width: 48rem;
}
.site-footer__copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  color: hsla(0,0%,45%,0.25);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Section Wrapper
   -------------------------------------------------------------------------- */
.section { padding: 1.5rem 0; }
.section--bordered { border-top: 1px solid hsl(var(--border)); }
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   Section Heading (terminal prompt style)
   -------------------------------------------------------------------------- */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.section-heading__prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--clr-green);
}
.section-heading__cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.section-heading__cmd strong { color: hsl(var(--foreground)); font-weight: 400; }

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.breadcrumb__prompt { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--clr-green); }
.breadcrumb__path   { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.breadcrumb__path a { transition: color 0.15s ease; }
.breadcrumb__path a:hover { color: hsl(var(--foreground)); }
.breadcrumb__path .current { color: hsl(var(--foreground)); }
.breadcrumb__sep { margin: 0 0.125rem; }

/* --------------------------------------------------------------------------
   Cards / Boxes
   -------------------------------------------------------------------------- */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.card--padded    { padding: 1.25rem; }
.card--padded-lg { padding: 1.5rem; }

/* --------------------------------------------------------------------------
   Shell List (table-style rows)
   -------------------------------------------------------------------------- */
.shell-list {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  overflow: hidden;
}
.shell-list__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 0.15s ease;
}
.shell-list__row:last-child { border-bottom: none; }
.shell-list__row:hover { background-color: hsla(0,0%,11%,0.5); }

.shell-list__info { flex: 1; min-width: 0; }
.shell-list__name-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.shell-list__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell-list__name:hover { color: var(--clr-green); }
.shell-list__desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
.shell-list__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}
.shell-list__meta-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}
.shell-list__meta-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsla(0,0%,45%,0.4);
}

.shell-list__actions { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }
.shell-list__action-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}
.shell-list__action-btn svg { width: 0.875rem; height: 0.875rem; }
.shell-list__action-btn--view:hover  { color: var(--clr-green); background-color: hsla(130,100%,40%,0.05); }
.shell-list__action-btn--dl:hover    { color: hsl(var(--foreground)); background-color: hsl(var(--accent)); }

/* Empty state */
.shell-list__empty {
  padding: 3rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   Category Badge
   -------------------------------------------------------------------------- */
.cat-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid;
  white-space: nowrap;
  display: inline-block;
}
.cat-php      { color: #4ade80; background-color: rgba(74,222,128,0.10); border-color: rgba(74,222,128,0.20); }
.cat-backdoor { color: #34d399; background-color: rgba(52,211,153,0.10); border-color: rgba(52,211,153,0.20); }
.cat-bypass   { color: #22d3ee; background-color: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.20); }
.cat-mini     { color: #facc15; background-color: rgba(250,204,21,0.10); border-color: rgba(250,204,21,0.20); }
.cat-web      { color: #a78bfa; background-color: rgba(167,139,250,0.10);border-color: rgba(167,139,250,0.20);}
.cat-file     { color: #60a5fa; background-color: rgba(96,165,250,0.10); border-color: rgba(96,165,250,0.20); }
.cat-rootkit  { color: #f87171; background-color: rgba(248,113,113,0.10);border-color: rgba(248,113,113,0.20);}
.cat-default  { color: #9ca3af; background-color: rgba(156,163,175,0.10);border-color: rgba(156,163,175,0.20);}

/* Category badge as link */
a.cat-badge:hover { filter: brightness(1.25); transition: filter 0.15s ease; }

/* --------------------------------------------------------------------------
   Search & Filter Bar
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.filter-bar__search { position: relative; flex: 1; }
.filter-bar__search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.filter-bar__input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  transition: border-color 0.15s ease;
}
.filter-bar__input::placeholder { color: hsl(var(--muted-foreground)); }

.filter-bar__cats { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.filter-bar__cat-btn {
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.filter-bar__cat-btn:hover { color: hsl(var(--foreground)); border-color: hsla(0,0%,45%,0.3); }
.filter-bar__cat-btn.active { background-color: var(--clr-primary-10); color: var(--clr-green); border-color: var(--clr-primary-30); }

.filter-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
.pagination a,
.pagination span {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.pagination a:hover   { color: hsl(var(--foreground)); }
.pagination span.active,
.pagination .active   { background-color: var(--clr-primary-10); color: var(--clr-green); border-color: var(--clr-primary-30); }
.pagination .disabled { opacity: 0.3; pointer-events: none; }
.pagination svg       { width: 0.875rem; height: 0.875rem; }

/* --------------------------------------------------------------------------
   Categories Grid
   -------------------------------------------------------------------------- */
.cat-grid { display: grid; gap: 0.5rem; }
.cat-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease;
  display: block;
}
.cat-card:hover { border-color: hsla(0,0%,45%,0.2); }
.cat-card__top  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.cat-card__count { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsl(var(--muted-foreground)); }
.cat-card__bottom { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; }
.cat-card__cta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); transition: color 0.15s ease; }
.cat-card:hover .cat-card__cta { color: hsl(var(--foreground)); }
.cat-card__arrow { width: 0.75rem; height: 0.75rem; color: hsl(var(--muted-foreground)); transition: color 0.15s ease; }
.cat-card:hover .cat-card__arrow { color: var(--clr-green); }

/* --------------------------------------------------------------------------
   FAQ Accordion (native <details>/<summary> — zero JS)
   -------------------------------------------------------------------------- */
.faq-list {}
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item:last-child { border-bottom: none; }

details.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  cursor: pointer;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__question {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  padding-right: 1rem;
  transition: color 0.15s ease;
  flex: 1;
}
details.faq-item[open] .faq-item__question,
details.faq-item summary:hover .faq-item__question { color: var(--clr-green); }

.faq-item__icon {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details.faq-item[open] .faq-item__icon { transform: rotate(90deg); }

.faq-item__answer {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  padding-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   SEO Content / Article
   -------------------------------------------------------------------------- */
.seo-article {}
.seo-article h2 { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.75rem; }
.seo-article h3 { font-size: 1rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.seo-article p  { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 0.75rem; }
.seo-article p strong { color: hsl(var(--foreground)); }

.seo-list { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 0.75rem; }
.seo-list__item { display: flex; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.seo-list__bullet { color: var(--clr-green); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; margin-top: 0.125rem; }
.seo-list__item strong { color: hsl(var(--foreground)); }

.feature-grid { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.feature-item { display: flex; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.feature-item__dot { color: var(--clr-green); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; margin-top: 0.125rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--clr-green);
}
.link-more:hover { text-decoration: underline; }
.link-more svg { width: 0.75rem; height: 0.75rem; }

/* --------------------------------------------------------------------------
   Shell Detail Page
   -------------------------------------------------------------------------- */
.shell-detail-grid { display: grid; gap: 1rem; }

.shell-detail__header { margin-bottom: 0.25rem; }
.shell-detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.shell-detail__title { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
.shell-detail__desc  { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

.shell-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.shell-meta-item {
  background-color: hsl(var(--background));
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
}
.shell-meta-item__label-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.125rem;
}
.shell-meta-item__label-row svg { width: 0.625rem; height: 0.625rem; color: hsla(0,0%,45%,0.6); }
.shell-meta-item__label { font-family: 'JetBrains Mono', monospace; font-size: 0.5rem; color: hsla(0,0%,45%,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.shell-meta-item__value { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: hsl(var(--foreground)); }

.shell-detail__actions { display: flex; gap: 0.5rem; }
.shell-detail__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
  text-decoration: none;
  border: 1px solid;
}
.shell-detail__btn svg { width: 0.875rem; height: 0.875rem; }
.shell-detail__btn--primary {
  background-color: var(--clr-primary-10);
  border-color: var(--clr-primary-30);
  color: var(--clr-green);
}
.shell-detail__btn--primary:hover { background-color: var(--clr-primary-20); }
.shell-detail__btn--secondary {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.shell-detail__btn--secondary:hover { color: hsl(var(--foreground)); border-color: hsla(0,0%,45%,0.3); }

/* Preview image block */
.preview-block__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}
.preview-block__bar svg  { width: 0.75rem; height: 0.75rem; color: hsla(0,0%,45%,0.5); }
.preview-block__bar-lbl  { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsla(0,0%,45%,0.6); }
.preview-block__img-wrap { background-color: hsl(var(--background)); padding: 1rem; }
.preview-block__img      { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid hsl(var(--border)); }

/* Features tags */
.features-section h2 { font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.features-section h2 svg { width: 0.875rem; height: 0.875rem; color: hsl(var(--muted-foreground)); }
.features-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.feature-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  padding: 0.25rem 0.625rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
}

/* Code preview block */
.code-preview__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}
.code-preview__dots { display: flex; gap: 0.25rem; }
.code-preview__dot  { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.code-preview__dot--red    { background-color: rgba(239,68,68,0.6); }
.code-preview__dot--yellow { background-color: rgba(234,179,8,0.6); }
.code-preview__dot--green  { background-color: rgba(34,197,94,0.6); }
.code-preview__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsla(0,0%,45%,0.6);
  flex: 1;
  text-align: center;
}
.code-preview__body { padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; line-height: 1.6; }
.code-preview__line { display: block; }
.code-ln  { color: hsla(0,0%,45%,0.5); margin-right: 0.5rem; }
.code-kw  { color: var(--clr-green-dim); }
.code-val { color: hsl(var(--foreground)); }
.code-cmt { color: hsla(0,0%,45%,0.4); }
.code-ellipsis { color: hsla(0,0%,45%,0.3); padding-top: 0.25rem; display: block; }

/* Warning box */
.warning-box { display: flex; align-items: flex-start; gap: 0.625rem; }
.warning-box svg { width: 0.875rem; height: 0.875rem; color: rgba(234,179,8,0.7); margin-top: 0.125rem; flex-shrink: 0; }
.warning-box p   { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsl(var(--muted-foreground)); line-height: 1.625; }
.warning-box strong { color: rgba(234,179,8,0.7); }

/* Prev/Next navigation */
.shell-nav { display: flex; gap: 0.5rem; }
.shell-nav__item {
  flex: 1;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.shell-nav__item--right { text-align: right; }
.shell-nav__item:hover  { border-color: hsla(0,0%,45%,0.2); }
.shell-nav__label { font-family: 'JetBrains Mono', monospace; font-size: 0.5625rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; }
.shell-nav__name  { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); margin-top: 0.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar__sticky { position: sticky; top: 4rem; }
.sidebar__heading { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.quick-info__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.625rem; }
.quick-info__label-wrap { display: flex; align-items: center; gap: 0.375rem; }
.quick-info__label-wrap svg { width: 0.75rem; height: 0.75rem; color: hsla(0,0%,45%,0.5); }
.quick-info__label { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsl(var(--muted-foreground)); }
.quick-info__value { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsl(var(--foreground)); }
.sidebar__divider { border-top: 1px solid hsl(var(--border)); padding-top: 0.75rem; margin-top: 0.25rem; }
.related-list { display: flex; flex-direction: column; gap: 0.375rem; }
.related-item {
  display: block;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin: 0 -0.25rem;
  transition: background-color 0.15s ease;
}
.related-item:hover { background-color: hsla(0,0%,11%,0.5); }
.related-item__name { font-size: 0.75rem; font-weight: 500; color: hsl(var(--foreground)); transition: color 0.15s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-item:hover .related-item__name { color: var(--clr-green); }
.related-item__meta { font-family: 'JetBrains Mono', monospace; font-size: 0.5625rem; color: hsla(0,0%,45%,0.6); margin-top: 0.125rem; }
.sidebar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  margin-bottom: 0.5rem;
}
.sidebar__btn svg { width: 0.75rem; height: 0.75rem; }
.sidebar__btn:hover { color: hsl(var(--foreground)); border-color: hsla(0,0%,45%,0.3); }

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-grid { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.about-card { background-color: hsl(var(--background)); border-radius: var(--radius); padding: 1rem; }
.about-card svg  { width: 1rem; height: 1rem; color: var(--clr-green); margin-bottom: 0.5rem; }
.about-card h3   { font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.about-card p    { font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.625; }

.steps-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.step-item  { display: flex; gap: 0.75rem; }
.step-num   { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--clr-green); font-weight: 600; margin-top: 0.125rem; }
.step-body  { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.step-title { color: hsl(var(--foreground)); font-weight: 500; }

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}
.form-input {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  transition: border-color 0.15s ease;
  width: 100%;
}
.form-input::placeholder { color: hsl(var(--muted-foreground)); }

.contact-sidebar-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.contact-sidebar-item svg  { width: 1rem; height: 1rem; color: var(--clr-green); margin-top: 0.125rem; flex-shrink: 0; }
.contact-sidebar-item h4   { font-size: 0.75rem; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 0.125rem; }
.contact-sidebar-item span { font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: hsl(var(--muted-foreground)); }

.success-box { background-color: var(--clr-primary-5); border: 1px solid hsla(130,100%,40%,0.2); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.success-box__cmd { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--clr-green); margin-bottom: 0.5rem; }
.success-box__title { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.success-box__sub   { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   404 / Error
   -------------------------------------------------------------------------- */
.error-center {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-center__cmd   { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--clr-green); margin-bottom: 0.5rem; }
.error-center__code  { font-family: 'JetBrains Mono', monospace; font-size: 2.25rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.error-center__msg   { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.error-center__back  { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--clr-green); text-decoration: none; }
.error-center__back:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Misc utilities used inline in templates
   -------------------------------------------------------------------------- */
.text-xs     { font-size: 0.75rem; }
.text-sm     { font-size: 0.875rem; }
.text-base   { font-size: 1rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }
.text-2xl    { font-size: 1.5rem; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.text-muted   { color: hsl(var(--muted-foreground)); }
.text-fg      { color: hsl(var(--foreground)); }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .site-footer__grid      { grid-template-columns: repeat(3, 1fr); }
  .cat-grid               { grid-template-columns: repeat(2, 1fr); }
  .filter-bar             { flex-direction: row; }
  .shell-list__desc       { display: inline; }
  .shell-meta-grid        { grid-template-columns: repeat(4, 1fr); }
  .feature-grid           { grid-template-columns: repeat(2, 1fr); }
  .form-grid.two-col      { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .site-nav          { display: flex; }
  .mobile-menu-btn   { display: none; }
  .shell-meta-item__size  { display: inline; }
  .cat-badge--list   { display: inline-block; }
}

@media (min-width: 1024px) {
  .cat-grid                { grid-template-columns: repeat(3, 1fr); }
  .shell-detail-grid       { grid-template-columns: 2fr 1fr; }
  .about-grid              { grid-template-columns: repeat(3, 1fr); }
  .contact-grid            { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
}
