:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5fbf8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --line: rgba(19, 74, 62, 0.24);
  --text: #11201c;
  --muted: #4f625c;
  --faint: #6f837d;
  --mint: #087f64;
  --teal: #0ea58d;
  --yellow: #c99500;
  --warning-bg: rgba(255, 247, 218, 0.82);
  --warning-line: rgba(201, 149, 0, 0.22);
  --warning-text: #5d6f68;
  --red: #d95050;
  --red-soft: #fff0f0;
  --danger-text: #713333;
  --shadow: 0 18px 50px rgba(23, 70, 55, 0.13);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07110f;
  --bg-2: #0d1b18;
  --panel: rgba(12, 28, 24, 0.9);
  --panel-solid: #0c1c18;
  --line: rgba(154, 205, 192, 0.18);
  --text: #edf8f4;
  --muted: #a8bbb5;
  --faint: #70827c;
  --mint: #54d6b8;
  --teal: #2cc7aa;
  --yellow: #ffd359;
  --warning-bg: rgba(255, 211, 89, 0.14);
  --warning-line: rgba(255, 211, 89, 0.44);
  --warning-text: #f4ead2;
  --red: #ff7b7b;
  --red-soft: rgba(255, 123, 123, 0.12);
  --danger-text: #ffd7d7;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 173, 134, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(255, 214, 89, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg), #f7fcfa 54%, #ffffff);
  color: var(--text);
  font-family: "Inter", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.5;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 173, 134, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(255, 214, 89, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--bg), #0a1815 54%, #060d0b);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(15, 90, 74, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 90, 74, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

:root[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(143, 230, 208, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 230, 208, 0.07) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(8, 127, 100, 0.42);
  background: linear-gradient(135deg, rgba(17, 180, 140, 0.18), rgba(255, 214, 89, 0.3));
  border-radius: 8px;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.section-kicker,
.view-state,
.resource-meta,
.tag,
.site-footer {
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.top-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}

.top-nav a:hover {
  border-color: var(--line);
  color: var(--text);
}

.top-nav a.active {
  border-color: rgba(8, 127, 100, 0.34);
  color: var(--mint);
}

.site-controls {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.control-button {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(23, 70, 55, 0.08);
}

.control-button:hover,
.control-button:focus-visible {
  border-color: rgba(8, 127, 100, 0.44);
  color: var(--mint);
}

.language-control {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  gap: 7px;
  min-width: 116px;
  padding: 0 11px;
}

.language-globe {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  display: grid;
  min-width: 136px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option.active {
  background: rgba(8, 127, 100, 0.1);
  color: var(--mint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  min-height: 520px;
  padding: 48px 0 22px;
}

.tutorial-hero,
.page-hero {
  display: grid;
  gap: 24px;
  padding: 54px 0 30px;
}

.tutorial-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: center;
  min-height: 520px;
}

.hero-visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.beginner-checklist {
  grid-column: 1 / -1;
  align-self: stretch;
}

.page-hero {
  min-height: 280px;
  align-items: end;
}

.tutorial-hero p,
.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.inline-links a,
.topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  border: 1px solid rgba(8, 127, 100, 0.32);
  background: rgba(8, 127, 100, 0.09);
  color: var(--mint);
}

.secondary-action,
.inline-links a,
.topic-link {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.inline-links a:hover,
.topic-link:hover {
  border-color: rgba(201, 149, 0, 0.36);
}

.beginner-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.warning-strip,
.topic-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 6px 0 40px;
  padding: 16px 18px;
  border: 1px solid var(--warning-line);
  background: var(--warning-bg);
  border-radius: 8px;
}

.warning-strip strong,
.topic-note strong {
  color: var(--yellow);
  white-space: nowrap;
}

.warning-strip span,
.topic-note span {
  color: var(--warning-text);
}

.benefit-note {
  border-color: rgba(8, 127, 100, 0.26);
  background: rgba(8, 127, 100, 0.08);
}

:root[data-theme="dark"] .benefit-note {
  border-color: rgba(84, 214, 184, 0.42);
  background: rgba(84, 214, 184, 0.13);
}

:root[data-theme="dark"] .benefit-note strong {
  color: #8ff0d6;
}

:root[data-theme="dark"] .benefit-note span {
  color: #e6fbf4;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid .section-heading,
.topic-grid-section .section-heading {
  grid-column: 1 / -1;
}

.guide-card,
.topic-grid a {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.guide-card {
  min-height: 340px;
  padding: 22px;
}

.guide-card span,
.topic-grid span {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--yellow), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-steps {
  display: grid;
  gap: 12px;
}

.mini-steps div {
  padding: 12px;
  border: 1px solid rgba(8, 127, 100, 0.16);
  background: rgba(246, 251, 249, 0.78);
  border-radius: 8px;
}

:root[data-theme="dark"] .mini-steps div {
  border-color: rgba(84, 214, 184, 0.3);
  background: rgba(84, 214, 184, 0.08);
}

.mini-steps strong {
  display: block;
  margin-bottom: 6px;
}

.text-link {
  color: var(--red);
  font-weight: 900;
  font-size: 1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid rgba(8, 127, 100, 0.18);
  background: #11201c;
  border-radius: 8px;
  color: #fff;
  content: "了解什麼是 KYC";
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(17, 32, 28, 0.18);
}

.danger-text {
  color: var(--red);
  font-weight: 900;
}

.danger-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 80, 80, 0.3);
  background: var(--red-soft);
  border-radius: 8px;
  color: var(--danger-text);
}

.danger-note strong {
  color: var(--red);
  white-space: nowrap;
}

.guide-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.action-hint {
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid rgba(217, 156, 0, 0.46);
  background: linear-gradient(135deg, rgba(255, 248, 205, 0.96), rgba(255, 255, 248, 0.88));
  border-radius: 8px;
  color: #43534f;
  font-size: 0.98rem;
  line-height: 1.55;
  box-shadow: 0 16px 40px rgba(179, 127, 0, 0.12);
}

.action-hint strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(217, 156, 0, 0.14);
  color: #b88600;
  font-size: 0.92rem;
  white-space: nowrap;
}

:root[data-theme="dark"] .action-hint {
  border-color: rgba(245, 185, 66, 0.52);
  background: linear-gradient(135deg, rgba(116, 84, 0, 0.34), rgba(28, 47, 41, 0.82));
  color: rgba(236, 250, 245, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .action-hint strong {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd166;
}

.guide-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(8, 127, 100, 0.36);
  background: rgba(8, 127, 100, 0.1);
  border-radius: 8px;
  color: var(--mint);
  font-weight: 800;
}

.guide-primary:hover {
  border-color: rgba(8, 127, 100, 0.58);
  background: rgba(8, 127, 100, 0.14);
}

.guide-officials {
  margin-top: 0;
}

.guide-officials a {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.exchange-button-groups {
  display: grid;
  gap: 12px;
}

.exchange-button-groups small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.logo-links a {
  gap: 7px;
}

.logo-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

:root[data-theme="dark"] img[src$="okx.svg"] {
  content: url("assets/logos/okx-white.svg");
}

.lesson-layout {
  padding-bottom: 56px;
}

.lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 54px 0 26px;
}

.lesson-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.lesson-hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.lesson-content,
.stablecoin-pair {
  display: grid;
  gap: 14px;
}

.lesson-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lesson-content article,
.stablecoin-pair article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-content h2,
.stablecoin-pair h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.lesson-content p,
.stablecoin-pair p {
  color: var(--muted);
}

.lesson-alert {
  margin: 0 0 14px;
}

.network-guide {
  margin-top: 18px;
}

.network-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.network-filter-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.network-filter-button:hover {
  border-color: rgba(8, 127, 100, 0.42);
  color: var(--mint);
}

.network-filter-button.active {
  border-color: rgba(201, 149, 0, 0.52);
  background: linear-gradient(135deg, rgba(255, 211, 89, 0.24), rgba(63, 240, 189, 0.16));
  color: var(--text);
  box-shadow: 0 10px 26px rgba(201, 149, 0, 0.12);
}

.network-filter-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 750;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.network-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.network-grid article.is-recommended {
  border-color: rgba(201, 149, 0, 0.62);
  box-shadow: 0 18px 42px rgba(201, 149, 0, 0.16);
  transform: translateY(-2px);
}

.network-grid article.is-muted {
  opacity: 0.48;
}

.network-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.network-card-head img,
.network-logo-stack {
  width: 38px;
  height: 38px;
}

.network-card-head img {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.network-logo-stack {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
}

.network-logo-stack img {
  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  box-shadow: 0 7px 16px rgba(23, 70, 55, 0.12);
}

.network-logo-stack img:nth-child(1) {
  top: 0;
  left: 0;
}

.network-logo-stack img:nth-child(2) {
  top: 0;
  right: 0;
}

.network-logo-stack img:nth-child(3) {
  bottom: 0;
  left: 7px;
}

.network-card-head strong {
  display: block;
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.network-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 8px;
}

.network-badges span {
  padding: 5px 9px;
  border: 1px solid rgba(8, 127, 100, 0.2);
  border-radius: 999px;
  background: rgba(14, 165, 141, 0.08);
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 850;
}

.network-grid article.is-recommended .network-badges span {
  border-color: rgba(201, 149, 0, 0.42);
  background: rgba(255, 211, 89, 0.18);
  color: var(--yellow);
}

.network-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.network-grid b {
  color: var(--text);
}

.lesson-bottom-note {
  margin-top: 18px;
}

.stablecoin-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stablecoin-pair img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.stablecoin-pair a {
  color: var(--mint);
  font-weight: 800;
}

.topic-grid-section {
  margin-top: 72px;
}

.seo-section {
  margin-top: 72px;
}

.seo-keyword-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seo-keyword-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-keyword-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.seo-keyword-grid p {
  color: var(--muted);
}

.seo-keyword-grid a {
  align-self: end;
  color: var(--mint);
  font-weight: 800;
}

.seo-article-layout {
  padding-bottom: 56px;
}

.seo-article-grid,
.seo-steps,
.comparison-table {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.seo-article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-steps,
.comparison-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-article-grid article,
.seo-steps article,
.comparison-table div,
.cta-band {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-article-grid h2,
.seo-steps h2,
.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.seo-article-grid p,
.seo-steps p,
.comparison-table span,
.cta-band p {
  color: var(--muted);
}

.seo-article-grid a,
.cta-band a {
  color: var(--mint);
  font-weight: 800;
}

.seo-steps span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 900;
}

.comparison-table strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
}

.cta-band {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid a {
  display: grid;
  gap: 6px;
  min-height: 148px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  --_tbo: 0;
}

.topic-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(63, 240, 189, 0.5), rgba(255, 211, 89, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--_tbo);
  pointer-events: none;
}

.topic-grid strong {
  font-size: 1.06rem;
}

.directory-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.directory-tools .search-shell,
.directory-tools .quick-tags {
  max-width: none;
}

.single-directory {
  margin-bottom: 54px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.keep-together {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.hero p {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  min-height: 58px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(8, 127, 100, 0.34);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .search-shell {
  border-color: rgba(154, 205, 192, 0.28);
  background: var(--panel);
}

.search-icon {
  color: var(--yellow);
  font-size: 1.4rem;
}

#search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

#search-input::placeholder {
  color: var(--faint);
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  color: var(--text);
  border-color: rgba(8, 127, 100, 0.3);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
  margin-top: 16px;
}

.chip,
.category-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
}

.chip {
  padding: 8px 11px;
  border-radius: 999px;
}

.chip:hover,
.chip.active,
.category-button:hover,
.category-button.active {
  border-color: rgba(8, 127, 100, 0.36);
  background: rgba(8, 127, 100, 0.1);
  color: var(--text);
}

:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .category-button {
  border-color: rgba(154, 205, 192, 0.28);
  background: rgba(237, 248, 244, 0.06);
  color: #d8e8e2;
}

:root[data-theme="dark"] .chip:hover,
:root[data-theme="dark"] .chip.active,
:root[data-theme="dark"] .category-button:hover,
:root[data-theme="dark"] .category-button.active {
  border-color: rgba(84, 214, 184, 0.58);
  background: rgba(84, 214, 184, 0.16);
  color: #ffffff;
}

.hero-panel,
.sticky-box,
.resource-card,
.starter-steps article {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  padding: 18px;
  border-radius: 8px;
}

.panel-header,
.section-heading,
.card-top,
.card-actions,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header span {
  color: var(--muted);
}

.panel-header .checklist-title {
  color: var(--mint);
  font-size: 1.22rem;
  font-weight: 900;
}

.focus-list {
  display: grid;
  gap: 10px;
}

.focus-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.focus-list a:hover {
  border-color: rgba(201, 149, 0, 0.34);
}

.focus-list span,
.resource-category {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
}

.focus-list small {
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-strip div {
  padding: 18px;
  background: var(--panel-solid);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 4px;
  color: var(--mint);
  font-size: 1.35rem;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sticky-box {
  position: sticky;
  top: 18px;
  padding: 16px;
  border-radius: 8px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

.category-button span:last-child {
  color: var(--faint);
  font-size: 0.8rem;
}

.section-heading {
  margin-bottom: 18px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  display: flex;
  min-height: 266px;
  padding: 18px;
  border-radius: 12px;
  flex-direction: column;
}

.resource-card.featured {
  border-color: rgba(201, 149, 0, 0.42);
  position: relative;
  overflow: hidden;
}

.resource-card.featured::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 211, 89, 0.06), transparent, rgba(63, 240, 189, 0.04), transparent);
  animation: card-shine 8s linear infinite;
  pointer-events: none;
}

@keyframes card-shine {
  to { transform: rotate(360deg); }
}

:root[data-theme="dark"] .resource-card {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(84, 214, 184, 0.06);
}

.resource-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.resource-logo {
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid rgba(19, 74, 62, 0.26);
  background: var(--panel-solid);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(23, 70, 55, 0.12);
}

:root[data-theme="dark"] .resource-logo {
  border-color: rgba(154, 205, 192, 0.22);
  background: rgba(237, 248, 244, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.fallback-logo {
  display: grid;
  color: var(--mint);
  font-weight: 800;
  place-items: center;
}

.resource-card h3 {
  margin: 8px 0 8px;
  font-size: 1.1rem;
}

.resource-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-meta {
  margin-top: auto;
  font-size: 0.84rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag {
  padding: 5px 7px;
  border: 1px solid rgba(8, 127, 100, 0.28);
  border-radius: 999px;
  background: rgba(239, 249, 245, 0.96);
  color: #3f5750;
  font-size: 0.76rem;
}

:root[data-theme="dark"] .tag {
  border-color: rgba(84, 214, 184, 0.36);
  background: rgba(84, 214, 184, 0.13);
  color: #dffbf3;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(8, 127, 100, 0.28);
  border-radius: 8px;
  color: var(--mint);
  font-weight: 700;
}

.topic-link {
  min-height: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.visit-link:hover {
  background: rgba(8, 127, 100, 0.08);
}

.empty-state {
  padding: 44px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 6px;
  color: var(--text);
}

.starter-band,
.community-band {
  display: grid;
  gap: 24px;
  margin-top: 72px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.starter-band {
  grid-template-columns: 0.9fr 1.6fr;
}

.starter-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.starter-steps article {
  padding: 16px;
  border-radius: 8px;
}

.starter-steps span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 800;
}

.starter-steps strong {
  display: block;
  margin-bottom: 8px;
}

.starter-steps p,
.community-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.community-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 42px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-actions a {
  padding: 10px 12px;
  border: 1px solid rgba(201, 149, 0, 0.3);
  border-radius: 8px;
  color: var(--yellow);
  font-weight: 700;
}

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--mint), rgba(255, 211, 89, 0.5), transparent) 1;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .tutorial-hero,
  .section-grid,
  .starter-band,
  .community-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-panel {
    align-self: stretch;
  }

  .filters {
    overflow: auto;
  }

  .sticky-box {
    position: static;
  }

  .category-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-button {
    min-width: 188px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid,
  .topic-grid,
  .lesson-content,
  .stablecoin-pair,
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .stats-strip,
  .starter-steps,
  .resource-grid,
  .guide-grid,
  .seo-keyword-grid,
  .seo-article-grid,
  .seo-steps,
  .comparison-table,
  .topic-grid,
  .lesson-content,
  .stablecoin-pair,
  .network-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-bottom: 36px;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(2.3rem, 14vw, 3.7rem);
  }

  .search-shell {
    min-height: 54px;
  }

  .starter-band,
  .community-band {
    padding: 18px;
  }

  .tutorial-hero,
  .page-hero {
    padding-top: 24px;
  }

  .warning-strip,
  .topic-note {
    flex-direction: column;
  }
}

/* GSAP-reveal: initial hidden state applied by JS after GSAP loads.
   Non-JS visitors never get this class, so content remains visible. */
.gsap-reveal {
  opacity: 0;
}

/* Accessible reduced-motion fallback override */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gsap-reveal {
    opacity: 1 !important;
  }
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  place-items: center;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(7, 17, 15, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 11;
  width: min(320px, 85vw);
  height: 100vh;
  padding: 24px;
  background: var(--panel-solid);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
}

.mobile-nav-panel a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: rgba(8, 127, 100, 0.1);
  color: var(--mint);
}

.mobile-nav-close {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

@media (max-width: 680px) {
  .mobile-menu-toggle {
    display: grid;
  }

  .top-nav {
    display: none !important;
  }
}
