/* NEONPULSE — Soft Glass v2 (warm + gentle)
 * 调柔版:
 *  - 暖炭灰背景 (取代死黑)
 *  - 紫蓝主色 + 柔粉强调 (取代三色霓虹)
 *  - 柔阴影 + 大圆角 + 半透磨砂 (取代强玻璃 + 边框)
 *  - Inter 为主, mono 仅用于数字
 *  - 推文卡片用真实 mock 数据 + 圆头像
 */

:root {
  --bg: #f5f3ef;          /* 米白主背景 */
  --bg-2: #ffffff;        /* 卡片背景 */
  --bg-3: #faf8f4;        /* 嵌入背景 */
  --line: rgba(28, 27, 34, 0.06);   /* 极淡分隔 */
  --line-2: rgba(28, 27, 34, 0.10);
  --line-strong: rgba(28, 27, 34, 0.14);

  --text: #1c1b22;
  --text-dim: #5b5868;
  --text-mute: #9693a0;

  --primary: #5b6cd1;     /* 紫蓝主色 - 柔和 */
  --primary-soft: #a5b0e8;
  --accent: #f59e9e;      /* 柔粉强调 - 用于 hot/highlight */
  --success: #5cb486;     /* 柔绿 */
  --warn: #e0a96d;        /* 暖琥珀 */
  --danger: #d97a7a;      /* 柔红 */

  --grad: linear-gradient(135deg, #5b6cd1 0%, #8a7fc9 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,108,209,0.12) 0%, rgba(138,127,201,0.10) 100%);

  --shadow-sm: 0 1px 2px rgba(28,27,34,0.04);
  --shadow:    0 4px 16px rgba(28,27,34,0.06), 0 1px 3px rgba(28,27,34,0.04);
  --shadow-md: 0 8px 28px rgba(28,27,34,0.08), 0 2px 6px rgba(28,27,34,0.04);
  --shadow-lg: 0 16px 48px rgba(28,27,34,0.10);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(at 20% 10%, rgba(91,108,209,0.08) 0%, transparent 40%),
    radial-gradient(at 80% 80%, rgba(245,158,158,0.06) 0%, transparent 40%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ============ TOPBAR ============ */
.topbar {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-weight: 600;
}
.live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.topbar .right {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
}

/* ============ NAV ============ */
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 29px;
  z-index: 49;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow);
}
.brand-text strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--mono);
}
.nav-links {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a.active {
  color: var(--primary);
  background: rgba(91,108,209,0.08);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.balance {
  padding: 0.45rem 0.85rem;
  background: var(--bg-3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(91,108,209,0.25);
}
.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(91,108,209,0.35);
}
.btn-mini { padding: 0.4rem 0.8rem; font-size: 12px; }

/* ============ HERO (showcase 首页) ============ */
.hero-showcase {
  text-align: center;
  padding: 4.5rem 1.5rem 0;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  background-image:
    radial-gradient(at 20% 30%, rgba(91,108,209,0.10) 0%, transparent 50%),
    radial-gradient(at 80% 60%, rgba(245,158,158,0.10) 0%, transparent 55%),
    radial-gradient(at 50% 100%, rgba(91,108,209,0.05) 0%, transparent 60%);
}
.hero-showcase .hero-inner {
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-showcase h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero-showcase .sub {
  margin: 0 0 2.25rem;
  font-size: 1.05rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.7;
  color: var(--text-dim);
}
.hero-showcase .hero-actions {
  justify-content: center;
  margin-bottom: 3.5rem;
}
.hero-stats-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow:
    0 1px 2px rgba(91,108,209,0.06),
    0 8px 32px rgba(91,108,209,0.08),
    0 24px 48px rgba(28,27,34,0.04);
  max-width: 1100px;
  margin: 0 auto 3rem;
  position: relative;
}
.hero-stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  pointer-events: none;
}
.hero-stats-card .card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(92,180,134,0.5);
}
.hero-stats-card .card-foot {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.hero-stats-card .card-foot strong { color: var(--text); font-weight: 600; }

.platform-stats {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  max-width: none;
  border-top: none;
  padding-top: 0;
  align-content: center;
  position: relative;
}
.platform-stats .stat {
  text-align: center;
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
}
.platform-stats .stat:last-child {
  border-right: none;
}
.platform-stats .num {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1;
  font-family: var(--mono);
  background: linear-gradient(180deg, var(--text) 0%, #4a4a55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.platform-stats .lbl {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============ ENTRY GRID (首页入口) ============ */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.entry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  color: inherit;
}
.entry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.entry-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.entry-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.entry-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.entry-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.entry-pill {
  font-size: 11px;
  padding: 0.2rem 0.6rem;
  background: var(--bg-3);
  color: var(--text-dim);
  border-radius: 999px;
  font-weight: 500;
}
.entry-arrow {
  font-size: 1.4rem;
  color: var(--text-mute);
  transition: all 0.3s;
}
.entry-card:hover .entry-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* ============ FLOW GRID ============ */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.flow-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s;
}
.flow-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.flow-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.flow-step h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.flow-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-mute);
  align-self: center;
}

