:root {
  --font: "Press Start 2P", monospace;
  --glass: rgba(8, 18, 32, 0.88);
  --border: #5a9ec4;
  --text: #e8f4fc;
  --accent: #7ed4ff;
  --gold: #d4a84b;
  --fire: #c05030;
  --ice-glow: rgba(126, 212, 255, 0.35);
  --parchment: rgba(14, 26, 42, 0.96);
}

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

html, body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 60px;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== خلفيات المشاهد — بكسل آرت متحركة ===== */
.scene-bg {
  position: fixed;
  inset: -4%;
  width: 108%;
  height: 108%;
  z-index: -3;
  background: #0a1420 center center / cover no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: scenePan 22s ease-in-out infinite alternate;
  transition: opacity 0.45s ease;
}

.scene-bg.is-fading { opacity: 0; }

@keyframes scenePan {
  0% { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1.2%, -0.6%); }
}

.scene-wall { background-image: url("assets/ice-wall-bg.jpg"); }
.scene-winterfell { background-image: url("assets/scenes/winterfell.jpg"); }
.scene-kings-landing { background-image: url("assets/scenes/kings-landing.jpg"); }
.scene-casterly-rock { background-image: url("assets/scenes/casterly-rock.jpg"); }
.scene-dragonstone { background-image: url("assets/scenes/dragonstone.jpg"); }
.scene-pyke { background-image: url("assets/scenes/pyke.jpg"); }
.scene-dorne { background-image: url("assets/scenes/dorne.jpg"); }

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.55) 0%, rgba(4, 10, 20, 0.25) 35%, rgba(4, 10, 20, 0.7) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ===== شريط علوي ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(4, 12, 24, 0.88);
  border-bottom: 3px solid var(--border);
  backdrop-filter: blur(6px);
}

.logo {
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 4px 4px 0 #000;
}

.logo .aka {
  display: inline-block;
  font-size: 11px;
  color: #c8e8ff;
  margin-left: 6px;
  opacity: 0.9;
}


/* Sound toggle button */
.sound-toggle {
  font-family: var(--font);
  font-size: 12px;
  background: linear-gradient(180deg, rgba(20,40,65,0.9), rgba(15,35,55,0.8));
  color: var(--accent);
  border: 2px solid var(--border);
  padding: 6px 8px;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}

.sound-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(126,212,255,0.2),
              0 0 12px rgba(126,212,255,0.1),
              inset 0 1px 0 rgba(255,255,255,0.15);
}

