/* ============================================================
   CSS VARIABLES (Themes)
   ============================================================ */
:root {
  --gh-bg: #0d0d0d;
  --gh-text: #c8c8c8;
  --gh-header-text: #e0e0e0;
  --gh-card: #111;
  --gh-card-footer: #0e0e0e;
  --gh-card-meta: #161616;
  --gh-border: #2a2a2a;
  --gh-border-light: #1e1e1e;
  --gh-dim: #444;
  --gh-soft: #555;
  --gh-subtle: #3a3a3a;
  --gh-placeholder: #2a2a2a;
}
:root.gray-mode {
  --gh-bg: #d8d8d5;
  --gh-text: #1f1f1f;
  --gh-header-text: #1f1f1f;
  --gh-card: #e2e2df;
  --gh-card-footer: #d4d4d1;
  --gh-card-meta: #d4d4d1;
  --gh-border: #b5b5b1;
  --gh-border-light: #c9c9c5;
  --gh-dim: #555555;
  --gh-soft: #4a4a4a;
  --gh-subtle: #7a7a7a;
  --gh-placeholder: #b5b5b1;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

body {
  padding-bottom: 0;
}

/* ============================================================
   GRAY MODE OVERRIDES
   ============================================================ */
.gray-mode #gh-topbar,
.gray-mode #gh-header,
.gray-mode #gh-navbar,
.gray-mode #gh-footer {
  background: var(--gh-bg);
}
.gray-mode #gh-topbar {
  color: var(--gh-dim);
  border-color: var(--gh-border-light);
}
.gray-mode #gh-header {
  border-color: var(--gh-border-light);
}
.gray-mode #gh-header h1 {
  color: var(--gh-header-text);
}
.gray-mode #gh-header .gh-subtitle {
  color: var(--gh-dim);
}
.gray-mode #gh-header-right .gh-admin-online {
  color: #00cc00;
}
.gray-mode #gh-navbar {
  border-color: var(--gh-border-light);
}
.gray-mode .gh-cat-btn {
  color: var(--gh-dim);
  border-color: var(--gh-border);
}
.gray-mode .gh-cat-btn:hover {
  color: var(--gh-soft);
  border-color: var(--gh-soft);
}
.gray-mode .gh-search-input {
  background: var(--gh-card);
  border-color: var(--gh-border);
  color: var(--gh-text);
}
.gray-mode .gh-search-btn {
  background: var(--gh-card);
  border-color: var(--gh-border);
}
.gray-mode #gh-featured,
.gray-mode .gh-sc {
  background: var(--gh-card);
  border-color: var(--gh-border-light);
}
.gray-mode #gh-featured:hover,
.gray-mode .gh-sc:hover {
  border-color: var(--gh-border);
}
.gray-mode .gh-feat-title .gh-prompt {
  color: var(--gh-subtle);
}
.gray-mode .gh-meta-date,
.gray-mode .gh-meta-cat {
  background: var(--gh-card-meta);
  border-color: var(--gh-border);
  color: var(--gh-soft);
}
.gray-mode .gh-feat-excerpt {
  color: var(--gh-soft);
}
.gray-mode .gh-read-more {
  color: var(--gh-subtle);
  border-color: var(--gh-border);
}
.gray-mode .gh-read-more:hover {
  color: #c8a96e;
  border-color: #c8a96e;
}
.gray-mode .gh-feat-img,
.gray-mode .gh-sc-img {
  background: var(--gh-card-meta) !important;
}
.gray-mode .gh-no-img {
  color: var(--gh-placeholder);
}
.gray-mode .gh-feat-footer,
.gray-mode .gh-sc-footer {
  background: var(--gh-card-footer);
  border-color: var(--gh-border-light);
}
.gray-mode .gh-stats,
.gray-mode .gh-sc-stats {
  color: var(--gh-subtle);
}
.gray-mode .gh-sc-cat {
  color: var(--gh-dim);
}
.gray-mode .gh-sc-title {
  color: var(--gh-text);
}
.gray-mode .gh-sc-title:hover {
  color: #c8a96e;
}
.gray-mode #gh-footer-inner {
  border-color: var(--gh-border-light);
}
.gray-mode .gh-fcol h4 {
  color: #c8a96e;
}
.gray-mode .gh-fcol a {
  color: var(--gh-soft);
}
.gray-mode .gh-fcol a:hover {
  color: var(--gh-dim);
}
.gray-mode .gh-fcol p {
  color: var(--gh-dim);
}
.gray-mode .gh-fsubscribe input {
  background: var(--gh-card);
  border-color: var(--gh-border);
  color: var(--gh-text);
}
.gray-mode .gh-fsubscribe button {
  background: var(--gh-card);
  border-color: var(--gh-border);
  color: var(--gh-soft);
}
.gray-mode .gh-fcopy {
  color: var(--gh-dim);
  border-color: var(--gh-border-light);
}
.gray-mode #gh-overlay {
  background: rgba(0,0,0,0.7);
}
.gray-mode #gh-contact-form {
  background: var(--gh-card);
  border-color: var(--gh-border);
}
.gray-mode .gh-form-header h3 {
  color: #c8a96e;
}
.gray-mode .gh-form-control {
  background: var(--gh-bg);
  border-color: var(--gh-border);
  color: var(--gh-text);
}
.gray-mode .gh-form-group label {
  color: var(--gh-dim);
}

