/* ==========================================================
   TwTask — Design Tokens & Global
   Aesthetic: pure black + cyan accent, sans-serif, monospace nums
   ========================================================== */

.nav-bell {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.18s;
  padding: 0;
}
.nav-bell:hover {
  border-color: var(--accent);
  background: var(--bg-2);
}
.bell-icon { line-height: 1; }
.bell-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  border: 2px solid var(--bg);
}

/* notifications list */
.notif-item {
  display: flex; gap: 0.75rem; padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-2); }
.notif-item.unread { background: rgba(0,212,255,0.04); }
.notif-item .icon-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-item .body { flex: 1; min-width: 0; }
.notif-item .body .title { font-weight: 600; font-size: 0.9rem; }
.notif-item .body .text { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.15rem; }
.notif-item .body .time { color: var(--text-mute); font-size: 0.7rem; margin-top: 0.25rem; }
.notif-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}

/* trending carousel */
.trending-row {
  display: flex; gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
}
.trending-row::-webkit-scrollbar { height: 6px; }
.trending-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.trending-row > * { scroll-snap-align: start; flex-shrink: 0; }

/* kx shop grid */
.kx-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.kx-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.18s;
  display: flex; flex-direction: column;
}
.kx-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.kx-item .icon-box {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.kx-item .name { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.kx-item .desc { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; flex: 1; margin-bottom: 1rem; }
.kx-item .cost {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.kx-item .cost .price { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.kx-item .cost .price .u { font-size: 0.7rem; color: var(--text-dim); margin-left: 0.2rem; font-weight: 500; }

:root {
  --bg: #06070a;
  --bg-1: #0b0d12;
  --bg-2: #11141b;
  --bg-3: #181c26;
  --bg-elev: #1f242f;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e8ebf0;
  --text-dim: #8b93a3;
  --text-mute: #5b6473;
  --accent: #00d4ff;
  --accent-dim: #0099bb;
  --accent-glow: rgba(0, 212, 255, 0.18);
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(135deg, #00d4ff 0%, #00fff0 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,255,240,0.05) 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 1px 0 rgba(255,255,255,0.06) inset, 0 12px 40px rgba(0,212,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(circle at 15% 0%, rgba(0,212,255,0.07), transparent 40%), radial-gradient(circle at 85% 100%, rgba(0,212,255,0.04), transparent 40%); pointer-events: none; z-index: -1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-feature-settings: 'tabular-nums'; }
.num { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* ==========================================================
   Layout primitives
   ========================================================== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.row { display: flex; gap: 1rem; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 0.75rem; }
.gap-sm { gap: 0.5rem; }
.gap-lg { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--text-dim); }
.mute { color: var(--text-mute); }
.center { text-align: center; }
.cap { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--text-mute); font-weight: 600; }
.eyebrow { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* ==========================================================
   NAV
   ========================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6,7,10,0.75); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1320px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; user-select: none; }
.nav-brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #001017; font-weight: 800; font-size: 0.9rem; box-shadow: 0 0 24px var(--accent-glow); }
.nav-brand .name { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.nav-brand .name b { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.85rem; transition: color 0.2s; cursor: pointer; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-cta { padding: 0.55rem 1.1rem; border-radius: 6px; background: var(--accent); color: #001017; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; border: none; }
.nav-cta:hover { background: #00b8db; transform: translateY(-1px); }
.nav-cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.nav-cta.ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav-user { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem 0.4rem 0.4rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; }
.nav-user .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elev); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.75rem; color: var(--accent); }
.nav-user .bal { font-size: 0.8rem; color: var(--text); font-weight: 600; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn { padding: 0.7rem 1.2rem; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.18s; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; }
.btn.primary { background: var(--accent); color: #001017; }
.btn.primary:hover { background: #00b8db; transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.danger { background: rgba(248,113,113,0.12); color: var(--danger); border-color: rgba(248,113,113,0.3); }
.btn.danger:hover { background: rgba(248,113,113,0.2); }
.btn.success { background: rgba(52,211,153,0.12); color: var(--success); border-color: rgba(52,211,153,0.3); }
.btn.success:hover { background: rgba(52,211,153,0.2); }
.btn.sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn.block { width: 100%; justify-content: center; }

/* ==========================================================
   CARDS
   ========================================================== */
.card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; transition: all 0.2s; box-shadow: var(--shadow-card); }
.card:hover { border-color: var(--border-strong); }
.card.elev { background: var(--bg-2); }
.card.bordered { border: 1px solid var(--border-strong); }
.card.flat { background: transparent; box-shadow: none; }
.card.glow:hover { box-shadow: var(--shadow-hover); border-color: rgba(0,212,255,0.3); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

/* ==========================================================
   FORMS
   ========================================================== */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.field input, .field select, .field textarea { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.7rem 0.85rem; color: var(--text); font-family: inherit; font-size: 0.9rem; transition: border-color 0.18s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-1); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 0.7rem; color: var(--text-mute); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; user-select: none; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ==========================================================
   BADGES / TAGS
   ========================================================== */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--border); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.badge.accent { background: var(--accent-glow); border-color: rgba(0,212,255,0.3); color: var(--accent); }
.badge.success { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.3); color: var(--success); }
.badge.warn { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3); color: var(--warn); }
.badge.danger { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); color: var(--danger); }
.badge.dot { padding-left: 0.4rem; }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================
   TIER
   ========================================================== */
.tier { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; font-weight: 700; font-size: 0.7rem; font-family: 'JetBrains Mono', monospace; }
.tier.S { background: linear-gradient(135deg, #00d4ff, #00fff0); color: #001017; }
.tier.A { background: linear-gradient(135deg, #34d399, #00d4ff); color: #001017; }
.tier.B { background: rgba(52,211,153,0.2); color: var(--success); border: 1px solid rgba(52,211,153,0.4); }
.tier.C { background: rgba(0,212,255,0.1); color: var(--accent); border: 1px solid rgba(0,212,255,0.3); }
.tier.D { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid var(--border); }
.tier.E { background: rgba(255,255,255,0.02); color: var(--text-mute); border: 1px solid var(--border); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; padding: 5rem 0 6rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 2rem; max-width: 540px; line-height: 1.6; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stat .v { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.hero-stat .v .u { color: var(--accent); font-size: 0.9rem; margin-left: 0.2rem; }
.hero-stat .l { font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }

/* hero mock terminal */
.mock { background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: 12px; padding: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,0.4); position: relative; overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); }
.mock-dot.r { background: #f87171; }
.mock-dot.y { background: #fbbf24; }
.mock-dot.g { background: #34d399; }
.mock-title { font-size: 0.7rem; color: var(--text-mute); margin-left: 0.5rem; font-family: 'JetBrains Mono', monospace; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.mock-row:last-child { border-bottom: none; }
.mock-row .lbl { color: var(--text-dim); }
.mock-row .val { font-family: 'JetBrains Mono', monospace; color: var(--text); }
.mock-row .val.accent { color: var(--accent); }
.mock-row .val.success { color: var(--success); }

/* ==========================================================
   SECTION
   ========================================================== */
.section { padding: 5rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; gap: 2rem; flex-wrap: wrap; }
.section-head .left { max-width: 640px; }
.section-head h2 { margin-top: 0.5rem; }
.section-head p { color: var(--text-dim); margin-top: 0.75rem; font-size: 1.05rem; line-height: 1.6; }

/* ==========================================================
   TASK CARD
   ========================================================== */
.task-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; transition: all 0.2s; cursor: pointer; position: relative; overflow: hidden; }
.task-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,212,255,0.06); }
.task-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.task-card .head .id { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-mute); }
.task-card .head .act { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--bg-3); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.task-card h3 { font-size: 1rem; margin-bottom: 0.4rem; line-height: 1.3; }
.task-card .desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 1rem; min-height: 2.5rem; }
.task-card .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.task-card .reward { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.task-card .reward .u { font-size: 0.7rem; color: var(--text-dim); font-weight: 500; }
.task-card .meta { display: flex; gap: 0.5rem; align-items: center; }
.task-card .progress { width: 100%; height: 3px; background: var(--bg-3); border-radius: 999px; overflow: hidden; margin-top: 0.75rem; }
.task-card .progress .bar { height: 100%; background: var(--grad); transition: width 0.3s; }

/* ==========================================================
   STATS GRID
   ========================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-box { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.stat-box .lbl { font-size: 0.7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.stat-box .val { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-box .val .u { color: var(--accent); font-size: 0.9rem; margin-left: 0.2rem; }
.stat-box .delta { font-size: 0.75rem; color: var(--success); margin-top: 0.4rem; }

/* ==========================================================
   TABLE
   ========================================================== */
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th { text-align: left; padding: 0.75rem 1rem; color: var(--text-mute); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; border-bottom: 1px solid var(--border); }
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--bg-2); }
.table .id { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: 0.75rem; }

/* ==========================================================
   EMPTY
   ========================================================== */
.empty { text-align: center; padding: 4rem 2rem; color: var(--text-mute); }
.empty .icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty h3 { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.empty p { font-size: 0.85rem; }

/* ==========================================================
   TOAST
   ========================================================== */
.toast-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { padding: 0.85rem 1.1rem; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 8px; font-size: 0.85rem; color: var(--text); box-shadow: 0 12px 32px rgba(0,0,0,0.4); min-width: 240px; pointer-events: all; animation: slideIn 0.25s ease; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ==========================================================
   AUTH PAGE
   ========================================================== */
.auth-wrap { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.auth-card h2 { margin-bottom: 0.4rem; }
.auth-card .muted { margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-card .switch { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--text-dim); }
.auth-card .switch a { cursor: pointer; }
.auth-card .role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.auth-card .role-pick button { padding: 0.7rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); cursor: pointer; font-family: inherit; font-size: 0.85rem; transition: all 0.15s; }
.auth-card .role-pick button.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* ==========================================================
   MODAL
   ========================================================== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: 12px; padding: 1.5rem; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.modal h3 { margin-bottom: 1rem; }
.modal .modal-foot { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ==========================================================
   PAGE HEADER
   ========================================================== */
.page-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-header p { color: var(--text-dim); font-size: 0.95rem; }

/* ==========================================================
   WALLET
   ========================================================== */
.wallet-hero { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.wallet-hero .lbl { font-size: 0.7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.wallet-hero .balance { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; margin: 0.4rem 0; color: var(--text); }
.wallet-hero .balance .u { color: var(--accent); font-size: 1rem; margin-left: 0.4rem; }
.wallet-hero .actions { display: flex; gap: 0.5rem; }
.wallet-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.wallet-card .addr { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim); word-break: break-all; padding: 0.5rem; background: var(--bg-1); border-radius: 4px; margin-top: 0.5rem; }

/* ==========================================================
   FEATURE GRID
   ========================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.feature-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; transition: all 0.2s; }
.feature-card:hover { border-color: rgba(0,212,255,0.3); }
.feature-card .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.1rem; }
.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ==========================================================
   STEPS
   ========================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.step { padding: 2rem 1.5rem; border-right: 1px solid var(--border); }
.step:last-child { border-right: none; }
.step .n { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* ==========================================================
   PULSE
   ========================================================== */
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }
  .step:last-child { border-bottom: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 3rem 0; }
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .steps { grid-template-columns: 1fr; }
  .step { border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .wallet-hero { flex-direction: column; align-items: stretch; gap: 1rem; }
}
