:root {
  --blue: #1652f0;
  --blue-dark: #0b45d6;
  --ink: #0a0b0d;
  --heading: #050f19;
  --body: #0a0b0d;
  --muted: #5b616e;
  --line: rgba(91, 97, 110, 0.2);
  --search: #eef0f3;
  --search-border: #d9dde3;
  --alert: #fff5f6;
  --sidebar-line: #f1f3f5;
  --sans: CoinbaseSans, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --display: CoinbaseDisplay, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --content: 1228px;
  --footer: 1376px;
  --side: 393px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

::selection {
  background: #d6e2ff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--content), 100%);
  max-width: var(--content);
  min-width: 0;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 20px;
  color: #0052ff;
  line-height: 0;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg {
  display: block;
  width: 150px;
  height: 20px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool {
  position: relative;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 1000px;
  background: var(--search);
  color: #0a0b0d;
}

.icon-btn:hover {
  background: #e4e7ec;
}

.signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-left: 12px;
  padding: 0 32px;
  border: 1px solid var(--blue);
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 18.4px;
  white-space: nowrap;
}

.signin:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: rgba(91, 97, 110, 0.2) 0 0 0 1px, 0 8px 24px rgba(16, 24, 40, 0.12);
  z-index: 40;
}

.popover a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.popover a:hover {
  background: var(--search);
}

.page {
  padding-top: 40px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 17px;
  border: 1px solid var(--search-border);
  border-radius: 1000px;
  background: var(--search);
}

.icon-btn svg,
.search-icon,
.search-icon svg,
.sparkle,
.sparkle svg {
  width: 18px;
  height: 18px;
}

.search-icon,
.sparkle {
  display: grid;
  place-items: center;
  flex: none;
  color: #5b616e;
}

.sparkle {
  color: #0052ff;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 16px 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
}

.search input::placeholder {
  color: #7d8796;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: rgba(91, 97, 110, 0.2) 0 0 0 1px, 0 12px 32px rgba(16, 24, 40, 0.12);
  z-index: 20;
}

.search-hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.search-hit:hover,
.search-hit:focus-visible {
  background: var(--search);
}

.search-hit strong {
  font-size: 14px;
  font-weight: 600;
}

.search-hit span,
.search-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.search-empty {
  margin: 0;
  padding: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  column-gap: 0;
  align-items: start;
}

h1 {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  line-height: 46px;
}

h2 {
  margin: 30px 0 0;
  color: var(--heading);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}

h3 {
  margin: 0 0 16px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}

.lede,
.section-copy,
.quiet {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

h1 + .lede {
  margin-top: 50px;
}

.lede + .lede {
  margin-top: 20px;
}

.section-copy {
  margin-top: 20px;
}

.quiet {
  margin-bottom: 16px;
}

.text-link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 16px;
  border-radius: 16px;
  background: var(--alert);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.alert svg {
  flex: none;
  color: #e5484d;
}

.alert p {
  margin: 0;
}

.alert a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
}

.alert a:hover {
  text-decoration: underline;
}

.anchor {
  scroll-margin-top: 80px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-top: 30px;
}

.split-col:first-child {
  padding-right: 28px;
}

.split-col + .split-col {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step) ". ";
}

.card-box {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 16px;
  border-radius: 4px;
  background: #fff;
  box-shadow: rgba(91, 97, 110, 0.2) 0 0 0 1px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.card-box.center {
  min-width: 200px;
  text-align: center;
}

.card-box .line {
  display: block;
}

.card-box .line + .line {
  margin-top: 20px;
}

.card-box a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.card-box a:hover {
  color: var(--blue);
}

.rule {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--line);
}

.helpful {
  padding: 8px 0;
  text-align: center;
}