/* ============================================================
   TOPBAR
   ============================================================ */
#gh-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 6px 32px;
  border-bottom: 1px solid var(--gh-border-light, #1e1e1e);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gh-dim, #444);
  background: var(--gh-bg);
}

/* ============================================================
   HEADER
   ============================================================ */
#gh-header {
  width: 100%;
  background: var(--gh-bg);
  border-bottom: 1px solid var(--gh-border-light, #1e1e1e);
  padding: 24px 32px 18px;
  text-align: center;
  position: relative;
}
#gh-header h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 26px;
  font-weight: normal;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: var(--gh-header-text, #e0e0e0);
  margin: 0;
  padding: 0;
  line-height: 1;
}
#gh-header h1 a {
  color: inherit;
  text-decoration: none;
}
#gh-header .gh-subtitle {
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #444;
  margin-top: 5px;
}
#gh-header-right {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-admin-online {
  font-size: 15px;
  color: #00cc00;
  letter-spacing: 1px;
  cursor: pointer;
}
.gh-admin-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  background: #111;
  border: 1px solid #333;
  color: #00cc00;
  font-family: "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.gh-admin-btn:hover {
  border-color: #00cc00;
  box-shadow: 0 0 6px rgba(0, 204, 0, 0.25);
}
.gh-admin-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 5px 5px 0;
  border-color: transparent #00cc00 transparent transparent;
  opacity: 0.5;
}
.gh-admin-nick {
  cursor: pointer;
  position: relative;
  font-size: 15px;
}
.gh-admin-drawer {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #111;
  border: 1px solid #333;
  min-width: 140px;
  z-index: 50;
}
.gh-admin-nick.open .gh-admin-drawer {
  display: block;
}
.gh-drawer-item {
  padding: 8px 12px;
  font-size: 11px;
  border-bottom: 1px solid #1e1e1e;
  color: #00cc00;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#gh-navbar {
  width: 100%;
  background: var(--gh-bg);
  border-bottom: 1px solid var(--gh-border-light, #1e1e1e);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  position: relative;
}
.gh-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.gh-cat-btn {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  background: transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: pointer;
}
.gh-cat-btn:hover {
  border-color: #666;
  color: #ccc;
}
.gh-cat-btn.active {
  border-color: #c8a96e;
  color: #c8a96e;
}
.gh-search-form {
  display: flex;
  align-items: center;
  position: absolute;
  right: 32px;
}
.gh-search-input {
  background: #111;
  border: 1px solid #2a2a2a;
  color: #888;
  font-family: "Courier New", monospace;
  font-size: 12px;
  padding: 4px 10px;
  width: 140px;
  outline: none;
  transition: border-color 0.2s;
}
.gh-search-input:focus {
  border-color: #444;
}
.gh-search-btn {
  background: #111;
  border: 1px solid #2a2a2a;
  border-left: none;
  color: #555;
  font-family: "Courier New", monospace;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.gh-search-btn:hover {
  color: #00cc00;
}

/* ============================================================
   MAIN GRID (Home page)
   ============================================================ */
#gh-main {
  width: 100%;
  max-width: 1140px;
  margin: 28px auto;
  padding: 0 20px;
  display: block;
}

/* ============================================================
   SHARED CARD BASE
   ============================================================ */
#gh-featured,
.gh-sc {
  position: relative;
  background: var(--gh-card, #1a1a1a);
  border: 1px solid var(--gh-border-light, #252525);
  overflow: hidden;
  border-radius: 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
#gh-featured {
  width: 100%;
  min-height: 450px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}
#gh-featured:hover,
.gh-sc:hover {
  border-color: #3a3a3a;
  box-shadow: 0 0 20px rgba(70, 70, 70, 0.12);
}
#gh-featured::before,
.gh-sc::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #3a3a3a,
    #888,
    #aaa,
    #888,
    #3a3a3a,
    transparent
  );
  animation: gh-sweep 4s ease-in-out infinite;
  z-index: 10;
}
.gh-sc:nth-child(2)::before {
  animation-delay: 1.3s;
}
.gh-sc:nth-child(3)::before {
  animation-delay: 2.6s;
}
.gh-sc:nth-child(4)::before {
  animation-delay: 0.7s;
}
#gh-featured::after,
.gh-sc::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent #2a2a2a transparent transparent;
  z-index: 10;
}
@keyframes gh-sweep {
  0% {
    left: -80%;
  }
  100% {
    left: 140%;
  }
}