.sound-toggle[aria-pressed="true"],
.sound-toggle.sound-on {
  background: linear-gradient(180deg, var(--border), #4a8ba8);
  color: #061018;
  box-shadow: 0 0 16px rgba(90,158,196,0.4),
              0 4px 12px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.sound-toggle[aria-pressed="true"]:hover,
.sound-toggle.sound-on:hover {
  box-shadow: 0 0 24px rgba(90,158,196,0.6),
              0 6px 16px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

.sound-toggle:active {
  transform: translateY(0px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav button {
  font-family: var(--font);
  font-size: 11px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(20, 40, 65, 0.9);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: 0.12s transform, 0.12s background;
}

.nav button:hover,
.nav button.active {
  background: var(--border);
  color: #061018;
  transform: translateY(-1px);
}

/* ===== المحتوى ===== */
main {
  position: relative;
  z-index: 1;
  padding: 80px 16px 60px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.panel { display: none; width: 100%; max-width: 720px; }
.panel.active { display: block; }

.panel.active .content-card {
  animation: cardSnap 0.2s ease-out both;
}

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

/* بطاقة الهيرو */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--glass);
  border: 4px solid var(--border);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.35);
}

@media (min-width: 600px) {
  .hero-card {
    flex-direction: row;
    align-items: center;
    padding: 28px 32px;
    gap: 28px;
  }
}

/* صورة البروفايل — مظبوطة */
.profile-box {
  flex-shrink: 0;
  width: 200px;
  height: 250px;
  border: 4px solid #c8e8ff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  background: #0f2035;
  overflow: hidden;
}

#profile-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-info { text-align: center; }

@media (min-width: 600px) {
  .hero-info { text-align: left; margin-top: -16px; }
  .profile-box { width: 220px; height: 275px; }
}

.hero-info h1 {
  font-size: clamp(18px, 4vw, 26px);
  margin-bottom: 6px;
  text-shadow: 3px 3px 0 #000;
}

.real-name {
  font-family: var(--font);
  font-size: 9px;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px;
}

.tag { font-size: 10px; color: var(--accent); margin-bottom: 8px; }
.sub { font-size: 15px; color: #8ab8d8; line-height: 2; }

/* بطاقات الأقسام */
.content-card {
  width: 100%;
  padding: 20px;
  background: var(--glass);
  border: 9px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.content-card h2 {
  font-size: 20px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--border);
  color: var(--accent);
  text-shadow: 2px 2px 0 #000;
  box-shadow: 0 3px 0 rgba(212, 168, 75, 0.2);
}

.content-card p,
.content-card li {
  font-size: 7px;
  line-height: 2.2;
  color: #b8d8f0;
}

.list { list-style: none; }
.list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(90, 158, 196, 0.3);
}

.flag { color: var(--gold); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags span {
  font-size: 6px;
  padding: 6px 8px;
  border: 2px solid var(--border);
  background: rgba(20, 40, 65, 0.6);
}

.links { list-style: none; }
.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 7px;
}
.links a:hover { color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 8px;
}

@media (min-width: 30px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
  .stats div:nth-child(3) {
    grid-column: span 2;
  }
}

.stats div {
  text-align: center;
  padding: 4px 8px;
  border: 2px solid var(--border);
  background: rgba(15, 35, 55, 0.7);
}

.stats b {
  display: block;
  font-family: var(--font);
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 6px;
}

.stats b.coming-soon {
  font-size: 17px;
  margin-bottom: 13px;
  line-height: 1.4;
}

.stats small { font-size: 15px; color: #2db465; }

.about-name { margin-bottom: 10px; font-size: 8px; }
.about-bio { font-size: 7px; line-height: 2.4; color: #c8e8ff; margin-bottom: 12px; }

.contact-grid li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(90, 158, 196, 0.3);
}

.discord-label { font-size: 7px; color: #8ab8d8; }

.copy-chip {
  font-family: var(--font);
  font-size: 7px;
  padding: 8px 14px;
  color: #1a1008;
  background: linear-gradient(180deg, #f0d878, var(--gold));
  border: 2px solid #8b6010;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: 6px;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.copy-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s ease;
}

.copy-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 168, 75, 0.35), 
              0 0 16px rgba(212, 168, 75, 0.2),
              inset 0 1px 0 rgba(255,255,255,0.4);
}

.copy-chip:hover::before {
  left: 100%;
}

.copy-chip:active {
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(212, 168, 75, 0.25), 
              inset 0 2px 4px rgba(0,0,0,0.2);
}

.copy-chip.copied {
  background: linear-gradient(180deg, #7ed4ff, var(--accent));
  border-color: var(--border);
  color: #061018;
  box-shadow: 0 0 20px rgba(126, 212, 255, 0.4), 
              0 6px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.3);
  animation: copyPulse 0.5s ease;
}

@keyframes copyPulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(126, 212, 255, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 12px 8px rgba(126, 212, 255, 0);
    transform: scale(1.05);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(126, 212, 255, 0);
    transform: scale(1);
  }
}

.wu-hint { font-size: 6px; margin-bottom: 14px; color: #8ab8d8; }

.writeup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.writeup-card {
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(10, 30, 50, 0.9);
  border: 3px solid var(--border);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  color: var(--text);
  text-align: center;
}

.writeup-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--ice-glow), 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.wu-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--ice-glow));
}

.wu-title { font-size: 8px; color: #fff; text-shadow: 2px 2px 0 #000; }
.wu-meta { font-size: 5px; color: var(--gold); line-height: 1.8; }

/* ===== scroll الـ write-up — ثيم الجليد والنار ===== */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 12px 24px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 158, 196, 0.12), transparent 55%),
    rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.25s ease;
}

