:root {
  --bg: #111417;
  --header: rgba(33, 42, 51, 0.92);
  --row: #212a33;
  --head: #293440;
  --field: #242e38;
  --btn: #293440;
  --btn-hover: #334250;
  --primary: #248bda;
  --primary-hover: #1c7ec8;
  --text: #fff;
  --muted: #8794a1;
  --dim: #8c9aa9;
  --link: #4db2ff;
  --ok: #5aec8c;
  --card: #212a33;
  --inset: #1a2128;
  --radius: 8px;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--muted);
  font-family: Geologica, -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

body.lock { overflow: hidden; }

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

button, input { font-family: inherit; color: inherit; }

button { cursor: pointer; }

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

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #33404c; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px 0 16px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-inner.product {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 480px) 1fr;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: none;
}

.logo-word {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.11em;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 56px;
  color: #c3cdd6;
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
}

.tab:hover { color: var(--text); }

.tab.on { color: var(--text); }

.tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header-inner.product .actions { justify-self: end; }
.header-inner.product > .tabs { display: none; }

.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:hover { background: var(--btn-hover); }

.btn.primary { background: var(--primary); }

.btn.primary:hover { background: var(--primary-hover); }

.btn.ghost {
  background: transparent;
  color: #d7e0e8;
  box-shadow: inset 0 0 0 1px rgba(165, 184, 204, 0.28);
}

.btn.ghost:hover {
  background: var(--btn);
  color: #fff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn:disabled:has(.spin),
.btn:has(.spin) {
  opacity: 1;
}

.spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: block;
  animation: spin 0.7s linear infinite;
}

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

.btn.wide { width: 100%; height: 44px; }

.burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.burger:hover { background: var(--btn); }

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

.wrap.wide { width: min(920px, calc(100% - 32px)); }

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

.hero h1 {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

.link { color: var(--link); font-weight: 500; }
a.link:hover { text-decoration: underline; }

button.link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  height: auto;
  border-radius: 0;
  color: var(--link);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

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

.footer button.link {
  color: var(--dim);
  font-size: 14px;
}

.footer button.link:hover { color: var(--text); text-decoration: none; }

.search { position: relative; margin-top: 26px; }

.header-search { position: relative; margin-top: 0; width: 100%; }

.search svg.glass,
.header-search svg.glass {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}

.search input,
.header-search input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: none;
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  padding: 0 44px 0 52px;
}

.header-search input { height: 40px; font-size: 15px; padding-left: 44px; }

.header-search svg.glass { left: 14px; }

.search input::placeholder,
.header-search input::placeholder { color: var(--muted); }

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 14px;
}