/* ===== FEATURED CARD ===== */
.gh-feat-top {
  padding: 14px 14px 6px;
}
.gh-feat-title {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-bottom: 7px;
}
.gh-feat-title .gh-prompt {
  color: #3a3a3a;
  font-size: 15px;
  margin-right: 4px;
}
.gh-feat-title a {
  color: #c8a96e;
  transition: color 0.2s;
}
.gh-feat-title a:hover {
  color: #fff;
}
.gh-feat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gh-meta-date {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gh-soft, #555);
  background: var(--gh-card-meta, #161616);
  border: 1px solid var(--gh-border, #2a2a2a);
  padding: 2px 7px;
}
.gh-meta-cat {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gh-dim, #666);
  background: var(--gh-card-meta, #161616);
  border: 1px solid var(--gh-border, #2a2a2a);
  padding: 2px 7px;
}
.gh-feat-excerpt {
  padding: 8px 14px 6px;
  font-size: 12px;
  color: var(--gh-soft, #5a5a5a);
  line-height: 1.75;
}
.gh-read-more {
  display: inline-block;
  margin: 2px 14px 10px;
  font-size: 15px;
  color: var(--gh-subtle, #4a4a4a);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--gh-border, #2a2a2a);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.gh-read-more:hover {
  color: #c8a96e;
  border-color: #c8a96e;
}
.gh-feat-img {
  width: 100%;
  height: 300px;
  max-height: 300px;
  background: #161616;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gh-feat-img .gh-no-img {
  color: #2a2a2a;
  font-size: 9px;
  letter-spacing: 2px;
}
.gh-feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-top: 1px solid var(--gh-border-light, #1a1a1a);
  background: var(--gh-card-footer, #0e0e0e);
}
.gh-stats {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--gh-subtle, #3a3a3a);
}

/* ===== SIDEBAR CARDS ===== */
#gh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  grid-column: 1 / -1;
}
#gh-grid .gh-sc {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}
#gh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gh-sc-top {
  padding: 10px 12px 6px;
}
.gh-sc-cat {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gh-dim, #444);
  margin-bottom: 4px;
}
.gh-sc-title {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: var(--gh-text, #aaa);
  line-height: 1.3;
  margin-bottom: 7px;
  transition: color 0.2s;
}
.gh-sc-title:hover {
  color: #c8a96e;
}
.gh-sc-img {
  width: 100%;
  height: 140px;
  max-height: 140px;
  background: #161616;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gh-sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  border-top: 1px solid var(--gh-border-light, #1a1a1a);
  background: var(--gh-card-footer, #0e0e0e);
}
.gh-sc-stats {
  display: flex;
  gap: 8px;
  font-size: 15px;
  color: var(--gh-subtle, #333);
}

/* ============================================================
   BADGES
   ============================================================ */
.gh-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 1px;
}
.gh-badge-low {
  background: #0a180a;
  color: #3a8a3a;
  border: 1px solid #1a2e1a;
}
.gh-badge-medium {
  background: #1a1200;
  color: #996600;
  border: 1px solid #2e1e00;
}
.gh-badge-high {
  background: #1a0800;
  color: #993300;
  border: 1px solid #2e0e00;
}
.gh-badge-critical {
  background: #180000;
  color: #880000;
  border: 1px solid #2e0000;
}

/* ============================================================
   FOOTER
   ============================================================ */
#gh-footer {
  width: 100%;
  border-top: 1px solid var(--gh-border-light, #1e1e1e);
  padding: 24px 32px 14px;
  margin-top: 70vh;
  background: var(--gh-bg);
  opacity: 0;
  transition: opacity 0.4s;
  position: absolute;
}
#gh-footer.visible {
  opacity: 1;
}
#gh-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  text-align: left;
}
@media (max-width: 600px) {
  #gh-footer-inner {
    grid-template-columns: 1fr;
  }
}
.gh-fcol h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0 0 10px;
}
.gh-fcol a {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.gh-fcol a:hover {
  color: #888;
}
.gh-fcol p {
  font-size: 10px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 6px;
}
.gh-fsubscribe {
  display: flex;
  gap: 4px;
}
.gh-fsubscribe input {
  flex: 1;
  background: #111;
  border: 1px solid #252525;
  color: #888;
  font-family: "Courier New", monospace;
  font-size: 10px;
  padding: 4px 8px;
  outline: none;
}
.gh-fsubscribe input:focus {
  border-color: #444;
}
.gh-fsubscribe button {
  background: #111;
  border: 1px solid #252525;
  color: #555;
  font-family: "Courier New", monospace;
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.gh-fsubscribe button:hover {
  color: #00cc00;
  border-color: #00cc00;
}
.gh-fcopy {
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: #333;
  text-transform: uppercase;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

/* ============================================================
   OVERLAY & CONTACT FORM MODAL
   ============================================================ */
#gh-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
}
#gh-contact-form {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 95vw;
  background: var(--gh-card, #111);
  border: 1px solid var(--gh-border, #2a2a2a);
  padding: 28px;
  z-index: 101;
}
.gh-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.gh-form-header h3 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0;
}
.gh-close-btn {
  background: none;
  border: none;
  color: #444;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.gh-close-btn:hover {
  color: #fff;
}
.gh-form-group {
  margin-bottom: 14px;
}
.gh-form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 5px;
}
.gh-form-control {
  width: 100%;
  background: var(--gh-bg);
  border: 1px solid var(--gh-border-light, #252525);
  color: var(--gh-text, #c8c8c8);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.2s;
}
.gh-form-control:focus {
  border-color: #444;
}
textarea.gh-form-control {
  resize: vertical;
  min-height: 90px;
}
.gh-form-actions {
  text-align: right;
}
.gh-btn {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}
.gh-btn-primary {
  border-color: #00cc00;
  color: #00cc00;
}
.gh-btn-primary:hover {
  background: #00cc00;
  color: #000;
}
.gh-btn-success {
  border-color: #00cc00;
  color: #00cc00;
}
.gh-btn-error {
  border-color: #cc3333;
  color: #cc3333;
}
.gh-msg {
  text-align: center;
  padding: 20px 0;
}
.gh-msg-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.gh-msg h3 {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.gh-msg p {
  color: #444;
  font-size: 11px;
  margin-bottom: 16px;
}
.gh-spinner-wrap {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #444;
  font-size: 11px;
}
.gh-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #252525;
  border-top-color: #00cc00;
  border-radius: 50%;
  animation: gh-spin 0.6s linear infinite;
}
@keyframes gh-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   CATEGORY PAGE — Cyber Book Layout
   ============================================================ */
.category-container {
  max-width: 1900px;
  margin: 0 auto;
  padding: 30px;
  min-height: 100vh;
}
.category-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 42px;
  color: #00ff41;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  font-family: "Courier New", monospace;
  font-weight: bold;
  position: relative;
  padding-bottom: 20px;
}
.category-title:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00cc00, transparent);
  box-shadow: 0 0 10px rgba(0, 204, 0, 0.5);
}

/* ===== CYBER BOOK ===== */
.cyber-book-container {
  position: relative;
  max-width: 2200px;
  margin: 0 auto;
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a, #0a0a0a);
  border: 3px solid #363636;
  border-radius: 15px;
  box-shadow:
    0 0 30px rgba(0, 204, 0, 0.3),
    inset 0 0 30px rgba(0, 204, 0, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  counter-reset: chapter;
}
.book-cover {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  padding: 30px;
  border-bottom: 2px solid #00cc00;
}
.book-cover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(
      45deg,
      transparent 48%,
      rgba(0, 204, 0, 0.1) 49%,
      rgba(0, 204, 0, 0.1) 51%,
      transparent 52%
    ),
    linear-gradient(
      -45deg,
      transparent 48%,
      rgba(0, 204, 0, 0.05) 49%,
      rgba(0, 204, 0, 0.05) 51%,
      transparent 52%
    );
  pointer-events: none;
}
.book-title {
  text-align: center;
  font-size: 32px;
  color: #00ff41;
  font-family: "Georgia", serif;
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
  margin-bottom: 10px;
  font-weight: bold;
}
.book-subtitle {
  text-align: center;
  font-size: 18px;
  color: #00cc00;
  font-family: "Courier New", monospace;
  opacity: 0.8;
}

/* ===== BOOK PAGES ===== */
.book-page {
  display: none;
  position: relative;
  padding: 50px 60px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23003300" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(/%23grid)"/></svg>');
  min-height: 700px;
  font-family: "Georgia", serif;
  line-height: 1.8;
  border-left: 4px solid rgba(0, 204, 0, 0.3);
}
.book-page.active {
  display: block;
  animation: fadeInPage 0.5s ease-in-out;
}
@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.chapter-title {
  color: #00ff41;
  font-size: 36px;
  margin-bottom: 30px;
  font-family: "Georgia", serif;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  text-align: center;
  position: relative;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 204, 0, 0.5);
}
.chapter-title:before {
  content: "Chapter " counter(chapter);
  counter-increment: chapter;
  display: block;
  font-size: 16px;
  color: #00cc00;
  font-family: "Courier New", monospace;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.chapter-content {
  color: #e8e8e8;
  line-height: 1.6;
  font-size: 23px;
  text-align: left;
  max-width: 1900px;
  margin: 0 auto;
  padding: 20px;
}
.chapter-content p {
  margin-bottom: 1.2em;
}
.chapter-content pre,
.chapter-content code {
  background: #0a0a0a;
  border: 1px solid #00cc00;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: #00ff41;
  font-size: 14px;
}
.chapter-content pre {
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
}
.chapter-content code {
  padding: 3px 8px;
  font-size: 16px;
}
.chapter-content a {
  color: #00cc00;
  text-decoration: none;
  border-bottom: 1px dotted #00cc00;
  transition: all 0.3s ease;
}
.chapter-content a:hover {
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
  border-bottom-style: solid;
}
.affiliate-note {
  margin: 34px 0 10px;
  padding: 12px 16px;
  border: 1px dashed var(--gray-3, #555);
  border-left: 3px solid #00cc00;
  border-radius: 6px;
  background: rgba(0, 204, 0, 0.05);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-text, #bbb);
}
.affiliate-note strong {
  color: #00cc00;
}
.affiliate-note a {
  color: #00cc00;
  text-decoration: underline dotted;
}
.gh-adbox {
  position: relative;
  margin: 16px 0 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gh-adbox .adsbygoogle {
  display: block;
  max-width: 100%;
}
.chapter-content img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #00cc00;
  box-shadow: 0 0 20px rgba(0, 204, 0, 0.2);
  margin: 30px auto;
  display: block;
  transition: all 0.3s ease;
}
.chapter-content img:hover {
  border-color: #00ff41;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
  transform: scale(1.02);
  cursor: zoom-in;
}
.chapter-content ul,
.chapter-content ol {
  margin: 30px 0;
  padding-left: 40px;
}
.chapter-content li {
  margin-bottom: 15px;
  color: #d8d8d8;
  position: relative;
}
.chapter-content ul li:before {
  content: "\25B6";
  color: #00cc00;
  font-weight: bold;
  position: absolute;
  left: -25px;
}
.chapter-content blockquote {
  border-left: 4px solid #00cc00;
  padding: 25px 30px;
  margin: 35px 0;
  background: linear-gradient(
    135deg,
    rgba(0, 204, 0, 0.05),
    rgba(0, 204, 0, 0.02)
  );
  border-radius: 0 10px 10px 0;
  font-style: italic;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 204, 0, 0.1);
}
.chapter-content blockquote:before {
  content: "\201C";
  font-size: 4em;
  color: #00cc00;
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}
.page-meta {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid rgba(0, 204, 0, 0.3);
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 14px;
}
.meta-date {
  color: #00cc00;
  margin-bottom: 15px;
  font-weight: bold;
}
.meta-date:before {
  content: "\1F4C5 ";
  margin-right: 8px;
}
.meta-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-item {
  color: #00ff41;
  background: linear-gradient(
    135deg,
    rgba(0, 204, 0, 0.1),
    rgba(0, 204, 0, 0.05)
  );
  padding: 5px 15px;
  border: 1px solid rgba(0, 204, 0, 0.5);
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tag-item:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 204, 0, 0.2),
    rgba(0, 204, 0, 0.1)
  );
  border-color: #00cc00;
  box-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
  transform: translateY(-2px);
}
.tag-item:before {
  content: "#";
  margin-right: 3px;
  opacity: 0.7;
}

/* ===== BOOK NAVIGATION ===== */
.book-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border-top: 2px solid #00cc00;
}
.nav-button {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: #00cc00;
  border: 2px solid #00cc00;
  padding: 15px 30px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 150px;
}
.nav-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 204, 0, 0.2),
    transparent
  );
  transition: left 0.6s;
}
.nav-button:hover:not([disabled]):before {
  left: 100%;
}
.nav-button:hover:not([disabled]) {
  background: linear-gradient(135deg, #2d2d2d, #404040);
  border-color: #00ff41;
  box-shadow: 0 0 20px rgba(0, 204, 0, 0.4);
  transform: translateY(-3px);
}
.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #111;
  border-color: #333;
  color: #666;
}
.page-counter {
  color: #00ff41;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  background: linear-gradient(
    135deg,
    rgba(0, 204, 0, 0.1),
    rgba(0, 204, 0, 0.05)
  );
  padding: 10px 25px;
  border: 1px solid rgba(0, 204, 0, 0.5);
  border-radius: 25px;
}

