/* Design System */
:root {
  --brand-primary: #6d5ef5; /* royal violet */
  --brand-accent: #19d3da;  /* aqua accent */
  --brand-dark: #0b0d12;
  --brand-darker: #07080b;
  --brand-light: #f6f7fb;
  --text-primary: #0f1222;
  --text-secondary: #576071;
  --text-on-dark: #e9ecf7;
  --border: #e6e8f0;
  --success: #18b87a;
  --warning: #ffb020;
  --danger: #f54e5e;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 30px rgba(13, 16, 35, 0.12);
  --shadow-2: 0 18px 50px rgba(13, 16, 35, 0.18);

  --maxw: 1180px;
}

/* Dark theme overrides */
.theme-dark {
  --brand-light: #0f1220;
  --text-primary: #e7eafd;
  --text-secondary: #a3acc4;
  --border: #1f2433;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, Helvetica, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--brand-darker), var(--brand-dark) 30%, #0e1017 100%);
}

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(10,12,20,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 28px; display:block; }
.logo-text { display:none; }
.nav a { color: #bfc8ea; text-decoration: none; font-weight: 600; font-size: 14px; position: relative; }
.nav a:hover { color: white; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; padding: 2px 6px; background: #ff7043; color: white; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.spacer { flex: 1; }
.search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: var(--text-on-dark);
  padding: 8px 12px; width: 240px;
}
.lang-select { background: rgba(255,255,255,0.06); color: #e7ecff; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 8px 8px; }
.theme-toggle { min-width: 40px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 400px at 20% -10%, rgba(109,94,245,0.35), transparent),
              radial-gradient(900px 300px at 80% 0%, rgba(25,211,218,0.25), transparent);
  padding: 64px 0 28px;
}
.hero h1 { color: white; font-size: 44px; line-height: 1.08; margin: 0 0 14px; }
.hero p { color: #cdd6ff; margin: 0 0 26px; max-width: 760px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  background: white; color: var(--text-primary); padding: 10px 16px; border-radius: 12px;
  border: 0; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn.primary { background: linear-gradient(135deg, var(--brand-primary), #8e7df7); color: white; }
.btn.ghost { background: rgba(255,255,255,0.06); color: #dfe6ff; border: 1px solid rgba(255,255,255,0.12); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 0; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 18px;
}
.card h3 { color: white; margin: 6px 0 6px; }
.card p { color: #bfc8ea; margin: 0 0 10px; min-height: 48px; }
.card a { color: var(--brand-accent); font-weight: 700; text-decoration: none; }

/* Content */
.content-wrap { background: white; border-radius: 22px 22px 0 0; padding: 34px 0 60px; margin-top: 26px; }
.theme-dark .content-wrap { background: #0f1220; }
.theme-dark .content h1, .theme-dark .content h2, .theme-dark .content h3, .theme-dark .prose p { color: var(--text-primary); }
.theme-dark .video-card, .theme-dark .graph-col, .theme-dark .pill, .theme-dark .node, .theme-dark table, .theme-dark th, .theme-dark td {
  background: #0f1220; border-color: var(--border); color: var(--text-primary);
}
.theme-dark thead th { background: #14182a; }
.theme-dark .chip { background: #14182a; color: #c7d2ff; }
.content { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.content h1, .content h2, .content h3 { color: var(--text-primary); }
.lead { color: var(--text-secondary); }
.prose p { line-height: 1.7; color: #303648; }
.muted { color: var(--text-secondary); }
.video-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.video-card { background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow: var(--shadow-1); overflow:hidden; }
.video-card .player { position:relative; padding-top:56.25%; background:#000; }
.video-card .player iframe, .video-card .player video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video-card .vt { padding:10px 12px; font-weight:700; }

.mini-map { margin:24px 0 32px; padding:16px; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow: var(--shadow-1); }
.mini-map svg { width:100%; height:auto; display:block; }
.mini-map figcaption { margin-top:12px; font-size:13px; color:var(--text-secondary); text-align:center; }
.mini-map svg .map-text { fill:#1f274a; }
.theme-dark .mini-map { background:#0f1220; border-color:var(--border); }
.theme-dark .mini-map figcaption { color:var(--text-secondary); }
.theme-dark .mini-map svg .map-text { fill:var(--text-primary); }
.mini-map svg .map-node { fill:#f3f4ff; stroke:#6d5ef5; stroke-width:2; }
.mini-map svg .map-node--alt { fill:#fff5d6; stroke:#f59f00; stroke-width:2; }
.mini-map svg .map-line { stroke:#c7d3ff; stroke-width:4; stroke-linecap:round; fill:none; }
.mini-map svg .map-line--optional { stroke-dasharray:6 8; }
.mini-map svg .map-text--small { font-size:12px; }
@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr;} }

/* Evolution Tree */
.graph-grid { display:grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap:16px; align-items:start; }
.graph-col { background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px; box-shadow: var(--shadow-1); min-height: 120px; }
.node { padding:6px 8px; border:1px solid var(--border); border-radius:8px; margin:6px 0; background:#f9fafb; cursor:pointer; }
.node:hover { background:#eef2ff; }
.edge { color:#888; font-size:12px; }

/* Skill Planner */
.pill { display:inline-block; padding:6px 10px; border:1px dashed var(--border); border-radius:999px; background:#fff; margin:4px; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
thead th { background: #f2f4fb; }

/* Dex pages */
.dex-layout {
  background: #f8f9ff;
  color: var(--text-primary);
  min-height: calc(100vh - 120px);
  padding-bottom: 80px;
}
.theme-dark .dex-layout { background: #0f1220; }
.dex-hero {
  padding: 52px 0 32px;
  border-bottom: 1px solid rgba(109, 94, 245, 0.18);
  background: linear-gradient(135deg, rgba(109, 94, 245, 0.16), transparent 40%), linear-gradient(225deg, rgba(25, 211, 218, 0.12), transparent 55%);
}
.dex-hero.compact { padding-top: 40px; }
.dex-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: flex-start;
}
.dex-hero.compact .container { grid-template-columns: minmax(0, 1fr); }
.dex-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-accent);
  margin: 0 0 12px;
}
.dex-hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.08;
}
.dex-secondary-name {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 600;
}
.dex-lead {
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 20px;
}
.dex-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dex-hero-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  border: 1px solid rgba(109, 94, 245, 0.18);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}
.dex-hero-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}
.dex-hero-panel dt { font-size: 13px; color: var(--text-secondary); }
.dex-hero-panel dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--brand-primary); }
.dex-panel-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.theme-dark .dex-hero {
  background: linear-gradient(135deg, rgba(109, 94, 245, 0.25), transparent 45%), linear-gradient(225deg, rgba(25, 211, 218, 0.18), transparent 60%);
  border-color: rgba(109, 94, 245, 0.35);
}
.theme-dark .dex-hero-panel {
  background: rgba(15, 18, 32, 0.94);
  border-color: rgba(109, 94, 245, 0.35);
}
.dex-filters { padding: 32px 0; }
.dex-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}
.dex-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.dex-filter-grid input,
.dex-filter-grid select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-primary);
  font-size: 15px;
}
.theme-dark .dex-filter-grid input,
.theme-dark .dex-filter-grid select {
  background: #14182a;
  border-color: rgba(109, 94, 245, 0.25);
  color: var(--text-primary);
}
.dex-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.dex-filter-actions.compare,
.dex-filter-actions.planner {
  justify-content: flex-end;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.dex-filter-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}
.dex-results { padding: 20px 0 40px; }
.dex-results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.dex-results-head h2 { margin: 0 0 6px; }
.dex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.dex-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(109, 94, 245, 0.18);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.theme-dark .dex-card {
  background: #121528;
  border-color: rgba(109, 94, 245, 0.35);
}
.dex-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.dex-card-image {
  position: relative;
  padding-top: 72%;
  background: linear-gradient(135deg, rgba(109, 94, 245, 0.12), rgba(25, 211, 218, 0.12));
}
.dex-card-image img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}
.dex-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}
.dex-card-body {
  padding: 16px 18px 18px;
  flex: 1;
}
.dex-card-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.dex-card-secondary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.dex-card-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.dex-card-meta dt { font-weight: 600; margin-bottom: 2px; }
.dex-card-meta dd { margin: 0; color: var(--text-primary); font-weight: 600; }
.dex-card-action {
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--brand-primary);
}
.dex-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(7, 8, 11, 0.55);
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.dex-fav-btn:hover { transform: scale(1.05); }
.dex-fav-btn.is-active {
  background: linear-gradient(135deg, #ff9d41, #ff6155);
  color: white;
}
.dex-empty {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px dashed rgba(109, 94, 245, 0.25);
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.theme-dark .dex-empty { background: rgba(18, 21, 40, 0.9); border-color: rgba(109, 94, 245, 0.35); }
.dex-table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(109, 94, 245, 0.2);
  background: white;
  box-shadow: var(--shadow-1);
}
.theme-dark .dex-table-wrap { background: #13162a; border-color: rgba(109, 94, 245, 0.35); }
.compare-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.compare-name img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}
.dex-remove {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(109, 94, 245, 0.35);
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
}
.dex-notice {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.dex-banner {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(109, 94, 245, 0.25);
  background: rgba(109, 94, 245, 0.08);
  color: var(--text-secondary);
  font-size: 14px;
}
.dex-banner a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}
.theme-dark .dex-banner {
  background: rgba(109, 94, 245, 0.16);
  border-color: rgba(109, 94, 245, 0.35);
}
.dex-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}
.dex-v2-layout.planner { grid-template-columns: minmax(0, 1fr); }
.dex-v2-side,
.dex-v2-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dex-v2-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(109, 94, 245, 0.18);
  box-shadow: var(--shadow-1);
  padding: 20px;
}
.theme-dark .dex-v2-card {
  background: #121528;
  border-color: rgba(109, 94, 245, 0.35);
}
.dex-v2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dex-v2-card-head h2 {
  margin: 0;
  font-size: 18px;
}
.dex-v2-card input[type="search"],
.dex-v2-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: white;
}
.theme-dark .dex-v2-card input[type="search"],
.theme-dark .dex-v2-card select {
  background: #14182a;
  border-color: rgba(109, 94, 245, 0.25);
  color: var(--text-primary);
}
.dex-v2-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}
.dex-v2-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(109, 94, 245, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}
.dex-v2-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(109, 94, 245, 0.08);
}
.dex-v2-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dex-v2-avatar-fallback {
  font-weight: 700;
  color: var(--brand-primary);
}
.dex-v2-list-body {
  min-width: 0;
}
.dex-v2-list-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dex-v2-list-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dex-v2-list-action {
  border: 1px solid rgba(109, 94, 245, 0.35);
  background: transparent;
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dex-v2-list-action:hover {
  background: rgba(109, 94, 245, 0.1);
}
.theme-dark .dex-v2-list-item {
  background: #14182a;
  border-color: rgba(109, 94, 245, 0.35);
}
.theme-dark .dex-v2-list-action {
  color: #cfd5ff;
}
.dex-v2-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.dex-v2-pill {
  border: none;
  background: rgba(109, 94, 245, 0.12);
  color: var(--brand-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.theme-dark .dex-v2-pill {
  background: rgba(109, 94, 245, 0.25);
  color: #dde1ff;
}
.dex-v2-table-wrapper {
  overflow-x: auto;
}
.dex-v2-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dex-v2-row-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(109, 94, 245, 0.1);
}
.dex-v2-row-name {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}
.dex-v2-row-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.dex-v2-form {
  display: grid;
  gap: 16px;
}
.dex-v2-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.dex-tip-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.dex-route-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--brand-primary);
}
.dex-route-arrow {
  color: var(--text-secondary);
}
.btn.small {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 10px;
}
.btn.ghost.small {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid rgba(109, 94, 245, 0.35);
}
.dex-detail-wrap { padding: 32px 0 40px; }
.dex-detail {
  display: grid;
  gap: 24px;
}
.dex-detail-hero {
  width: 100%;
  background: linear-gradient(135deg, rgba(109, 94, 245, 0.12), rgba(25, 211, 218, 0.12));
  border-radius: var(--radius);
  border: 1px solid rgba(109, 94, 245, 0.2);
  padding: 24px;
  display: flex;
  justify-content: center;
}
.dex-detail-hero img {
  max-width: 320px;
  width: 100%;
  object-fit: contain;
}
.dex-detail-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.dex-detail-meta dt { font-size: 13px; color: var(--text-secondary); }
.dex-detail-meta dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
.dex-detail-section {
  border-radius: var(--radius);
  border: 1px solid rgba(109, 94, 245, 0.18);
  background: white;
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
}
.theme-dark .dex-detail-section {
  background: #13162a;
  border-color: rgba(109, 94, 245, 0.35);
}
.dex-detail-section h3 { margin-top: 0; }
.dex-detail-evo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.dex-detail-list { margin: 0; padding-left: 18px; }
.dex-routes {
  display: grid;
  gap: 18px;
}
.dex-route {
  border-radius: var(--radius);
  border: 1px solid rgba(109, 94, 245, 0.18);
  background: white;
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}
.theme-dark .dex-route {
  background: #14182a;
  border-color: rgba(109, 94, 245, 0.35);
}
.dex-route header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}
.dex-route-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(109, 94, 245, 0.12);
  color: var(--brand-primary);
}
.dex-route-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.dex-radio-group {
  border: 1px solid rgba(109, 94, 245, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
}
.dex-radio-group legend { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.dex-radio-group label { font-size: 14px; display: flex; gap: 8px; align-items: center; color: var(--text-primary); }
.theme-dark .dex-radio-group {
  background: #14182a;
  border-color: rgba(109, 94, 245, 0.35);
}

/* Footer */
.site-footer { color: #bfc8ea; background: #0c0f17; border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer .row { display: flex; gap: 18px; align-items: center; padding: 20px 0; }
.site-footer a { color: #dbe4ff; text-decoration: none; }

/* Chips */
.chip { display:inline-block; padding:6px 10px; border-radius: 999px; background:#eef2ff; color:#3640a7; font-weight:700; font-size:12px; }

/* Utilities */
.stack-s { display:flex; gap:8px; flex-wrap:wrap; }
.stack-m { display:flex; gap:14px; flex-wrap:wrap; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }

/* Responsive */
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .search-input { width: 160px; }
  .dex-hero .container { grid-template-columns: 1fr; }
  .dex-grid { grid-template-columns: 1fr; }
  .dex-filter-grid { grid-template-columns: 1fr; }
  .dex-filter-actions.compare,
  .dex-filter-actions.planner {
    flex-direction: column;
    align-items: flex-start;
  }
}