.section-head h2 {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.filters { display: flex; gap: 8px; flex: none; }

.pop { position: relative; }

.dd {
  background: var(--btn);
  color: var(--text);
  border: 0;
  border-radius: var(--radius);
  height: 36px;
  padding: 0 12px 0 14px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dd:hover, .dd.open { background: var(--btn-hover); }

.dd svg { color: var(--dim); }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #1e2832;
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.menu button {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
  gap: 8px;
}

.menu button:hover { background: #2a3846; }

.menu button.on { font-weight: 700; }

.tick {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.sheet {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--row);
}

.tr {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(108px, 0.72fr) minmax(124px, 0.8fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px 10px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  color: inherit;
}

.thead {
  background: var(--head);
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

a.row:hover { background: #2a3541; }

a.row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.sheet a.row + a.row,
.sheet .static + .static,
.sheet a.row + .static,
.sheet .static + a.row {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.28);
}

a.row.sold { opacity: 0.5; }
a.row.sold:hover { opacity: 0.78; }

.lot-title {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.sub {
  color: var(--dim);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.3;
}

.code { color: var(--link); }

.v {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.s {
  color: var(--dim);
  font-size: 13px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.chev {
  color: var(--dim);
  display: flex;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  margin-left: 6px;
  background: rgba(165, 184, 204, 0.1);
  color: #a5b8cc;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: 1px;
  letter-spacing: 0;
}

.tag.warn { background: rgba(224, 177, 90, 0.12); color: #e6c27a; }
.tag.bad { background: rgba(224, 122, 122, 0.12); color: #e7a0a0; }

.pill {
  display: inline-flex;
  align-items: center;
  background: rgba(90, 236, 140, 0.1);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.2;
}

.pill.off {
  background: rgba(165, 184, 204, 0.1);
  color: #a5b8cc;
}

.empty {
  text-align: center;
  padding: 54px 16px;
  color: var(--muted);
}

.empty p { margin: 0 0 14px; font-size: 15px; }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
}

.product-top h1 {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
}

.side-link {
  color: var(--link);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 92px;
  height: 100%;
}

.stat { padding: 14px 14px 16px; }

.stat + .stat { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06); }

.k {
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.stat .v { font-size: 18px; margin-top: 8px; letter-spacing: -0.02em; line-height: 1.15; }
.stat .v.sm { font-size: 16px; }

.card-foot { padding: 2px 16px 14px; }

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 16px 12px;
  padding-top: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.qty button:hover { background: var(--btn-hover); }

.qty button:disabled { opacity: 0.35; cursor: default; }

.qty .count {
  min-width: 1.4em;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.qty .sum { margin-left: auto; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

.action {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
}

.action .qty {
  margin: 0;
  padding: 0 8px;
  box-shadow: none;
  background: var(--card);
  border-radius: var(--radius);
  height: 44px;
  flex: none;
}

.action .buy { flex: 1; width: auto; }

.buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.buy {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.buy:hover { background: var(--primary-hover); }

.buy:disabled { opacity: 0.4; cursor: default; background: var(--primary); }

.buy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.block-title {
  margin-top: 28px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.prose {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 68ch;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.spec + .spec { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

.spec span { color: var(--dim); font-weight: 700; }

.spec b {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.issued { color: var(--link); font-weight: 700; font-size: 14px; }

.guide { padding-top: 42px; padding-bottom: 10px; }

.guide .lead {
  margin: 12px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.guide h1 {
  text-align: center;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guide h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin-top: 28px;
}

.guide .prose { margin-top: 8px; }

.steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.step b { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }

.step span { color: var(--muted); font-size: 14px; line-height: 1.45; }

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 16px 40px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}

.footer a:hover { color: var(--text); }

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 10, 12, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.modal {
  width: min(440px, 100%);
  background: #212a33;
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  position: relative;
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
}

.modal.wide { width: min(520px, 100%); }

.modal h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: 28px;
}

.modal .lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.x:hover { background: var(--btn); color: var(--text); }

.lbl {
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.methods { display: grid; gap: 4px; }

.method {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 10px 10px;
}

.method:hover { background: rgba(255, 255, 255, 0.03); }

.method.on { background: #2b3844; }

.method small {
  display: block;
  color: var(--dim);
  font-weight: 500;
  font-size: 13px;
  margin-top: 1px;
}

.method b { font-weight: 700; font-size: 14px; }

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #8c9aa9;
  flex: none;
}

.method.on .dot {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 3px #2b3844, inset 0 0 0 8px var(--primary);
}

.addr {
  margin-top: 8px;
  background: var(--inset);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  word-break: break-all;
}

.pay-error {
  margin-top: 8px;
  color: #e7a0a0;
  font-size: 13px;
  font-weight: 600;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 12px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
}

.total-row b {
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.modal-actions { display: grid; gap: 8px; }

.processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 8px 20px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.bar {
  width: 100%;
  height: 3px;
  background: var(--inset);
  border-radius: 3px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--primary);
  animation: load 1s ease-in-out infinite;
}

@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.cred {
  margin-top: 14px;
  background: var(--inset);
  border-radius: 8px;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 14px;
}

.cred-row + .cred-row { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

.cred-row .meta { min-width: 0; }

.cred-row .phone {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.cred-row .file {
  color: var(--dim);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon-btn:hover { background: var(--btn); color: var(--text); }

.demo {
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #1e2832;
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 35;
}

.suggest button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
}

.suggest button:hover { background: #2a3846; }

.suggest small { color: var(--dim); font-weight: 500; white-space: nowrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: #293440;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stack { display: grid; gap: 8px; margin-top: 16px; }

@media (max-width: 980px) {
  .tabs {
    display: none;
    margin-left: 0;
  }

  .header.menu-open .tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #1a232c;
    padding: 6px 8px 12px;
    gap: 0;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .header.menu-open .tab {
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .header.menu-open .tab.on { background: #24303a; }

  .header.menu-open .tab.on::after { display: none; }

  .burger { display: inline-flex; }

  .header-inner.product {
    display: flex;
  }

  .header-search { flex: 1; min-width: 0; }

  .hide-sm { display: none; }
}

@media (max-width: 800px) {
  .grid-2, .buy-row, .steps3 { grid-template-columns: 1fr; }
  .action { flex-direction: column; }
  .action .qty { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .hero h1, .guide h1 { font-size: 24px; }
  .section-head { flex-wrap: wrap; }
  .filters { width: 100%; }
  .filters .pop { flex: 1; min-width: 0; }
  .filters .dd { width: 100%; justify-content: space-between; }
  .thead { display: none; }
  .tr {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "lot price"
      "lot stock";
    min-height: 0;
    padding: 12px 14px;
  }
  .lot { grid-area: lot; }
  .price { grid-area: price; text-align: right; }
  .stock { grid-area: stock; text-align: right; }
  .chev { display: none; }
  .thead { display: none; }
  .logo-word { letter-spacing: 0.08em; }
  .product-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .actions .btn { padding: 0 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar span { animation: none; width: 100%; }
  .spin { animation: none; border-right-color: currentColor; opacity: 0.7; }
  .toast { transition: none; }
}

.btn.user {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.narrow { width: min(480px, calc(100% - 32px)); margin: 0 auto; }

.auth { padding-top: 56px; }

.auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 20px 18px 16px;
}

.auth-card h1 {
  text-align: left;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.field { margin-top: 12px; }

.field label, .lbl {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.lbl { margin-top: 16px; }

.field input, .sum-input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 0 14px;
  outline: none;
}

.field input:focus, .sum-input:focus { box-shadow: inset 0 0 0 2px var(--primary); }

.field input.bad { box-shadow: inset 0 0 0 2px #e7a0a0; }

.hint {
  margin-top: 6px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}

.pass-wrap { position: relative; }

.pass-wrap input { padding-right: 96px; }

.pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--link);
  font-weight: 700;
  font-size: 13px;
  height: 32px;
  padding: 0 6px;
}

.auth-switch {
  text-align: center;
  margin: 14px 0 4px;
  color: var(--dim);
  font-size: 14px;
}

.balance-block { padding: 18px 16px 16px; }

.balance-num {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.bal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.pay-panel { padding: 16px; }

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.row-actions .btn { flex: 1; height: 44px; }

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.seg button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.seg button:hover { background: var(--btn-hover); }
.seg button.on { background: var(--primary); }
.seg button.on:hover { background: var(--primary-hover); }

.chips-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 8px;
}

.chips-5 .chip { width: 100%; padding: 0 4px; }

.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.steps3 .step { min-height: 88px; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pair .chip { width: 100%; }

.facts { margin-top: 14px; }

.guide h1 { margin-bottom: 0; }

.banner {
  background: var(--card);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 14px;
}

.banner span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-weight: 500;
}

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

.chips.chips-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.chip {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.chip:hover { background: var(--btn-hover); }

.chip.on { background: var(--primary); }

.chip.on:hover { background: var(--primary-hover); }

.methods-card { padding: 6px; margin-top: 8px; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tx-plus { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-minus { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

.page-pad { padding-bottom: 12px; }

@media (max-width: 520px) {
  .split-2, .chips-5 { grid-template-columns: 1fr 1fr; }
  .chips-5 .chip:last-child { grid-column: 1 / -1; }
}
