/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */
:root {
  --bg:           #080c12;
  --surface:      #0d1321;
  --surface-2:    #111827;
  --border:       #1a2438;
  --border-2:     #243048;
  --green:        #00ff88;
  --green-dim:    rgba(0, 255, 136, 0.08);
  --green-glow:   0 0 24px rgba(0, 255, 136, 0.25);
  --amber:        #ffb347;
  --amber-dim:    rgba(255, 179, 71, 0.08);
  --amber-glow:   0 0 24px rgba(255, 179, 71, 0.25);
  --blue:         #4a9eff;
  --blue-dim:     rgba(74, 158, 255, 0.08);
  --red:          #ff5f56;
  --purple:       #bd93f9;
  --text:         #dce7f3;
  --text-muted:   #6b7a8d;
  --text-dim:     #2e3f54;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'DM Serif Display', Georgia, serif;
  --radius:       6px;
  --nav-h:        58px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

::selection { background: rgba(0, 255, 136, 0.2); color: var(--green); }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { display: block; max-width: 100%; }

/* =============================================
   LAYOUT UTILITIES
============================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* =============================================
   SECTION COMMAND HEADER
============================================= */
.section-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 56px;
  position: relative;
}
.section-cmd::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  margin-left: 20px;
}
.cmd-prompt {
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}
.cmd-text {
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 12, 18, 0.96);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}
.nav-logo:hover { color: var(--text); }
.nav-logo-tilde { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.5px;
}
.nav-link::before {
  content: attr(data-index) '. ';
  color: var(--green);
  font-size: 10px;
  vertical-align: 1px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--green-dim);
}
.nav-link.active { color: var(--green); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s;
}

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 12, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 32px; border-radius: 0; width: 100%; }
}

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Dot-grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,255,136,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* CRT scanlines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}
.prompt-path { color: var(--blue); }
.prompt-arrow { color: var(--green); }
.prompt-cmd { color: var(--text-muted); }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-name em {
  font-style: italic;
  color: var(--green);
}

.hero-role-line {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 26px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.role-prefix { color: var(--text-dim); margin-right: 6px; }
.hero-role { color: var(--amber); font-weight: 500; }
.hero-cursor {
  color: var(--green);
  font-size: 17px;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.hero-bio {
  max-width: 520px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  animation: fadeUp 0.6s 0.5s ease both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  font-family: var(--font-mono);
}
.stat-label {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-stat-sep {
  color: var(--border-2);
  font-size: 20px;
  align-self: center;
  margin-bottom: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}
.hero-scroll-hint i {
  animation: bounceDown 2s 1.5s ease infinite;
}

/* =============================================
   BUTTONS
============================================= */
.btn-terminal {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-bracket {
  color: inherit;
  opacity: 0.6;
  margin: 0 1px;
}
.btn-primary {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}
.btn-primary:hover {
  background: rgba(0,255,136,0.18);
  box-shadow: var(--green-glow);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* =============================================
   ABOUT SECTION
============================================= */
.about-section { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Terminal window chrome */
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.terminal-window:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red   { background: var(--red); }
.t-amber { background: var(--amber); }
.t-green { background: #27c93f; }
.t-chrome-title {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0.5px;
}
.terminal-body {
  padding: 20px 22px;
}
.terminal-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  color: var(--text);
}
.tc-key    { color: #7dd3fc; }
.tc-str    { color: #a5f3a8; }
.tc-num    { color: var(--amber); }
.tc-brace  { color: var(--text-muted); }

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.t-prompt-sym { color: var(--green); font-weight: 700; }
.t-blink { color: var(--green); animation: blink 1s step-end infinite; }

/* Prose */
.about-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0;
}
.about-heading em { font-style: italic; color: var(--green); }
.about-prose p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.85;
}

.about-skills { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.skill-group { display: flex; flex-direction: column; gap: 8px; }
.skill-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  padding: 3px 12px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  font-size: 11.5px;
  color: var(--blue);
  background: var(--blue-dim);
  transition: all 0.2s;
}
.skill-tag:hover { border-color: var(--blue); }
.skill-tag-dim {
  color: var(--text-dim);
  background: transparent;
  border-style: dashed;
}
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--green);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s;
}
.about-cta:hover { gap: 14px; color: var(--green); }

/* =============================================
   REPOS SECTION
============================================= */
.repos-section { background: var(--surface); }

.repo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.repo-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  transition: border-color 0.2s;
}
.repo-search-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.07);
}
.search-prompt {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
#repoSearch {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  padding: 10px 0;
}
#repoSearch::placeholder { color: var(--text-dim); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--border-2); color: var(--text); }
.filter-pill.active {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}
.filter-pill .lang-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.repo-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.repo-count-text { font-size: 11.5px; color: var(--text-dim); }
.rc-num { color: var(--green); font-weight: 700; }

.pin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.pin-toggle:hover { border-color: var(--amber); color: var(--amber); }
.pin-toggle.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* Repo Grid */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.repo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: cardIn 0.3s ease both;
  overflow: hidden;
}
.repo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.repo-card:hover::before { opacity: 1; }
.repo-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.repo-card.pinned {
  border-color: rgba(255,179,71,0.3);
  background: linear-gradient(145deg, var(--bg), rgba(255,179,71,0.03));
}
.repo-card.pinned::before {
  background: linear-gradient(to right, transparent, var(--amber), transparent);
  opacity: 1;
}
.repo-card.pinned:hover { border-color: var(--amber); box-shadow: var(--amber-glow); }
.repo-card.hidden { display: none !important; }