/* ===== NO POSTS ===== */
.no-posts {
  text-align: center;
  padding: 100px 50px;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border: 2px solid #00cc00;
  border-radius: 15px;
  margin-top: 50px;
}
.no-posts p {
  color: #00cc00;
  font-size: 24px;
  margin-bottom: 20px;
  font-family: "Courier New", monospace;
}
.no-posts p:first-child {
  font-size: 48px;
  margin-bottom: 30px;
}

/* ===== PAGE TRANSITIONS ===== */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.slide-right {
  animation: slideInRight 0.5s ease-out;
}
.slide-left {
  animation: slideInLeft 0.5s ease-out;
}

/* ============================================================
   CATEGORY PAGE — Comment Section
   ============================================================ */
.comment-section-container {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 20px 40px;
}
.comment-panel {
  background: #0f0f0f;
  border: 2px solid #383838;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0, 204, 0, 0.12);
  font-family: "Courier New", monospace;
}
.panel-header {
  background: rgba(0, 204, 0, 0.06);
  padding: 13px 22px;
  border-bottom: 1px solid rgba(0, 204, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-header h3 {
  color: #00ff41;
  font-size: 13px;
  letter-spacing: 2px;
  margin: 0;
}
.panel-body {
  padding: 22px 24px;
}

/* Step bar */
.step-bar {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.cmt-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000000;
  transition: color 0.4s;
}
.cmt-step.active {
  color: #00cc00;
}
.cmt-step.done {
  color: #00cc00;
}
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #2a2a2a;
  background: #111;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.4s;
  flex-shrink: 0;
}
.cmt-step.active .step-num {
  border-color: #00cc00;
  background: #00cc00;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 204, 0, 0.4);
}
.cmt-step.done .step-num {
  border-color: #00cc00;
  background: #00cc00;
  color: #000;
}
.step-divider {
  flex: 1;
  height: 1px;
  background: #1e1e1e;
  margin: 0 8px;
}

/* Slide blocks */
.cmt-block {
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
  max-height: 0;
  opacity: 0;
}
.cmt-block.open {
  max-height: 500px;
  opacity: 1;
}

/* Form */
.cmt-row {
  display: flex;
  gap: 12px;
}
.cmt-row .cmt-ig {
  flex: 1;
}
.cmt-ig {
  margin-bottom: 14px;
}
.cmt-lbl {
  display: block;
  color: #00cc00;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.cmt-input {
  width: 100%;
  padding: 11px 13px;
  background: #080808;
  border: 1px solid #222;
  border-radius: 6px;
  color: #00ff41;
  font-family: "Courier New", monospace;
  font-size: 13px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
  box-sizing: border-box;
}
.cmt-input:focus {
  border-color: #00cc00;
  box-shadow: 0 0 8px rgba(0, 204, 0, 0.15);
}
.cmt-input::placeholder {
  color: #2a2a2a;
}
.cmt-code-input {
  letter-spacing: 8px;
  font-size: 20px;
  text-align: center;
}
.cmt-textarea {
  min-height: 90px;
  resize: none;
}
.cmt-btn {
  width: 100%;
  padding: 11px;
  background: #0a0a0a;
  color: #00cc00;
  border: 1.5px solid #00cc00;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.cmt-btn:hover {
  background: #0d1a0d;
  border-color: #00ff41;
  box-shadow: 0 0 12px rgba(0, 204, 0, 0.2);
  transform: translateY(-1px);
}
.cmt-btn:active {
  transform: translateY(1px);
}
.cmt-back {
  color: #333;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  margin-top: 8px;
  display: inline-block;
  background: none;
  border: none;
  font-family: "Courier New", monospace;
}
.cmt-back:hover {
  color: #00cc00;
}
.cmt-info-txt {
  color: #555;
  font-size: 11px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.cmt-info-txt strong {
  color: #00cc00;
}
.cmt-ok-txt {
  color: #00cc00;
  font-size: 11px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Notification */
.cmt-notif {
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 11px;
  margin-bottom: 14px;
  display: none;
}
.cmt-notif.ok {
  background: rgba(0, 204, 0, 0.07);
  border: 1px solid #00cc00;
  color: #00ff41;
  display: block;
}
.cmt-notif.err {
  background: rgba(204, 0, 0, 0.07);
  border: 1px solid #cc0000;
  color: #ff4444;
  display: block;
}

/* Comment cards */
.cmt-list {
  margin-top: 0;
}
.cmt-divider {
  height: 1px;
  background: rgba(0, 204, 0, 0.1);
  margin: 20px 0 16px;
}
.cmt-card {
  background: rgba(0, 204, 0, 0.03);
  border: 1px solid rgba(0, 204, 0, 0.12);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  animation: cmtFadeIn 0.4s ease;
}
@keyframes cmtFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cmt-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cmt-author {
  color: #00cc00;
  font-size: 11px;
  font-weight: bold;
}
.cmt-date {
  color: #333;
  font-size: 11px;
}
.cmt-body {
  color: #aaa;
  font-size: 13px;
  font-family: "Georgia", serif;
  line-height: 1.5;
}

/* ============================================================
   IMAGE ZOOM MODAL
   ============================================================ */
#gh-img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#gh-img-modal.open {
  display: flex;
}
#gh-img-modal img {
  max-width: 90%;
  max-height: 90%;
  border: 1px solid #2a2a2a;
  cursor: default;
}
#gh-img-close {
  position: fixed;
  top: 20px;
  right: 32px;
  color: #555;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 501;
  background: none;
  border: none;
  font-family: "Courier New", monospace;
}
#gh-img-close:hover {
  color: #fff;
}

