/* somsg — dark glass theme */
:root {
  --bg-0: #05060f;
  --bg-1: #0b0d1c;
  --bg-2: #14172d;
  --panel: rgba(255,255,255,0.05);
  --panel-strong: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #e7e9f5;
  --text-dim: #9aa1b9;
  --text-mute: #6f7694;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #22d3ee 0%, #a855f7 55%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.18));
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* hidden 属性必须赢过组件级 display 规则（如 .ask-panel{display:flex}），
   否则 start/room/result 面板一加载就被强制显示且关不掉 */
[hidden] { display: none !important; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; position: relative; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.section-head p { color: var(--text-dim); margin: 6px 0 0; }
.link-quiet { color: var(--accent); font-weight: 500; }
.link-quiet:hover { text-decoration: underline; }
.filters { display: flex; gap: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(5,6,15,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--container); margin: 0 auto;
}
.brand {
  font-weight: 800; letter-spacing: 0.16em; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px var(--accent);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Site tabs (top-level channel switch) ---------- */
.site-tabs {
  display: flex; gap: 6px; align-items: center;
  padding: 4px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
}
.site-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: var(--text-dim); white-space: nowrap;
  transition: color .18s, background .18s, box-shadow .18s;
}
.site-tab:hover { color: var(--text); background: var(--panel-strong); }
.site-tab.active {
  color: #05060f; background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(168,85,247,.55);
}
.search {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 10px;
  font-size: 13px; width: 220px; outline: none;
  transition: all .2s;
}
.search:focus { border-color: var(--accent); background: var(--panel-strong); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .search { width: 140px; }
  .site-tab { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 560px) {
  .site-tabs { gap: 2px; padding: 3px; }
  .site-tab { padding: 6px 8px; font-size: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600;
  font-size: 14px; transition: transform .15s ease, box-shadow .2s ease;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #0b0b1e; font-weight: 700;
  box-shadow: 0 8px 30px -8px rgba(34,211,238,.55), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -6px rgba(168,85,247,.6); }
.btn-ghost {
  background: var(--panel); color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--panel-strong); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 140px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168,85,247,.14), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(236,72,153,.10), transparent 60%),
    var(--bg-0);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: .45; animation: drift 20s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: #22d3ee; top: -120px; left: -80px; }
.orb-2 { width: 480px; height: 480px; background: #a855f7; top: 40%; right: -160px; animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; background: #ec4899; bottom: -100px; left: 30%; animation-delay: -12s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
}
.grid-lines {
  position: absolute; inset: 0; opacity: .06;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border-strong);
  padding: 8px 16px; border-radius: 999px; font-size: 13px;
  color: var(--text-dim); margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34,211,238,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); }
  70% { box-shadow: 0 0 0 12px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.05; font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block;
}
.hero-sub {
  max-width: 620px; margin: 0 auto 34px;
  font-size: 18px; color: var(--text-dim);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 780px; margin: 0 auto;
}
.stat {
  padding: 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.stat-num {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 24px; font-weight: 700; color: var(--text);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-label { display: block; font-size: 12px; color: var(--text-mute); margin-top: 4px; }

@media (max-width: 720px) {
  .hero { padding: 80px 0 100px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--border);
  transition: all .25s ease; position: relative; overflow: hidden;
  display: block;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: var(--grad-soft); transition: opacity .25s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; }
.cat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--panel-strong); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.cat-name {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.cat-card p { color: var(--text-dim); font-size: 14px; margin: 0 0 20px; }
.cat-cta { color: var(--accent); font-size: 14px; font-weight: 600; }
@media (max-width: 800px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s ease; display: flex; flex-direction: column;
}
.prod-card:hover {
  transform: translateY(-3px); border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(34,211,238,.35);
}
.prod-thumb {
  aspect-ratio: 16 / 10; position: relative;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; overflow: hidden;
}
.prod-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: .4;
}
.prod-thumb > span { position: relative; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.prod-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  color: var(--text); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); z-index: 2;
}
.prod-badge.hot { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; border: none; }
.prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.prod-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-summary { font-size: 13px; color: var(--text-dim); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.prod-price { font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.prod-score { font-size: 11px; color: var(--text-mute); }
.prod-card.demo .prod-badge::after { content: ' · Preview'; opacity: .8; }

/* ---------- Leaderboard ---------- */
.lb { list-style: none; padding: 0; margin: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lb-row {
  display: grid; grid-template-columns: 60px 1fr auto auto 100px;
  gap: 20px; padding: 18px 24px; align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--panel-strong); }
.lb-rank {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--panel-strong); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'JetBrains Mono', monospace;
}
.lb-row.top1 .lb-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a1a; }
.lb-row.top2 .lb-rank { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1a1a1a; }
.lb-row.top3 .lb-rank { background: linear-gradient(135deg, #d97706, #92400e); color: #fef3c7; }
.lb-title { font-weight: 500; }
.lb-cat { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }
.lb-band { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-dim); }
.lb-hot { color: var(--pink); font-size: 14px; }
@media (max-width: 700px) {
  .lb-row { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 14px 16px; }
  .lb-band, .lb-cat { display: none; }
}

/* ---------- Leaderboard: tabs & buyer rows ---------- */
.lb-tabs { display: inline-flex; gap: 4px; padding: 4px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.lb-tab {
  background: transparent; border: none; color: var(--text-dim);
  padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.lb-tab:hover { color: var(--text); }
.lb-tab.active {
  background: var(--grad); color: #0b0b1e;
  box-shadow: 0 4px 16px -6px rgba(34,211,238,.6);
}

/* Buyer row: rank · avatar · handle · flag · tier · items · spend */
.lb-buyers .lb-row {
  grid-template-columns: 60px 44px 1fr auto auto auto auto;
  gap: 16px;
}
.lb-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad); color: #0b0b1e;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 6px 18px -8px rgba(168,85,247,.6);
}
.lb-handle { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--text); font-weight: 500; }
.lb-flag { font-size: 22px; line-height: 1; }
.lb-tier {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
  border: 1px solid var(--border-strong); background: var(--panel);
}
.tier-diamond { color: #a5f3fc; border-color: rgba(165,243,252,.5); background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.18)); }
.tier-gold     { color: #fbbf24; border-color: rgba(251,191,36,.5); }
.tier-silver   { color: #cbd5e1; border-color: rgba(203,213,225,.4); }
.tier-bronze   { color: #d97706; border-color: rgba(217,119,6,.4); }
.tier-rising   { color: var(--text-dim); }
.lb-items { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-dim); }
.lb-spend {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; min-width: 66px; text-align: right;
}
.lb-foot { color: var(--text-mute); font-size: 12px; margin-top: 14px; text-align: center; }

@media (max-width: 900px) {
  .lb-buyers .lb-row { grid-template-columns: 40px 40px 1fr auto auto; gap: 10px; }
  .lb-buyers .lb-items, .lb-buyers .lb-flag { display: none; }
}
@media (max-width: 600px) {
  .lb-tabs { display: flex; width: 100%; }
  .lb-tab { flex: 1; text-align: center; }
  .lb-buyers .lb-row { grid-template-columns: 32px 36px 1fr auto; }
  .lb-buyers .lb-tier { display: none; }
}

/* ---------- Trust / Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
}
.feat-icon { font-size: 28px; margin-bottom: 12px; }
.feat h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.feat p { color: var(--text-dim); font-size: 13px; margin: 0; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter CTA ---------- */
.cta-band {
  padding: 60px 40px; border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(236,72,153,.18), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); max-width: 500px; margin: 0 auto 24px; }
.cta-form { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  background: var(--panel); border: 1px solid var(--border-strong);
  color: var(--text); padding: 12px 16px; border-radius: 12px;
  width: 280px; outline: none;
}
.cta-form input:focus { border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--text-mute); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--text-dim); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 60px 0 30px;
  background: var(--bg-1);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-mute); margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--text-dim); font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 320px; margin: 8px 0 0; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-mute); font-size: 13px; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Product detail ---------- */
