/* ═══════════════════════════════════════════
   CLAUDECK MARKETPLACE — TOKENS
   Aligned with claudeck.app design system
   ═══════════════════════════════════════════ */
:root {
  --bg:          #050508;
  --bg-sec:      #0a0b0f;
  --bg-card:     #0e0f14;
  --bg-elevated: #141620;
  --border:      #1a1c26;
  --border-glow: rgba(51,209,122,.12);
  --accent:      #33d17a;
  --accent-dim:  rgba(51,209,122,.08);
  --accent-mid:  rgba(51,209,122,.15);
  --accent-solid:#2ec27e;
  --purple:      #c69ff5;
  --purple-dim:  rgba(198,159,245,.08);
  --cyan:        #56d4dd;
  --cyan-dim:    rgba(86,212,221,.08);
  --user:        #7b9bf5;
  --user-dim:    rgba(123,155,245,.08);
  --amber:       #f0b429;
  --text:        #c8d3de;
  --text-sec:    #6b7a8d;
  --text-dim:    #3a4250;
  --error:       #ed333b;
  --orange:      #f0a040;

  --ff-display: "Chakra Petch", "Rajdhani", sans-serif;
  --ff-body:    "Outfit", "DM Sans", sans-serif;
  --ff-mono:    "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);

  --section-pad: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px);
  --max-w: 1200px;
}

/* ═══════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════
   NOISE OVERLAY
   ═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════
   SCANLINES
   ═══════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.03) 2px,
    rgba(0,0,0,.03) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,5,8,.7);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-brand {
  display: flex; align-items: center; gap: 6px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600; font-size: 20px;
  color: var(--text);
  letter-spacing: .5px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 32px; height: auto; image-rendering: pixelated; }
.nav-breadcrumb {
  color: var(--text-dim);
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 300;
  margin: 0 2px;
  user-select: none;
}
.nav-section {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sec);
  letter-spacing: .5px;
  transition: color .2s;
}
.nav-section:hover { color: var(--text); text-decoration: none; }
.nav-section-active { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-sec);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  font-family: var(--ff-mono) !important;
  font-size: 13px !important;
  padding: 8px 20px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent) !important;
  transition: all .25s var(--ease-out);
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
  box-shadow: 0 0 24px rgba(51,209,122,.3);
}
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-sec); border-radius: 2px;
  transition: all .3s;
}
.nav-discord {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-sec);
  transition: color .2s;
}
.nav-discord svg { width: 18px; height: 18px; }
.nav-discord:hover { color: #5865F2; }
.nav-ph {
  display: flex; align-items: center;
  border-radius: 8px;
  overflow: hidden;
  transition: all .3s var(--ease-out);
  opacity: .75;
}
.nav-ph:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(255,108,55,.15));
}
.nav-ph img { display: block; height: 36px; width: auto; border-radius: 7px; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px clamp(20px, 5vw, 80px) 40px;
  overflow: hidden;
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(51,209,122,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 22%; left: 50%; translate: -50% 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(51,209,122,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowBreathe 6s ease-in-out infinite;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 16px;
  color: #fff;
}
.glow {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(51,209,122,.3));
}

.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 300;
  color: var(--text-sec);
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

.hero-terminal {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--text-sec);
}
.hero-terminal .prompt { color: var(--accent); }
.hero-terminal .cmd { color: var(--text); }
.hero-terminal .t-dim { color: var(--text-dim); }
.hero-terminal .t-accent { color: var(--accent); }
.hero-terminal .t-count { color: var(--cyan); font-weight: 600; }

/* Hero staggered entry */
.hero-content > * {
  animation: fadeInHero .8s var(--ease-out) both;
}
.hero-badge { animation-delay: 0s; }
.hero h1 { animation-delay: .1s; }
.hero-tagline { animation-delay: .2s; }
.hero-sub { animation-delay: .3s; }
.hero-actions { animation-delay: .4s; }
.hero-terminal { animation-delay: .55s; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 15px; font-weight: 500;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none; border-radius: 8px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(51,209,122,.35), 0 0 0 1px rgba(51,209,122,.2);
  color: var(--bg);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  font-size: 15px; font-weight: 500;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--text-sec);
  background: rgba(255,255,255,.03);
  transform: translateY(-2px);
  color: var(--text);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════ */
.stats-strip {
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-sec);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.stat-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-sec);
  white-space: nowrap;
}
.stat-item .stat-value {
  color: var(--text);
  font-weight: 600;
}
.stat-item .stat-dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}
.stat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.stat-platforms {
  display: flex; gap: 6px;
}
.stat-platforms span {
  padding: 3px 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════ */
.section {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-label {
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PLUGIN TOOLBAR
   ═══════════════════════════════════════════ */
.plugin-toolbar {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search bar (terminal prompt) */
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.toolbar-search:focus-within {
  border-color: rgba(51,209,122,.3);
  box-shadow: 0 0 0 3px rgba(51,209,122,.06), 0 0 20px rgba(51,209,122,.05);
}
.search-prompt {
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--ff-mono);
  font-size: 14px;
  caret-color: var(--accent);
  letter-spacing: .3px;
}
.search-input::placeholder {
  color: var(--text-dim);
  font-style: normal;
}
.search-count {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: opacity .2s;
}
.search-count:empty { display: none; }
.search-kbd {
  padding: 2px 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1;
  transition: opacity .2s;
}
.toolbar-search:focus-within .search-kbd { opacity: 0; pointer-events: none; }

/* Controls row */
.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Filter chips */
.chip {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--ff-body);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  white-space: nowrap;
}
.chip:hover {
  color: var(--text-sec);
  border-color: var(--text-dim);
}
.chip.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-glow);
}
.chip[data-keyword].active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: rgba(86,212,221,.2);
}
.chip-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