/* ============================================================
   BLOG POST SHOW — bp-* Styles
   ============================================================ */
:root {
  --bp-bg: #0a0a0a;
  --bp-card: #111;
  --bp-border: #1e1e1e;
  --bp-accent: #00cc00;
  --bp-text: #d4d4d4;
  --bp-dim: #555;
  --bp-hdr: #e8e8e8;
  --bp-soft: #2a2a2a;
}
.bp-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  font-family: "Courier New", Courier, monospace;
  color: var(--bp-text);
  background: var(--bp-bg);
}
.bp-wrap * {
  box-sizing: border-box;
}

.bp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.bp-cat {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(0, 204, 0, 0.08);
  border: 1px solid rgba(0, 204, 0, 0.2);
  color: var(--bp-accent);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  border-radius: 2px;
}
.bp-date,
.bp-read {
  color: var(--bp-dim);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.bp-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bp-dim);
  display: inline-block;
}

.bp-title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1.25;
  color: var(--bp-hdr);
  margin: 0;
  letter-spacing: -0.3px;
  text-align: left;
}
.bp-divider {
  border: none;
  border-top: 1px solid var(--bp-border);
  margin: 0 0 14px;
}
.bp-info-line {
  font-size: 12px;
  color: var(--bp-dim);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}
.bp-info-line .bp-dot {
  margin: 0 10px;
  vertical-align: middle;
}

.bp-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bp-border);
}
.bp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--bp-accent);
  flex-shrink: 0;
}
.bp-author-info {
  font-size: 13px;
  line-height: 1.5;
}
.bp-author-name {
  color: var(--bp-accent);
  font-weight: bold;
}
.bp-author-date {
  color: var(--bp-dim);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.bp-cover {
  margin-bottom: 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--bp-border);
  background: var(--bp-card);
}
.bp-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.bp-cover .bp-cover-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-soft);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bp-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--bp-text);
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.bp-content p {
  margin-bottom: 24px;
}
.bp-content h1,
.bp-content h2,
.bp-content h3,
.bp-content h4 {
  color: var(--bp-hdr);
  font-weight: bold;
  margin: 40px 0 16px;
  line-height: 1.3;
  text-align: left;
}
.bp-content h1 {
  font-size: 28px;
}
.bp-content h2 {
  font-size: 22px;
}
.bp-content h3 {
  font-size: 18px;
}
.bp-content ul,
.bp-content ol {
  margin: 16px 0 24px 24px;
}
.bp-content li {
  margin-bottom: 8px;
}
.bp-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--bp-accent);
  background: rgba(0, 204, 0, 0.03);
  color: var(--bp-dim);
  font-style: italic;
}
.bp-content pre {
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  border-left: 3px solid var(--bp-accent);
  border-radius: 4px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.bp-content code {
  font-size: 0.875em;
  color: var(--bp-accent);
  background: rgba(0, 204, 0, 0.06);
  padding: 2px 7px;
  border-radius: 3px;
}
.bp-content pre code {
  background: transparent;
  padding: 0;
  color: var(--bp-text);
}
.bp-content img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--bp-border);
  margin: 24px 0;
}
.bp-content a {
  color: var(--bp-accent);
  border-bottom: 1px solid rgba(0, 204, 0, 0.25);
}
.bp-content a:hover {
  border-color: var(--bp-accent);
}
.bp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.bp-content th {
  background: var(--bp-card);
  color: var(--bp-hdr);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bp-border);
}
.bp-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--bp-border);
}
.bp-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  color: var(--bp-dim);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.bp-tag:hover {
  border-color: var(--bp-accent);
  color: var(--bp-accent);
}