.helpful > p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.helpful-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.helpful-actions button {
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.helpful-actions button:hover {
  background: #f7f8fa;
}

.helpful-actions button.is-selected {
  border-color: var(--blue);
  color: var(--blue);
}

.helpful-thanks {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.assist h2 {
  margin: 0 0 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: var(--ink);
}

.chat-launch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.chat-launch strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.chat-launch small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.chat-bubble {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 1000px;
  background: var(--search);
  color: #5b616e;
}

.chat-panel {
  max-width: 440px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: rgba(91, 97, 110, 0.2) 0 0 0 1px;
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-panel-head strong {
  font-size: 14px;
  font-weight: 700;
}

.chat-panel-head button {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.chat-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
}

.chat-panel a {
  color: var(--blue);
  font-weight: 500;
}

.aside {
  margin-top: 64px;
  padding-left: 30px;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid var(--sidebar-line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue);
}

.toc .num {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.site-footer {
  padding: 64px 0 80px;
}

.site-footer .wrap {
  width: min(var(--footer), 100%);
  max-width: var(--footer);
}

.footer-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}

.foot-brand,
.foot-col,
.foot-links,
.foot-links li {
  min-width: 0;
  max-width: 100%;
}

.tagline,
.copy {
  margin: 20px 0 0;
  color: #5b616e;
  font-size: 14.3px;
  font-weight: 500;
  line-height: 19.8px;
}

.social {
  margin: 2px 0 0;
  color: #5b616e;
  font-size: 14.3px;
  font-weight: 500;
  line-height: 19.8px;
}

.social a,
.social span {
  color: #5b616e;
  font-weight: 500;
}

.social span {
  margin: 0 6px;
}

.foot-label {
  margin: 32px 0 8px;
  color: #0a0b0d;
  font-size: 14.3px;
  font-weight: 700;
  line-height: 19.8px;
}

.foot-col .foot-label:first-child {
  margin-top: 0;
}

.foot-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-block;
  max-width: 100%;
  padding: 1px 0;
  color: #5b616e;
  font-size: 14.3px;
  font-weight: 500;
  line-height: 19.8px;
  overflow-wrap: anywhere;
}

.foot-links a:hover,
.social a:hover {
  color: #0a0b0d;
  text-decoration: underline;
}

.wordmark {
  display: block;
  width: 99px;
  max-width: 100%;
  height: 18px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

.wordmark svg {
  display: block;
  width: 99px;
  height: 18px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .aside {
    margin-top: 8px;
    padding-left: 0;
  }

  .toc a {
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  h1 {
    font-size: 30px;
    line-height: 38px;
  }

  h2,
  h3 {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 520px) {
  .account-btn {
    display: none;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding-inline: 16px;
  }

  .signin {
    margin-left: 4px;
    padding: 0 16px;
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-col:first-child {
    padding-right: 0;
  }

  .split-col + .split-col {
    margin-top: 8px;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.theme-trade {
  --blue: #00a67f;
  --blue-dark: #008f6c;
}

.theme-trade .brand-word {
  display: inline-flex;
  align-items: baseline;
  height: auto;
  gap: 0.28em;
  color: #0a0b0d;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.theme-trade .tagline {
  margin-top: 12px;
}

.theme-trade .brand-a {
  color: var(--blue);
}

.theme-trade .sparkle {
  color: var(--blue);
}

.theme-trade .foot-word {
  width: auto;
  height: auto;
  overflow: visible;
  font-size: 22px;
}
/* Modal Background */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(25, 35, 50, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

/* Active Modal */
.modal-overlay.active {
  display: flex;
}

/* Modal Container */
.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  padding: 45px 32px 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.25s ease;
}

/* Blue Information Icon */
.modal-icon {
  width: 130px;
  height: 130px;
  background: #0655f9;
  border-radius: 50%;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon span {
  color: #ffffff;
  font-size: 85px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  line-height: 1;
}

/* Modal Heading */
.modal-content h2 {
  font-size: 29px;
  font-weight: 700;
  color: #080d20;
  margin: 0 0 22px;
}

/* Modal Description */
.modal-content p {
  font-size: 19px;
  line-height: 1.6;
  color: #454958;
  margin: 0 0 30px;
}

/* Contact Support Button */
.support-btn {
  width: 100%;
  background: #0655f9;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 17px 20px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.support-btn:hover {
  background: #0047db;
}

/* Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content {
    padding: 35px 24px;
  }

  .modal-icon {
    width: 100px;
    height: 100px;
  }

  .modal-icon span {
    font-size: 65px;
  }

  .modal-content h2 {
    font-size: 24px;
  }

  .modal-content p {
    font-size: 16px;
  }
}
/* Highlight searched words */
mark.search-highlight {
  background-color: #ffeb3b;
  color: #000;
  padding: 2px 3px;
  border-radius: 3px;
}

/* Currently selected match */
mark.search-highlight.current {
  background-color: #ff9800;
  color: #000;
}
.loading-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.loading-overlay[hidden],
.modal-overlay[hidden] {
  display: none;
}

.loading-content {
  color: #fff;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