/* ============ CTA Banner ============ */
.cta-banner {
  background: linear-gradient(135deg, rgba(91,108,209,0.08) 0%, rgba(245,158,158,0.06) 100%), var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.cta-banner p {
  color: var(--text-dim);
  font-size: 15px;
}
.cta-actions {
  display: flex;
  gap: 0.75rem;
}

/* ============ Tier extra ============ */
.tier-reward {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}

@media (max-width: 1024px) {
  .platform-stats { grid-template-columns: repeat(2, 1fr); }
  .platform-stats .stat:nth-child(2) { border-right: none; }
  .platform-stats .stat:nth-child(1),
  .platform-stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .entry-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hero-showcase { padding-top: 2.5rem; }
  .hero-showcase .hero-actions { margin-bottom: 2.5rem; }
  .entry-card { grid-template-columns: auto 1fr; padding: 1.25rem; }
  .entry-arrow { display: none; }
  .cta-banner { padding: 2rem 1.5rem; }
  .hero-stats-card { padding: 1.25rem; margin-bottom: 2rem; border-radius: var(--radius-md); }
}

/* ============ HERO (for other pages - kept original) ============ */
.hero {
  max-width: 1320px;
  margin: 2.5rem auto 2rem;
  padding: 0 1.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(91,108,209,0.08);
  color: var(--primary);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.stat .lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Hero card (mock tweet) */
.hero-card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.hero-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.hero-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(91,108,209,0.08);
  color: var(--primary);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hero-card .tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-card .id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}
.hero-card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.hero-card .row:last-of-type { border-bottom: none; }
.hero-card .k {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.hero-card .v {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}
.hero-card .v.cyan { color: var(--primary); }
.hero-card .progress {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.hero-card .progress .k { margin-bottom: 0.5rem; }
.hero-card .progress-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}
.hero-card .progress-fill {
  height: 100%;
  width: 68%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.6s;
}
.hero-card .progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ============ SECTION ============ */
section {
  max-width: 1320px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============ CATEGORY TABS ============ */
.cat-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cat-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cat-tab:hover { background: var(--bg-3); color: var(--text); }
.cat-tab.active {
  background: var(--text);
  color: #fff;
}
.cat-tab .count {
  font-family: var(--mono);
  font-size: 10px;
  padding: 0.1rem 0.45rem;
  background: rgba(91,108,209,0.1);
  border-radius: 999px;
  color: var(--primary);
}
.cat-tab.active .count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ============ TASK GRID ============ */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.task {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.task:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.task-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.task-type.like     { background: rgba(220,140,140,0.12); color: var(--danger); }
.task-type.comment  { background: rgba(91,108,209,0.10);  color: var(--primary); }
.task-type.quote    { background: rgba(224,169,109,0.14); color: var(--warn); }
.task-type.repost   { background: rgba(92,180,134,0.12);  color: var(--success); }
.task-type.follow   { background: rgba(138,127,201,0.12); color: #8a7fc9; }
.task-type.register { background: rgba(28,27,34,0.06);    color: var(--text-dim); }
.task-tier {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--warn);
  font-size: 12px;
}
.task-tier .star { opacity: 0.2; }
.task-tier .star.on { opacity: 1; }
.task h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text);
  flex: 1;
}
.task-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.task-title-link:hover { color: var(--primary); }
.task-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.task-meta .k {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.task-meta .v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.task-meta .v.prize { color: var(--primary); }
.task-progress { margin-bottom: 1rem; }
.task-progress .bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.task-progress .fill {
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
}
.task-progress .label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.task-action {
  width: 100%;
  padding: 0.7rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  margin-top: auto;
}
.task-action:hover {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(91,108,209,0.3);
}

/* ============ TIER LADDER ============ */
.tier-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.tier {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.tier:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tier .rank {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.tier .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.tier .req {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}
.tier.current {
  background: var(--grad-soft);
  border-color: var(--primary-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tier.current .rank { color: var(--primary); }
.tier.current .name { color: var(--primary); }
.tier .badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ============ WORKBENCH / DASH ============ */
.dash-grid {
  max-width: 1320px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}
.dash-side {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 110px;
}
.dash-side h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
  font-family: var(--mono);
}
.dash-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.15rem;
  transition: all 0.2s;
}
.dash-side a:hover { background: var(--bg-3); color: var(--text); }
.dash-side a.active {
  background: var(--grad-soft);
  color: var(--primary);
  font-weight: 600;
}
.dash-side .badge {
  background: var(--bg-3);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 10px;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.dash-side a.active .badge {
  background: var(--primary);
  color: #fff;
}

/* ============ PANELS ============ */
.panel {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.panel-head h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.panel-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 0.25rem 0.6rem;
  background: var(--bg-3);
  border-radius: 999px;
}

/* ============ FORMS ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.field input, .field select, .field textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-3);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91,108,209,0.1);
}
.field textarea { min-height: 80px; resize: vertical; }

/* ============ SETTLE PREVIEW ============ */
.settle-preview {
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
}
.sp-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 13px;
  color: var(--text-dim);
}
.sp-row span:last-child { color: var(--text); font-family: var(--mono); font-weight: 600; }
.sp-total {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}
.sp-total span { color: var(--text); font-weight: 700; font-size: 14px; }
.sp-total span:last-child { color: var(--primary); font-size: 1.05rem; }

/* ============ FOOTER ============ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.foot-brand p {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.6;
}
.foot-col h5 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.85rem;
  font-family: var(--mono);
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.5rem; }
.foot-col a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--primary); }
.foot-bottom {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--mono);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar-inner { font-size: 11px; padding: 0.5rem 1rem; }
  .topbar .right span:nth-child(2) { display: none; }
  .nav { position: static; }
  .nav-inner { flex-wrap: wrap; gap: 1rem; padding: 1rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .nav-actions { margin-left: auto; }
  .hero { margin: 1.5rem auto; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  section { margin: 2.5rem auto; }
  .task-grid { grid-template-columns: 1fr; }
  .task-meta { grid-template-columns: repeat(2, 1fr); }
  .tier-ladder { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .foot-bottom { flex-direction: column; gap: 0.5rem; }
}