.terminal-overlay[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-window {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(20, 40, 65, 0.5) 0%, transparent 8%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(90, 158, 196, 0.03) 3px,
      rgba(90, 158, 196, 0.03) 4px
    ),
    var(--parchment);
  border: 4px solid var(--border);
  box-shadow:
    inset 0 0 0 3px rgba(212, 168, 75, 0.25),
    0 0 48px var(--ice-glow),
    10px 10px 0 rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}

.scroll-window::before,
.scroll-window::after {
  content: "◆";
  position: absolute;
  top: 8px;
  font-size: 8px;
  color: var(--gold);
  opacity: 0.7;
  pointer-events: none;
}

.scroll-window::before { left: 10px; }
.scroll-window::after { right: 10px; }

.scroll-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #0f2035, #1a3050, #0f2035);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-sigil {
  font-size: 14px;
  color: var(--accent);
  text-shadow: 0 0 12px var(--ice-glow);
  flex-shrink: 0;
}

.scroll-title {
  flex: 1;
  font-size: 6px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #000;
}

.scroll-close {
  font-family: var(--font);
  font-size: 9px;
  padding: 5px 9px;
  color: #f0d8c8;
  background: rgba(140, 40, 30, 0.5);
  border: 2px solid var(--fire);
  cursor: pointer;
  flex-shrink: 0;
}

.scroll-close:hover {
  background: var(--fire);
  color: #fff;
}

.scroll-boot {
  padding: 10px 16px;
  font-size: 6px;
  color: #8ab8d8;
  border-bottom: 1px dashed rgba(90, 158, 196, 0.4);
  min-height: 1.2em;
  font-family: var(--font);
  background: rgba(6, 14, 28, 0.5);
}

.scroll-body {
  flex: 1;
  overflow: auto;
  padding: 18px 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #c8e0f0;
}

.scroll-footer {
  padding: 8px;
  text-align: center;
  font-size: 5px;
  color: rgba(212, 168, 75, 0.6);
  border-top: 2px solid rgba(90, 158, 196, 0.3);
  background: rgba(6, 12, 24, 0.6);
  font-family: var(--font);
}

