:root {
  --ink: #13201f;
  --muted: #63706e;
  --line: #dfe7e4;
  --paper: #ffffff;
  --mist: #f4f8f7;
  --card: #ffffff;
  --header: rgba(255, 255, 255, 0.88);
  --hero-surface: #fbfdfc;
  --footer-surface: #f7faf9;
  --aqua: #21b6a8;
  --aqua-dark: #087f77;
  --coral: #f26457;
  --gold: #efb84d;
  --violet: #5957d6;
  --shadow: 0 20px 55px rgba(18, 32, 31, 0.12);
  --wallet-frame: #dfe5ee;
  --wallet-shell: #ffffff;
  --wallet-sidebar: #ffffff;
  --wallet-workspace: #f2f5fa;
  --wallet-panel: #ffffff;
  --wallet-row: #f2f2f4;
  --wallet-input: #ececef;
  --wallet-text: #111827;
  --wallet-muted: #617089;
  --wallet-line: #d9dee8;
  --wallet-menu-active: #e7e8eb;
  --wallet-vault-bg: #dcf7ee;
  --wallet-vault-text: #00836b;
  --wallet-active-bg: #d9eee7;
  --wallet-active-text: #087f68;
}

html[data-theme="dark"] {
  --ink: #f4f7f7;
  --muted: #a3b0af;
  --line: #27343a;
  --paper: #0b1114;
  --mist: #111a1d;
  --card: #10191d;
  --header: rgba(11, 17, 20, 0.9);
  --hero-surface: #0d1518;
  --footer-surface: #090f12;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
  --wallet-frame: #253142;
  --wallet-shell: #090f17;
  --wallet-sidebar: #0a1018;
  --wallet-workspace: #0b111b;
  --wallet-panel: #121a29;
  --wallet-row: #121927;
  --wallet-input: #191f2b;
  --wallet-text: #f7f8fb;
  --wallet-muted: #9aa8c1;
  --wallet-line: #263144;
  --wallet-menu-active: #262b34;
  --wallet-vault-bg: #0b392f;
  --wallet-vault-text: #99ffd3;
  --wallet-active-bg: #153938;
  --wallet-active-text: #d6fff2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

html:not([data-theme="dark"]) img[src*="prl.png"] {
  filter:
    drop-shadow(0 0 1px rgba(4, 13, 16, .95))
    drop-shadow(0 1px 1px rgba(4, 13, 16, .82))
    drop-shadow(0 0 4px rgba(4, 13, 16, .28));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wallet-shell);
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  padding: 9px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--aqua-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-icon:hover {
  border-color: var(--aqua);
  color: var(--aqua-dark);
  transform: translateY(-1px);
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.language-selector {
  position: relative;
  z-index: 80;
}

.language-toggle {
  min-width: 58px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.language-toggle:hover,
.language-selector.open .language-toggle {
  border-color: var(--aqua);
  color: var(--aqua-dark);
  transform: translateY(-1px);
}

.language-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 248px;
  padding: 12px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.language-selector.open .language-menu {
  display: block;
}

.language-menu-head {
  display: grid;
  gap: 3px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--line);
}

.language-menu-head strong {
  color: var(--ink);
  font-size: 15px;
}

.language-menu-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.language-options {
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.language-options button {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.language-options button:hover,
.language-options button.active {
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
}

.language-options b {
  color: inherit;
  font-size: 11px;
  opacity: .72;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.theme-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--aqua);
  color: var(--aqua-dark);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--aqua);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(33, 182, 168, 0.25);
}

.button:hover {
  background: var(--aqua-dark);
}

.button.secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--aqua);
  color: var(--aqua-dark);
}

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

.hero-band {
  background:
    linear-gradient(115deg, rgba(33, 182, 168, 0.14), transparent 42%),
    linear-gradient(245deg, rgba(242, 100, 87, 0.14), transparent 48%),
    var(--hero-surface);
  border-bottom: 1px solid var(--line);
}