/* Sort + View toggle */
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.toolbar-sort {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 28px 6px 12px;
  color: var(--text-sec);
  font-family: var(--ff-mono);
  font-size: 12px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a8d' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
.toolbar-sort:focus { border-color: var(--accent); }

.view-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.view-btn {
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
}
.view-btn:hover { color: var(--text-sec); }
.view-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Status bar */
.toolbar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.status-count {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.status-count span { color: var(--text-sec); font-weight: 600; }
.status-clear {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 11px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
.status-clear:hover { opacity: 1; text-decoration: underline; }

/* ═══════════════════════════════════════════
   PLUGIN CARDS (bento-style)
   ═══════════════════════════════════════════ */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease-out);
}
/* Left accent bar on hover */
.plugin-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  border-radius: 0 0 2px 0;
  transition: height .4s var(--ease-out);
}
.plugin-card:hover {
  border-color: rgba(51,209,122,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(51,209,122,.06);
}
.plugin-card:hover::before { height: 100%; }

/* Card top: icon + header inline */
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--accent-dim);
  flex-shrink: 0;
}
.card-header { flex: 1; min-width: 0; }

.card-name {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-badge {
  font-size: 9px;
  font-family: var(--ff-mono);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.card-badge-server {
  color: var(--orange);
  background: rgba(240,160,64,0.1);
  border: 1px solid rgba(240,160,64,0.2);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-family: var(--ff-mono);
  color: var(--text-dim);
}
.card-author-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  transition: color .2s;
}
.card-author-link:hover { color: var(--text); text-decoration: none; }
.card-author-link svg { flex-shrink: 0; }

.card-desc {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.5;
}

/* Card bottom: tags + actions */
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  border: 1px solid var(--border);
  text-decoration: none;
}
.card-btn:hover { text-decoration: none; }

.card-btn-preview {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-glow);
}
.card-btn-preview:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 16px rgba(51,209,122,.2);
}

.card-btn-github {
  background: transparent;
  color: var(--text-sec);
}
.card-btn-github:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: rgba(255,255,255,.03);
}

/* Card keyword tags */
.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.card-tag {
  font-size: 10px;
  font-family: var(--ff-mono);
  padding: 1px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
  letter-spacing: .3px;
}
.card-tags:empty { display: none; }

/* ═══════════════════════════════════════════
   LIST VIEW
   ═══════════════════════════════════════════ */
.plugin-grid.view-list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.view-list .plugin-card {
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
  border-radius: 8px;
}
.view-list .card-top { flex: 0 0 auto; }
.view-list .card-icon {
  width: 32px; height: 32px;
  font-size: 16px;
  border-radius: 6px;
}
.view-list .card-header { display: none; }
.view-list .card-desc {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.view-list .card-bottom { display: none; }
.view-list .plugin-card:hover {
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.plugin-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.4;
  font-family: var(--ff-mono);
}
.empty-title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 10px;
}
.empty-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}
.empty-clear {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   LOAD MORE + LOADING
   ═══════════════════════════════════════════ */
.load-more-wrap {
  text-align: center;
  margin-top: 32px;
}
.load-more-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.load-more-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.grid-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text-dim);
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════
   BROWSE ALL BUTTON
   ═══════════════════════════════════════════ */
.browse-all {
  text-align: center;
  margin-top: 48px;
}
.browse-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--ff-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  text-decoration: none;
}
.browse-all-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(51,209,122,.3);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   PAGE HEADER (plugins page)
   ═══════════════════════════════════════════ */
.page-header {
  padding-top: 80px;
}
.page-header .section {
  padding-bottom: 0;
}
.page-header + #plugins .section {
  padding-top: 0;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; translate: -50% 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(51,209,122,.05) 0%, transparent 65%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.cta-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-section p {
  font-size: 17px;
  color: var(--text-sec);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 48px;
}

.cta-code {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
.cta-code-header {
  padding: 10px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.cta-code-body {
  padding: 20px;
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-sec);
}
.cta-code-body .prop { color: var(--user); }
.cta-code-body .str { color: var(--accent); }
.cta-code-body .punc { color: var(--text-dim); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 80px);
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-display);
  font-size: 14px; color: var(--text-dim);
}
.footer-brand img {
  width: 20px; image-rendering: pixelated;
}
.footer-links {
  display: flex; gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════
   PREVIEW PANEL (right-side slide-in)
   ═══════════════════════════════════════════ */
.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.preview-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: clamp(380px, 50vw, 620px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.5), 0 0 0 1px rgba(51,209,122,.04);
  z-index: 201;
  animation: panelSlideIn .35s var(--ease-out) both;
}
.preview-panel.closing {
  animation: panelSlideOut .25s var(--ease-out) both;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  flex-shrink: 0;
}
.preview-title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-icon { font-size: 18px; }
.preview-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .15s;
  line-height: 1;
  font-family: var(--ff-mono);
}
.preview-close:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.preview-frame-wrap {
  flex: 1;
  overflow: hidden;
  background: var(--bg);
}
.preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg);
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.preview-hint {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--ff-mono);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes panelSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes panelSlideOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
@keyframes glowBreathe {
  0%, 100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  50% { opacity: .6; transform: translate(-50%, 0) scale(1.1); }
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-ph { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(5,5,8,.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .plugin-grid { grid-template-columns: 1fr; }
  .toolbar-controls { flex-direction: column; align-items: flex-start; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .stats-inner { gap: 16px; }
  .stat-platforms { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 16px 32px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .hero-terminal { flex-wrap: wrap; padding: 12px 16px; font-size: 12px; }
  .stats-inner { flex-direction: column; gap: 12px; }
  .preview-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary { width: 100%; justify-content: center; }
}