.card-pin-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10.5px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.card-pin-badge i { font-size: 9px; }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 60px;
}
.card-icon { color: var(--text-dim); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.card-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.3;
  word-break: break-word;
  transition: color 0.2s;
}
.card-name:hover { color: #7ec8ff; }

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tag {
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 3px;
  background: var(--blue-dim);
  border: 1px solid rgba(74,158,255,0.18);
  color: #7ec8ff;
  font-family: var(--font-mono);
}

.card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.card-stat .lang-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.card-stat-push { margin-left: auto; }

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
}
.no-results-icon {
  display: block;
  font-size: 48px;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.no-results p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* =============================================
   CONTACT SECTION
============================================= */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}
.contact-heading em { font-style: italic; color: var(--green); }
.contact-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s;
}
.contact-link:hover {
  border-color: var(--green);
  color: var(--text);
  background: var(--green-dim);
}
.contact-link i { color: var(--green); width: 16px; text-align: center; }
.contact-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.contact-location i { color: var(--red); }

/* Terminal form */
.contact-form-body { padding: 20px 22px; }
.t-form-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.t-form-textarea { align-items: flex-start; }
.t-label {
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  font-family: var(--font-mono);
}
.t-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.t-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.07);
}
.t-input::placeholder { color: var(--text-dim); }
.t-textarea { resize: vertical; min-height: 90px; }
.t-form-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.submit-hint { font-size: 11px; color: var(--text-dim); }
.form-output-line {
  font-size: 12.5px;
  color: var(--green);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--green-dim);
  border-left: 2px solid var(--green);
  border-radius: 0 4px 4px 0;
  animation: fadeIn 0.3s ease;
}
.form-output-error {
  color: var(--red);
  background: rgba(255,95,86,0.08);
  border-color: var(--red);
}

/* =============================================
   FOOTER
============================================= */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy, .footer-made {
  font-size: 11.5px;
  color: var(--text-dim);
}
.footer-prompt { color: var(--blue); }
.footer-sep { color: var(--text-dim); }
.footer-heart { color: var(--red); }

/* =============================================
   ANIMATIONS & UTILITIES
============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

.blink { animation: blink 1s step-end infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.12s; }

/* =============================================
   META BAR EXTRAS
============================================= */
.meta-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s;
}
.cache-age {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-left: 10px;
}
.refresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  padding: 5px 8px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
  line-height: 1;
}
.refresh-btn:hover { border-color: var(--green); color: var(--green); }

/* =============================================
   SKELETON LOADERS
============================================= */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.repo-skeleton {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sk-line {
  border-radius: 3px;
  background: linear-gradient(90deg, var(--border) 25%, var(--border-2) 50%, var(--border) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}
.sk-title  { height: 14px; width: 55%; }
.sk-desc   { height: 11px; width: 100%; }
.sk-short  { width: 70%; }
.sk-tags   { height: 20px; width: 45%; }
.sk-stats-row { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.sk-stat   { height: 11px; width: 60px; }

/* =============================================
   ARCHIVED BADGE
============================================= */
.card-badge-archived {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-sep { display: none; }
  .repo-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}