:root {
  --bg: #070709;
  --bg2: #0e0e12;
  --card: #121218;
  --border: rgba(255, 107, 53, 0.28);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff6b35;
  --accent2: #ff3d00;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 107, 53, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255, 61, 0, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8, 8, 11, 0.94), rgba(6, 6, 9, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: 10px;
  padding-left: env(safe-area-inset-left, 0px);
  overflow-x: hidden;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
  width: 100%;
}

.brand--header {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  order: 1;
}

.brand-mark {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.55);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav--bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: center;
  order: 3;
  width: 100%;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .site-nav--bar {
    order: 2;
    width: auto;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    justify-content: center;
    min-width: 0;
  }
}

.nav-link {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--text);
  border-color: rgba(255, 107, 53, 0.55);
  background: rgba(255, 107, 53, 0.14);
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.12);
}

.header-aside--bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  order: 2;
}

@media (min-width: 640px) {
  .header-aside--bar {
    order: 3;
  }
}

.balance-pill--header {
  padding: 7px 12px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.balance-pill-prefix {
  margin-right: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.72);
}

.balance-pill-sum {
  font-weight: 700;
}

.balance-pill-plus {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.35);
}

.balance-pill-plus::before,
.balance-pill-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 0.5px;
  transform: translate(-50%, -50%);
}

.balance-pill-plus::before {
  width: 9px;
  height: 2px;
}

.balance-pill-plus::after {
  width: 2px;
  height: 9px;
}

.balance-pill--link:hover .balance-pill-plus {
  filter: brightness(1.08);
}

.header-row--top {
  margin-bottom: 12px;
}

.btn-header-icon {
  padding-inline: 14px;
}

.balance-pill--link {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.balance-pill--link:hover {
  text-decoration: none;
  border-color: rgba(255, 107, 53, 0.55);
  background: rgba(255, 107, 53, 0.18);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.12);
}

.balance-pill--link.is-current {
  border-color: rgba(255, 107, 53, 0.55);
  background: rgba(255, 107, 53, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.12);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.header-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.85rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand:not(.brand--header):hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  line-height:1.12;
  margin: 0 0 14px;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  max-width: 52ch;
  margin: 0 0 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card {
  background: linear-gradient(165deg, rgba(255, 107, 53, 0.07), transparent 40%), var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff;
  box-shadow: 0 10px 32px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 107, 53, 0.45);
  outline-offset: 0;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.alert-warn {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.35);
  color: #ffedd5;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  word-break: break-all;
  font-size: 0.88rem;
}

.section {
  padding: clamp(2rem, 6vw, 3.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.grid-2 {
  display: grid;
  gap: 16px;
}

@media (min-width: 780px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Login gate */
body.layout-gate {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.layout-gate .site-nav,
.layout-gate .header-aside {
  display: none;
}

.layout-gate .header-bar {
  justify-content: center;
}

.layout-gate .brand--header {
  margin-inline: auto;
}

.site-header--gate {
  background: rgba(6, 6, 9, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.gate-main {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vmin, 2rem) max(18px, env(safe-area-inset-left, 0px)) clamp(2rem, 10vmin, 5rem)
    max(18px, env(safe-area-inset-right, 0px));
  overflow: hidden;
  box-sizing: border-box;
}

.gate-atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 53, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255, 61, 0, 0.03), transparent 50%);
  opacity: 1;
}

.gate-shell {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  box-sizing: border-box;
}

.gate-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gate-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.gate-alert {
  margin-bottom: 12px;
  border-radius: var(--radius);
}

.gate-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%), var(--card);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

.gate-form {
  gap: 16px;
}

.gate-form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate-form input {
  padding: 14px 15px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.gate-form input:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.gate-submit {
  margin-top: 6px;
  padding-top: 13px;
  padding-bottom: 13px;
  border-radius: 11px;
}

.gate-register {
  margin: 1.25rem 0 0;
  padding-top: 1.15rem;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gate-register a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.gate-register a:hover {
  color: var(--accent);
}

.gate-register-hint {
  color: var(--muted);
}

.layout-gate .footer {
  padding: 16px 16px 24px;
  font-size: 0.8rem;
  opacity: 0.38;
  border-top-color: rgba(255, 255, 255, 0.04);
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.35);
  font-weight: 700;
  font-size: 0.9rem;
}

.delivery-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px dashed rgba(255, 107, 53, 0.45);
}

.list-plain {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list-plain li + li {
  margin-top: 6px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 520px;
}

.rate-table th,
.rate-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.rate-table th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.rate-table td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .coin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coin-pick {
  display: block;
  margin: 0;
  cursor: pointer;
}

.coin-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.coin-card {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coin-pick input:checked + .coin-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.35);
}

.coin-card strong {
  display: block;
  font-size: 0.95rem;
}

.coin-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-actions.compact .btn {
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* --- Search page --- */
.search-page {
  padding-top: clamp(1.5rem, 5vw, 2.75rem);
  padding-bottom: calc(clamp(2.5rem, 8vw, 4rem) + env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}

.search-page-wrap {
  max-width: min(1120px, 100%);
  margin-inline: auto;
}

.search-layout {
  max-width: min(620px, 100%);
  margin-inline: auto;
}

.search-console {
  border-radius: calc(var(--radius) + 14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 17, 24, 0.98) 0%, rgba(10, 10, 14, 0.99) 55%);
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.06) inset,
    0 32px 100px rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.search-console-head {
  padding: clamp(1.2rem, 3.5vw, 1.65rem) clamp(1.1rem, 3vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-console-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-console-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.11);
  border: 1px solid rgba(255, 107, 53, 0.32);
}

.search-console-balance {
  margin-left: auto;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.search-console-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.search-console-lead {
  margin: 0 0 12px;
  font-size: 0.91rem;
  line-height: 1.55;
}

.search-console-strong {
  color: var(--text);
  font-weight: 700;
}

.search-console-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.search-console-alerts {
  padding: 12px clamp(1.1rem, 3vw, 1.5rem) 0;
}

.search-console .search-alert {
  max-width: none;
  margin: 0;
}

.search-console-body {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.search-console-body--locked {
  text-align: center;
  border-top: 1px dashed rgba(239, 68, 68, 0.35);
  background: radial-gradient(ellipse 90% 90% at 50% 0%, rgba(239, 68, 68, 0.09), transparent 55%);
}

.search-console-body--locked .search-lock-kicker {
  margin-top: 4px;
}

.search-query-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .search-query-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
}

.search-slot {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-slot-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-slot-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: max(1rem, 16px);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.38);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.search-slot-input::placeholder {
  color: rgba(161, 161, 170, 0.62);
}

.search-slot-input:focus-visible {
  outline: none;
  border-color: rgba(255, 107, 53, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.search-console-submit {
  margin-top: 16px;
  min-height: 50px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  touch-action: manipulation;
}

.search-submit-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  text-align: center;
}

.search-alert {
  max-width: min(620px, 100%);
  margin: 0 auto 16px;
}

.search-lock-kicker {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f87171;
}

.search-lock-lead {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.search-lock-lead strong {
  color: var(--text);
}

.search-balance-strong {
  color: #86efac;
}

.search-results-deferred {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  width: 100%;
}

.search-results-deferred .search-results-panel {
  margin-top: 0;
}

.search-results-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: min(44vh, 380px);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 107, 53, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 107, 53, 0.12), transparent 55%),
    var(--card);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

.search-results-wait[hidden] {
  display: none;
}

.search-results-wait-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.search-results-wait-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: search-wait-spin 0.85s linear infinite;
}

@keyframes search-wait-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-results-wait-ring {
    animation: none;
    border-top-color: rgba(255, 107, 53, 0.55);
  }
}

.search-results-panel {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  width: 100%;
}

.search-results-empty {
  margin: 0 auto;
  max-width: min(560px, 100%);
  padding: clamp(1.85rem, 4vw, 2.45rem) clamp(1.35rem, 3.5vw, 2rem);
  text-align: center;
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(ellipse 130% 85% at 50% 0%, rgba(148, 163, 184, 0.1), transparent 58%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--card);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
}

.search-results-empty-visual {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.2rem;
}

.search-results-empty-orbit {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(148, 163, 184, 0.38);
  animation: search-empty-pulse 2.5s ease-in-out infinite;
}

.search-results-empty-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.92);
  box-shadow: 0 0 22px rgba(148, 163, 184, 0.35);
}

@keyframes search-empty-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-results-empty-orbit {
    animation: none;
    opacity: 0.75;
  }
}