.scroll-body h1,
.scroll-body h2,
.scroll-body h3 {
  font-family: var(--font);
  color: var(--gold);
  margin: 1.2em 0 0.6em;
  font-size: 10px;
  line-height: 1.7;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.scroll-body h1 {
  font-size: 11px;
  color: var(--accent);
  border-bottom: 2px solid rgba(90, 158, 196, 0.4);
  padding-bottom: 8px;
}

.scroll-body p { margin: 0.6em 0; color: #b0cce0; }
.scroll-body strong { color: #f0e0a8; }
.scroll-body hr {
  border: none;
  border-top: 1px dashed rgba(212, 168, 75, 0.35);
  margin: 1.2em 0;
}
.scroll-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 10px;
}
.scroll-body th,
.scroll-body td {
  border: 1px solid rgba(90, 158, 196, 0.45);
  padding: 6px 8px;
  text-align: left;
}
.scroll-body th {
  color: var(--accent);
  background: rgba(15, 35, 55, 0.8);
  font-family: var(--font);
  font-size: 6px;
}
.scroll-body code {
  color: #f0d890;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  font-size: 10px;
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.code-wrap {
  position: relative;
  margin: 0.9em 0;
}

.code-wrap pre {
  margin: 0;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(180deg, #060e1a, #0a1628);
  border: 2px solid var(--border);
  box-shadow: inset 0 0 20px rgba(126, 212, 255, 0.06);
  overflow-x: auto;
  color: #a8d8f0;
  font-size: 10px;
  line-height: 1.55;
}

.code-wrap pre::before {
  content: "⌨ command";
  display: block;
  font-family: var(--font);
  font-size: 5px;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.85;
}

.code-wrap .copy-cmd {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font);
  font-size: 5px;
  padding: 5px 8px;
  color: #1a1008;
  background: linear-gradient(180deg, #e8c868, var(--gold));
  border: 2px solid #8b6010;
  cursor: pointer;
  z-index: 2;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.code-wrap .copy-cmd.copied {
  background: var(--accent);
  border-color: var(--border);
  color: #061018;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px;
  font-size: 5px;
  color: rgba(200, 230, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .panel.active .content-card { animation: none; }
  .scene-bg { animation: none; }
  #fx-canvas { display: none; }
}

/* ===== Certifications Section ===== */
.content-card .section-subtitle {
  font-family: var(--font);
  font-size: 12px;
  color: var(--accent);
  margin: 36px 0 20px;
  text-shadow: 1px 1px 0 #000;
  text-transform: uppercase;
  border-bottom: 3px solid var(--border);
  padding-bottom: 8px;
  letter-spacing: 1.5px;
  box-shadow: 0 3px 0 rgba(126, 212, 255, 0.15);
}

.content-card .section-subtitle.gold-text {
  color: var(--gold);
  border-bottom-color: var(--gold);
  box-shadow: 0 3px 0 rgba(212, 168, 75, 0.2);
}

.cert-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.content-card .cert-list .cert-item {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 12px;
  border-bottom: 1px dashed rgba(90, 158, 196, 0.25);
  gap: 16px;
  font-size: 9px !important;
  line-height: 2.0;
  color: #b8d8f0;
  transition: background 0.15s ease;
}

.content-card .cert-list .cert-item:hover {
  background: rgba(126, 212, 255, 0.04);
}

.content-card .cert-list .cert-item:last-child {
  border-bottom: none;
}

.cert-title {
  font-family: var(--font);
  font-size: 9px !important;
  color: #e8f4fc;
  line-height: 2.0;
  flex: 1;
  min-width: 0;
}

.cert-date {
  font-family: var(--font);
  font-size: 8px !important;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(126, 212, 255, 0.3);
}

/* ===== Preparing Cards ===== */
.preparing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 520px) {
  .preparing-grid { grid-template-columns: 1fr; }
}

.preparing-card {
  font-family: var(--font);
  background:
    linear-gradient(135deg, rgba(14, 26, 42, 0.95), rgba(20, 35, 55, 0.85)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(212, 168, 75, 0.03) 3px,
      rgba(212, 168, 75, 0.03) 4px
    );
  border: 3px solid var(--gold);
  border-style: dashed;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 16px rgba(212, 168, 75, 0.15),
    4px 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  animation: goldGlowPulse 3s infinite ease-in-out;
}

.preparing-card:hover {
  transform: translateY(-3px);
  border-style: solid;
  box-shadow:
    0 0 26px rgba(212, 168, 75, 0.45),
    6px 6px 0 rgba(0, 0, 0, 0.35);
  background: rgba(212, 168, 75, 0.06);
}

.prep-badge {
  font-family: var(--font);
  font-size: 7px !important;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.prep-pulse {
  color: #ff5555;
  font-size: 10px;
  animation: prepBlink 1s infinite steps(2);
  text-shadow: 0 0 8px rgba(255, 85, 85, 0.6);
}

.prep-title {
  font-family: var(--font);
  font-size: 18px !important;
  color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(212, 168, 75, 0.4);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.prep-desc {
  font-family: var(--font);
  font-size: 7px !important;
  color: #8ab8d8;
  line-height: 2.0;
}

@keyframes prepBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes goldGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(212, 168, 75, 0.1),
      4px 4px 0 rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 168, 75, 0.5);
  }
  50% {
    box-shadow:
      0 0 20px rgba(212, 168, 75, 0.35),
      4px 4px 0 rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 168, 75, 1);
  }
}

/* ===== Write-ups Coming Soon ===== */
.writeups-coming-soon {
  position: relative;
  overflow: hidden;
}

.writeups-coming-soon h2 {
  filter: blur(1px);
  opacity: 0.4;
}

.writeups-coming-soon .blur-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  filter: blur(4px);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.dummy-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--border);
  background: rgba(15, 35, 55, 0.7);
  width: 120px;
}

.dummy-scroll .scroll-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.dummy-scroll .scroll-title {
  font-family: var(--font);
  font-size: 8px;
  color: var(--accent);
}

.writeups-coming-soon .overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gold);
  text-shadow:
    3px 3px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 20px rgba(212, 168, 75, 0.6);
  letter-spacing: 2px;
  animation: goldPulse 2s infinite ease-in-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes goldPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
    text-shadow: 3px 3px 0 #000, 0 0 15px rgba(212, 168, 75, 0.4);
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 3px 3px 0 #000, 0 0 30px rgba(212, 168, 75, 0.9);
  }
}