.hero {
  width: min(1240px, calc(100% - 32px));
  min-height: auto;
  padding: 54px 0 44px;
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(640px, 1.1fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  color: var(--aqua-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.source-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.source-note a {
  color: var(--aqua-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
}

.trust-item {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.wallet-stage {
  position: relative;
  min-height: 596px;
  display: grid;
  place-items: center;
  align-self: start;
}

.wallet-shell {
  width: min(100%, 760px);
  border: 1px solid var(--wallet-frame);
  border-radius: 18px;
  padding: 10px;
  background: var(--wallet-shell);
  box-shadow: var(--shadow);
}

.wallet-desktop {
  width: min(100%, 760px);
  height: 596px;
  min-height: 596px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 148px 1fr;
  border-color: var(--wallet-frame);
  border-radius: 12px;
  background: var(--wallet-shell);
  color: var(--wallet-text);
}

.wallet-sidebar {
  position: relative;
  padding: 14px 10px;
  background: var(--wallet-sidebar);
  border-right: 1px solid var(--wallet-line);
}

.wallet-brand-mini {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-brand-mini strong,
.wallet-brand-mini span {
  display: block;
}

.wallet-brand-mini strong {
  font-size: 13px;
  line-height: 1.1;
}

.wallet-brand-mini span {
  color: var(--wallet-muted);
  font-size: 11px;
}

.wallet-app-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wallet-app-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wallet-menu {
  display: grid;
  gap: 7px;
}

.wallet-menu button {
  min-height: 30px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wallet-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.wallet-menu button.active {
  color: var(--wallet-text);
  background: var(--wallet-menu-active);
}

.wallet-menu button:hover {
  color: var(--wallet-text);
  background: color-mix(in srgb, var(--wallet-menu-active) 60%, transparent);
}

.wallet-menu button:nth-child(4) {
  color: color-mix(in srgb, var(--wallet-muted) 56%, transparent);
}

.wallet-menu button:nth-child(4).active,
.wallet-menu button:nth-child(4):hover {
  color: var(--wallet-text);
}

.wallet-lock-button {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  width: auto;
  min-height: 36px;
  margin: 0;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-panel);
  color: var(--wallet-text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.wallet-workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--wallet-workspace);
}

.wallet-app-top {
  min-height: 62px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--wallet-line);
}

.wallet-app-top strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.wallet-app-top .mini-label {
  color: var(--wallet-muted);
}

.wallet-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-pills span,
.wallet-pills button {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--wallet-line);
  border-radius: 999px;
  background: transparent;
  color: var(--wallet-text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wallet-pills span:nth-child(2) {
  color: var(--wallet-vault-text);
  border-color: color-mix(in srgb, var(--wallet-vault-text) 28%, transparent);
  background: var(--wallet-vault-bg);
}

.wallet-view {
  display: none;
  height: 532px;
  min-height: 0;
  overflow: hidden;
}

.wallet-view.is-active {
  display: block;
}

.wallet-demo-toast {
  position: absolute;
  top: 74px;
  right: 18px;
  z-index: 4;
  max-width: 270px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--wallet-active-text) 42%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--wallet-active-bg) 78%, #06101a);
  color: var(--wallet-active-text);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .24);
}

.portfolio-panel {
  min-height: 82px;
  margin: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--wallet-line);
  border-radius: 14px;
  background: var(--wallet-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portfolio-panel span {
  display: block;
  margin-bottom: 6px;
  color: var(--wallet-muted);
  font-size: 13px;
}

.portfolio-panel strong {
  font-size: 32px;
  line-height: 1;
}

.portfolio-actions {
  display: flex;
  gap: 8px;
}

.portfolio-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: transparent;
  color: var(--wallet-text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.portfolio-actions button:hover,
.portfolio-actions button:focus-visible {
  border-color: #5d68ff;
  background: color-mix(in srgb, var(--wallet-row) 72%, #5d68ff 28%);
  color: var(--wallet-text);
  transform: translateY(-1px);
}

.portfolio-actions button.primary {
  border-color: #5d68ff;
  background: #5d68ff;
  color: #fff;
}

.portfolio-actions button.primary:hover,
.portfolio-actions button.primary:focus-visible {
  background: #6f78ff;
  color: #fff;
}

.wallet-columns {
  padding: 4px 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 198px;
  gap: 12px;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-columns {
  height: 407px;
  padding: 4px 16px 16px;
}

.coins-panel,
.history-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--wallet-line);
  border-radius: 14px;
  background: var(--wallet-panel);
}

.coins-panel {
  padding: 13px 12px;
}

.wallet-view[data-wallet-panel="portfolio"] .coins-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.history-panel {
  padding: 14px;
}

.wallet-view[data-wallet-panel="portfolio"] .history-panel {
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr);
  padding: 12px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-title h3,
.history-panel h3 {
  margin: 0;
  font-size: 17px;
}

.panel-title span {
  color: var(--wallet-muted);
  font-size: 12px;
}

.wallet-search-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) 40px 76px 64px;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-search-row {
  grid-template-columns: 54px 94px 76px;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-search-row input {
  grid-column: 1 / -1;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-search-row button:nth-child(3),
.wallet-view[data-wallet-panel="portfolio"] .wallet-search-row button:nth-child(4) {
  display: grid;
}

.wallet-search-row input,
.wallet-search-row button,
.wallet-history-controls select,
.wallet-form-panel input,
.wallet-form-panel select,
.wallet-receive-panel select {
  min-height: 32px;
  padding: 8px;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-input);
  color: var(--wallet-text);
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-search-row input {
  color: var(--wallet-muted);
  background: var(--wallet-input);
}

.wallet-search-row button {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.wallet-search-row button.active,
.wallet-search-row button:hover {
  color: #fff;
  background: #5d68ff;
  border-color: #5d68ff;
}

.wallet-coin-list {
  display: grid;
  gap: 7px;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-coin-list,
.wallet-view[data-wallet-panel="portfolio"] .history-list {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
}

.wallet-view[data-wallet-panel="portfolio"] .history-list {
  gap: 10px;
  align-content: start;
  margin-top: 0;
}

.wallet-demo {
  --wallet-scroll-track: #d8dfeb;
  --wallet-scroll-button: #ecf1f7;
  --wallet-scroll-thumb: #5364d8;
  --wallet-scroll-thumb-hover: #6e7cff;
  --wallet-scroll-arrow: #5364d8;
}

html[data-theme="dark"] .wallet-demo {
  --wallet-scroll-track: #111827;
  --wallet-scroll-button: #151d2c;
  --wallet-scroll-thumb: #5364d8;
  --wallet-scroll-thumb-hover: #7280ff;
  --wallet-scroll-arrow: #5364d8;
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management) {
  scrollbar-color: var(--wallet-scroll-thumb) var(--wallet-scroll-track);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--wallet-scroll-track);
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 3px solid var(--wallet-scroll-track);
  border-radius: 999px;
  background: var(--wallet-scroll-thumb);
  background-clip: padding-box;
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar-thumb:hover {
  background: var(--wallet-scroll-thumb-hover);
  background-clip: padding-box;
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar-button:single-button {
  width: 12px;
  height: 12px;
  background-color: var(--wallet-scroll-button);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 7px 7px;
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 7 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 1 6 4.8H1L3.5 1Z' fill='%235364d8'/%3E%3C/svg%3E");
}

.wallet-demo :is(.wallet-coin-list, .history-list, .wallet-full-panel, .wallet-form-panel, .wallet-receive-panel, .wallet-coin-management)::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 7 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 6 1 2.2h5L3.5 6Z' fill='%235364d8'/%3E%3C/svg%3E");
}

.wallet-coin-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-row);
  cursor: pointer;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row {
  min-height: 50px;
  grid-template-columns: 28px minmax(0, 1fr) minmax(78px, 88px);
  grid-template-areas:
    "icon meta amount"
    "icon meta value";
  row-gap: 2px;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row img {
  grid-area: icon;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row > div {
  grid-area: meta;
  min-width: 0;
}

.wallet-coin-row.is-selected {
  border-color: color-mix(in srgb, #5d68ff 62%, var(--wallet-line));
  background: color-mix(in srgb, var(--wallet-row) 80%, #5d68ff 20%);
}

.wallet-coin-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.wallet-coin-row strong,
.wallet-coin-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-coin-row strong,
.wallet-coin-row b {
  color: var(--wallet-text);
  font-size: 11px;
  line-height: 1.15;
}

.wallet-coin-row span {
  color: var(--wallet-muted);
  font-size: 10px;
  line-height: 1.15;
}

.wallet-coin-row b {
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row b {
  grid-area: amount;
  grid-column: auto;
  font-size: 10px;
}

.wallet-coin-row em {
  grid-column: 3;
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wallet-active-text);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

.wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row em {
  grid-area: value;
  grid-column: auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.history-list article {
  min-height: 58px;
  min-width: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-row);
}

.history-list article div {
  min-width: 0;
}

.wallet-view[data-wallet-panel="portfolio"] .history-list article {
  min-height: 72px;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "type text"
    "type value";
  column-gap: 9px;
  row-gap: 3px;
  align-items: start;
  padding: 10px;
}

.wallet-view[data-wallet-panel="portfolio"] .history-list article div {
  grid-area: text;
}

.history-list article b {
  grid-column: 2;
  min-width: 0;
  color: var(--wallet-active-text);
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-view[data-wallet-panel="portfolio"] .history-list article b {
  grid-area: value;
  grid-column: auto;
  text-align: left;
}

.history-list strong,
.history-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-list strong {
  color: var(--wallet-text);
  font-size: 12px;
  line-height: 1.2;
}

.history-list small {
  color: var(--wallet-muted);
  font-size: 10px;
}

.history-type {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.wallet-view[data-wallet-panel="portfolio"] .history-type {
  grid-area: type;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  font-size: 9px;
}

.history-type.receive {
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
}

.history-type.send {
  background: #ffe9e7;
  color: #c1392f;
}

html[data-theme="dark"] .history-type.send {
  background: #3b1d21;
  color: #ff9d94;
}

.history-type.swap {
  background: #eeeeff;
  color: var(--violet);
}

html[data-theme="dark"] .history-type.swap {
  background: #25264f;
  color: #bfc3ff;
}

.wallet-full-panel,
.wallet-form-panel,
.wallet-receive-panel {
  height: calc(100% - 28px);
  min-height: 0;
  margin: 12px 16px 16px;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--wallet-line);
  border-radius: 14px;
  background: var(--wallet-panel);
}

.wallet-view .wallet-full-panel.history-panel {
  display: block;
}

.wallet-view[data-wallet-panel="coins"] .wallet-full-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.wallet-form-panel form,
.wallet-receive-panel label {
  display: grid;
  gap: 9px;
}

.wallet-form-panel form {
  margin-top: 12px;
}

.wallet-form-panel label,
.wallet-receive-panel label {
  color: var(--wallet-muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-form-panel input,
.wallet-form-panel select,
.wallet-receive-panel select {
  width: 100%;
  margin-top: 6px;
  min-height: 38px;
  color: var(--wallet-text);
}

.wallet-input-action,
.wallet-two-col,
.wallet-history-controls,
.wallet-receive-grid {
  display: grid;
  gap: 10px;
}

.wallet-input-action {
  grid-template-columns: minmax(0, 1fr) 64px;
}

.wallet-input-action button,
.wallet-pager button {
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-input);
  color: var(--wallet-active-text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-two-col,
.wallet-history-controls,
.wallet-receive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-receive-grid {
  grid-template-columns: minmax(172px, 220px) minmax(0, 1fr);
  align-items: start;
}

.wallet-fee-box,
.wallet-address-box,
.wallet-settings-detail,
.wallet-demo-empty {
  padding: 12px;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-row);
}

.wallet-fee-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--wallet-muted);
  font-size: 12px;
}

.wallet-fee-box strong {
  color: var(--wallet-text);
}

.wallet-primary-action {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: #5d68ff;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-primary-action:hover {
  background: #6f78ff;
}

.wallet-qr {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  user-select: none;
}

.wallet-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.wallet-address-box {
  margin: 10px 0;
}

.wallet-address-box small,
.wallet-address-box code {
  display: block;
}

.wallet-address-box small {
  margin-bottom: 6px;
  color: var(--wallet-muted);
  font-size: 10px;
  font-weight: 800;
}

.wallet-address-box code {
  color: var(--wallet-text);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wallet-history-controls {
  margin: 10px 0;
}

.wallet-pager {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.wallet-pager button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--wallet-text);
}

.wallet-coin-management {
  max-height: none;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 3px;
}

.wallet-manage-row {
  min-height: 52px;
  padding: 8px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--wallet-line);
  border-radius: 12px;
  background: var(--wallet-row);
}

.wallet-manage-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.wallet-manage-row strong,
.wallet-manage-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-manage-row strong {
  color: var(--wallet-text);
  font-size: 12px;
}

.wallet-manage-row span {
  color: var(--wallet-muted);
  font-size: 10px;
}

.wallet-icon-button,
.wallet-toggle {
  min-height: 30px;
  border: 1px solid var(--wallet-line);
  border-radius: 10px;
  background: var(--wallet-input);
  color: var(--wallet-text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-toggle.is-on {
  border-color: color-mix(in srgb, var(--wallet-active-text) 45%, transparent);
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
}

.wallet-settings-grid {
  margin: 12px 16px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-settings-grid button {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--wallet-line);
  border-radius: 14px;
  background: var(--wallet-panel);
  color: var(--wallet-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wallet-settings-grid button.is-active {
  border-color: color-mix(in srgb, #5d68ff 54%, var(--wallet-line));
  background: color-mix(in srgb, var(--wallet-panel) 82%, #5d68ff 18%);
}

.wallet-settings-grid strong,
.wallet-settings-grid span {
  display: block;
}

.wallet-settings-grid strong {
  font-size: 13px;
}

.wallet-settings-grid span {
  margin-top: 4px;
  color: var(--wallet-muted);
  font-size: 10px;
  line-height: 1.35;
}

.wallet-settings-detail {
  margin: 0 16px 16px;
  color: var(--wallet-muted);
  font-size: 12px;
  line-height: 1.55;
}

.wallet-settings-detail strong {
  display: block;
  margin-bottom: 6px;
  color: var(--wallet-text);
  font-size: 14px;
}

.wallet-settings-detail button {
  margin-top: 10px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--wallet-line);
  border-radius: 10px;
  background: var(--wallet-input);
  color: var(--wallet-text);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.wallet-screen {
  overflow: hidden;
  border-radius: 18px;
  background: #102220;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wallet-top {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signal {
  display: inline-flex;
  gap: 4px;
}

.signal i {
  width: 6px;
  height: 18px;
  border-radius: 4px;
  background: var(--aqua);
}

.signal i:nth-child(2) {
  height: 13px;
  background: var(--gold);
}

.balance-panel {
  margin: 0 22px 18px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
}

.balance-panel span,
.asset-row span {
  color: rgba(255, 255, 255, 0.72);
}

.balance-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.wallet-actions {
  padding: 0 22px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wallet-action {
  min-height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
}

.wallet-list {
  padding: 0 22px 22px;
  display: grid;
  gap: 10px;
}

.asset-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.coin-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.band {
  padding: 86px 0;
}

.band.mist {
  background: var(--mist);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.feature-card,
.coin-card,
.download-card,
.faq-item,
.support-card,
.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.feature-card {
  min-height: 230px;
  padding: 26px;
}

.feature-icon,
.os-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e7faf7;
  color: var(--aqua-dark);
  font-weight: 900;
}

.os-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.feature-card:nth-child(2) .feature-icon {
  background: #fff2df;
  color: #9b6510;
}

.feature-card:nth-child(3) .feature-icon {
  background: #eeeeff;
  color: var(--violet);
}

.feature-card p,
.coin-card p,
.policy-card p,
.support-card p,
.download-card p {
  color: var(--muted);
}

.coin-marquee {
  width: 100vw;
  margin: -10px 0 -10px calc(50% - 50vw);
  padding: 10px 0;
  display: grid;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.coin-marquee-row {
  display: flex;
  overflow: hidden;
}

.coin-marquee-track {
  min-width: max-content;
  display: flex;
  gap: 14px;
  padding-right: 14px;
  animation: coin-marquee-rtl 38s linear infinite;
}

.coin-marquee-row.is-ltr .coin-marquee-track {
  animation-name: coin-marquee-ltr;
  animation-duration: 44s;
}

.coin-marquee-row:nth-child(3) .coin-marquee-track {
  animation-duration: 41s;
}

.coin-card {
  width: clamp(260px, 25vw, 385px);
  min-height: 120px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.coin-card:hover {
  border-color: color-mix(in srgb, var(--aqua) 48%, var(--line));
  background: color-mix(in srgb, var(--card) 88%, var(--aqua) 12%);
  box-shadow: 0 18px 40px rgba(33, 182, 168, .12);
}

.coin-card img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.coin-card h3 {
  margin-bottom: 3px;
  font-size: 18px;
}

.coin-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

@keyframes coin-marquee-rtl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes coin-marquee-ltr {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.asset-showcase-band {
  background:
    linear-gradient(135deg, rgba(33, 182, 168, .11), transparent 44%),
    linear-gradient(315deg, rgba(255, 194, 90, .13), transparent 38%),
    var(--mist);
}

.asset-showcase-action {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.asset-directory-head {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.asset-catalog-page .page-hero {
  padding: 38px 0 30px;
}

.asset-catalog-page .page-hero h1 {
  font-size: clamp(34px, 4.8vw, 54px);
}

.asset-catalog-page main > .band {
  padding-top: 42px;
}

.asset-catalog-page .asset-directory-head {
  margin-bottom: 18px;
}

.asset-directory-head .lead {
  margin-bottom: 0;
}

.asset-search-panel {
  margin: 0 0 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.asset-search-field {
  display: grid;
  gap: 7px;
}

.asset-search-field span,
.asset-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.asset-search-field input:focus {
  outline: 3px solid color-mix(in srgb, var(--aqua) 32%, transparent);
  border-color: var(--aqua);
}

.asset-count {
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  white-space: nowrap;
}

.asset-no-results {
  margin-bottom: 22px;
}

.asset-calculator-panel {
  margin: 0 0 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(180px, .8fr) minmax(180px, .8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 182, 168, .08), transparent 48%),
    var(--card);
}

.asset-calculator-panel > * {
  min-width: 0;
}

.asset-calculator-copy h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.asset-calculator-field {
  display: grid;
  gap: 7px;
}

.asset-calculator-field span,
.asset-calculator-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-calculator-field input,
.asset-calculator-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.asset-calculator-field input:focus,
.asset-calculator-field select:focus {
  outline: 3px solid color-mix(in srgb, var(--aqua) 32%, transparent);
  border-color: var(--aqua);
}

.asset-calculator-result {
  min-width: 0;
  min-height: 74px;
  padding: 13px 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.asset-calculator-result strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.asset-calculator-result small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.asset-grid [hidden],
.asset-profile[hidden],
.asset-search-panel[hidden],
.asset-no-results[hidden],
.asset-calculator-panel[hidden],
.asset-request-panel[hidden] {
  display: none !important;
}

.asset-list-head,
.asset-market-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(112px, .7fr) minmax(82px, .45fr) minmax(118px, .65fr) minmax(74px, .35fr) minmax(118px, .65fr) minmax(112px, .6fr);
  align-items: center;
  gap: 12px;
}

.asset-list-head {
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-list-head span:not(:first-child),
.asset-market-row > :not(.asset-market-coin) {
  text-align: right;
}

.asset-market-row {
  min-height: 72px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.asset-market-row:last-child {
  border-bottom: 0;
}

.asset-market-row:hover,
.asset-market-row.is-active {
  background: color-mix(in srgb, var(--aqua) 9%, transparent);
}

.asset-market-coin {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.asset-market-coin .asset-logo {
  width: 42px;
  height: 42px;
}

.asset-market-coin strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-market-coin span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.asset-market-price,
.asset-market-volume,
.asset-market-count,
.asset-market-cap,
.asset-market-ath {
  font-size: 14px;
  font-weight: 900;
}

.asset-market-change {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.asset-market-change.positive {
  color: var(--wallet-active-text);
}

.asset-market-change.negative {
  color: #c84343;
}

.asset-card {
  --asset-accent: var(--aqua);
  min-height: 198px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--asset-accent);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.asset-card:nth-child(3n + 2) {
  --asset-accent: var(--coral);
}

.asset-card:nth-child(3n) {
  --asset-accent: var(--gold);
}

.asset-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--asset-accent) 64%, var(--line));
  box-shadow: 0 16px 36px rgba(18, 32, 31, .1);
}

.asset-card-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.asset-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.asset-ticker {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.asset-card h3 {
  margin: 0;
  font-size: 18px;
}

.asset-status {
  min-height: 28px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
  font-size: 12px;
  font-weight: 900;
}

.asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-meta span {
  min-height: 30px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-request-panel {
  margin-top: 0;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(33, 182, 168, .1), transparent 44%),
    var(--mist);
}

.asset-request-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.asset-request-panel .lead {
  margin-bottom: 0;
  font-size: 18px;
}

.asset-profile {
  margin-bottom: 22px;
}

.asset-back-link {
  margin-bottom: 14px;
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.asset-back-link:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.asset-profile-shell {
  display: grid;
  gap: 16px;
}

.asset-coin-header {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 182, 168, .12), transparent 46%),
    linear-gradient(315deg, rgba(255, 194, 90, .13), transparent 38%),
    var(--paper);
  box-shadow: 0 18px 44px rgba(18, 32, 31, .07);
}

.asset-profile-title {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.asset-profile-title img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.asset-profile-title h2 {
  margin: 2px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.asset-profile-ticker {
  color: var(--muted);
  font-weight: 900;
}

.asset-coin-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-coin-tags span {
  min-height: 28px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.asset-profile-copy {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.asset-price-card {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.asset-price-card > span,
.asset-metric span,
.asset-fact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-price-card > strong {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: .95;
}

.asset-change-badge {
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.asset-change-badge.positive {
  background: color-mix(in srgb, var(--wallet-active-text) 16%, transparent);
  color: var(--wallet-active-text);
}

.asset-change-badge.negative {
  background: color-mix(in srgb, #c84343 15%, transparent);
  color: #c84343;
}

.asset-profile-actions,
.asset-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-profile-actions {
  margin-top: 4px;
}

.asset-link-pill {
  min-height: 34px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.asset-link-pill:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.asset-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.asset-metric {
  min-height: 86px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.asset-metric strong {
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1;
}

.asset-lcw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 16px;
  align-items: start;
}

.asset-main-column {
  display: grid;
  gap: 16px;
}

.asset-chart-panel,
.asset-market-panel,
.asset-info-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

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

.asset-panel-head h3,
.asset-info-panel h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.asset-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-chart-tabs button {
  min-height: 30px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
}

.asset-chart-tabs button:hover,
.asset-chart-tabs button:focus-visible {
  border-color: color-mix(in srgb, var(--aqua) 42%, var(--line));
  color: var(--ink);
}

.asset-chart-tabs button.is-active {
  border-color: color-mix(in srgb, var(--aqua) 65%, var(--line));
  background: color-mix(in srgb, var(--aqua) 12%, transparent);
  color: var(--ink);
}

.asset-chart-body {
  min-height: 330px;
  display: grid;
  align-content: stretch;
  gap: 10px;
  color: var(--aqua);
}

.asset-chart-empty {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.asset-chart-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.asset-chart-meta,
.asset-chart-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.asset-chart-meta strong.positive {
  color: var(--wallet-active-text);
}

.asset-chart-meta strong.negative {
  color: #c84343;
}

.asset-price-chart {
  width: 100%;
  min-height: 250px;
  display: block;
}

.asset-chart-gridline {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 20%, transparent);
  stroke-width: 1;
}

.asset-chart-area {
  fill: url(#assetChartFill);
}

.asset-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.asset-side-rail {
  display: grid;
  gap: 12px;
}

.asset-fact-list {
  margin: 14px 0 0;
  display: grid;
  gap: 0;
}

.asset-fact-list div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(110px, .9fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
}

.asset-fact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.asset-market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.asset-market-table th,
.asset-market-table td {
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.asset-market-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-market-table tr:last-child td {
  border-bottom: 0;
}

.asset-market-table a {
  font-weight: 900;
}

.asset-market-table td:nth-child(3),
.asset-market-table th:nth-child(3),
.asset-market-table td:last-child,
.asset-market-table th:last-child {
  text-align: right;
}

.asset-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--card);
}

.asset-card {
  cursor: pointer;
}

.asset-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--aqua) 54%, transparent);
  outline-offset: 3px;
}

.asset-card.is-active {
  border-color: color-mix(in srgb, var(--asset-accent) 72%, var(--line));
  box-shadow: 0 18px 42px rgba(18, 32, 31, .12);
}

.asset-card-market {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.asset-card-market div {
  min-height: 66px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.asset-card-market span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-card-market strong {
  font-size: 17px;
  line-height: 1;
}

.asset-loading {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}

.step b {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

html[data-theme="dark"] .step b {
  background: var(--aqua);
  color: #06241f;
}

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

.download-card {
  min-height: 164px;
  padding: 22px;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--aqua);
  box-shadow: 0 16px 36px rgba(18, 32, 31, 0.1);
}

.download-card-disabled {
  cursor: default;
  opacity: 0.68;
}

.download-card-disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.download-card h3 {
  margin-bottom: 6px;
}

.download-card p {
  margin-bottom: 0;
}

.download-hero-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.download-hero-head {
  margin-bottom: 16px;
}

.download-hero-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.15;
}

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

.platform-list a,
.platform-list > span {
  min-height: 64px;
  padding: 10px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.platform-list .os-icon {
  margin: 0;
}

.platform-list strong,
.platform-list small {
  display: block;
}

.platform-list strong {
  font-size: 16px;
}

.platform-list small {
  color: var(--muted);
  font-size: 13px;
}

.os-icon.windows {
  background: #e7f4ff;
  color: #1976bd;
}

.os-icon.macos {
  background: #f0f0f1;
  color: #353b3d;
}

.os-icon.ubuntu {
  background: #fff0e7;
  color: #bd4d18;
}

.os-icon.debian {
  background: #ffe8ef;
  color: #b3184b;
}

.os-icon.fedora {
  background: #e8efff;
  color: #2d58c9;
}

.os-icon.hash {
  background: #eef8e8;
  color: #3d8125;
}

.page-hero {
  padding: 70px 0 52px;
  background:
    linear-gradient(120deg, rgba(33, 182, 168, 0.12), transparent 42%),
    linear-gradient(260deg, rgba(239, 184, 77, 0.16), transparent 46%),
    var(--hero-surface);
  border-bottom: 1px solid var(--line);
}

.page-hero .section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 36px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}

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

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.support-stats {
  grid-template-columns: 1fr;
}

.support-stats .stat {
  min-height: 78px;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
}

.support-stats .stat strong {
  font-size: 20px;
}

.legal-nav {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.legal-nav a {
  min-height: 44px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--aqua-dark);
  font-weight: 800;
}

.legal-doc {
  display: grid;
  gap: 22px;
}

.legal-doc article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.legal-page article {
  max-width: 920px;
  margin: 0 auto;
}

.legal-page h2 {
  margin-top: 30px;
  font-size: 26px;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-updated {
  font-weight: 800;
  color: var(--ink);
}

.legal-doc p {
  color: var(--muted);
}

.legal-doc p:last-child {
  margin-bottom: 0;
}

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

.policy-card,
.support-card {
  padding: 26px;
}

.requirements-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.requirement-list {
  display: grid;
  gap: 12px;
}

.requirement-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  border-radius: 8px;
  background: var(--card);
}

.requirement-list strong,
.requirement-list span {
  display: block;
}

.requirement-list strong {
  margin-bottom: 6px;
}

.requirement-list span {
  color: var(--muted);
  line-height: 1.55;
}

.listing-form {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item button {
  width: 100%;
  min-height: 64px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--aqua-dark);
  font-size: 22px;
  line-height: 1;
}

.faq-item.open button::after {
  content: "-";
}

.faq-panel {
  display: none;
  padding: 0 22px 22px;
  color: var(--muted);
}

.faq-item.open .faq-panel {
  display: block;
}

.cta-band {
  padding: 78px 0;
  color: #fff;
  background: #13201f;
}

.cta-band .section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-band p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.site-footer {
  padding: 58px 0 34px;
  background: var(--footer-surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 30px;
}

.footer-grid h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  margin: 0 0 9px;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--aqua-dark);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: grid;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner p a {
  color: var(--aqua-dark);
  font-weight: 800;
}

.cookie-banner div {
  display: flex;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(5, 10, 12, 0.62);
}

.modal-backdrop.open {
  display: grid;
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.modal-close {
  float: right;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.verify-status {
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  font-weight: 850;
}

.verify-status.ok {
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
}

.verify-status.bad,
.ticket-success.bad {
  background: #ffe9e7;
  color: #c1392f;
}

html[data-theme="dark"] .verify-status.bad,
html[data-theme="dark"] .ticket-success.bad {
  background: #3b1d21;
  color: #ff9d94;
}

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

.verify-list article {
  padding: 12px;
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.verify-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c1392f;
}

.verify-dot.ok {
  background: var(--aqua);
}

.verify-list strong,
.verify-list small,
.verify-list code {
  display: block;
}

.verify-list small,
.verify-list code {
  color: var(--muted);
}

.verify-list code {
  margin-top: 4px;
  font-size: 12px;
}

.ticket-form,
.ticket-view,
.admin-ticket {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.ticket-form {
  display: grid;
  gap: 16px;
}

.ticket-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.admin-ticket select,
.admin-ticket textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.ticket-success {
  display: none;
  padding: 14px;
  border-radius: 8px;
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
  font-weight: 800;
}

.ticket-success.show {
  display: block;
}

.ticket-success a {
  color: inherit;
  text-decoration: underline;
}

.ticket-detail-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.ticket-save-notice {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
}

.ticket-save-notice strong {
  color: inherit;
  font-size: 16px;
}

.ticket-save-notice span,
.ticket-save-notice code {
  color: inherit;
  overflow-wrap: anywhere;
}

.ticket-save-notice code {
  font-size: 13px;
  opacity: .86;
}

.ticket-detail-head span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-detail-head strong {
  font-size: 28px;
  overflow-wrap: anywhere;
}

.message-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--wallet-active-text);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 72%, var(--card));
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.ticket-thread {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.ticket-reply-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ticket-reply-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.ticket-reply-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.ticket-closed-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
}

.message-box span,
.reply-editor span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.message-box p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.message-box small {
  color: var(--muted);
  font-size: 12px;
}

.message-box.reply {
  border-left-color: var(--aqua);
  background: var(--wallet-active-bg);
}

.reply-editor {
  display: grid;
  gap: 8px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.admin-toolbar:has(.admin-tabs:not([hidden])) {
  justify-content: space-between;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.admin-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-tabs button.active {
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-tickets {
  display: grid;
  gap: 22px;
}

.admin-ticket-group {
  display: grid;
  gap: 12px;
}

.admin-ticket-type {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
}

.admin-ticket-type-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-ticket-type-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.admin-ticket-type-head span {
  min-width: 38px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.admin-ticket-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-ticket-group-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.admin-ticket-group-head span {
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--wallet-active-bg);
  color: var(--wallet-active-text);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

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

.admin-ticket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.admin-ticket-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-ticket-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.admin-ticket-row span {
  color: var(--muted);
  font-size: 13px;
}

.admin-ticket-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-ticket-detail {
  width: min(980px, 100%);
}

.admin-download-stats {
  display: grid;
  gap: 18px;
}

.admin-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-reset-area {
  display: flex;
  justify-content: flex-end;
}

.admin-reset-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.admin-reset-confirm span {
  color: var(--ink);
  font-weight: 900;
}

.download-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.download-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.download-stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.download-stat-card strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.download-stat-card small,
.download-stat-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.admin-ticket {
  display: grid;
  gap: 14px;
  margin: 0;
}

.admin-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-ticket-head > div {
  display: grid;
  gap: 5px;
}

.admin-ticket span,
.admin-ticket small {
  color: var(--muted);
}

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

.button.danger {
  background: #c1392f;
  box-shadow: none;
}

@media (max-width: 940px) {
  .hero,
  .page-hero .section,
  .split,
  .cta-band .section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .wallet-stage {
    min-height: 480px;
  }

  .wallet-desktop {
    grid-template-columns: 140px 1fr;
  }

  .wallet-columns {
    grid-template-columns: 1fr;
  }

  .history-panel {
    display: none;
  }

  .grid-3,
  .coin-grid,
  .download-grid,
  .download-stat-grid,
  .legal-nav,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    gap: 24px;
  }

  .asset-coin-header,
  .asset-lcw-layout {
    grid-template-columns: 1fr;
  }

  .asset-profile-actions {
    justify-content: flex-start;
  }

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

  .asset-list-head,
  .asset-market-row {
    grid-template-columns: minmax(210px, 1fr) minmax(100px, .55fr) minmax(82px, .4fr);
  }

  .asset-list-head span:nth-child(4),
  .asset-list-head span:nth-child(5),
  .asset-list-head span:nth-child(6),
  .asset-list-head span:nth-child(7),
  .asset-market-volume,
  .asset-market-count,
  .asset-market-cap,
  .asset-market-ath {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    min-height: 66px;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-actions .button {
    display: none;
  }

  .nav-actions {
    gap: 8px;
    flex: 0 0 auto;
  }

  .language-toggle {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .language-toggle span {
    display: none;
  }

  .language-menu {
    right: -48px;
    width: min(248px, calc(100vw - 32px));
  }

  .theme-toggle,
  .nav-social {
    display: none;
  }

  .brand {
    min-width: 0;
    font-size: 18px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-social {
    gap: 6px;
  }

  .social-icon,
  .theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .theme-toggle {
    padding: 0 10px;
    font-size: 12px;
  }

  .trust-row,
  .grid-3,
  .coin-grid,
  .download-grid,
  .download-stat-grid,
  .stats-strip,
  .policy-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .asset-showcase-band {
    overflow: hidden;
  }

  .asset-showcase-band .section-head {
    margin-bottom: 20px;
  }

  .asset-showcase-band .section-head h2 {
    font-size: 30px;
  }

  .asset-showcase-band .section-head .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .coin-marquee {
    width: calc(100% + 28px);
    margin: -4px -14px 0;
    padding: 4px 0;
    gap: 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .coin-marquee-track {
    gap: 8px;
    padding-right: 8px;
  }

  .coin-card {
    width: 178px;
    min-height: 66px;
    padding: 10px 12px;
    gap: 10px;
    box-shadow: none;
  }

  .coin-card:hover {
    box-shadow: none;
  }

  .coin-card img {
    width: 34px;
    height: 34px;
  }

  .coin-card h3 {
    margin-bottom: 1px;
    font-size: 14px;
    line-height: 1.15;
  }

  .coin-card p {
    font-size: 11px;
    line-height: 1.2;
  }

  .asset-showcase-action {
    margin-top: 18px;
  }

  .asset-showcase-action .button {
    width: 100%;
  }

  .site-footer {
    padding: 34px 0 24px;
    text-align: center;
  }

  .footer-grid {
    gap: 0;
    justify-items: center;
  }

  .footer-grid > div {
    width: 100%;
    padding: 15px 0;
    display: grid;
    justify-items: center;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid > div:first-child {
    padding-top: 0;
  }

  .footer-grid h3 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .footer-grid a,
  .footer-grid p {
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }

  .footer-grid .brand {
    margin-bottom: 8px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .footer-grid .brand .brand-mark {
    margin: 0 auto;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }

  .asset-directory-head,
  .asset-search-panel,
  .asset-calculator-panel,
  .asset-request-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .asset-catalog-page .page-hero {
    padding: 22px 0 18px;
  }

  .asset-catalog-page .page-hero h1 {
    font-size: 34px;
  }

  .asset-catalog-page .stats-strip,
  .asset-catalog-page .asset-directory-head .lead {
    display: none;
  }

  .asset-catalog-page main > .band {
    padding-top: 24px;
  }

  .asset-coin-header,
  .asset-market-panel,
  .asset-info-panel {
    padding: 16px;
  }

  .asset-profile-title {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .asset-profile-title img {
    width: 58px;
    height: 58px;
  }

  .asset-metric-strip,
  .asset-card-market {
    grid-template-columns: 1fr;
  }

  .asset-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-list-head {
    display: none;
  }

  .asset-market-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .asset-market-change {
    display: none;
  }

  .asset-chart-body {
    min-height: 250px;
  }

  .asset-price-chart {
    min-height: 210px;
  }

  .asset-market-table th:nth-child(3),
  .asset-market-table td:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 30px;
  }

  .hero > * {
    min-width: 0;
    max-width: 100%;
  }

  .lead,
  .trust-item span {
    overflow-wrap: anywhere;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .wallet-stage {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    place-items: stretch;
  }

  .wallet-shell {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 12px;
  }

  .wallet-desktop {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
    border-radius: 12px;
  }

  .wallet-sidebar {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--wallet-line);
  }

  .wallet-demo,
  .wallet-demo * {
    min-width: 0;
  }

  .wallet-brand-mini {
    display: none;
  }

  .wallet-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .wallet-menu button {
    min-width: 0;
    min-height: 34px;
    padding: 7px 6px;
    border: 1px solid var(--wallet-line);
    background: var(--wallet-panel);
    font-size: 11px;
    text-align: center;
  }

  .wallet-lock-button {
    display: none;
  }

  .wallet-workspace {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .wallet-app-top,
  .portfolio-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-pills,
  .portfolio-actions {
    flex-wrap: wrap;
  }

  .wallet-app-top {
    min-height: 0;
    padding: 12px;
  }

  .wallet-pills {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .wallet-pills span,
  .wallet-pills button {
    min-width: 0;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wallet-view {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portfolio-panel {
    min-height: 0;
    margin: 10px;
    padding: 12px;
    gap: 12px;
  }

  .portfolio-panel strong {
    font-size: 28px;
  }

  .portfolio-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .portfolio-actions button {
    min-width: 0;
    padding: 0 8px;
  }

  .wallet-columns,
  .wallet-view[data-wallet-panel="portfolio"] .wallet-columns {
    height: auto;
    padding: 0 10px 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wallet-view[data-wallet-panel="portfolio"] .history-panel {
    display: grid;
  }

  .wallet-search-row,
  .wallet-view[data-wallet-panel="portfolio"] .wallet-search-row {
    grid-template-columns: 54px 94px minmax(0, 1fr);
  }

  .wallet-search-row input,
  .wallet-view[data-wallet-panel="portfolio"] .wallet-search-row input {
    grid-column: 1 / -1;
  }

  .wallet-search-row button:nth-child(3),
  .wallet-search-row button:nth-child(4),
  .wallet-view[data-wallet-panel="portfolio"] .wallet-search-row button:nth-child(3),
  .wallet-view[data-wallet-panel="portfolio"] .wallet-search-row button:nth-child(4) {
    display: grid;
  }

  .wallet-view[data-wallet-panel="portfolio"] .wallet-coin-list {
    max-height: 330px;
  }

  .wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row,
  .wallet-coin-row {
    min-height: 64px;
    grid-template-columns: 34px minmax(0, 1fr) minmax(82px, auto);
    grid-template-areas:
      "icon meta amount"
      "icon meta value";
    align-items: center;
    row-gap: 2px;
  }

  .wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row img,
  .wallet-coin-row img {
    grid-area: icon;
    width: 32px;
    height: 32px;
  }

  .wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row > div,
  .wallet-coin-row > div {
    grid-area: meta;
    min-width: 0;
  }

  .wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row b,
  .wallet-coin-row b {
    grid-area: amount;
    grid-column: auto;
    text-align: right;
  }

  .wallet-view[data-wallet-panel="portfolio"] .wallet-coin-row em,
  .wallet-coin-row em {
    grid-area: value;
    grid-column: auto;
    display: block;
    text-align: right;
  }

  .wallet-full-panel,
  .wallet-form-panel,
  .wallet-receive-panel {
    height: auto;
    min-height: 0;
    margin: 10px;
    padding: 12px;
    overflow: visible;
  }

  .wallet-two-col,
  .wallet-history-controls,
  .wallet-receive-grid {
    grid-template-columns: 1fr;
  }

  .wallet-qr {
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .wallet-settings-grid {
    margin: 10px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wallet-settings-detail {
    margin: 0 10px 12px;
  }

  .wallet-coin-management {
    max-height: 330px;
  }

  .admin-ticket-row,
  .admin-detail-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-detail-top {
    display: grid;
  }

  .admin-stats-head,
  .admin-reset-area {
    display: grid;
    justify-content: stretch;
  }

  .admin-reset-confirm {
    justify-content: stretch;
  }

  .band {
    padding: 62px 0;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner div {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .section,
  .hero,
  .nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

  .theme-toggle,
  .nav-social {
    display: none;
  }

  .wallet-shell {
    padding: 0;
  }

  .wallet-desktop {
    padding: 0;
  }

  .wallet-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallet-menu button {
    min-height: 32px;
    font-size: 10px;
  }

  .wallet-pills {
    grid-template-columns: 1fr;
  }

  .wallet-top,
  .balance-panel,
  .wallet-actions,
  .wallet-list {
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .balance-panel strong {
    font-size: 28px;
  }
}