.pdp { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.pdp-breadcrumb { color: var(--text-mute); font-size: 13px; margin-bottom: 24px; }
.pdp-breadcrumb a { color: var(--accent); }
.pdp h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; letter-spacing: -0.02em; }
.pdp-summary { font-size: 17px; color: var(--text-dim); margin-bottom: 24px; }
.pdp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tag {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
}
.pdp-buy {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.pdp-price { font-size: 40px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-family: 'JetBrains Mono', monospace;
}
.pdp-meta { color: var(--text-dim); font-size: 14px; }
.pdp-body-md {
  background: var(--panel); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); line-height: 1.7;
}
@media (max-width: 700px) { .pdp-buy { grid-template-columns: 1fr; } }

/* ---------- Category page ---------- */
.pagetop { padding: 60px 0 20px; }
.pagetop h1 { font-size: clamp(28px, 5vw, 40px); margin: 0; }

/* ---------- Capture / Thanks ---------- */
.thanks { text-align: center; padding: 100px 24px; max-width: 600px; margin: 0 auto; }
.thanks .icon-big { font-size: 64px; margin-bottom: 20px; }
.thanks h1 { margin: 0 0 12px; font-size: 32px; }
.thanks .dl-btn {
  display: inline-block; padding: 16px 32px; border-radius: 14px;
  background: var(--grad); color: #0b0b1e; font-weight: 700;
  margin-top: 24px; box-shadow: 0 12px 40px -10px rgba(34,211,238,.6);
}
.thanks .note { color: var(--text-mute); font-size: 13px; margin-top: 16px; }