/* ===== Arsenal Section ===== */
.arsenal-panel {
  max-width: 820px !important;
  margin: 0 auto;
}

.arsenal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font);
  font-size: 10px !important;
  padding: 6px 10px;
  background: rgba(15, 35, 55, 0.75);
  border: 2px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease;
}

.filter-btn:hover {
  background: rgba(126, 212, 255, 0.15);
  border-color: var(--accent);
}

.filter-btn.active {
  background: linear-gradient(180deg, #e8c868, var(--gold));
  border-color: #8b6010;
  color: #1a1008;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  transform: translate(1px, 1px);
}

.arsenal-search-box {
  margin-bottom: 20px;
}

.arsenal-search-box input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(8, 16, 28, 0.9);
  border: 2px solid var(--border);
  font-family: var(--font);
  font-size: 7px !important;
  color: #e8f4fc;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6);
  outline: none;
}

.arsenal-search-box input:focus {
  border-color: var(--gold);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6), 0 0 10px rgba(212, 168, 75, 0.3);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(14, 26, 42, 0.95), rgba(20, 35, 55, 0.85)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(126, 212, 255, 0.015) 3px,
      rgba(126, 212, 255, 0.015) 4px
    );
  border: 2px solid var(--border);
  padding: 14px;
  position: relative;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow:
    0 0 12px rgba(212, 168, 75, 0.2),
    6px 6px 0 rgba(0, 0, 0, 0.45);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.tool-name {
  font-family: var(--font);
  font-size: 8px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-tag {
  font-family: var(--font);
  font-size: 4px !important;
  padding: 4px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Category Tag Colors */
.tag-ad {
  background: rgba(212, 168, 75, 0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.tag-web {
  background: rgba(126, 212, 255, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.tag-post {
  background: rgba(255, 85, 85, 0.2);
  color: #ff5555;
  border: 1px solid #ff5555;
}

.tag-pwn {
  background: rgba(170, 85, 255, 0.2);
  color: #aa55ff;
  border: 1px solid #aa55ff;
}

.tag-net {
  background: rgba(85, 255, 85, 0.2);
  color: #55ff55;
  border: 1px solid #55ff55;
}

.tool-desc {
  font-family: var(--font);
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #a8c8e0 !important;
  margin-bottom: 18px;
  flex-grow: 1;
}

.tool-link {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font);
  font-size: 5px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold);
  transition: color 0.1s ease, border-color 0.1s ease;
  margin-top: auto;
}

.tool-link:hover {
  color: #fff;
  border-bottom-style: solid;
  border-bottom-color: #fff;
}

/* ===== Boot Intro Overlay ===== */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px;
  font-family: var(--font);
  font-size: 8px;
  color: #7ed4ff;
  transition: opacity 0.9s ease;
}

.boot-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-overlay.hidden {
  display: none;
}

.boot-pre {
  white-space: pre-wrap;
  line-height: 2.2;
  color: #7ed4ff;
  font-family: var(--font);
  font-size: 17px;
  max-width: 640px;
}

.boot-cursor {
  font-family: var(--font);
  font-size: 14px;
  color: var(--accent);
  animation: prepBlink 0.6s steps(2) infinite;
  margin-top: 10px;
}

/* ===== Glitch Effect on h1 ===== */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: inherit;
  color: inherit;
  opacity: 0;
}

.glitch::before {
  color: #ff5555;
  clip-path: inset(40% 0 50% 0);
}

.glitch::after {
  color: #7ed4ff;
  clip-path: inset(20% 0 70% 0);
}

.glitch.is-glitching::before {
  animation: glitchTop 0.25s steps(2) forwards;
  opacity: 1;
}

.glitch.is-glitching::after {
  animation: glitchBot 0.25s steps(2) forwards;
  opacity: 1;
}

@keyframes glitchTop {
  0%   { transform: translate(-2px, -1px); clip-path: inset(10% 0 75% 0); }
  33%  { transform: translate(2px, 0);    clip-path: inset(35% 0 45% 0); }
  66%  { transform: translate(-1px, 2px); clip-path: inset(60% 0 20% 0); }
  100% { transform: translate(0, 0);      clip-path: inset(30% 0 55% 0); }
}

@keyframes glitchBot {
  0%   { transform: translate(2px, 1px);  clip-path: inset(75% 0 5% 0); }
  33%  { transform: translate(-2px, 0);   clip-path: inset(50% 0 30% 0); }
  66%  { transform: translate(1px, -2px); clip-path: inset(20% 0 65% 0); }
  100% { transform: translate(0, 0);      clip-path: inset(60% 0 10% 0); }
}

/* ===== Typing Cursor ===== */
.type-cursor {
  font-family: var(--font);
  color: var(--accent);
  animation: prepBlink 0.7s steps(2) infinite;
  margin-left: 2px;
}

/* ===== Skill Bars ===== */
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-label {
  font-family: var(--font);
  font-size: 6px;
  color: #c8e8ff;
  min-width: 160px;
  flex-shrink: 0;
}

.skill-track {
  flex: 1;
  height: 10px;
  background: rgba(15, 35, 55, 0.9);
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--border), var(--accent));
  box-shadow: 0 0 8px rgba(126, 212, 255, 0.4);
  transition: width 1s ease;
  image-rendering: pixelated;
}

.skill-pct {
  font-family: var(--font);
  font-size: 6px;
  color: var(--gold);
  min-width: 30px;
  text-align: right;
}

/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,25,45,0.4), rgba(5,15,30,0.3));
  backdrop-filter: blur(8px);
  border: 2px solid rgba(90, 158, 196, 0.2);
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 14px 16px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(15,30,50,0.6), rgba(8,18,30,0.4));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.social-icon:hover::before {
  left: 100%;
}

.social-icon:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(126,212,255,0.12), rgba(94,180,220,0.08));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(126,212,255,0.25), 
              0 0 20px rgba(126,212,255,0.15),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.social-icon:active {
  transform: translateY(-2px) scale(1.02);
}

.si-icon {
  font-family: var(--font);
  font-size: 36px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(40,80,120,0.25), rgba(10,20,40,0.45));
  box-shadow: 0 8px 24px rgba(0,0,0,0.5),
              0 0 16px var(--ice-glow),
              inset 0 1px 8px rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: bold;
}

.social-icon:hover .si-icon {
  box-shadow: 0 12px 36px rgba(126,212,255,0.4),
              0 0 24px var(--ice-glow),
              inset 0 1px 12px rgba(255,255,255,0.15);
  transform: scale(1.15) rotateY(10deg);
}

/* LinkedIn Styling */
.social-icon.linkdin-icon .si-icon {
  background: linear-gradient(135deg, #0a66c2, #005a96);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(10,102,194,0.4),
              0 0 16px rgba(14,136,253,0.3),
              inset 0 1px 8px rgba(255,255,255,0.15);
}

.social-icon.linkdin-icon .linkdin2-icon {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -1px;
}

.social-icon.linkdin-icon {
  border-color: #0a66c2;
}

.social-icon.linkdin-icon:hover {
  border-color: #0a66c2;
  background: linear-gradient(180deg, rgba(10,102,194,0.2), rgba(14,136,253,0.1));
  box-shadow: 0 12px 32px rgba(10,102,194,0.5),
              0 0 24px rgba(14,136,253,0.3),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.social-icon.linkdin-icon:hover .si-icon {
  background: linear-gradient(135deg, #0d7dd8, #0a66c2);
  box-shadow: 0 16px 40px rgba(10,102,194,0.6),
              0 0 32px rgba(14,136,253,0.4),
              inset 0 1px 12px rgba(255,255,255,0.2);
}

/* GitHub Styling */
.github-icon .si-icon {
  background: linear-gradient(135deg, rgba(30,30,30,0.9), rgba(60,60,60,0.7));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255,255,255,0.2),
              0 0 16px rgba(255,255,255,0.15),
              inset 0 1px 8px rgba(255,255,255,0.1);
}

.github-icon .github-gh-icon {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.github-icon {
  border-color: #ffffff;
}

.github-icon:hover {
  border-color: #ffffff;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  box-shadow: 0 12px 32px rgba(255,255,255,0.3),
              0 0 24px rgba(255,255,255,0.2),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.github-icon:hover .si-icon {
  background: linear-gradient(135deg, rgba(50,50,50,0.95), rgba(80,80,80,0.8));
  box-shadow: 0 16px 40px rgba(255,255,255,0.3),
              0 0 32px rgba(255,255,255,0.2),
              inset 0 1px 12px rgba(255,255,255,0.15);
}

/* HackTheBox Styling */
.social-icon.htb-icon .si-icon {
  background: linear-gradient(135deg, rgba(159,239,0,0.2), rgba(200,200,0,0.15));
  color: #9fef00;
  box-shadow: 0 8px 24px rgba(159,239,0,0.3),
              0 0 16px rgba(159,239,0,0.25),
              inset 0 1px 8px rgba(255,255,255,0.1);
  font-size: 11px;
}

.social-icon.htb-icon {
  border-color: #9fef00;
}

.social-icon.htb-icon:hover {
  border-color: #9fef00;
  background: linear-gradient(180deg, rgba(159,239,0,0.12), rgba(159,239,0,0.06));
  box-shadow: 0 12px 32px rgba(159,239,0,0.4),
              0 0 24px rgba(159,239,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.social-icon.htb-icon:hover .si-icon {
  background: linear-gradient(135deg, rgba(159,239,0,0.3), rgba(200,200,0,0.2));
  color: #b8ff1a;
  box-shadow: 0 16px 40px rgba(159,239,0,0.5),
              0 0 32px rgba(159,239,0,0.35),
              inset 0 1px 12px rgba(255,255,255,0.15);
}

/* Email/Envelope Styling */
.social-icon:not(.linkdin-icon):not(.github-icon):not(.htb-icon) .si-icon {
  background: linear-gradient(135deg, rgba(100,150,200,0.3), rgba(70,120,180,0.25));
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(100,150,200,0.3),
              0 0 16px rgba(126,212,255,0.25),
              inset 0 1px 8px rgba(255,255,255,0.1);
}

.social-icon:not(.linkdin-icon):not(.github-icon):not(.htb-icon):hover .si-icon {
  background: linear-gradient(135deg, rgba(126,212,255,0.2), rgba(94,180,220,0.15));
  box-shadow: 0 16px 40px rgba(126,212,255,0.4),
              0 0 32px rgba(126,212,255,0.3),
              inset 0 1px 12px rgba(255,255,255,0.15);
}
  background: linear-gradient(135deg, rgba(159,239,0,0.15), rgba(159,239,0,0.05));
}

.social-icon.htb-icon {
  border-color: #9fef00;
}

.social-icon.htb-icon:hover {
  border-color: #9fef00;
  background: linear-gradient(180deg, rgba(159,239,0,0.15), rgba(159,239,0,0.08));
  box-shadow: 0 12px 36px rgba(159,239,0,0.35), 
              0 0 24px rgba(159,239,0,0.25),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.social-icon.htb-icon:hover .si-icon {
  box-shadow: 0 12px 36px rgba(159,239,0,0.4), 
              0 0 24px rgba(159,239,0,0.3),
              inset 0 1px 12px rgba(255,255,255,0.15);
}

.si-label {
  font-family: var(--font);
  font-size: 11px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.15s ease;
}

.social-icon:hover .si-label {
  color: #fff;
  text-shadow: 0 0 8px rgba(126,212,255,0.5);
}

/* ===== CV Download Button ===== */
.cv-download-row {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cv-btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 8px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #e8c868, var(--gold));
  color: #1a1008;
  border: 3px solid #8b6010;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  text-decoration: none;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.cv-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5), 0 0 18px rgba(212, 168, 75, 0.4);
  background: linear-gradient(180deg, #f0d878, #e8b840);
}

.cv-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.cv-note {
  font-family: var(--font);
  font-size: 5px;
  color: #8ab8d8;
  text-align: center;
}

/* ===== HTB Stat Link ===== */
.htb-stat-link {
  text-decoration: none;
  display: block;
}

.htb-stat-link b {
  display: block;
  font-family: var(--font);
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.htb-stat-link:hover b { color: #9fef00; }
.htb-stat-link:hover small { color: #9fef00; }
.htb-stat-link small { transition: color 0.15s ease; }


/* ===== WRITEUPS SECTION ===== */
.writeups-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.writeups-container {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 500px;
}

/* Writeups Sidebar */
.writeups-sidebar {
  flex: 0 0 280px;
  background: linear-gradient(180deg, rgba(10,25,45,0.5), rgba(8,18,30,0.4));
  border: 2px solid rgba(90,158,196,0.25);
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.writeups-sidebar::-webkit-scrollbar {
  width: 6px;
}

.writeups-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.writeups-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.writeups-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.tree-root {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-node {
  user-select: none;
}

.tree-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text);
  transition: all 0.15s ease;
}

.tree-node-header:hover {
  background: rgba(126,212,255,0.1);
  color: var(--accent);
}

.tree-node-header:active {
  background: rgba(126,212,255,0.15);
}

.tree-toggle {
  display: inline-block;
  width: 12px;
  text-align: center;
  font-size: 8px;
  color: var(--border);
  transition: transform 0.2s ease;
}

.tree-icon {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 10px;
}

.tree-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font);
}

.tree-node-content {
  margin-left: 12px;
  border-left: 1px solid rgba(90,158,196,0.2);
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Writeup Content Area */
.writeup-content {
  flex: 1;
  background: linear-gradient(180deg, rgba(10,25,45,0.4), rgba(8,18,30,0.3));
  border: 2px solid rgba(90,158,196,0.25);
  border-radius: 8px;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.writeup-content::-webkit-scrollbar {
  width: 8px;
}

.writeup-content::-webkit-scrollbar-track {
  background: transparent;
}

.writeup-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.writeup-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.writeup-welcome {
  text-align: center;
  padding: 40px 20px;
  color: var(--text);
}

.writeup-welcome h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent);
}

.writeup-welcome p {
  font-size: 10px;
  opacity: 0.8;
}

.markdown-wrapper {
  width: 100%;
}

.markdown-wrapper h2 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.markdown-content {
  font-size: 9px;
  line-height: 1.6;
  color: var(--text);
}

.markdown-content h3 {
  font-size: 12px;
  color: var(--accent);
  margin-top: 16px;
  margin-bottom: 8px;
}

.markdown-content h4 {
  font-size: 11px;
  color: #a8d5ff;
  margin-top: 12px;
  margin-bottom: 6px;
}

.markdown-content p {
  margin-bottom: 12px;
}

.markdown-content code {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(90,158,196,0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  color: #9fef00;
}

.markdown-content pre {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(90,158,196,0.3);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 12px 0;
}

.markdown-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 12px;
  margin: 12px 0;
  color: #a8d5ff;
  font-style: italic;
}

.markdown-content ul, .markdown-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.markdown-content li {
  margin-bottom: 6px;
}

.markdown-content a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.markdown-content a:hover {
  color: #9fef00;
}

.loading {
  font-size: 11px;
  color: var(--accent);
  text-align: center;
  padding: 40px;
}

.error {
  font-size: 11px;
  color: #ff6b6b;
  text-align: center;
  padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .writeups-container {
    flex-direction: column;
    gap: 12px;
  }

  .writeups-sidebar {
    flex: 0 0 auto;
    max-height: 300px;
  }
}