.search-results-empty-title {
  margin: 0 0 12px;
  font-size: clamp(1.06rem, 2.6vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.search-results-empty-lead {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.58;
  color: rgba(161, 161, 170, 0.96);
}

.search-results-head {
  text-align: center;
  margin-bottom: 14px;
}

.search-results-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.search-results-head-dossier {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.search-dossier-count-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-dossier-count-num {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 10%, rgba(255, 107, 53, 0.95) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-dossier-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

.search-dossier {
  position: relative;
  border-radius: calc(var(--radius) + 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(255, 107, 53, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(99, 102, 241, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(20, 19, 26, 0.98), rgba(10, 10, 14, 0.99));
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.12) inset,
    0 32px 100px rgba(0, 0, 0, 0.55);
}

.search-dossier-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(1.15rem, 3vw, 1.5rem) clamp(1.15rem, 3vw, 1.65rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.search-dossier-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.search-dossier-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #86efac;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 163, 74, 0.12);
}

.search-dossier-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: search-pulse-live 1.8s ease-in-out infinite;
}

@keyframes search-pulse-live {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

.search-dossier-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-dossier-name {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.search-dossier-header-right {
  text-align: right;
}

@media (max-width: 560px) {
  .search-dossier-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 1rem clamp(1rem, 3vw, 1.35rem);
  }

  .search-dossier-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-dossier-live {
    align-self: flex-start;
  }

  .search-dossier-header-right {
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .search-dossier-name {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    word-break: break-word;
  }

  .search-dossier-core {
    padding: 1rem clamp(1rem, 3vw, 1.35rem);
  }

  .search-dossier-grid {
    padding-left: clamp(0.95rem, 2.5vw, 1.15rem);
    padding-right: clamp(0.95rem, 2.5vw, 1.15rem);
  }

  .search-dossier-footer {
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 0.85rem 1rem;
  }
}

.search-dossier-ref {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e4e4e7;
}

.search-dossier-core {
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.15rem, 3vw, 1.65rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-dossier-tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .search-dossier-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.search-dossier-tile {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-dossier-tile-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-dossier-tile-value {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.search-dossier-address-block {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 107, 53, 0.28);
  background: rgba(255, 107, 53, 0.04);
}

.search-dossier-address-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.search-dossier-address-line {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.search-dossier-address-line:last-child {
  margin-bottom: 0;
}

.search-dossier-address-line.muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.search-dossier-grid {
  display: grid;
  gap: 14px;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.15rem, 3vw, 1.65rem)
    clamp(1.25rem, 3vw, 1.65rem);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .search-dossier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .search-dossier-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-dossier-panel-credit {
    grid-column: span 2;
  }

  .search-dossier-panel-op {
    grid-column: span 3;
  }
}

.search-dossier-panel {
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.65);
}

.search-dossier-panel-credit {
  background:
    linear-gradient(155deg, rgba(255, 107, 53, 0.14) 0%, rgba(12, 12, 18, 0.92) 45%);
}

.search-dossier-panel-sin {
  background:
    linear-gradient(165deg, rgba(129, 140, 248, 0.12) 0%, rgba(12, 12, 18, 0.92) 50%);
}

.search-dossier-panel-risk {
  border-color: rgba(251, 191, 36, 0.25);
}

.search-dossier-panel-op {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
}

.search-dossier-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.search-dossier-panel-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.search-dossier-chip,
.search-dossier-chip-alt {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.search-dossier-chip {
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.search-dossier-chip-alt {
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.search-credit-tier {
  font-size: 0.82rem;
  font-weight: 700;
  color: #86efac;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.search-credit-score-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.search-credit-score-num {
  font-size: clamp(2.25rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.search-credit-score-caption {
  font-size: 0.82rem;
  color: var(--muted);
}

.search-credit-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 12px;
}

.search-credit-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ea580c, #fb923c, #fbbf24, #fde047);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.45);
  transition: width 0.35s ease;
}

.search-credit-note {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.search-dossier-mini-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .search-dossier-mini-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.search-dossier-mini-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.search-dossier-mini-stats strong {
  color: #f4f4f5;
  font-weight: 700;
}

.search-sin-value {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e0e7ff;
  margin: 0 0 10px;
}

.search-sin-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.search-dossier-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-dossier-kv li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-dossier-kv li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.search-dossier-kv-wide span {
  flex-shrink: 0;
}

.search-dossier-kv span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-dossier-kv strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.4;
}

.search-dossier-footer {
  position: relative;
  padding: 14px clamp(1.15rem, 3vw, 1.65rem) 18px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.search-dossier-footer-glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: min(420px, 80%);
  height: 24px;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

/* --- Crypto payment page --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.deposit-page {
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: clamp(2rem, 6vw, 3.5rem);
}

.deposit-shell {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  min-width: 0;
}

.deposit-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.deposit-hero {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.deposit-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.08);
  margin-bottom: 12px;
}

.deposit-title {
  font-size: clamp(1.6rem, 4.5vw, 2.15rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.deposit-lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto 16px;
}

.deposit-flash {
  max-width: 640px;
  margin: 0 auto 18px;
}

.deposit-grid {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .deposit-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .deposit-grid > .deposit-panel--main {
    width: min(720px, 100%);
    max-width: 100%;
  }
}

.deposit-glass {
  background: linear-gradient(155deg, rgba(255, 107, 53, 0.09), transparent 42%), var(--card);
  border: 1px solid rgba(255, 107, 53, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.deposit-panel-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.deposit-panel-sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
}

.deposit-limit-alert {
  margin: -6px 0 16px;
}

.deposit-open {
  max-width: min(720px, 100%);
  margin-inline: auto;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.deposit-open-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
}

.deposit-open-window {
  margin: -6px 0 14px;
  font-size: 0.86rem;
}

.deposit-open-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deposit-open-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-open-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.deposit-open-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.deposit-open-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.deposit-open-badge--processing {
  color: var(--muted);
}

.deposit-open-badge--expired {
  color: #ff6b6b;
}

.deposit-open-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.22);
}

.deposit-open-timer--expired {
  background: rgba(255, 80, 80, 0.09);
  border-color: rgba(255, 100, 100, 0.35);
}

.deposit-open-timer-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.deposit-countdown {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.deposit-open-timer--expired .deposit-countdown {
  color: #ff8a8a;
}

.deposit-open-processing-msg {
  margin: 10px 0 6px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.deposit-open-sum {
  margin: 10px 0 10px;
}

.deposit-open-sum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.deposit-open-sum-row:last-child {
  margin-bottom: 0;
}

.deposit-open-sum-row--crypto dd {
  font-size: 1.02rem;
}

.deposit-open-sum dt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.deposit-open-sum dd {
  margin: 0;
  text-align: right;
  min-width: 0;
}

.deposit-open-credit {
  font-size: 0.78rem;
  margin-top: 4px;
}

.deposit-open-addr {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-all;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 107, 53, 0.28);
}

.deposit-open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.deposit-open-claim-form {
  display: inline-flex;
  margin: 0;
}

.deposit-open-claim-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.deposit-open-cancel-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-open-cancel-form {
  margin: 0;
}

.deposit-cancel-btn {
  color: rgba(255, 140, 130, 0.95);
}

.deposit-cancel-btn:hover {
  color: #ffc8bf;
}

.deposit-open-warn {
  margin: 10px 0 0;
  font-size: 0.84rem;
}

.deposit-estimate {
  margin: 14px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-estimate-sum {
  margin-bottom: 6px;
}

.deposit-reveal {
  position: relative;
}

.deposit-reveal-loading {
  padding: 8px 0 4px;
}

.deposit-reveal-ready[hidden] {
  display: none !important;
}

.deposit-reveal-loading[hidden] {
  display: none !important;
}

@keyframes deposit-skel-pulse {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.72;
  }
}

.deposit-skel-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.deposit-skel-bar {
  height: 13px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  animation: deposit-skel-pulse 1.15s ease-in-out infinite;
}

.deposit-skel-bar--wide {
  width: 100%;
}

.deposit-skel-bar--mid {
  width: 74%;
}

.deposit-skel-bar--narrow {
  width: 46%;
}

.deposit-reveal-hint {
  margin: 0;
  font-size: 0.82rem;
}

.deposit-inline-copy {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 800;
  color: inherit;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deposit-inline-copy:hover {
  color: var(--accent);
}

.deposit-inline-copy strong {
  font-weight: 800;
}

.deposit-estimate-actions {
  margin-top: 4px;
}

.deposit-pay-fields {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.deposit-pay-fields[disabled] {
  opacity: 0.74;
}

.coin-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 8px;
}

.coin-chip-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

@media (min-width: 520px) {
  .coin-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.coin-chip {
  display: block;
  margin: 0;
  cursor: pointer;
  min-width: 0;
}

.coin-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.coin-chip-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  min-width: 0;
}

.coin-chip:hover .coin-chip-body {
  border-color: rgba(255, 107, 53, 0.35);
}

.coin-chip input:checked + .coin-chip-body {
  border-color: rgba(255, 107, 53, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.35), 0 12px 40px rgba(255, 107, 53, 0.12);
}

.coin-chip-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.coin-chip-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.coin-chip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.coin-chip-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.deposit-wallet-display {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 107, 53, 0.35);
}

.deposit-wallet-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.deposit-wallet-box {
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-all;
  margin-bottom: 10px;
}

.deposit-copy-btn {
  width: 100%;
}

.deposit-amount-block {
  margin-top: 14px;
}

.deposit-min-hint {
  margin: 6px 0 10px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.deposit-amount-block input {
  padding: 14px 16px;
  font-size: 1.05rem;
}

.deposit-submit {
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 1rem;
}

.deposit-sim-form {
  margin-top: 14px;
}

.deposit-aside-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.deposit-footnote {
  margin-top: 14px;
  font-size: 0.82rem;
}

.deposit-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deposit-history-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.deposit-history-body {
  flex: 1 1 auto;
  min-width: 0;
}

.deposit-history-item:last-child {
  border-bottom: none;
}

.deposit-history-icon {
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  object-fit: contain;
  padding: 7px;
  box-sizing: border-box;
}

.deposit-history-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.deposit-history-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.deposit-history-status.is-done {
  color: var(--success);
}

.deposit-history-status.is-cancelled {
  color: var(--muted);
}

.deposit-history-status.is-pending {
  color: #fbbf24;
}

.deposit-history-item--cancelled {
  opacity: 0.85;
}

.deposit-history-empty-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.deposit-history-meta {
  font-size: 0.8rem;
  margin-top: 4px;
  line-height: 1.45;
}

.deposit-history-credit {
  font-size: 0.76rem;
  margin-top: 3px;
  opacity: 0.92;
}

.deposit-history-time {
  font-size: 0.72rem;
  margin-top: 4px;
}

.payment-history-page {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.payment-history-shell {
  max-width: 720px;
}

.payment-history-head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.payment-history-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.payment-history-lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.payment-history-actions {
  margin: 0;
}

.payment-history-card {
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 3vw, 1.5rem);
}

.payment-history-empty {
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.payment-history-list {
  max-height: none;
}

.search-charge-saved-hint {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-charge-saved-hint a {
  color: var(--accent);
  font-weight: 600;
}

.search-restore-banner {
  margin: 0 0 clamp(12px, 2vw, 16px);
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.08);
}

.search-restore-banner a {
  font-weight: 600;
}

.search-dossier-footer a {
  color: rgba(147, 197, 253, 0.98);
  font-weight: 600;
}

.search-dossier-footer a:hover {
  color: var(--accent);
}

.deposit-hero-meta {
  margin-top: clamp(14px, 3vw, 22px);
  max-width: min(720px, 100%);
  margin-inline: auto;
}

.deposit-hero-wallet-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 107, 53, 0.26);
  background:
    linear-gradient(155deg, rgba(255, 107, 53, 0.11) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    var(--card);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.deposit-hero-wallet-main {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 3vw, 18px) clamp(16px, 3vw, 22px);
  min-width: 0;
}

.deposit-hero-wallet-dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ffb399, var(--accent));
  box-shadow:
    0 0 0 3px rgba(255, 107, 53, 0.22),
    0 0 18px rgba(255, 107, 53, 0.55);
}

.deposit-hero-wallet-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.deposit-hero-wallet-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.95);
}

.deposit-hero-wallet-amount {
  font-size: clamp(1.45rem, 3.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.deposit-hero-wallet-usd {
  color: rgba(255, 235, 228, 0.98);
}

.deposit-hero-wallet-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(14px, 3vw, 18px) clamp(18px, 4vw, 26px);
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(142deg, var(--accent) 0%, #e85a24 48%, var(--accent2) 100%);
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  transition:
    filter 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.deposit-hero-wallet-cta:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 28px rgba(255, 107, 53, 0.28);
  text-decoration: none;
  color: #fff;
}

.deposit-hero-wallet-cta-arrow {
  font-size: 1.05rem;
  opacity: 0.92;
  transform: translateY(-0.5px);
}

@media (max-width: 520px) {
  .deposit-hero-wallet-bar {
    flex-direction: column;
  }

  .deposit-hero-wallet-cta {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    min-width: unset;
    width: 100%;
  }

  .deposit-hero-wallet-main {
    flex-basis: auto;
  }
}

.deposit-ledger {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
}

.deposit-ledger-head {
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
}

.deposit-ledger-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.deposit-ledger-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.deposit-ledger-card {
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 1.65rem);
  max-width: min(720px, 100%);
  margin-inline: auto;
}

.deposit-ledger-list {
  margin: 0;
  padding: 0;
}

.deposit-ledger-item {
  padding: 14px 0;
}

.deposit-ledger-icon {
  width: 40px;
  height: 40px;
}

.deposit-ledger-sumline {
  font-size: 0.82rem;
}

.deposit-ledger-empty {
  max-width: min(560px, 100%);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
}

.deposit-ledger-empty-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.deposit-ledger-empty-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.search-history-page {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.search-history-shell {
  width: 100%;
  max-width: min(1120px, 100%);
  margin-inline: auto;
}

.search-history-hero {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), transparent 42%),
    linear-gradient(155deg, rgba(255, 107, 53, 0.06), transparent 50%),
    var(--card);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

.search-history-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: 10px;
}

.search-history-heading {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.search-history-intro {
  margin: 0 auto 18px;
  max-width: min(72ch, 100%);
  font-size: 0.92rem;
  line-height: 1.55;
}

.search-history-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-history-empty-card {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 24, 0.65);
  box-shadow: none;
}

.search-history-empty-inner {
  padding: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
}

.search-history-empty-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.search-history-empty-lead {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: min(52ch, 100%);
  margin-inline: auto;
}

.search-history-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-history-li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-history-item-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
  cursor: pointer;
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 3vw, 1.35rem);
}

.search-history-item-summary::-webkit-details-marker {
  display: none;
}

.search-history-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  margin-left: 2px;
  border-right: 2px solid rgba(161, 161, 170, 0.85);
  border-bottom: 2px solid rgba(161, 161, 170, 0.85);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.search-history-expand[open] > .search-history-item-summary .search-history-chevron {
  transform: rotate(45deg);
  margin-top: 10px;
}

.search-history-summary-inner {
  flex: 1;
  min-width: 0;
}

.search-history-conditions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.search-history-conditions-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.92);
}

.search-history-conditions-hint {
  font-size: 0.74rem;
}

.search-history-expand[open] .search-history-conditions-hint {
  opacity: 0.65;
}

.search-history-item-body {
  padding: 0 clamp(1rem, 3vw, 1.35rem) clamp(1.1rem, 2.8vw, 1.35rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.search-history-dl--criteria {
  padding-top: 14px;
  margin-bottom: 4px;
}

.search-dossier-stack--in-history {
  margin-top: 12px;
}

.search-dossier-stack--in-history .search-dossier {
  margin-bottom: 14px;
}

.search-dossier-stack--in-history .search-dossier:last-child {
  margin-bottom: 0;
}

.search-history-entry {
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 55%), var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.search-history-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.search-history-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.search-history-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(251, 191, 124, 0.98);
}

.search-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}

.search-history-item-summary:focus-visible {
  outline: 2px solid rgba(255, 107, 53, 0.65);
  outline-offset: 2px;
  border-radius: 10px;
}

.search-history-query-details {
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  padding: 0 12px;
}

.search-history-query-summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 4px;
  list-style: none;
}

.search-history-query-summary::-webkit-details-marker {
  display: none;
}

.search-history-query-details[open] .search-history-query-summary {
  color: var(--text);
  padding-bottom: 6px;
}

.search-history-query-details .search-history-dl {
  padding: 0 4px 12px;
}

.search-history-results-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.95);
  margin: 4px 0 10px;
}

.search-history-missing,
.search-history-zero {
  font-size: 0.86rem;
  margin: 8px 0 0;
  line-height: 1.45;
}

.search-history-snap-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-history-snapshot {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(165deg, rgba(96, 165, 250, 0.06), transparent 40%),
    rgba(18, 18, 24, 0.85);
}

.search-history-snapshot-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-history-snapshot-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-history-snapshot-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.search-history-snapshot-ref {
  font-size: 0.78rem;
  color: rgba(228, 228, 231, 0.85);
}

.search-history-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 16px;
}

.search-history-snapshot-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-history-snapshot-field--wide {
  grid-column: 1 / -1;
}

.search-history-snapshot-k {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.search-history-snapshot-v {
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.search-history-snapshot-sub {
  font-size: 0.8rem;
  display: block;
  margin-top: 2px;
}

.search-history-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: rgba(191, 219, 254, 0.98);
}

.search-history-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.search-history-dl-row {
  display: grid;
  grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  align-items: start;
}

.search-history-dl-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-history-dl-row dd {
  margin: 0;
  word-break: break-word;
  color: var(--text);
}

@media (max-width: 420px) {
  .search-history-dl-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .search-history-dl-row dt {
    margin-bottom: -2px;
  }
}