.bp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.bp-share-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bp-dim);
  margin-right: 4px;
}
.bp-share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bp-border);
  background: var(--bp-card);
  color: var(--bp-dim);
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  text-decoration: none;
}
.bp-share-btn:hover {
  border-color: var(--bp-accent);
  color: var(--bp-accent);
  background: rgba(0, 204, 0, 0.04);
}

.bp-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--bp-border);
}
.bp-nav-card {
  display: block;
  padding: 16px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  text-decoration: none;
  transition: border-color 0.2s;
}
.bp-nav-card:hover {
  border-color: var(--bp-soft);
}
.bp-nav-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bp-dim);
  margin-bottom: 6px;
}
.bp-nav-title {
  font-size: 13px;
  color: var(--bp-text);
  line-height: 1.4;
}
.bp-nav-card:hover .bp-nav-title {
  color: var(--bp-accent);
}

.bp-related {
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--bp-border);
}
.bp-related-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bp-dim);
  margin-bottom: 16px;
  font-weight: normal;
}
.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bp-rel-card {
  display: block;
  padding: 14px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  text-decoration: none;
  transition: border-color 0.2s;
}
.bp-rel-card:hover {
  border-color: var(--bp-soft);
}
.bp-rel-card-title {
  font-size: 12px;
  color: var(--bp-text);
  line-height: 1.4;
  margin-bottom: 6px;
}
.bp-rel-card:hover .bp-rel-card-title {
  color: var(--bp-accent);
}
.bp-rel-card-date {
  font-size: 9px;
  color: var(--bp-dim);
  letter-spacing: 1px;
}

.bp-comments {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--bp-border);
}
.bp-comments-title {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bp-hdr);
  font-weight: normal;
  margin-bottom: 24px;
}
.bp-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--bp-border);
}
.bp-comment:last-child {
  border-bottom: none;
}
.bp-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bp-comment-author {
  font-size: 12px;
  font-weight: bold;
  color: var(--bp-accent);
}
.bp-comment-date {
  font-size: 10px;
  color: var(--bp-dim);
  letter-spacing: 0.5px;
}
.bp-comment-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bp-text);
}
.bp-comment-empty {
  font-size: 12px;
  color: var(--bp-dim);
  font-style: italic;
  margin-bottom: 20px;
}

/* Blog post comment form */
.bp-cf {
  margin-top: 24px;
}
.bp-cf-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bp-dim);
  margin-bottom: 16px;
}
.bp-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bp-cf-group {
  margin-bottom: 12px;
}
.bp-cf-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bp-dim);
  margin-bottom: 4px;
}
.bp-cf-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  color: var(--bp-text);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.bp-cf-input:focus {
  border-color: var(--bp-soft);
}
.bp-cf-textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  color: var(--bp-text);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}
.bp-cf-textarea:focus {
  border-color: var(--bp-soft);
}
.bp-cf-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--bp-accent);
  color: var(--bp-accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.bp-cf-btn:hover {
  background: rgba(0, 204, 0, 0.08);
}
.bp-cf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bp-cf-msg {
  font-size: 12px;
  color: var(--bp-dim);
  margin-top: 10px;
  font-family: "Courier New", Courier, monospace;
}
.bp-cf-step {
  display: none;
}
.bp-cf-step.active {
  display: block;
}
.bp-cf-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bp-accent);
  margin-bottom: 12px;
}
.bp-cf-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bp-cf-code-row .bp-cf-input {
  max-width: 160px;
}

/* ============================================================
   RESPONSIVE RULES
   ============================================================ */
@media (max-width: 768px) {
  #gh-main {
    display: block;
  }
  #gh-grid {
    grid-template-columns: 1fr;
  }
  #gh-featured {
    min-height: auto;
    margin-bottom: 40px;
  }
  .category-container {
    padding: 20px;
  }
  .cyber-book-container {
    margin: 0 10px;
  }
  .book-page {
    padding: 30px 25px;
    min-height: 500px;
  }
  .chapter-title {
    font-size: 28px;
  }
  .chapter-content {
    font-size: 16px;
  }
  .book-navigation {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .nav-button {
    width: 100%;
    min-width: auto;
  }
  .cmt-row {
    flex-direction: column;
    gap: 0;
  }
  #gh-header h1 {
    font-size: 18px;
    letter-spacing: 6px;
  }
  #gh-header-right {
    position: static;
    transform: none;
    margin-top: 10px;
    justify-content: center;
  }
  .gh-feat-img {
    max-height: 220px;
  }
  .gh-sc-img {
    max-height: 120px;
  }
}
@media (max-width: 640px) {
  .category-title {
    font-size: 28px;
  }
  .book-title {
    font-size: 24px;
  }
  .chapter-title {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .bp-wrap {
    padding: 24px 16px 40px;
  }
  .bp-title {
    font-size: 26px;
  }
  .bp-content {
    font-size: 16px;
  }
  .bp-related-grid {
    grid-template-columns: 1fr;
  }
  .bp-nav {
    grid-template-columns: 1fr;
  }
  .bp-cf-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE (Public Site)
   ============================================================ */
@media (max-width: 480px) {
  #gh-grid {
    grid-template-columns: 1fr;
  }
  #gh-topbar {
    padding: 6px 16px;
    font-size: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  #gh-header {
    padding: 16px 16px 14px;
  }
  #gh-header h1 {
    font-size: 15px;
    letter-spacing: 4px;
  }
  #gh-header .gh-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
  }
  #gh-navbar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .gh-nav-links {
    gap: 4px;
    width: 100%;
    justify-content: center;
  }
  .gh-cat-btn {
    font-size: 11px;
    padding: 6px 10px;
    letter-spacing: 1px;
  }
  .gh-search-form {
    position: static;
    width: 100%;
    justify-content: center;
  }
  .gh-search-input {
    width: 100px;
    font-size: 11px;
  }
  .gh-search-btn {
    font-size: 11px;
  }
  #gh-main {
    margin: 16px auto;
    padding: 0 12px;
    gap: 14px;
  }
  .gh-feat-top {
    padding: 10px 10px 4px;
  }
  .gh-feat-title {
    font-size: 13px;
  }
  .gh-feat-title .gh-prompt {
    font-size: 13px;
  }
  .gh-feat-excerpt {
    font-size: 11px;
    padding: 6px 10px 4px;
    line-height: 1.6;
  }
  .gh-read-more {
    font-size: 13px;
    margin: 2px 10px 8px;
  }
  .gh-feat-footer {
    padding: 5px 10px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .gh-stats {
    font-size: 12px;
    gap: 8px;
  }
  .gh-feat-img {
    max-height: 180px;
    min-height: 180px;
  }
  .gh-sc-top {
    padding: 8px 10px 4px;
  }
  .gh-sc-cat {
    font-size: 12px;
  }
  .gh-sc-title {
    font-size: 13px;
  }
  .gh-sc-footer {
    padding: 4px 10px;
  }
  .gh-sc-stats {
    font-size: 12px;
  }
  .gh-sc-img {
    max-height: 100px;
    min-height: 100px;
  }
  .gh-badge {
    font-size: 12px;
    padding: 1px 5px;
  }
  .gh-admin-online {
    font-size: 12px;
  }
  .gh-admin-btn {
    height: 32px;
    font-size: 12px;
    padding: 0 8px;
  }
  .gh-admin-nick {
    font-size: 12px;
  }
  .category-container {
    padding: 12px;
  }
  .category-title {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .category-title:before {
    width: 120px;
  }
  .book-page {
    padding: 20px 14px;
    min-height: 400px;
  }
  .chapter-title {
    font-size: 20px;
    padding-bottom: 12px;
  }
  .chapter-content {
    font-size: 15px;
    padding: 10px;
  }
  .chapter-content pre {
    padding: 10px;
    font-size: 12px;
  }
  .chapter-content code {
    font-size: 13px;
  }
  .chapter-content blockquote {
    padding: 16px 16px;
    margin: 20px 0;
  }
  .chapter-content ul, .chapter-content ol {
    padding-left: 24px;
  }
  .book-navigation {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  .nav-button {
    padding: 12px 20px;
    font-size: 13px;
    min-width: auto;
    width: 100%;
  }
  .page-counter {
    font-size: 16px;
    padding: 8px 16px;
  }
  .book-title {
    font-size: 20px;
  }
  .book-subtitle {
    font-size: 14px;
  }
  .book-cover {
    padding: 20px;
  }
  .cyber-book-container {
    margin: 0 4px;
    border-width: 2px;
  }
  .bp-title {
    font-size: 20px;
  }
  .bp-content {
    font-size: 15px;
    padding: 0 10px;
  }
  .bp-content h1 { font-size: 22px; }
  .bp-content h2 { font-size: 18px; }
  .bp-content h3 { font-size: 16px; }
  .bp-content pre {
    padding: 12px;
    font-size: 12px;
  }
  .bp-nav-card {
    padding: 12px;
  }
  .bp-nav-title {
    font-size: 12px;
  }
  .bp-wrap {
    padding: 16px 10px 32px;
  }
  .comment-section-container {
    padding: 0 10px 32px;
  }
  .panel-body {
    padding: 16px;
  }
  .cmt-input {
    font-size: 16px;
    padding: 10px 12px;
  }
  #gh-contact-form {
    padding: 20px;
    width: 95vw;
  }
  #gh-footer {
    padding: 20px 16px 10px;
    margin-top: 40vh;
  }
  #gh-footer-inner {
    gap: 16px;
  }
  #gh-header-right {
    position: static;
    transform: none;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .gh-admin-drawer {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .no-posts {
    padding: 60px 20px;
  }
  .no-posts p {
    font-size: 18px;
  }
  .no-posts p:first-child {
    font-size: 36px;
  }
  .article-hero .hero-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .chapter-content img {
    max-width: 100% !important;
    height: auto !important;
  }
}
@media (max-width: 380px) {
  #gh-header h1 {
    font-size: 13px;
    letter-spacing: 3px;
  }
  .gh-cat-btn {
    font-size: 10px;
    padding: 5px 8px;
    letter-spacing: 0.5px;
  }
  .gh-search-input {
    width: 80px;
  }
  .chapter-content {
    font-size: 14px;
  }
  .chapter-title {
    font-size: 18px;
  }
}