/* ---------- Loading skeleton ---------- */
.skel {
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-strong) 50%, var(--panel) 100%);
  background-size: 200% 100%; animation: skel 1.4s infinite;
  border-radius: 8px; color: transparent !important;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =================================================================
   ==============  SKILL MARKETPLACE (2026-10 rewrite)  ==============
   ================================================================= */

/* Wallet pill (top-right) */
.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(236,72,153,.12));
  border: 1px solid var(--border-strong); font-size: 13px;
}
.wallet-pill .wallet-email { color: var(--text-dim); max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-pill .wallet-bal { font-weight: 700; font-family: 'JetBrains Mono', monospace;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; }

/* Category filter chips */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }

/* Skill grid card */
.skill-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin: 32px 0;
}
.skill-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.skill-card:hover {
  transform: translateY(-3px); border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(34,211,238,.3);
}
.skill-card .sk-emoji {
  font-size: 32px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(34,211,238,.3));
}
.skill-card .sk-head { display: flex; align-items: center; gap: 12px; }
.skill-card .sk-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.skill-card .sk-cat {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: rgba(148,163,184,.15); color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.skill-card .sk-tagline {
  color: var(--text-dim); font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.skill-card .sk-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
}
.sk-cost {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(236,72,153,.15));
  border: 1px solid var(--border-strong); color: var(--text);
  font-weight: 600;
}
.sk-runs { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.skill-card.cat-marketing .sk-emoji { filter: drop-shadow(0 4px 12px rgba(236,72,153,.35)); }
.skill-card.cat-design    .sk-emoji { filter: drop-shadow(0 4px 12px rgba(168,85,247,.35)); }
.skill-card.cat-dev       .sk-emoji { filter: drop-shadow(0 4px 12px rgba(34,211,238,.35)); }
.skill-card.cat-metaphysics .sk-emoji { filter: drop-shadow(0 4px 12px rgba(250,204,21,.35)); }
.skill-card.cat-productivity .sk-emoji { filter: drop-shadow(0 4px 12px rgba(34,197,94,.35)); }
.skill-card.cat-business   .sk-emoji { filter: drop-shadow(0 4px 12px rgba(249,115,22,.35)); }

/* Skill detail page - hero */
.sdp-hero {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 32px;
}
.sdp-hero .sk-emoji { font-size: 64px; }
.sdp-title { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.sdp-tagline { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.sdp-price {
  text-align: right; padding: 12px 20px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(236,72,153,.15));
  border: 1px solid var(--border-strong); min-width: 140px;
}
.sdp-price .price-num {
  font-size: 26px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1;
}
.sdp-price .price-lab { font-size: 11px; color: var(--text-dim); margin-top: 4px;
  text-transform: uppercase; letter-spacing: .5px; }
/* Free-launch anchor pricing: struck original + green "Free" */
.price-was { color: var(--text-dim); text-decoration: line-through; opacity: .6; font-weight: 500; }
.price-free { color: #34d399; font-weight: 700; }
.sk-cost .price-was { margin-right: 6px; opacity: .55; }
.sdp-price .price-lab .price-was { margin-right: 4px; }

/* Run panel */
.run-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px;
}
@media (max-width: 900px) { .run-panel { grid-template-columns: 1fr; } }
.rp-col {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.rp-title { font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text-dim); }
.rp-input {
  flex: 1; min-height: 240px; resize: vertical;
  background: #1a1b22; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px; line-height: 1.6;
}
.rp-input:focus { outline: none; border-color: var(--accent); }
.rp-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.rp-email {
  background: #1a1b22; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 14px;
}
.rp-out {
  flex: 1; min-height: 240px; overflow-y: auto; max-height: 500px;
  background: #1a1b22;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: 14px; line-height: 1.65;
  color: var(--text);
}
.rp-out .empty { color: var(--text-dim); font-style: italic; }
.rp-out pre { background: rgba(0,0,0,.3); padding: 10px 12px; border-radius: 6px;
  overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.rp-out code { font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 3px; }
.rp-out pre code { background: transparent; padding: 0; }
.rp-out h2, .rp-out h3 { margin-top: 20px; margin-bottom: 8px; }
.rp-out ul, .rp-out ol { padding-left: 24px; margin: 8px 0; }
.rp-out li { margin: 4px 0; }
.rp-out strong { color: #fff; }
.rp-actions { display: flex; gap: 10px; align-items: center; }
.rp-actions .btn { flex: 1; }
.rp-meta { font-size: 12px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer {
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-md); padding: 12px 16px; font-size: 13px;
  color: #fbbf24; margin-top: 16px;
}

/* Free-credit CTA */
.free-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 28px; margin: 24px 0;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(168,85,247,.15), rgba(236,72,153,.15));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
}
.free-banner .fb-title { font-weight: 700; font-size: 17px; }
.free-banner .fb-sub { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; }
.free-banner input {
  background: rgba(0,0,0,.35); border: 1px solid var(--border-strong);
  color: var(--text); padding: 9px 14px; border-radius: var(--radius-md);
  min-width: 220px; font-size: 14px;
}

/* Credits pack cards */
.pack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin: 24px 0;
}
.pack {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.pack:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.pack.recommended { border-color: rgba(236,72,153,.4);
  box-shadow: 0 20px 40px -20px rgba(236,72,153,.3); }
.pack .pk-badge {
  position: absolute; top: 12px; right: -32px;
  background: var(--grad); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 40px; transform: rotate(35deg);
  text-transform: uppercase; letter-spacing: .5px;
}
.pk-name { font-size: 14px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.pk-credits {
  font-size: 44px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1;
}
.pk-unit { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.pk-price {
  font-size: 24px; font-weight: 700; margin: 18px 0 12px;
  font-family: 'JetBrains Mono', monospace;
}
.pk-list { list-style: none; padding: 0; margin: 12px 0 20px; font-size: 13.5px;
  color: var(--text-dim); }
.pk-list li { padding: 4px 0; }
.pk-list li::before { content: '\2713'; color: var(--accent); margin-right: 8px; font-weight: 700; }
.pack .btn { width: 100%; justify-content: center; }

/* Wallet dashboard */
.wallet-card {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
}
@media (max-width: 720px) { .wallet-card { grid-template-columns: 1fr; } }
.wallet-stat .ws-label { font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: 4px; }
.wallet-stat .ws-value {
  font-size: 32px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1;
}
.wallet-stat .ws-sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-dim);
}
.empty-state .es-icon { font-size: 48px; opacity: .4; margin-bottom: 12px; }
.empty-state .es-title { font-size: 18px; font-weight: 600; color: var(--text); }
.empty-state .es-sub { font-size: 14px; margin-top: 6px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  padding: 12px 20px; border-radius: var(--radius-md);
  background: var(--panel); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  font-size: 14px; animation: slideIn .25s;
}
.toast.ok { border-color: rgba(34,197,94,.4); }
.toast.err { border-color: rgba(239,68,68,.4); }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } }
